{"id":17379,"date":"2012-03-16T19:13:20","date_gmt":"2012-03-16T19:13:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-html-rotator\/"},"modified":"2012-03-21T02:49:55","modified_gmt":"2012-03-21T02:49:55","slug":"wp-html-rotator","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/wp-html-rotator\/","author":9150622,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.3","stable_tag":"0.1.3","tested":"3.1.4","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"WP HTML Rotator","header_author":"Ariel Coppes and Jason Caluori","header_description":"","assets_banners_color":"","last_updated":"2012-03-21 02:49:55","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/wp-html-rotator","header_author_uri":"http:\/\/careers.stackoverflow.com\/arielcoppes","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2142,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","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":["0.1.1","0.1.2","0.1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[246,4120,80],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-17379","plugin","type-plugin","status-publish","hentry","plugin_tags-html","plugin_tags-rotator","plugin_tags-shortcode","plugin_category-customization","plugin_committers-arielcoppes"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-html-rotator.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Schedule HTML sections to be shown or not based on a date range using a simple shortcode.<\/p>\n\n<p>Right now the plug-in is enabled by using the rotator shortcode. For example, To specify we want to show a specific piece of HTML from 9am to 5pm you can use the following code:<\/p>\n\n<p>[rotator start=\"9am\" end=\"5pm\"]<\/p>\n\n \n   Some custom HTML.\n\n\n<p>[\/rotator]<\/p>\n\n<p>Where start and end parameters are using the date format specified in the <a href=\"http:\/\/www.php.net\/manual\/en\/datetime.formats.php\">php manual<\/a>, so you can specify more specific dates like showing the HTML section all Tuesday between 10am and 11am, etc. Read the Other Notes section for more information.<\/p>\n\n<p>Note: the hour range is server based time and the default timezone is UTC, in other words, it depends on the configured time of the server, you can set that in <a href=\"http:\/\/en.support.wordpress.com\/settings\/general-settings\/\">general settings<\/a> at the admin console.<\/p>\n\n<p>There is a page available at \"Settings\" -&gt; \"Schedule generator\" in the wp admin console with a basic form which lets you generate the short code configuring different values like start and end times, among others.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Right now the plug-in is enabled by using the rotator shortcode. For example, To specify we want to show a specific piece of HTML from 9am to 5pm you can use the following code:<\/p>\n\n<p>[rotator start=\"9am\" end=\"5pm\"]<\/p>\n\n \n   Some custom HTML.\n\n\n<p>[\/rotator]<\/p>\n\n<p>That will show the contents only if the user access the blog post or page in the specified hour range.<\/p>\n\n<p>Currently, it supports the following parameters:<\/p>\n\n<ul>\n<li>start: a date to specify the start of the hour range, required.<\/li>\n<li>end: a date to specify the end of the hour range, required.<\/li>\n<li>visible: false to hide the html section, by default true.<\/li>\n<li>inverse: to specify if we want to show the html section outside the our range, by default false.<\/li>\n<\/ul>\n\n<p>Both start and end are using the date format specified in the <a href=\"http:\/\/www.php.net\/manual\/en\/datetime.formats.php\">php manual<\/a>. For example, we can specify the timezone of the hour range:<\/p>\n\n<p>[rotator start=\"9am -0600\" end=\"5pm -0600\"]...[\/rotator]<\/p>\n\n<p>Note: Using GMT notation doesn't work in some installations, not sure which php version is required for that to work.<\/p>\n\n<p>Note: the hour range is server based time and the default timezone is UTC, in other words, it depends on the configured time of the server, you can set that in <a href=\"http:\/\/en.support.wordpress.com\/settings\/general-settings\/\">general settings<\/a> at the admin console.<\/p>\n\n<p>There is a page available at \"Settings\" -&gt; \"Schedule generator\" in the wp admin console with a basic form which lets you generate the short code configuring different values like start and end times, among others.<\/p>\n\n<h3>Configuration<\/h3>\n\n<p>The first lines of the plugin contains some global variables to configure the plugin, for example, if you want to disable the generator from the admin -&gt; settings page, among other configurations.<\/p>\n\n<ul>\n<li>WP_HTML_ROTATOR_DEBUG: defines if the plugin echoes debug information.<\/li>\n<li>WP_HTML_ROTATOR_ENABLE_WIDGETS: enables the shortcode to work on text widgets.<\/li>\n<li>WP_HTML_ROTATOR_ENABLE_GENERATOR: enable the shortcode generator to be shown in the admin panel or not.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<p>0.1.3<\/p>\n\n<ul>\n<li><p>Changed to use the WordPress timezone configured in <a href=\"http:\/\/en.support.wordpress.com\/settings\/general-settings\/\">general settings<\/a> as the base timezone instead the default from php based on this <a href=\"http:\/\/wordpress.org\/support\/topic\/using-php-timezone?replies=1\">WordPress blog post<\/a>.<\/p><\/li>\n<li><p>Changed name Rotator Generator to Schedule Generator<\/p><\/li>\n<li><p>Server time is shown in the Schedule Generator<\/p><\/li>\n<\/ul>\n\n<p>0.1.2<\/p>\n\n<ul>\n<li>Added more detail in the Description page.<\/li>\n<\/ul>\n\n<p>0.1.x<\/p>\n\n<ul>\n<li>Added the shortcode with the default parameters.<\/li>\n<\/ul>","raw_excerpt":"Schedule HTML sections to be shown or not based on a date range using a simple shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17379","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=17379"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/arielcoppes"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17379"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17379"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17379"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17379"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17379"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}