Super RSS Reader - Version 2.7

Version Description

  • New: Support for "no follow" attribute in links.
  • Fix: Readme with updated FAQ.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 Super RSS Reader
Version 2.7
Comparing to
See all releases

Code changes from version 2.6 to 2.7

Files changed (2) hide show
  1. readme.txt +33 -11
  2. super-rss-reader.php +19 -6
readme.txt CHANGED
@@ -6,8 +6,8 @@ Tags: rss, feeds, widget, ticker, feed, twitter, admin, plugin, posts, page, thu
6
  License: GPLv2 or later
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
- Tested up to: 4.9
10
- Stable tag: 2.6
11
 
12
  An RSS widget plugin to display feeds with news ticker effect in multiple tabbed feeds, thumbnails, customizable color themes and more
13
 
@@ -34,7 +34,7 @@ The plugin is fully customizable with external styles and with some inbuilt colo
34
  = Resources =
35
 
36
  * [Documentation](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
37
- * [FAQs](https://www.aakashweb.com/faqs/wordpress-plugins/super-rss-reader/)
38
  * [Support](https://www.aakashweb.com/forum/)
39
  * [Report Bugs](https://www.aakashweb.com/forum/)
40
 
@@ -50,6 +50,18 @@ Download and upload the latest version of Super RSS Reader,
50
 
51
  == Frequently Asked Questions ==
52
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  = How can I customize the RSS widget via CSS styles ? =
54
 
55
  You can use the `super-rss-reader-widget` class in your stylesheet to control the widget styling. Other classes are,
@@ -59,15 +71,21 @@ You can use the `super-rss-reader-widget` class in your stylesheet to control th
59
  1. `srr-item.odd` - to control the odd feed items.
60
  1. `srr-item.even` - to control the even feed items.
61
 
62
- = How big is the ticker library ? =
63
 
64
- The size of the ticker library is only 2.74 KB.
65
 
66
  = How to create a tabbed mode or multiple feeds ? =
67
 
68
  Just enter the RSS feed URLs seperated by comma in the widget, the plugin automatically renders the tab.
69
 
70
- For more FAQs just check out the [official page](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/).
 
 
 
 
 
 
71
 
72
  == Screenshots ==
73
 
@@ -80,11 +98,15 @@ For more FAQs just check out the [official page](https://www.aakashweb.com/wordp
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = 2.6 =
84
- * NEW: Ability to set fixed height for the RSS widget.
85
- * NEW: Using minified JavaScript on frontend.
86
- * FIX: Cleaned widget UI, reordered options.
87
- * FIX: Code refactoring.
88
 
89
  = 2.5 =
90
  * Added feature to change individual tab titles/names.
@@ -132,4 +154,4 @@ Version 2.0 is a major and recommended upgrade for previous version users.
132
 
133
  * RSS feed reading engine is the inbuilt WordPress's engine
134
  * The news ticker effect is powered by the [jQuery Easy ticker plugin](https://www.aakashweb.com/jquery-plugins/easy-ticker/)
135
- * Default color styles are by Aakash Chakravarthy.
6
  License: GPLv2 or later
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
+ Tested up to: 5.0.1
10
+ Stable tag: 2.7
11
 
12
  An RSS widget plugin to display feeds with news ticker effect in multiple tabbed feeds, thumbnails, customizable color themes and more
13
 
34
  = Resources =
35
 
36
  * [Documentation](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
37
+ * [FAQs](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/#faq)
38
  * [Support](https://www.aakashweb.com/forum/)
39
  * [Report Bugs](https://www.aakashweb.com/forum/)
40
 
50
 
51
  == Frequently Asked Questions ==
52
 
53
+ = RSS feed is not refreshing =
54
+
55
+ Super RSS Reader uses WordPress's default feed reading module. By default WordPress caches the RSS feed for 12 hours.
56
+
57
+ You can change this default value by adding the below code to your theme's function.php file.
58
+
59
+ `add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 600;') );`
60
+
61
+ Here 600 indicates 10 minutes in seconds. Please note that setting lower value will increase the load on the server to refresh the RSS cache.
62
+
63
+ You can also refer this post https://wordpress.org/support/topic/rss-not-updating-no-matter-which-plugin-i-try/#post-10123881 to change the refresh time for particular feed URL.
64
+
65
  = How can I customize the RSS widget via CSS styles ? =
66
 
67
  You can use the `super-rss-reader-widget` class in your stylesheet to control the widget styling. Other classes are,
71
  1. `srr-item.odd` - to control the odd feed items.
72
  1. `srr-item.even` - to control the even feed items.
73
 
74
+ = Does this plugin support horizontal ticker ? =
75
 
76
+ No, Super RSS Reader only supports vertical support feature for now.
77
 
78
  = How to create a tabbed mode or multiple feeds ? =
79
 
80
  Just enter the RSS feed URLs seperated by comma in the widget, the plugin automatically renders the tab.
81
 
82
+ = What fields are shown in the feed output by default ? =
83
+
84
+ By default the plugin shows fields like title, author, description, thumbnail. Other fields are not supported for now.
85
+
86
+ = How big is the ticker library ? =
87
+
88
+ The size of the ticker library is only 2.74 KB.
89
 
90
  == Screenshots ==
91
 
98
 
99
  == Changelog ==
100
 
101
+ = 2.7 =
102
+ * New: Support for "no follow" attribute in links.
103
+ * Fix: Readme with updated FAQ.
104
+
105
  = 2.6 =
106
+ * New: Ability to set fixed height for the RSS widget.
107
+ * New: Using minified JavaScript on frontend.
108
+ * Fix: Cleaned widget UI, reordered options.
109
+ * Fix: Code refactoring.
110
 
111
  = 2.5 =
112
  * Added feature to change individual tab titles/names.
154
 
155
  * RSS feed reading engine is the inbuilt WordPress's engine
156
  * The news ticker effect is powered by the [jQuery Easy ticker plugin](https://www.aakashweb.com/jquery-plugins/easy-ticker/)
157
+ * Default color styles by Aakash Chakravarthy.
super-rss-reader.php CHANGED
@@ -5,10 +5,10 @@
5
  * Author URI: https://www.aakashweb.com/
6
  * Description: Super RSS Reader is jQuery based RSS reader widget, which displays the RSS feeds in the widget in an attractive way. It uses the jQuery easy ticker plugin to add a news ticker like effect to the RSS feeds. Multiple RSS feeds can be added for a single widget and they get separated in tabs. <a href="https://www.youtube.com/watch?v=02aOG_-98Tg" target="_blank" title="Super RSS Reader demo video">Check out the demo video</a>.
7
  * Author: Aakash Chakravarthy
8
- * Version: 2.6
9
  */
10
 
11
- define('SRR_VERSION', '2.6');
12
  define('SRR_URL', plugin_dir_url( __FILE__ ));
13
 
14
  // Include the required scripts & styles
@@ -42,6 +42,7 @@ function srr_defaults(){
42
  'show_thumb' => 1,
43
  'open_newtab' => 1,
44
  'strip_desc' => 100,
 
45
  'read_more' => '[...]',
46
  'rich_desc' => 0 ,
47
  'color_style' => 'none',
@@ -66,6 +67,7 @@ function srr_rss_parser($instance){
66
  $show_author = intval($instance['show_author']);
67
  $show_thumb = stripslashes($instance['show_thumb']);
68
  $open_newtab = intval($instance['open_newtab']);
 
69
  $strip_desc = intval($instance['strip_desc']);
70
  $strip_title = intval($instance['strip_title']);
71
  $read_more = htmlspecialchars($instance['read_more']);
@@ -166,6 +168,9 @@ function srr_rss_parser($instance){
166
  // Open links in new tab
167
  $newtab = ($open_newtab) ? ' target="_blank"' : '';
168
 
 
 
 
169
  // Get the date
170
  $date = $item->get_date('j F Y');
171
 
@@ -180,7 +185,6 @@ function srr_rss_parser($instance){
180
  // Get the description
181
  $desc = '';
182
  if( $rich_desc == 1 ){
183
-
184
  $desc = strip_tags( str_replace( 'eval', '', $item->get_description() ) , '<p><a><img><em><strong><font><strike><s><u><i>');
185
 
186
  }else{
@@ -188,7 +192,7 @@ function srr_rss_parser($instance){
188
  $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
189
  if($strip_desc != 0){
190
  $desc = wp_html_excerpt( $desc, $strip_desc );
191
- $rmore = (!empty($read_more)) ? '<a href="' . $link . '" title="Read more"' . $newtab . '>' . $read_more . '</a>' : '';
192
 
193
  if ( '[...]' == substr( $desc, -5 ) )
194
  $desc = substr( $desc, 0, -5 );
@@ -213,7 +217,7 @@ function srr_rss_parser($instance){
213
 
214
  // Display the feed items
215
  echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
216
- echo '<div class="srr-title"><a href="' . $link . '"' . $newtab . ' title="Posted on ' . $date . '">' . $title . '</a></div>';
217
  echo '<div class="srr-meta">';
218
 
219
  if($show_date && !empty($date))
@@ -293,6 +297,7 @@ class super_rss_reader_widget extends WP_Widget{
293
  $instance['show_author'] = intval($new_instance['show_author']);
294
  $instance['show_thumb'] = stripslashes($new_instance['show_thumb']);
295
  $instance['open_newtab'] = intval($new_instance['open_newtab']);
 
296
  $instance['strip_desc'] = intval($new_instance['strip_desc']);
297
  $instance['strip_title'] = intval($new_instance['strip_title']);
298
  $instance['read_more'] = stripslashes($new_instance['read_more']);
@@ -321,6 +326,7 @@ class super_rss_reader_widget extends WP_Widget{
321
  $show_author = intval($instance['show_author']);
322
  $show_thumb = intval($instance['show_thumb']);
323
  $open_newtab = intval($instance['open_newtab']);
 
324
  $strip_desc = intval($instance['strip_desc']);
325
  $strip_title = intval($instance['strip_title']);
326
  $read_more = htmlspecialchars($instance['read_more']);
@@ -396,6 +402,13 @@ class super_rss_reader_widget extends WP_Widget{
396
  <td>&nbsp;</td>
397
  </tr>
398
 
 
 
 
 
 
 
 
399
  </table>
400
  </div>
401
 
@@ -459,7 +472,7 @@ class super_rss_reader_widget extends WP_Widget{
459
  </div>
460
  </div>
461
 
462
- <p><a href="https://goo.gl/PB1oR6" target="_blank">Report issue</a> | <a href="https://goo.gl/7gCKb8" target="_blank">Rate 5 stars & review</a> | v<?php echo SRR_VERSION; ?></p>
463
 
464
  <?php
465
  }
5
  * Author URI: https://www.aakashweb.com/
6
  * Description: Super RSS Reader is jQuery based RSS reader widget, which displays the RSS feeds in the widget in an attractive way. It uses the jQuery easy ticker plugin to add a news ticker like effect to the RSS feeds. Multiple RSS feeds can be added for a single widget and they get separated in tabs. <a href="https://www.youtube.com/watch?v=02aOG_-98Tg" target="_blank" title="Super RSS Reader demo video">Check out the demo video</a>.
7
  * Author: Aakash Chakravarthy
8
+ * Version: 2.7
9
  */
10
 
11
+ define('SRR_VERSION', '2.7');
12
  define('SRR_URL', plugin_dir_url( __FILE__ ));
13
 
14
  // Include the required scripts & styles
42
  'show_thumb' => 1,
43
  'open_newtab' => 1,
44
  'strip_desc' => 100,
45
+ 'add_nofollow' => 1,
46
  'read_more' => '[...]',
47
  'rich_desc' => 0 ,
48
  'color_style' => 'none',
67
  $show_author = intval($instance['show_author']);
68
  $show_thumb = stripslashes($instance['show_thumb']);
69
  $open_newtab = intval($instance['open_newtab']);
70
+ $add_nofollow = intval($instance['add_nofollow']);
71
  $strip_desc = intval($instance['strip_desc']);
72
  $strip_title = intval($instance['strip_title']);
73
  $read_more = htmlspecialchars($instance['read_more']);
168
  // Open links in new tab
169
  $newtab = ($open_newtab) ? ' target="_blank"' : '';
170
 
171
+ // Add no follow attribute
172
+ $nofollow = ($add_nofollow) ? ' rel="nofollow"' : '';
173
+
174
  // Get the date
175
  $date = $item->get_date('j F Y');
176
 
185
  // Get the description
186
  $desc = '';
187
  if( $rich_desc == 1 ){
 
188
  $desc = strip_tags( str_replace( 'eval', '', $item->get_description() ) , '<p><a><img><em><strong><font><strike><s><u><i>');
189
 
190
  }else{
192
  $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
193
  if($strip_desc != 0){
194
  $desc = wp_html_excerpt( $desc, $strip_desc );
195
+ $rmore = (!empty($read_more)) ? '<a href="' . $link . '" title="Read more"' . $newtab . $nofollow . '>' . $read_more . '</a>' : '';
196
 
197
  if ( '[...]' == substr( $desc, -5 ) )
198
  $desc = substr( $desc, 0, -5 );
217
 
218
  // Display the feed items
219
  echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
220
+ echo '<div class="srr-title"><a href="' . $link . '"' . $newtab . $nofollow . ' title="Posted on ' . $date . '">' . $title . '</a></div>';
221
  echo '<div class="srr-meta">';
222
 
223
  if($show_date && !empty($date))
297
  $instance['show_author'] = intval($new_instance['show_author']);
298
  $instance['show_thumb'] = stripslashes($new_instance['show_thumb']);
299
  $instance['open_newtab'] = intval($new_instance['open_newtab']);
300
+ $instance['add_nofollow'] = intval($new_instance['add_nofollow']);
301
  $instance['strip_desc'] = intval($new_instance['strip_desc']);
302
  $instance['strip_title'] = intval($new_instance['strip_title']);
303
  $instance['read_more'] = stripslashes($new_instance['read_more']);
326
  $show_author = intval($instance['show_author']);
327
  $show_thumb = intval($instance['show_thumb']);
328
  $open_newtab = intval($instance['open_newtab']);
329
+ $add_nofollow = intval($instance['add_nofollow']);
330
  $strip_desc = intval($instance['strip_desc']);
331
  $strip_title = intval($instance['strip_title']);
332
  $read_more = htmlspecialchars($instance['read_more']);
402
  <td>&nbsp;</td>
403
  </tr>
404
 
405
+ <tr>
406
+ <td height="29"><input id="<?php echo $this->get_field_id('add_nofollow'); ?>" type="checkbox" name="<?php echo $this->get_field_name('add_nofollow'); ?>" value="1" <?php echo $add_nofollow == "1" ? 'checked="checked"' : ""; ?> /></td>
407
+ <td><label for="<?php echo $this->get_field_id('add_nofollow'); ?>">Add "no follow" attribute to links</label></td>
408
+ <td>&nbsp;</td>
409
+ <td>&nbsp;</td>
410
+ </tr>
411
+
412
  </table>
413
  </div>
414
 
472
  </div>
473
  </div>
474
 
475
+ <p><a href="http://bit.ly/2PFMtvi" target="_blank">FAQ</a> | <a href="http://bit.ly/2S4fnaD" target="_blank">Report issue</a> | <a href="https://goo.gl/7gCKb8" target="_blank">Rate 5 stars & review</a> | v<?php echo SRR_VERSION; ?></p>
476
 
477
  <?php
478
  }