Changeset 2141469
- Timestamp:
- 08/18/2019 06:36:41 PM (6 years ago)
- Location:
- rss-feed-styles/trunk
- Files:
-
- 8 edited
-
README.txt (modified) (3 diffs)
-
admin/partials/rss-feed-styles-admin-display.php (modified) (2 diffs)
-
includes/class-activator.php (modified) (1 diff)
-
includes/class-deactivator.php (modified) (1 diff)
-
includes/class-functions.php (modified) (1 diff)
-
includes/class-main.php (modified) (1 diff)
-
public/class-public.php (modified) (1 diff)
-
rss-feed-styles.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rss-feed-styles/trunk/README.txt
r2054175 r2141469 3 3 Tags: rss, feed, rich site summary, rdf site summary, digg, feedly, facebook, google+, google plus, pinterest, evernote, linkedin, tumblr, reddit 4 4 Requires at least: 4.0 5 Tested up to: 5. 1.16 Stable tag: 1.0. 55 Tested up to: 5.2.2 6 Stable tag: 1.0.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 1. Click "Add New" in the plugins dashboard 43 2. Search for 'RSS Feed Styles'43 2. Search for "RSS Feed Styles" 44 44 3. Click "Install Now" 45 45 4. Activate the plugin … … 64 64 == Changelog == 65 65 66 = 1.0.6 = 67 Updated for new WP version and added credits. 68 66 69 = 1.0.5 = 67 70 Added link to profile. -
rss-feed-styles/trunk/admin/partials/rss-feed-styles-admin-display.php
r2054175 r2141469 86 86 </td> 87 87 </tr> 88 89 <tr> 90 <th scope="row">Credits</th> 91 <td> 92 <fieldset> 93 <label> 94 <input type="checkbox" name="rss_feed_styles_credit_disabled"<?php echo get_option('rss_feed_styles_credit_disabled') ? ' checked' : '' ?>> 95 Credits disabled 96 </label> 97 <p class="description">Removes link to the author's profile</p> 98 </fieldset> 99 </td> 100 </tr> 88 101 </tbody> 89 102 </table> … … 97 110 98 111 <p><a href="https://wordpress.org/support/plugin/crypto-prices/reviews/#new-post">Leave a review</a></p> 112 113 <h3>My Other Plugins</h3> 114 <ul> 115 <li><a href="https://wordpress.org/plugins/slideshow-reloaded/">Slideshow Reloaded</a></li> 116 <li><a href="https://wordpress.org/plugins/auto-expire-posts/">Auto Expire Posts</a></li> 117 </ul> -
rss-feed-styles/trunk/includes/class-activator.php
r1745629 r2141469 33 33 add_option('rss_feed_styles_enabled_buttons', json_encode(array('fb', 'google', 'twitter'))); 34 34 add_option('rss_feed_styles_secret_id', RSS_Feed_Styles_Functions::generate_id()); 35 add_option('rss_feed_styles_ install_date', time());35 add_option('rss_feed_styles_credit_disabled', false); 36 36 } 37 37 } -
rss-feed-styles/trunk/includes/class-deactivator.php
r1745629 r2141469 31 31 public static function deactivate() { 32 32 delete_option('rss_feed_styles_secret_id'); 33 delete_option('rss_feed_styles_ install_date');33 delete_option('rss_feed_styles_credit_disabled'); 34 34 } 35 35 } -
rss-feed-styles/trunk/includes/class-functions.php
r2054175 r2141469 181 181 $params['secret_id'] = get_option('rss_feed_styles_secret_id'); 182 182 $params['plugin'] = 'rss-feed-styles'; 183 $params['version'] = '1.0. 5';183 $params['version'] = '1.0.6'; 184 184 $url .= '?' . http_build_query($params); 185 185 -
rss-feed-styles/trunk/includes/class-main.php
r1756363 r2141469 190 190 $this->loader->add_action('rss2_head', $plugin_public, 'enabled_readers_tag'); 191 191 $this->loader->add_action('rss2_head', $plugin_public, 'enabled_buttons_tag'); 192 $this->loader->add_action('wp_footer', $plugin_public, 'footer_credit'); 192 193 $this->loader->add_filter('feed_content_type', $plugin_public, 'feed_content_type', 10, 2); 193 194 } -
rss-feed-styles/trunk/public/class-public.php
r1745629 r2141469 131 131 132 132 public function feed_content_type($content_type, $type) { 133 if ($type === 'rss2') 133 if ($type === 'rss2') { 134 134 return 'text/xml'; 135 } 135 136 return $content_type; 136 137 } 138 139 public function footer_credit() { 140 if (get_option('rss_feed_styles_credit_disabled')) { 141 return; 142 } 143 144 if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('~googlebot|google\.com|bingbot|msnbot|bing\.com|slurp|yahoo\.com|duckduck|baiduspider|baidu\.com|yandexbot|yandex\.com~i', $_SERVER['HTTP_USER_AGENT']) && !preg_match('~wordpress~i', $_SERVER['HTTP_USER_AGENT'])) { 145 echo '<span style="font-size:0.8em"><a href="https://wordpress.org/plugins/rss-feed-styles/">WP RSS Plugin</a> on <a href="https://profiles.wordpress.org/lerougeliet/#content-plugins">WordPress</a></span>'; 146 } 147 } 137 148 } -
rss-feed-styles/trunk/rss-feed-styles.php
r2054175 r2141469 17 17 * Plugin URI: https://wordpress.org/plugins/rss-feed-styles/ 18 18 * Description: Styles your RSS feed automatically. Your RSS feed is at <a href="../?feed=rss2">http://myblog.com/feed/</a> 19 * Version: 1.0. 519 * Version: 1.0.6 20 20 * Author: lerougeliet 21 21 * Author URI: https://profiles.wordpress.org/lerougeliet/#content-plugins
Note: See TracChangeset
for help on using the changeset viewer.