{"id":38787,"date":"2015-09-11T07:57:09","date_gmt":"2015-09-11T07:57:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/pcf-birthday-countdown\/"},"modified":"2015-10-06T09:21:57","modified_gmt":"2015-10-06T09:21:57","slug":"pcf-birthday-countdown","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/pcf-birthday-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 Birthday Countdown","header_author":"PC Futures","header_description":"","assets_banners_color":"5f3a69","last_updated":"2015-10-06 09:21:57","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":0,"author_block_rating":0,"active_installs":10,"downloads":2450,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.2":"<ul>\n<li>Fixed a bug, upgrading advised.<\/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 you can.<\/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>Makes plugin make more sense. Upgrading is advisable.<\/li>\n<\/ul>","1.1":"<ul>\n<li>Makes plugin more robust, upgrading is advised.<\/li>\n<\/ul>","1.0":"<p>N\/A<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1243144","resolution":"256x256","location":"assets"},"icon.svg":{"filename":"icon.svg","revision":"1243144","resolution":"","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1244999","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1244999","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","2.0","2.2"],"block_files":[],"assets_screenshots":[],"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":[1435,442,11659,1358,3127],"plugin_category":[40],"plugin_contributors":[95491],"plugin_business_model":[],"class_list":["post-38787","plugin","type-plugin","status-publish","hentry","plugin_tags-birthday","plugin_tags-count","plugin_tags-countdown","plugin_tags-date","plugin_tags-down","plugin_category-calendar-and-events","plugin_contributors-pcfdev","plugin_committers-pcfdev"],"banners":{"banner":"https:\/\/ps.w.org\/pcf-birthday-countdown\/assets\/banner-772x250.png?rev=1244999","banner_2x":"https:\/\/ps.w.org\/pcf-birthday-countdown\/assets\/banner-1544x500.png?rev=1244999","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/pcf-birthday-countdown\/assets\/icon.svg?rev=1243144","icon":"https:\/\/ps.w.org\/pcf-birthday-countdown\/assets\/icon.svg?rev=1243144","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Basic Instructions<\/h4>\n\n<p>Once the plugin is installed, go to <strong><code>Settings &gt; General &gt; PCF Countdown Options<\/code><\/strong> to input a name and date for the countdown.<\/p>\n\n<p>Use the shortcode <strong><code>[pcf_bday_countdown]<\/code><\/strong> to output the countdown.<\/p>\n\n<p>The countdown will output in days by default (e.g '105 days until <code>name<\/code>s Birthday').<\/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_bday_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_bday_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 `name`s Birthday!\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_bday_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: blue;\n    font-size: 16px;\n    text-decoration: underline;\n}\n<\/code><\/pre>\n\n<p>This will set the output to be blue, underlined, and to have a font size of 16px.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload 'pcf-birthday-countdown.zip' to WordPress<\/li>\n<li>Activate the plugin once installed.<\/li>\n<li>Configure all settings in <strong><code>Settings &gt; General &gt; PCF Countdown Options<\/code><\/strong>.<\/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>No, you need the premium version of our plugin to do this.<\/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.<\/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.3<\/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.2<\/h4>\n\n<ul>\n<li>[Updated] Changed how 'weeks' outputs. Makes more sense now.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>[Added] Added a verification to make sure that the date entered is valid. (i.e if 30th of February is entered, it will automatically switch to the 28th or 29th, depending on whether it's a leap year.<\/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 birthday countdown for your WordPress sites.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38787"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pcfdev"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38787"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38787"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38787"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38787"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38787"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}