{"id":4187,"date":"2008-12-07T17:32:03","date_gmt":"2008-12-07T17:32:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fun-with-theme-widgets\/"},"modified":"2008-12-07T17:32:25","modified_gmt":"2008-12-07T17:32:25","slug":"fun-with-theme-widgets","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fun-with-theme-widgets\/","author":286339,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1","stable_tag":"1","tested":"2.7","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Fun with Theme Widgets","header_author":"Andrew Rickmann","header_description":"","assets_banners_color":"","last_updated":"2008-12-07 17:32:25","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.wp-fun.co.uk\/2008\/12\/06\/fun-with-theme-widgets\/","header_plugin_uri":"http:\/\/www.wp-fun.co.uk\/2008\/12\/06\/fun-with-theme-widgets\/","header_author_uri":"http:\/\/www.wp-fun.co.uk","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1778,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1990],"plugin_category":[],"plugin_contributors":[87227],"plugin_business_model":[],"class_list":["post-4187","plugin","type-plugin","status-closed","hentry","plugin_tags-guest-post","plugin_contributors-arickmann","plugin_committers-arickmann"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fun-with-theme-widgets.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin searches the themes directory for .widget.php files. When it finds one it will add the contents of the file as a widget that can be added to any dynamic sidebar.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>To create a new widget, with the plugin activated, follow these steps:<\/p>\n\n<p>Step 1 - Create a new file in your theme called {something}.widget.php<\/p>\n\n<p>Step 2 - Add a PHP comment at the top of the file. For example:<\/p>\n\n<pre><code>&lt;?php\n\/*\nWidget Name: 3 Random Posts\nWidget Description: Outputs 3 random posts in a list\n*\/\n?&gt;\n<\/code><\/pre>\n\n<p>Step 3 - Add the theme tags and code you want in your widget.<\/p>\n\n<p>Step 4 - Open the WordPress admin and use widgets in the normal way.<\/p>\n\n<!--section=installation-->\n<p>This plugin requires PHP5<\/p>\n\n<p>Add to the plugin directory then activate it.<\/p>\n\n<p>There are no options<\/p>","raw_excerpt":"Provides a quick and easy way to add widgets as part of a theme without any additional PHP code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4187","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=4187"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/arickmann"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4187"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4187"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4187"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4187"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4187"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}