Changeset 660309
- Timestamp:
- 01/28/2013 08:34:06 PM (13 years ago)
- Location:
- scheduled-content-by-sizeable/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
szbl-scheduled-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scheduled-content-by-sizeable/trunk/readme.txt
r660270 r660309 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin 11 Embed scheduled content in your site via shortcode. 12 12 13 13 == Description == 14 14 15 Embed scheduled content into your pages, posts and even custom post types supporting shortcodes. 15 16 17 Use `[szbl_scheduled_content]` to wrap and schedule your content. To hide content until a specific date, use the `start` attribute. To have content expire, use the `end` attribute: 18 19 `[szbl_scheduled_content start="Jan 1, 2013 12am" end="Apr 14, 2013 12:00pm"]This is my scheduled content[/szbl_scheduled_content]` 20 21 You can enter dates/time in any standard format and the plugin should interpret them correctly, using the timezone set under Settings > General. 16 22 17 23 == Installation == … … 39 45 We make every effort to use the timezone settings within your WordPress installation (comparisons are made using date_i18n which inherits the WP timezone settings). 40 46 41 = Can I turn off nested shortcode processing? =47 = What are my content filtering/shortcode options? = 42 48 43 Y es. Use the attribute "shortcodes" and set it's value to false:49 You can set the following two attributes to toggle nested shortcode processing and applying filters for `the_content`: 44 50 45 [szbl_scheduled_content start="March 4, 2013" shortcodes="false"] 51 * `content_filters` (defaults to `true`, can be set to `true` or `false`) 52 * `shortcodes` (defaults to `true`, can be set to `true` or `false`) 46 53 47 = Can I turn off auto-formatting of the content? = 54 Content filtering must be turned off for the `shortcodes` attribute to take effect. You'd only want to use these if you want to remove content filtering (like `wpautop` and `wptexturize`) but still process shortcodes: 48 55 49 Yes. Use the attribute "content_filters" and set it's value to false: 50 51 [szbl_scheduled_content start="March 4, 2013" content_filters="false"] 52 53 By default the plugin will apply the same filters as post/page content on the content of the shortcode. 54 55 == Screenshots == 56 57 56 `[szbl_scheduled_content start="Jan 1, 2013 12am" end="Apr 14, 2013 12:00pm" content_filtering="false" shortcodes="true"]This is my scheduled content. [another_shortcode] [/szbl_scheduled_content]` 58 57 59 58 == Changelog == 60 59 60 = 1.0.1 = 61 61 62 * Updates to readme.txt 62 63 63 = = Upgrade notice ==64 = 1.0 = 64 65 65 66 67 == Arbitrary section 1 == 68 66 * First commit. Basic functionality. -
scheduled-content-by-sizeable/trunk/szbl-scheduled-content.php
r660270 r660309 2 2 /* 3 3 Plugin Name: Scheduled Content (by Sizeable) 4 Plugin URI: http://www.sizeablelabs.com/plugins/scheduled-content/5 4 Description: Use a shortcode [szbl_scheduled_content] and various attribtues to embed content on a schedule. Supports nested shortcodes. 6 5 Author: Sizeable Labs 7 6 Author URI: http://www.sizeablelabs.com 8 7 License: GPL2 9 Version: 1.0 8 Version: 1.0.1 10 9 */ 11 10 class Szbl_Scheduled_Content … … 67 66 if ( $content_filters) 68 67 $content = apply_filters( 'the_content', $content ); 69 70 if ( $shortcodes ) 68 elseif ( $shortcodes ) 71 69 $content = do_shortcode( $content ); 72 70
Note: See TracChangeset
for help on using the changeset viewer.