{"id":49903,"date":"2016-07-29T18:23:48","date_gmt":"2016-07-29T18:23:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dmg-text-widget\/"},"modified":"2016-08-22T21:11:41","modified_gmt":"2016-08-22T21:11:41","slug":"dmg-text-widget","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/dmg-text-widget\/","author":15065289,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"4.6.30","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"DMG Text Widget","header_author":"Dan Gifford","header_description":"","assets_banners_color":"","last_updated":"2016-08-22 21:11:41","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/dancoded.com\/wordpress-plugins\/","header_plugin_uri":"http:\/\/dancoded.com\/wordpress-plugins\/text-widget\/","header_author_uri":"http:\/\/dancoded.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1589,"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":["1.0","1.0.1","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1567349","resolution":"1","location":"plugin"}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,357,1721,162],"plugin_category":[43,59],"plugin_contributors":[94516],"plugin_business_model":[],"class_list":["post-49903","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-shortcodes","plugin_tags-text-widget","plugin_tags-widget","plugin_category-customization","plugin_category-utilities-and-tools","plugin_contributors-dancoded","plugin_committers-dancoded"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dmg-text-widget.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dmg-text-widget\/trunk\/screenshot-1.jpg?rev=1567349","caption":""}],"raw_content":"<!--section=description-->\n<p>DMG Text Widget replaces the standard text widget with one that includes advanced options to apply a CSS class, add paragraphs, apply shortcodes, hide the title and make the title a link.<\/p>\n\n<p>Two hooks are available to filter the title and text; <code>dmg_text_widget_title<\/code> for the title and <code>dmg_text_widget_text<\/code> for the text.<\/p>\n\n<p>For example, to change the title on a single page or post, you could add this to your functions.php file:<\/p>\n\n<pre><code>function myTitleFilter( $title )\n{\n    if( is_singular() )\n    {\n        return \"&lt;strong&gt;$title&lt;\/strong&gt;\";\n    }\n    else\n    {\n        return $title;      \n    }\n}\nadd_filter( 'dmg_text_widget_title' , 'myTitleFilter');\n<\/code><\/pre>\n\n<p>More information about this plugin can be found at <a href=\"http:\/\/dancoded.com\/tag\/dmg-text-widget\/\">http:\/\/dancoded.com\/tag\/dmg-text-widget\/<\/a>.<\/p>\n\n<h3>Adding CSS Class(es)<\/h3>\n\n<p>Enter strings, either space or comma separated, which will be applied as CSS classes to the widget wrapper. These classes are sanitized using the <code>sanitize_html_class()<\/code> function built in to Wordpress.<\/p>\n\n<h3>Make the Title a link<\/h3>\n\n<p>Enter a valid URL to make the title a link.<\/p>\n\n<h3>Automatically add paragraphs<\/h3>\n\n<p>This setting automatically adds paragraph tags to any text. This uses the Wordpress <code>wpautop()<\/code> function.<\/p>\n\n<h3>Apply shortcodes<\/h3>\n\n<p>This setting processes the text and applies any shortcodes found.<\/p>\n\n<h3>Show the Title<\/h3>\n\n<p>This setting controls the visibility of the widget title. If unchecked, the title (including the <code>before_title<\/code> and <code>after_title<\/code> code defined when registering the sidebar) will not be displayed.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/dmg-text-widget<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' page in the WordPress admin area<\/li>\n<li>Drag onto any active sidebar on the 'Appearance &gt; Widgets' page<\/li>\n<li>Click on the 'Show Advanced' link in the widget to change advanced options.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added option to make the title a link by adding a URL<\/li>\n<li>Tested with Wordpress 4.6<\/li>\n<li>Corrected typo's in readme.txt<\/li>\n<li>Update readme.txt<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Corrected typos in readme.txt<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"A simple widget to add custom text\/ HTML to your theme. Advanced options allow you to apply shortcodes, make the title a link and add CSS classes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/49903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=49903"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dancoded"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=49903"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=49903"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=49903"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=49903"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=49903"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=49903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}