Plugin Directory

Changeset 2141469


Ignore:
Timestamp:
08/18/2019 06:36:41 PM (6 years ago)
Author:
lerougeliet
Message:

Added credits

Location:
rss-feed-styles/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • rss-feed-styles/trunk/README.txt

    r2054175 r2141469  
    33Tags: rss, feed, rich site summary, rdf site summary, digg, feedly, facebook, google+, google plus, pinterest, evernote, linkedin, tumblr, reddit
    44Requires at least: 4.0
    5 Tested up to: 5.1.1
    6 Stable tag: 1.0.5
     5Tested up to: 5.2.2
     6Stable tag: 1.0.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    42421. Click "Add New" in the plugins dashboard
    43 2. Search for 'RSS Feed Styles'
     432. Search for "RSS Feed Styles"
    44443. Click "Install Now"
    45454. Activate the plugin
     
    6464== Changelog ==
    6565
     66= 1.0.6 =
     67Updated for new WP version and added credits.
     68
    6669= 1.0.5 =
    6770Added link to profile.
  • rss-feed-styles/trunk/admin/partials/rss-feed-styles-admin-display.php

    r2054175 r2141469  
    8686        </td>
    8787      </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>
    88101    </tbody>
    89102  </table>
     
    97110
    98111<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  
    3333        add_option('rss_feed_styles_enabled_buttons', json_encode(array('fb', 'google', 'twitter')));
    3434        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);
    3636    }
    3737}
  • rss-feed-styles/trunk/includes/class-deactivator.php

    r1745629 r2141469  
    3131    public static function deactivate() {
    3232        delete_option('rss_feed_styles_secret_id');
    33         delete_option('rss_feed_styles_install_date');
     33        delete_option('rss_feed_styles_credit_disabled');
    3434    }
    3535}
  • rss-feed-styles/trunk/includes/class-functions.php

    r2054175 r2141469  
    181181    $params['secret_id'] = get_option('rss_feed_styles_secret_id');
    182182    $params['plugin'] = 'rss-feed-styles';
    183     $params['version'] = '1.0.5';
     183    $params['version'] = '1.0.6';
    184184    $url .= '?' . http_build_query($params);
    185185
  • rss-feed-styles/trunk/includes/class-main.php

    r1756363 r2141469  
    190190        $this->loader->add_action('rss2_head', $plugin_public, 'enabled_readers_tag');
    191191        $this->loader->add_action('rss2_head', $plugin_public, 'enabled_buttons_tag');
     192        $this->loader->add_action('wp_footer', $plugin_public, 'footer_credit');
    192193        $this->loader->add_filter('feed_content_type', $plugin_public, 'feed_content_type', 10, 2);
    193194    }
  • rss-feed-styles/trunk/public/class-public.php

    r1745629 r2141469  
    131131
    132132    public function feed_content_type($content_type, $type) {
    133         if ($type === 'rss2')
     133        if ($type === 'rss2') {
    134134            return 'text/xml';
     135        }
    135136        return $content_type;
    136137    }
     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    }
    137148}
  • rss-feed-styles/trunk/rss-feed-styles.php

    r2054175 r2141469  
    1717 * Plugin URI:        https://wordpress.org/plugins/rss-feed-styles/
    1818 * Description:       Styles your RSS feed automatically. Your RSS feed is at <a href="../?feed=rss2">http://myblog.com/feed/</a>
    19  * Version:           1.0.5
     19 * Version:           1.0.6
    2020 * Author:            lerougeliet
    2121 * Author URI:              https://profiles.wordpress.org/lerougeliet/#content-plugins
Note: See TracChangeset for help on using the changeset viewer.