Plugin Directory

Changeset 660309


Ignore:
Timestamp:
01/28/2013 08:34:06 PM (13 years ago)
Author:
szbl
Message:

Updated to version 1.0.1, readme file updated.

Location:
scheduled-content-by-sizeable/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scheduled-content-by-sizeable/trunk/readme.txt

    r660270 r660309  
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin
     11Embed scheduled content in your site via shortcode.
    1212
    1313== Description ==
    1414
     15Embed scheduled content into your pages, posts and even custom post types supporting shortcodes.
    1516
     17Use `[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
     21You can enter dates/time in any standard format and the plugin should interpret them correctly, using the timezone set under Settings > General.
    1622
    1723== Installation ==
     
    3945We make every effort to use the timezone settings within your WordPress installation (comparisons are made using date_i18n which inherits the WP timezone settings).
    4046
    41 = Can I turn off nested shortcode processing? =
     47= What are my content filtering/shortcode options? =
    4248
    43 Yes. Use the attribute "shortcodes" and set it's value to false:
     49You can set the following two attributes to toggle nested shortcode processing and applying filters for `the_content`:
    4450
    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`)
    4653
    47 = Can I turn off auto-formatting of the content? =
     54Content 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:
    4855
    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]`
    5857
    5958== Changelog ==
    6059
     60= 1.0.1 =
    6161
     62* Updates to readme.txt
    6263
    63 == Upgrade notice ==
     64= 1.0 =
    6465
    65 
    66 
    67 == Arbitrary section 1 ==
    68 
     66* First commit. Basic functionality.
  • scheduled-content-by-sizeable/trunk/szbl-scheduled-content.php

    r660270 r660309  
    22/*
    33Plugin Name: Scheduled Content (by Sizeable)
    4 Plugin URI: http://www.sizeablelabs.com/plugins/scheduled-content/
    54Description: Use a shortcode [szbl_scheduled_content] and various attribtues to embed content on a schedule. Supports nested shortcodes.
    65Author: Sizeable Labs
    76Author URI: http://www.sizeablelabs.com
    87License: GPL2
    9 Version: 1.0
     8Version: 1.0.1
    109*/
    1110class Szbl_Scheduled_Content
     
    6766        if ( $content_filters)
    6867            $content = apply_filters( 'the_content', $content );
    69            
    70         if ( $shortcodes )
     68        elseif ( $shortcodes )
    7169            $content = do_shortcode( $content );
    7270       
Note: See TracChangeset for help on using the changeset viewer.