This plugin facilitates the dynamic inclusion, on a per-Page basis, of media library artwork into predefined places in your site's theme.
Media2Layout facilitates the dynamic inclusion of media library artwork into predefined places in your site's theme. It creates named positions (by default "campaign" and "header") which can be assigned a media item per each Page.
To insert the images into your theme, just add a bit of PHP code to your theme in the appropriate spot, for example:
For the position named "foo" this would print an tag for the media assigned to the Foo position of the current page (or print nothing if no media is assigned to that position). Currently it wraps the in a
div> with class "media2layout_[position-name]".
Requires: 2.7 or higher
Compatible up to: 2.7
Last Updated: 8 years ago
Active Installs: Less than 10
Got something to say? Need help?