=== Timed Content === Contributors: kjvtough Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5F58ELJ9R3PVL&lc=CA&item_name=Timed%20Content%20Wordpress%20Plugin%20Donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted Tags: marketing, marketing tool, post, page, date, time, timer, timed, show, hide, content, schedule, display Requires at least: 2.0.2 Tested up to: 4.1 Stable tag: 2.5 License: GPL2 Plugin to show or hide portions of a Page or Post based on specific date/time characteristics. == Description == The Timed Content plugin allows users to specify that a portion of a Page or Post should appear/be visible or disappear/be invisible based on given time characteristics. Suppose, for example, you embed a video into a Post; once the viewer has enough information from the video, the request to take a specific action can be set to appear. You can also make portions of a Post or Page be visible at certain dates and times; you can even set up a schedule! The plugin adds the following: * A "client-side" shortcode that allows the marking of content to appear or disappear after a given time interval; a "fade" effect is included. This functionality is intended to be used for special effects only, as content marked in this manner is still visible in the HTML source and, therefore, not a secure method of hiding content. * Two "server-side" shortcodes that allow the marking of content to be visible only during specified date/time intervals. This functionality **can** be used as a secure method of hiding content, because the marked content will be included in the Page/Post **only** when viewed in the specified date/time intervals. A TinyMCE dialog is included to help users build the shortcodes. See the Screenshots tab for more info. == Installation == **Note:** `XXX` refers to the current version release. = Automatic method = 1. Click 'Add New' on the 'Plugins' page. 1. Upload `timed-content-XXX.zip` using the file uploader on the page = Manual method = 1. Unzip `timed-content-XXX.zip` and upload the `timed-content` folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == No "frequent" questions as of yet, but come ask away in the Support forum. == Screenshots == 1. An example showing use of the `[timed-content-client]` shortcode. The "alarm clock" button on the editor menubar brings up a dialog box to help build the Timed Content shortcodes. All of the Admin-side screenshots are from Wordpress 3.7, but the functionality is the same for 3.8. 2. The "Add Timed Content shortcode" dialog showing the Client tab. Check the attribute you want to add and fill in the textboxes. 3. The "Add Timed Content shortcode" dialog showing the Server tab. Check the attribute you want to add, then click on the Date and Time textboxes. 4. The date and time pickers help you format a correct date and time. Here's the jQuery UI Datepicker in action. 5. The "Add Timed Content shortcode" dialog showing the Timed Content Rules tab. 6. You can use both shortcodes together and with other shortcodes supported by your Wordpress installation. 7. The Timed Content Rules overview page. Timed Content Rules allow you to set up a schedule for showing/hiding your content. 8. Editing a Timed Content Rule. Here, you can see the jQuery UI Timepicker in action. 9. Check the Scheduled Dates/Times to verify when your rule will be active. 10. An example showing use of the `[timed-content-server]` shortcode with `debug` set to `true`. You'll only see it if you're logged in and it's on a Page/Post you can edit (Your regular visitors won't see this at all). == Changelog == = 2.5 = * Removed dependency on jQuery UI Dialog; now uses Thickbox. * Added and modified `fix_date_i18n()` from https://core.trac.wordpress.org/ticket/25768 to better handle DST and timezones with i18n. * Added custom filter `timed_content_filter_override` so admins can modify/replace `timed_content_filter` in necessary. * Using built-in spinner image now instead of `wpspin.gif` = 2.4 = * Removed `timed-content-admin-tinymce.js` (No need anymore; required JS variables now hooked directly into editor). Fixes incompatibility with OptimizePress. = 2.3.1 = * Fixed minor bugs related to Exception Dates. * Optimized rule periods arrays (array only needs 'status' and 'time' when it's meant to be human-readable). * Added custom filter `timed_content_filter` to emulate `apply_filter( 'the_content', ... )` functionality for content. = 2.3 = * Fixed bug when setting up weekly recurrence for Timed Content Rules. * NEW! Exception Dates (dates on which your Timed Content Rule shouldn't run). = 2.2 = * Much improved i18n * New Spanish translation - Many thanks to Andrew Kurtis and Jelena Kovacevic from WebHostingHub (Nueva traducción de español - Muchas gracias a Andrew Kurtis y Jelena Kovacevic desde WebHostingHub). = 2.1.5 = * Unified dashicons among all of my plugins. * Minor improvements in TinyMCE dialog UI and Date/Time UI controls. = 2.1.4 = * Fixed TinyMCE editor button for TinyMCE 4.x. = 2.1.3 = * Removed support for PHP4 in `customFieldsInterface.php`. * Fixed Wordpress version check for deciding which image to use for TinyMCE button. * Fixed "Strict Standards" warning in PHP 5.4 in `__getNextWeek()`. = 2.1.2 = * Dashicons support for WP 3.8 + added. Support for old-style icons in Admin/TinyMCE is deprecated. * Added versioning to all `wp_enqueue_style()` calls. = 2.1.1 = * CSS for JQuery UI now loaded locally as required by Wordpress plugin repository rules. * Improved UX on TinyMCE dialog and Timed Content Rules detail page. = 2.1 = * Fixed inconsistency in how the days of week to repeat on were being set up between the front and back ends. * Fixed variable scope bug that occurred on activation. * Improved i18n. = 2.0 = * Added Timed Content Rules. * Replaced AnyTime plugin with jQuery UI Timepicker (http://fgelinas.com/code/timepicker) and Wordpress's internal jQuery UI Datepicker. * HTML code created by `[timed-content-client]` can now either be enclosed in either `