Time is running out for work on the plugin. With the 9th of this month being the suggested date to start working on documentation and cleanup and the 16th being a definitive "pencils down" date, I'm definitely in a hurry. Here's my story for the last two weeks, decorated with nicely drawn bullet points:
<figure>
elements are inline blocks now : Like the elements they are supposed to replace —<img>
,<video>
,<audio>
and the occasional<object>
—<figure>
elements should not disturb the flow of a blog post. They also now display effortless besides each other.- The wetter style became less US-centric: I created a version of the stylesheet with a crossed-out Euro symbol (€).
- No more shortcodes : The plugin now inserts simple image, video or audio elements and uses the PHP DOM facilities to detect and replace them. For error-tolerant parsing, I use the MIT-licensed html5lib.
- Some IE 6/7 support : After discovering older versions of Internet Explorer are unable to style new HTML5 elements, I came upon Remy Sharp's javascript-based workaround. Granted, some parts still looks like crap in IE, but that is what you get for using a browser that is older than dirt.
- New hybrid style :
- Locale and jurisdiction support : Both can now be set in the admin interface, each media item can have a separate jurisdiction. All information comes from the excellent CC REST API. See for yourself:
Two very important things are still missing: A cache for API responses and an easy method for re-embedding. I am going to work on those (and everything else Nathan Kinkade digs up in this version) in the next few days.
The overly frequent API calls result in notable slowness interface-wise and unneccessary load on the server side — so kids, don't try this at home! You have been warned. [ US]: United States [DOM]: Document Object Model