{"id":11555,"date":"2010-12-20T11:33:00","date_gmt":"2010-12-20T11:33:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/aside\/"},"modified":"2011-10-05T14:15:20","modified_gmt":"2011-10-05T14:15:20","slug":"aside","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/aside\/","author":7434511,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9","stable_tag":"0.9","tested":"3.2.1","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Aside widget","header_author":"Paul Reeve","header_description":"","assets_banners_color":"","last_updated":"2011-10-05 14:15:20","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=preeve%40pdjr%2eu","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/aside\/","header_author_uri":"http:\/\/www.pdjr.eu\/paulreeve\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3780,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.9":"<p>Not a change - just a release!<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566867","resolution":"1","location":"plugin"}},"screenshots":{"1":"Widgets admin page showing aside widget in use."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[8655,4060,662,8656,162],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-11555","plugin","type-plugin","status-publish","hentry","plugin_tags-aside","plugin_tags-conditional","plugin_tags-php","plugin_tags-pull-quote","plugin_tags-widget","plugin_category-customization","plugin_committers-preeve9534"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/aside.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/aside\/trunk\/screenshot-1.png?rev=1566867","caption":"Widgets admin page showing aside widget in use."}],"raw_content":"<!--section=description-->\n<p>Aside widget allows a page or post to insert arbitrary content into a\nsidebar (or other dynamic widget area), supporting something similar to the\ntypographic notion of a 'pull-quote'.<\/p>\n\n<p>Aside widget is triggered by the presence, in those pages which require it,\nof one or more 'aside' custom fields with values that specify the content\nof one or more widgets.  Shifting the locus of widget content control from\nthe widget to the page makes for more natural authoring of conditional\ncontent which needs to be associated with just a small number of pages.<\/p>\n\n<p>As well as text, an 'aside' custom field may contain HTML and\/or PHP code.\nOf course, any HTML should be crafted so as not to break the containing\npage structure.  PHP parsing must be explicitly enabled in the widget\nadministration panel and any PHP in the 'aside' field value must be enclosed\nin the usual tags for it to be recognised.<\/p>\n\n<p>A little bit of short-form magic can be triggered by formatting the aside\nfield value in the following way.<\/p>\n\n<pre><code>{#|!|!!}id[,prefix,suffix]\n<\/code><\/pre>\n\n<p>A value of the form #id (e.g. '#232') causes the the page or post\nidentified by the integer id to be used as the widget content.<\/p>\n\n<p>A value of the form !id (e.g. '!myasidediv') causes the contents of the\nHTML DIV identified by id to be used as the widget content.  The selected\nDIV must reside withing the current page or post.  Normally, the selected\nDIV is removed from display within the page proper, but a value of the form\n!!id causes the DIV to remain in the normal page flow.  Processing of page\ncontent for the identified DIV is unsophisticated: the DIV must not itself\ncontain any other DIVs and the DIV id attribute must be the first attribute\nafter the tag name.<\/p>\n\n<p>Prefix and suffix can be used to specify arbitrary text\/HTML which will\nbe used to bracket the selected widget content.  PHP can also be used, but\nwill only work if parsing is enabled as described above.<\/p>\n\n<h3>Examples<\/h3>\n\n<p>A few examples of the use of magic values in the 'aside' field.<\/p>\n\n<pre><code>#232  \n<\/code><\/pre>\n\n<p>Display page 232 in the aside widget.<\/p>\n\n<pre><code>!mydiv  \n<\/code><\/pre>\n\n<p>Remove the contents of <code>&lt;div id='mydiv'&gt;...&lt;\/div&gt;<\/code> from the current\npage and display it in the aside widget.<\/p>\n\n<pre><code>!!mydiv  \n<\/code><\/pre>\n\n<p>As above, but leave the content in the page.<\/p>\n\n<pre><code>!!mydiv,&lt;span style=\u201dbigquote\u201d&gt;,&lt;\/span&gt;  \n<\/code><\/pre>\n\n<p>As above, but style the widget output in some special way.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Place the zip archive in \/wp-content\/plugins.<\/li>\n<li>Unzip the archive (and then delete it if you wish).<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Use the widget like any other widget.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>There's some kind of error on line 43!<\/dt>\n<dd><p>That error means that your PHP code is incorrect or otherwise broken.<\/p>\n\n<p>Bugs in this widget on line 43 are not possible.  Any errors attributed to\naside.php at line 43 are errors in code you put into an aside value field.\nThe reason that it shows the error being in aside.php is because that is\nwhere your code is actually being run from.  Please don't email me about\nerrors in aside.php on line 43.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9<\/h4>\n\n<p>Release.<\/p>","raw_excerpt":"Display arbitrary sidebar content conditional upon a particular post or page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11555"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/preeve9534"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11555"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11555"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11555"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11555"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11555"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}