Changeset 2470303
- Timestamp:
- 02/07/2021 09:41:56 AM (5 years ago)
- Location:
- custom-simple-rss/trunk
- Files:
-
- 3 edited
-
custom-simple-rss-admin.php (modified) (2 diffs)
-
custom-simple-rss.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-simple-rss/trunk/custom-simple-rss-admin.php
r2216979 r2470303 1 1 <?php 2 define('CUSTOM_SIMPLE_RSS_VERSION', '2. 0.9');2 define('CUSTOM_SIMPLE_RSS_VERSION', '2.1.1'); 3 3 define('CUSTOM_SIMPLE_RSS_PLUGIN_URL', plugin_dir_url( __FILE__ )); 4 4 define('CUSTOM_SIMPLE_RSS_PLUGIN_ADMIN_FILE', plugin_dir_path(__FILE__)."custom-simple-rss-admin.php" ); … … 150 150 <div class="custom-simple-rss-admin-row"> 151 151 <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> 161 165 <div class="custom-simple-rss-admin-row"> 162 166 <div class="custom-simple-rss-admin-label">protect my feeds with a key:</div> -
custom-simple-rss/trunk/custom-simple-rss.php
r2470287 r2470303 5 5 * Plugin URI: 6 6 * Description: A plugin to create a Custom Simple RSS Feed according to chosen parameters 7 * Version: 2.1. 07 * Version: 2.1.1 8 8 * Author: Danny(Danikoo) Haggag 9 9 * Author URI: http://www.danikoo.com … … 364 364 $pub_date = get_the_date( $date_format, $post_id ); 365 365 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; 366 369 default: 367 370 $date_format = 'D, d M Y H:i:s O'; … … 629 632 $pub_date = get_the_date( $date_format, $post_id ); 630 633 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; 631 637 default: 632 638 $date_format = 'D, d M Y H:i:s O'; -
custom-simple-rss/trunk/readme.txt
r2470290 r2470303 5 5 Requires at least: 4.0.1 6 6 Tested up to: 5.6.1 7 Stable tag: 2.1. 07 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 79 79 == Changelog == 80 80 81 **2.1.1** 82 83 2021-02-07 version 2.1.0 84 85 1. added - option to choose in plugin defaults screen - Post RFC Universal Date & Time 86 87 81 88 **2.1.0** 82 89
Note: See TracChangeset
for help on using the changeset viewer.