{"id":38704,"date":"2015-09-07T11:14:29","date_gmt":"2015-09-07T11:14:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/pcf-christmas-countdown\/"},"modified":"2015-10-06T08:59:49","modified_gmt":"2015-10-06T08:59:49","slug":"pcf-christmas-countdown","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/pcf-christmas-countdown\/","author":14580606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2","stable_tag":"trunk","tested":"4.3.34","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"PCF Christmas Countdown","header_author":"PC Futures","header_description":"","assets_banners_color":"5e3a69","last_updated":"2015-10-06 08:59:49","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.example.com\/","header_plugin_uri":"","header_author_uri":"https:\/\/wordpress.org\/support\/profile\/pcfdev","rating":3,"author_block_rating":0,"active_installs":10,"downloads":1853,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.2":"<ul>\n<li>Slight bug fix, upgrade is advisable.<\/li>\n<\/ul>","2.1":"<ul>\n<li>Added some new features that may be useful, see changelog.<\/li>\n<li>Changed some algorithms so that the plugin is less buggy, upgrade if you can.<\/li>\n<\/ul>","2.0":"<ul>\n<li>Rewrote a large amount of the plugin for functionality. Upgrade as soon as possible.<\/li>\n<\/ul>","1.4":"<ul>\n<li>Upgrading is advised as it creates a more natural output for the plugin.<\/li>\n<\/ul>","1.3":"<ul>\n<li>Changes plugin output to make more sense, upgrading is advised.<\/li>\n<\/ul>","1.2":"<ul>\n<li>New version fixes some compatibility issues, so updating is advised!<\/li>\n<\/ul>","1.1":"<ul>\n<li>Upgrading is advised as an algorithm was rewritten so that the plugin doesn&#039;t show negative days if the set date has passed.<\/li>\n<\/ul>","1.0":"<ul>\n<li>N\/A<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":"1","4":0,"5":0},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1240487","resolution":"256x256","location":"assets"},"icon.svg":{"filename":"icon.svg","revision":"1240487","resolution":"","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1244998","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1244998","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.3","2.0","2.1","2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1239693","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1239693","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1239693","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1239693","resolution":"4","location":"assets"}},"screenshots":{"1":"'Days and Weeks' Countdown","2":"'Days' Countdown","3":"'Weeks' Countdown","4":"'Sleeps' Countdown"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[842,442,11659,1358,3127],"plugin_category":[37,40],"plugin_contributors":[95491],"plugin_business_model":[],"class_list":["post-38704","plugin","type-plugin","status-publish","hentry","plugin_tags-christmas","plugin_tags-count","plugin_tags-countdown","plugin_tags-date","plugin_tags-down","plugin_category-arts-and-entertainment","plugin_category-calendar-and-events","plugin_contributors-pcfdev","plugin_committers-pcfdev"],"banners":{"banner":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/banner-772x250.png?rev=1244998","banner_2x":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/banner-1544x500.png?rev=1244998","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/icon.svg?rev=1240487","icon":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/icon.svg?rev=1240487","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/screenshot-1.png?rev=1239693","caption":"'Days and Weeks' Countdown"},{"src":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/screenshot-2.png?rev=1239693","caption":"'Days' Countdown"},{"src":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/screenshot-3.png?rev=1239693","caption":"'Weeks' Countdown"},{"src":"https:\/\/ps.w.org\/pcf-christmas-countdown\/assets\/screenshot-4.png?rev=1239693","caption":"'Sleeps' Countdown"}],"raw_content":"<!--section=description-->\n<h4>Basic Instructions<\/h4>\n\n<p>This plugin works out-of-the-box, so once the plugin is installed, you can place a shortcode wherever you want.<\/p>\n\n<p>Use the shortcode <strong><code>[pcf_xmas_countdown]<\/code><\/strong> to output the countdown.<\/p>\n\n<p>The countdown will output in days by default (e.g '105 days until Christmas!').<\/p>\n\n<h4>Changing output type<\/h4>\n\n<p>The shortcode can be given a 'type' attribute, like so:<\/p>\n\n<pre><code>[pcf_xmas_countdown type=\"days|weeks|sleeps\"]\n<\/code><\/pre>\n\n<p>This enables you to change the output type.<\/p>\n\n<p>There are 3 types to choose from:<\/p>\n\n<ul>\n<li>Days<\/li>\n<li>Weeks<\/li>\n<li>Sleeps<\/li>\n<\/ul>\n\n<p>If you do not specify the type attribute, or specify an invalid type, it will default to 'days'.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>[pcf_xmas_countdown type=\"weeks\"]\n<\/code><\/pre>\n\n<p>will output as<\/p>\n\n<pre><code>It's `x` weeks and `y` days until Christmas!\n<\/code><\/pre>\n\n<h4>Styling the output<\/h4>\n\n<p><em>Styling the output is an advanced setting, that involves writing custom CSS.<\/em><\/p>\n\n<p>The shortcode can be given an 'id' attribute, which can then be used to style the output using CSS.<\/p>\n\n<p>For example,<\/p>\n\n<pre><code>[pcf_xmas_countdown id=\"my-id\"]\n<\/code><\/pre>\n\n<p>would output in HTML as<\/p>\n\n<pre><code>&lt;p id=\"my-id\"&gt;...&lt;\/p&gt;\n<\/code><\/pre>\n\n<p>You can then add custom CSS through <strong><code>Appearance &gt; Editor<\/code><\/strong>. If your theme supports custom CSS, you may be able to add your styles in Theme Options. If there is a custom css file in Editor, it is advised to use that for custom styles.<\/p>\n\n<p>Here is an example of some custom styles:<\/p>\n\n<pre><code>#my-id{\n    color: red;\n    font-size: 16px;\n    text-decoration: underline;\n}\n<\/code><\/pre>\n\n<p>This will set the output to be red, underlined, and to have a font size of 16px.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload 'christmas-countdown.zip' to WordPress<\/li>\n<li>Activate the plugin once installed.<\/li>\n<li>Place shortcode where you want the countdown to appear!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I style the outputted text?<\/dt>\n<dd><p>Yes! You can add an ID using the id <code>id<\/code> attribute. See 'Description' for more information.<\/p><\/dd>\n<dt>Can I change the output text?<\/dt>\n<dd><p>Other than the built in <code>type<\/code> attributes, no. However, with the premium version of our plugin you can custom this text.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2<\/h4>\n\n<ul>\n<li>[Fixed] Fixed a bug that caused the admin notice to appear on every page. It now only appears on the plugins page.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>[Added] Added widget feature for users who don't want to use shortcodes. The widget takes 2 inputs: type and id, which work in the same way as the shortcode attributes.<\/li>\n<li>[Update] Rewrote some algorithms for more robustness and efficiency<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>[Updated] Rewrote a large amount of the output code and changed the counter so that it is accurate.<\/li>\n<li>[Added] Added a new output for when the event is on the same day as viewing. i.e on the set date the output will be \"It's <code>event<\/code>!\".<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>[Updated] Made the plugin show the word 'day' instead of 'days' when applicable. Same applies to 'weeks'.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>[Updated] Stopped the weeks output displaying '0 days' or '0 weeks'<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>[Updated] Changed some function names to make them more unique and compatible with our other plugins.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li><p>[Fixed] Fixed an issue where the plugin would show negative numbers if the date had past.<\/p><\/li>\n<li><p>[Updated] Changed the countdown algorithm; is now much easier to work with.<\/p><\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Published Plugin<\/li>\n<\/ul>","raw_excerpt":"A simple plugin that creates an easy to use Christmas countdown for your WordPress sites.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38704"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pcfdev"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38704"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38704"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38704"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38704"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38704"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}