{"id":13570,"date":"2011-06-08T09:51:15","date_gmt":"2011-06-08T09:51:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/logged-in-conditional-text-widget\/"},"modified":"2014-03-19T02:43:16","modified_gmt":"2014-03-19T02:43:16","slug":"logged-in-conditional-text-widget","status":"publish","type":"plugin","link":"https:\/\/pt.wordpress.org\/plugins\/logged-in-conditional-text-widget\/","author":201194,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9.2","stable_tag":"0.9.3","tested":"3.7.41","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Logged In Conditional Text Widget","header_author":"Paul Gregory","header_description":"","assets_banners_color":"","last_updated":"2014-03-19 02:43:16","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/paulgregory.org.uk\/donate","header_plugin_uri":"http:\/\/paulgregory.org.uk\/wp-plugin\/logged-in-conditional-text-widget","header_author_uri":"http:\/\/paulgregory.org.uk\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":4453,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.9.2":"<p>Extra widget, better compliance with standards, shortcodes, more.<\/p>","0.9.1":"<p>Potentially fixes an issue with call-user-func-array reported by some users. If it doesn\u2019t, please let me know what version of WordPress and PHP you\u2019re using.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.8.9","0.9.0","0.9.1","0.9.2","0.9.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539100","resolution":"1","location":"plugin"}},"screenshots":{"1":"The \"Text (If Logged In)\" widget"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4060,602,2059,162],"plugin_category":[38,43],"plugin_contributors":[89265],"plugin_business_model":[],"class_list":["post-13570","plugin","type-plugin","status-publish","hentry","plugin_tags-conditional","plugin_tags-login","plugin_tags-register","plugin_tags-widget","plugin_category-authentication","plugin_category-customization","plugin_contributors-paulgregory","plugin_committers-paulgregory"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/logged-in-conditional-text-widget.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/logged-in-conditional-text-widget\/trunk\/screenshot-1.png?rev=1539100","caption":"The \"Text (If Logged In)\" widget"}],"raw_content":"<!--section=description-->\n<p>Adds three widgets - \u201cText\/List\u201d, \u201cText\/List (If Logged In)\u201d and \u201cText\/List (Not Logged In)\u201d. These can be used much like the normal Text widget, except two of them only display if the condition is met.<\/p>\n\n<p>Potential Uses:\n* Add a link to a Register page, along with some text promoting registration (for example on a site with the bbPress plugin)\n* Display adverts to users who are not logged in\n* Display useful links to users who are logged in.\n* Display a nice list to everyone.<\/p>\n\n<p>Because the widgets are separate, you can have the logged-in widget in a different place to a logged-out widget. You don\u2019t even have to have pairs of widgets.<\/p>\n\n<p>Unlike the normal Text widget which just has a toggle for paragraph on\/off, this widget has four display options:<\/p>\n\n<ul>\n<li>No formatting<\/li>\n<li>Add paragraphs<\/li>\n<li>Bullet list (ul)<\/li>\n<li>Numbered list (ol)<\/li>\n<\/ul>\n\n<p>The list options are useful if you are adding a number of links - simply add each one on a new line and they'll be turned into a bullet. Please note that this plugin adds no CSS. Often themes style the lists within a widget to make menus look nice, so your theme may (for example) prevent numbers from showing. See FAQ.<\/p>\n\n<p>You may find that the Text\/List widget is useful even without the logged-in \/ logged-out conditional.<\/p>\n\n<!--section=installation-->\n<p>There isn't much to do.<\/p>\n\n<ol>\n<li>Upload <code>logged-in-conditional-text-widget.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory (or install via Add Plugins - search for Logged In Conditional Text Widget or author Paul Gregory)<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to Widgets where you'll see three new widgets: \"Text\/List (If Logged In)\u201d, \"Text\/List (Not Logged In)\u201d, \u201cText\/List\u201d.<\/li>\n<li>Add and configure widget instances in the normal way.<\/li>\n<li>You may need to tweak your theme\u2019s CSS to get numbered lists to show as desired. See FAQ. The UL and OL have a class of \u2018textlistconditional\u2019 which you can target if required.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why doesn\u2019t my numbered list have numbers?<\/dt>\n<dd><p>Most likely, your theme is overriding the default styling of the LI (list item) element so that the number\/bullet is hidden. This plugin does not include any CSS. However, the UL and OL have a class of \u2018textlistconditional\u2019 which you can target if required in your theme\u2019s CSS.<\/p><\/dd>\n<dt>What about internationalisation?<\/dt>\n<dd><p>All text strings are in the pgloggedintext domain. If you\u2019d like to submit a translation, please do.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.3<\/h4>\n\n<ul>\n<li>Readme changes<\/li>\n<\/ul>\n\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>Logged in and Logged Out reuse same widget code, actually from the new third type which is a text widget without conditions.<\/li>\n<li>Shows title in editor when widget minimised<\/li>\n<li>Some labelling changes, e.g. now \u201cText\/List\u201d.<\/li>\n<li>Allows shortcodes<\/li>\n<li>Class on the UL and OL to assist CSS targeting<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Bugfix release (2014).<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>First release (2011)<\/li>\n<\/ul>","raw_excerpt":"Adds text\/list widgets - one only shows if user is logged in, and the other only shows if a user is not logged in. A third shows regardless.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13570"}],"author":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/paulgregory"}],"wp:attachment":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13570"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13570"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13570"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13570"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13570"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}