Plugin Directory

Changeset 2470303


Ignore:
Timestamp:
02/07/2021 09:41:56 AM (5 years ago)
Author:
danikoo
Message:

2.1.1

2021-02-07 version 2.1.0

  1. added - option to choose in plugin defaults screen - Post RFC Universal Date & Time
Location:
custom-simple-rss/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-simple-rss/trunk/custom-simple-rss-admin.php

    r2216979 r2470303  
    11<?php
    2 define('CUSTOM_SIMPLE_RSS_VERSION', '2.0.9');
     2define('CUSTOM_SIMPLE_RSS_VERSION', '2.1.1');
    33define('CUSTOM_SIMPLE_RSS_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    44define('CUSTOM_SIMPLE_RSS_PLUGIN_ADMIN_FILE', plugin_dir_path(__FILE__)."custom-simple-rss-admin.php" );
     
    150150                <div class="custom-simple-rss-admin-row">
    151151                    <div class="custom-simple-rss-admin-label">pubDate date format:</div>
    152                         * RFC: Standart rss time - for example <?php echo date("r") ?><br>
    153                         * Blog Date: the date format of your web site - for example <?php echo date( get_option( 'date_format' ) ); ?><br>
    154                         * Blog Date & Time: the date and time format of your web site - for example <?php echo date( get_option( 'date_format' ).' '.get_option('time_format') ); ?><br>
    155                     <select name="csrp_pubdate_date_format">
    156                         <option value="rfc" <?php if($csrp_pubdate_date_format=="rfc") echo 'selected' ?> >RFC 2822 </option>
    157                         <option value="blog_date" <?php if($csrp_pubdate_date_format=="blog_date") echo 'selected' ?> >Blog Date </option>
    158                         <option value="blog_date_time" <?php if($csrp_pubdate_date_format=="blog_date_time") echo 'selected' ?> >Blog Date & Time</option>
    159                     </select>                   
    160                 </div>               
     152                     * Post RFC Local Date & Time: date time in RFC local format - for example "wo, 14 okt 2020 16:16:26 +0200"<br>
     153                     * Post RFC Universal Date & Time: - for example: <?php echo date( 'D, d M Y H:i:s +0000' ) ?><br>
     154                     * Post Date: the date format of your web site - for example <?php echo date( get_option( 'date_format' ) ); ?><br>
     155                     * Post Date & Time: the date and time format of your web site - for example <?php echo date( get_option( 'date_format' ).' '.get_option('time_format') ); ?><br>
     156                     
     157                 <select name="csrp_pubdate_date_format">
     158                     <option value="rfc" <?php if($csrp_pubdate_date_format=="rfc") echo 'selected' ?> >Local RFC Post Date</option>
     159                     <option value="universal_rfc" <?php if($csrp_pubdate_date_format=="universal_rfc") echo 'selected' ?> >Universal RFC Post Date</option>
     160                     <option value="blog_date" <?php if($csrp_pubdate_date_format=="blog_date") echo 'selected' ?> >Blog Date Format</option>
     161                     <option value="blog_date_time" <?php if($csrp_pubdate_date_format=="blog_date_time") echo 'selected' ?> >Blog Date & Time Format</option>
     162                     
     163                 </select>                   
     164                </div>             
    161165                <div class="custom-simple-rss-admin-row">
    162166                    <div class="custom-simple-rss-admin-label">protect my feeds with a key:</div>
  • custom-simple-rss/trunk/custom-simple-rss.php

    r2470287 r2470303  
    55 * Plugin URI:   
    66 * Description:   A plugin to create a Custom Simple RSS Feed according to chosen parameters
    7  * Version:       2.1.0
     7 * Version:       2.1.1
    88 * Author:        Danny(Danikoo) Haggag
    99 * Author URI:    http://www.danikoo.com
     
    364364                        $pub_date = get_the_date( $date_format, $post_id );
    365365                        break;
     366                    case "universal_rfc":
     367                        $pub_date = mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true , $post_id ), false );
     368                        break;                     
    366369                    default:
    367370                        $date_format =  'D, d M Y H:i:s O';
     
    629632                        $pub_date = get_the_date( $date_format, $post_id );
    630633                        break;
     634                    case "universal_rfc":
     635                        $pub_date = mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true , $post_id ), false );
     636                        break;                   
    631637                    default:
    632638                        $date_format =  'D, d M Y H:i:s O';
  • custom-simple-rss/trunk/readme.txt

    r2470290 r2470303  
    55Requires at least: 4.0.1
    66Tested up to: 5.6.1
    7 Stable tag: 2.1.0
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81**2.1.1**
     82
     832021-02-07 version 2.1.0
     84
     851. added - option to choose in plugin defaults screen - Post RFC Universal Date & Time
     86
     87
    8188**2.1.0**
    8289
Note: See TracChangeset for help on using the changeset viewer.