{"id":9043,"date":"2010-05-09T17:05:20","date_gmt":"2010-05-09T17:05:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/page-layout\/"},"modified":"2010-05-25T14:33:36","modified_gmt":"2010-05-25T14:33:36","slug":"page-layout","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/page-layout\/","author":5725404,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"0.3","tested":"","requires":"2.9.2","requires_php":"","requires_plugins":"","header_name":"PageLayout","header_author":"Luca Realdi","header_description":"","assets_banners_color":"","last_updated":"2010-05-25 14:33:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/keceloce.net\/wordpress-page-layout\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":8717,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.2","0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1566850","resolution":"1","location":"plugin","width":786,"height":510},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566850","resolution":"1","location":"plugin","width":786,"height":510}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[225,4036,170,162,241],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-9043","plugin","type-plugin","status-publish","hentry","plugin_tags-cms","plugin_tags-layout","plugin_tags-page","plugin_tags-widget","plugin_tags-widgets","plugin_category-customization","plugin_committers-baol7777"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/page-layout.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/page-layout\/trunk\/screenshot-1.png?rev=1566850","caption":""}],"raw_content":"<!--section=description-->\n<p><strong>WARNING: USE ONLY WITH JAVASCRIPT! The backend of this plugin works only with browser with javascript enabled<\/strong><\/p>\n\n<p>This plugin allows to dynamically activate the widgets system on a WordPress page, creating complex layouts.<\/p>\n\n<p>You can define new layout via the function <code>register_layout()<\/code> in the function.php file of your theme.\nThe plugin define two sample defaults layouts that you can see in Screenshots section.<\/p>\n\n<p>e.g.<\/p>\n\n<pre><code>&lt;?php\n\/\/ &lt;your_theme&gt;\/function.php\nif ( function_exists('register_layout') ){\n    register_layout(array(\n        'name' =&gt; 'Name of Layout',\n        'zones' =&gt; array( 'name of zone one', 'name of zone two', 'name of zone three' [, ...] ),\n        'thumbnail' =&gt; 'thumbnail-of-layout.jpg', \/\/ with extension (jpg\/gif\/png)\n        'template' =&gt; 'name-of-php-template-file' \/\/ without extension\n    ));\n}\n?&gt;\n<\/code><\/pre>\n\n<p>The code of the new template plans to use a new property of the global object $post: $post-&gt; layout<\/p>\n\n<p>e.g.<\/p>\n\n<pre><code>&lt;?php \n$zones = $post-&gt;layout['zones'];\nforeach ($zones as $zone){\n    dynamic_sidebar($zones[0])\n}\n?&gt;\n<\/code><\/pre>\n\n<ul>\n<li><p>The php template file should be placed in the folder <code>layouts<\/code> of your theme folder (<code>\/wp-content\/themes\/&lt;your_theme&gt;\/layouts\/&lt;name-of-php-template-file&gt;.php<\/code>) or in the plugin folder (<code>\/wp-content\/plugins\/page-layout\/layouts\/&lt;name-of-php-template-file&gt;.php<\/code>) if you want the layout to be independent from the theme.<\/p><\/li>\n<li><p>The thumbnail should be placed in the child folder of <code>layouts<\/code>: <code>layouts\/thumb\/&lt;thumbnail-of-layout.jpg&gt;<\/code>.<\/p><\/li>\n<li><p>If you want to include also a related css file separate from the theme installed you can create it in <code>\/wp-content\/plugins\/page-layout\/css\/page-layout-general.css<\/code> or for each php template <code>\/wp-content\/plugins\/page-layout\/css\/page-layout-&lt;name-of-php-template-file&gt;.css<\/code>.<\/p><\/li>\n<li><p>The plugin include a simple widget to display the content of current page<\/p><\/li>\n<\/ul>\n\n<h4>Licence<\/h4>\n\n<p>This plugin is released under the GPL, you can use it free of charge on your personal or commercial blog.<\/p>\n\n<h4>Translations<\/h4>\n\n<p>If you want to help to translate the plugin to your language, please have a look at the .pot file which contains all defintions and may be used with a <a href=\"http:\/\/www.gnu.org\/software\/gettext\/\">gettext<\/a> editor like <a href=\"http:\/\/www.poedit.net\/\">Poedit<\/a> (Windows).\nPlease refer to the <a href=\"http:\/\/codex.wordpress.org\/Installing_WordPress_in_Your_Language\" title=\"Installing WordPress in Your Language\">WordPress Codex<\/a> for more information.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unpack the download-package<\/li>\n<li>Upload the file to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Register (if you need) a new layout. Create and put the files of new layout in the folder <code>&lt;your_theme&gt;\/layouts<\/code> and <code>&lt;your_theme&gt;\/layouts\/thumb<\/code><\/li>\n<li>Edit or add a WordPress Page and click in the metabox Page Layout<\/li>\n<li>Select a layout and drag some widget into their areas (the mechanism is similar to that of sidebars)<\/li>\n<li>Save and save...<\/li>\n<li>Visit the page and modify your css file as you want<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n\n<ul>\n<li>Fix child theme bugs (thanks to Lukasz Muchlado lukasz[at]bapro[dot]pl)<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Fix widget.js (a fork of wp widget.js)<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release...<\/li>\n<\/ul>","raw_excerpt":"Page Layout allows to define a page layout using widgets.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9043"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/baol7777"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9043"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9043"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9043"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9043"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9043"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}