{"id":16785,"date":"2012-02-06T22:47:59","date_gmt":"2012-02-06T22:47:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/per-page-sidebar-blocks\/"},"modified":"2012-04-23T15:39:41","modified_gmt":"2012-04-23T15:39:41","slug":"per-page-sidebar-blocks","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/per-page-sidebar-blocks\/","author":1706861,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.3","stable_tag":"trunk","tested":"3.3.2","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Per Page Sidebar Blocks","header_author":"Immense Networks | Jason Michael Cross","header_description":"","assets_banners_color":"efeff3","last_updated":"2012-04-23 15:39:41","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.immense.net\/per-page-sidebar-blocks-plugin-wordpress\/","header_plugin_uri":"http:\/\/www.immense.net\/per-page-sidebars-wordpress-plugin\/","header_author_uri":"http:\/\/www.immense.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5911,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.3":"<p>Bug fix when reordering on PPSB Settings page<\/p>","1.0.2":"<p>Bug fix Undefined variable on line 160<\/p>","1.0.1":"<p>Bug fix when no sidebars available<\/p>","1.0.0":"<p>Initial release= 1.0.2 =\nBug fix Undefined variable on line 160<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"501491","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539130","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539130","resolution":"1","location":"plugin"}},"screenshots":{"1":"Specify which sidebar blocks show per page","2":"Drag and drop to set the display order of sidebar blocks"}},"plugin_section":[],"plugin_tags":[4121,2757,3317,168,2980],"plugin_category":[43],"plugin_contributors":[89487],"plugin_business_model":[],"class_list":["post-16785","plugin","type-plugin","status-closed","hentry","plugin_tags-blocks","plugin_tags-customize","plugin_tags-per-page","plugin_tags-sidebar","plugin_tags-specific","plugin_category-customization","plugin_contributors-jcross","plugin_committers-jcross"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/per-page-sidebar-blocks_efeff3.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/per-page-sidebar-blocks\/trunk\/screenshot-1.png?rev=1539130","caption":"Specify which sidebar blocks show per page"},{"src":"https:\/\/ps.w.org\/per-page-sidebar-blocks\/trunk\/screenshot-2.png?rev=1539130","caption":"Drag and drop to set the display order of sidebar blocks"}],"raw_content":"<!--section=description-->\n<h4>Background and goals of this plugin<\/h4>\n\n<p>Part of offering WordPress as a CMS to my clients involves giving them as much control over the future of their website as possible. One pitfall I experience is offering per-page sidebar customization.<\/p>\n\n<h4>Sidebar templates and conditionals<\/h4>\n\n<p>I find myself creating several sidebar-name.php templates and using conditionals to display them where I want. Functions like is_page(), is_tree(), is_ancestor(), is_single(), etc. let me plan ahead for which sidebars should show on which pages. However, is_page(14) is not an acceptable solution for me, nor does it truly allow customizing sidebar output for pages created in the future outside the scope of my preemptive conditionals.<\/p>\n\n<h4>Page-specific blocks of content in the sidebar<\/h4>\n\n<p>Per Page Sidebar Blocks lets you, the theme developer, create several sidebar templates using WordPress\u2019 naming convention sidebar-name.php.<\/p>\n\n<h4>Automatically finds your sidebar templates<\/h4>\n\n<p>PPSB will scan the current theme\u2019s root directory for all your sidebar templates and let you decide which ones get displayed on each individual page by simply checking a box on that page\u2019s Edit area.<\/p>\n\n<h4>More Information<\/h4>\n\n<p>A full writeup is available at http:\/\/www.immense.net\/per-page-sidebar-blocks-plugin-wordpress\/<\/p>\n\n<h4>Known Bugs<\/h4>\n\n<ol>\n<li>If you create a new page and check some PPSB boxes, the checks will not save if the page is published. You must check the boxes after the page is published and save again.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Upload the 'per-page-sidebars' folder to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Put the following code into your sidebar.php file: &lt;?php if( function_exists( 'ppsb_show_sidebars' ) ) echo ppsb_show_sidebars(); ?&gt;<\/li>\n<li>Create necessary sidebar templates using WordPress' naming convention sidebar-name.php<\/li>\n<li>Specify display order of sidebars in Settings &gt; Per Page Sidebar Blocks<\/li>\n<li>Check boxes in page editor to display those sidebars<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why is this sidebar plugin different?<\/dt>\n<dd><p>Instead of simply letting you select a full sidebar for a page (which you could certainly setup using this plugin), I go a step further and let you create different blocks of content. Let\u2019s say your client has a list of Company Partner\u2019s logos, and they want to list them on the About and Services pages. Rather than create a specific sidebar for each of those pages, create a sidebar-partners.php block and just enable it on every page it\u2019s needed; use sidebar templates as building blocks to customize sidebar content as needed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Bug fix when reordering on PPSB Settings page<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Bug fix Undefined variable on line 160<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Bug fix when no sidebars available<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Include sidebar templates on a per-page basis.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16785"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jcross"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16785"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16785"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16785"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16785"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16785"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}