{"id":23514,"date":"2013-05-24T17:15:38","date_gmt":"2013-05-24T17:15:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/conditional-shortcode\/"},"modified":"2014-09-10T09:58:18","modified_gmt":"2014-09-10T09:58:18","slug":"conditional-shortcode","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/conditional-shortcode\/","author":11803781,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Conditional Shortcode","header_author":"Luis Mas","header_description":"","assets_banners_color":"","last_updated":"2014-09-10 09:58:18","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=YNLC5HS5EBW2S","header_plugin_uri":"https:\/\/github.com\/luiscmas\/conditional-shortcode","header_author_uri":"http:\/\/www.it2b.es\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1414,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"986245","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"986245","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[19316,170,243,334,86,166,80,357],"plugin_category":[43,45],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-23514","plugin","type-plugin","status-publish","hentry","plugin_tags-conditional-donation-result","plugin_tags-page","plugin_tags-pages","plugin_tags-paypal","plugin_tags-post","plugin_tags-posts","plugin_tags-shortcode","plugin_tags-shortcodes","plugin_category-customization","plugin_category-ecommerce","plugin_committers-luiscmas"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/conditional-shortcode\/assets\/icon-128x128.png?rev=986245","icon_2x":"https:\/\/ps.w.org\/conditional-shortcode\/assets\/icon-256x256.png?rev=986245","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Conditional Shortcode. Adds a shortcode gracias_por_donar that retrieves a text depending on an integer parameter passed as a request<\/p>\n <p>Shortcode attributes: \n- text0, text1, text2, text3 are texts to print - range1, range2, range3 are integers (default values 0) - get is the name of the request parameter that can be passed as post or get (default value is \"amt\")<\/p>\n <p>usage \n[gracias_por_donar text0=\"this text is printed if amt value is lower than range1\" text1=\"this text is printed if value amt is between range1 and range2\"  text2=\"this text is printed if value amt is between range2 and range3\"  text3=\"this text is printed if value amt is greater or equal than range3\"  range1=\"20\" range2=\"50\" range3=\"80\" get=\"amt\"]<\/p>\n <p>for example:<\/p>\n <p>http:\/\/mywordpresssite.org\/page?amt=30 would print text1 as amt value is between range1 and range2 (based on usage sample)<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip plugin files and upload them under your '\/wp-content\/plugins\/' directory.<\/li>\n<li>Resulted names will be: '.\/wp-content\/plugins\/conditional-shortcode\/*'<\/li>\n<li>Activate plugin at \"Plugins\" administration page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Does it accept floats as request parameter?<\/h4>\n <p>It accepts floats as GET\/POST parameters, but not for comparison (range values).<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n <p>Initial release<\/p>","raw_excerpt":"Conditional Shortcode. Adds a shortcode that retrieves a text depending on an integer parameter passed as a request","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23514","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=23514"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/luiscmas"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23514"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23514"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23514"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23514"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23514"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}