diff --git a/docs/api/feed-mailchimp.rst b/docs/api/feed-mailchimp.rst index 7f38543a2..1f341082a 100644 --- a/docs/api/feed-mailchimp.rst +++ b/docs/api/feed-mailchimp.rst @@ -1,12 +1,8 @@ feed-mailchimp.php ================== -.. php:attr:: $numposts +.. php:function:: rss_date() - Template Name: MailChimp Feed - A feed with thumbnail images for MailChimp import - Feed address to use for MailChimp import will be http://myurl.com/?feed=mailchimp + A template tag for printing the date in a format suitable for an RSS feed - :package: Largo - - :since: 0.2 \ No newline at end of file + :param mixed $timestamp: (optional) the unix timestamp for which to print the formatted date \ No newline at end of file diff --git a/docs/api/index.rst b/docs/api/index.rst index 20564ffe9..2d97006be 100644 --- a/docs/api/index.rst +++ b/docs/api/index.rst @@ -3,8 +3,6 @@ Function reference by file * `feed-mailchimp.php `_ * `functions.php `_ -* `image.php `_ -* `largo-apis.php `_ * `options.php `_ * `homepages/homepage.php `_ * `homepages/layouts/HomepageSingleWithSeriesStories.php `_ diff --git a/docs/api/options.rst b/docs/api/options.rst index b7002923a..021a082fc 100644 --- a/docs/api/options.rst +++ b/docs/api/options.rst @@ -14,4 +14,13 @@ options.php If you are making your theme translatable, you should replace 'options_framework_theme' with the actual text domain for your theme. Read more: - http://codex.wordpress.org/Function_Reference/load_theme_textdomain \ No newline at end of file + http://codex.wordpress.org/Function_Reference/load_theme_textdomain + +.. php:function:: optionsframework_custom_scripts() + + This function prints Javascript on the Theme Options admin page to control the behavior + of certain options that depend or require other options. + + For example, you can not use Custom Landing Pages unless Series taxonomy is enabled. So, + this script will hide the Custom Landing Pages option until the Series taxonomy checkbox + is enabled. \ No newline at end of file diff --git a/feed-mailchimp.php b/feed-mailchimp.php index c671c86f7..77b930a7b 100644 --- a/feed-mailchimp.php +++ b/feed-mailchimp.php @@ -1,26 +1,33 @@ $numposts +) ); +$lastpost = $numposts - 1; +/** + * A template tag for printing the date in a format suitable for an RSS feed + * + * @param mixed $timestamp (optional) the unix timestamp for which to print the formatted date + */ function rss_date( $timestamp = null ) { $timestamp = ($timestamp==null) ? time() : $timestamp; echo date(DATE_RSS, $timestamp); } -$posts = query_posts( array( - 'showposts' => $numposts -) ); - -$lastpost = $numposts - 1; - header("Content-Type: application/rss+xml; charset=UTF-8"); echo ''; ?> @@ -48,4 +55,4 @@ function rss_date( $timestamp = null ) { - \ No newline at end of file + diff --git a/image.php b/image.php index bccd47363..5e14919b6 100644 --- a/image.php +++ b/image.php @@ -1,6 +1,8 @@ @@ -37,7 +39,7 @@