Super RSS Reader - Version 4.4

Version Description

Download this release

Release Info

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

Code changes from version 4.3 to 4.4

admin/css/style-widget.css CHANGED
@@ -208,6 +208,22 @@
208
  margin-right: 5px;
209
  }
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  div[id*="super_rss_reader"] .widget-title h3 {
212
  background-image: url(../images/super-rss-reader-sm.png);
213
  background-position: right;
208
  margin-right: 5px;
209
  }
210
 
211
+ .srr_pro_tag {
212
+ font-size: 10px;
213
+ padding: 2px 3px;
214
+ background: #f0f0f1;
215
+ margin: 0 0 0 5px;
216
+ border-radius: 3px;
217
+ }
218
+
219
+ .srr_pro_sec > p{
220
+ font-size: 12px;
221
+ }
222
+ .srr_pro_sec > div{
223
+ user-select: none;
224
+ opacity: 0.8;
225
+ }
226
+
227
  div[id*="super_rss_reader"] .widget-title h3 {
228
  background-image: url(../images/super-rss-reader-sm.png);
229
  background-position: right;
includes/feed.php CHANGED
@@ -34,9 +34,11 @@ class SRR_Feed{
34
  $order_by = htmlspecialchars( $this->options['order_by'] );
35
  $read_more = htmlspecialchars( $this->options['read_more'] );
36
  $rich_desc = intval( $this->options['rich_desc'] );
 
37
  $thumbnail_position = htmlspecialchars( $this->options['thumbnail_position'] );
38
  $thumbnail_size = htmlspecialchars( $this->options['thumbnail_size'] );
39
  $thumbnail_default = htmlspecialchars( $this->options['thumbnail_default'] );
 
40
 
41
  $color_theme = stripslashes( $this->options['color_style'] );
42
  $display_type = stripslashes( $this->options['display_type'] );
@@ -56,6 +58,7 @@ class SRR_Feed{
56
 
57
  $feeds = array();
58
  $html = '';
 
59
 
60
  $classes = array( 'srr-wrap', 'srr-style-' . $color_theme );
61
  if( $display_type == 'vertical_ticker' ) array_push( $classes, 'srr-vticker' );
@@ -106,8 +109,12 @@ class SRR_Feed{
106
  continue;
107
  }
108
 
109
- if( method_exists( $feed, 'enable_order_by_date' ) && in_array( $order_by, array( 'date', 'date_reverse' ) ) ){
110
- $feed->enable_order_by_date( true );
 
 
 
 
111
  }
112
 
113
  // Outer wrap start
@@ -118,7 +125,7 @@ class SRR_Feed{
118
 
119
  // Check feed items
120
  if ( $max_items == 0 ){
121
- $html .= '<div>' . __( 'No items', 'super-rss-reader' ) . '</div>';
122
  }else{
123
 
124
  $feed_items = $feed->get_items();
@@ -176,11 +183,12 @@ class SRR_Feed{
176
  // Description
177
  $desc = '';
178
  if( $show_desc ){
 
179
  if( $rich_desc ){
180
- $desc = strip_tags( $item->get_description(), '<p><a><img><em><strong><font><strike><s><u><i>' );
181
  }else{
182
 
183
- $desc = str_replace( array( "\n", "\r" ), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
184
  $read_more_link = '';
185
 
186
  if( $strip_desc != 0 ){
@@ -196,7 +204,10 @@ class SRR_Feed{
196
  $desc = esc_html( $desc );
197
  }
198
 
199
- $desc = $desc . $read_more_link;
 
 
 
200
 
201
  }
202
  }
@@ -232,7 +243,7 @@ class SRR_Feed{
232
  $t_thumb .= $thumb;
233
  }
234
 
235
- if( $show_desc ){
236
  $t_desc .= '<div class="srr-summary srr-clearfix">';
237
  $t_desc .= $rich_desc ? $desc : ( '<p>' . $desc . '</p>' );
238
  $t_desc .= '</div>'; // End summary
@@ -265,6 +276,11 @@ class SRR_Feed{
265
 
266
  $j++;
267
  }
 
 
 
 
 
268
  }
269
 
270
  // Outer wrap end
@@ -285,7 +301,7 @@ class SRR_Feed{
285
 
286
  function process_items( $items, $count, $order_by ){
287
 
288
- if( count( $items ) == 0 ){
289
  return $items;
290
  }
291
 
34
  $order_by = htmlspecialchars( $this->options['order_by'] );
35
  $read_more = htmlspecialchars( $this->options['read_more'] );
36
  $rich_desc = intval( $this->options['rich_desc'] );
37
+ $desc_type = htmlspecialchars( $this->options['desc_type'] );
38
  $thumbnail_position = htmlspecialchars( $this->options['thumbnail_position'] );
39
  $thumbnail_size = htmlspecialchars( $this->options['thumbnail_size'] );
40
  $thumbnail_default = htmlspecialchars( $this->options['thumbnail_default'] );
41
+ $no_feed_text = htmlspecialchars( $this->options['no_feed_text'] );
42
 
43
  $color_theme = stripslashes( $this->options['color_style'] );
44
  $display_type = stripslashes( $this->options['display_type'] );
58
 
59
  $feeds = array();
60
  $html = '';
61
+ $no_feed_html = '<div>' . $no_feed_text . '</div>';
62
 
63
  $classes = array( 'srr-wrap', 'srr-style-' . $color_theme );
64
  if( $display_type == 'vertical_ticker' ) array_push( $classes, 'srr-vticker' );
109
  continue;
110
  }
111
 
112
+ if( method_exists( $feed, 'enable_order_by_date' ) ){
113
+ if( in_array( $order_by, array( 'date', 'date_reverse' ) ) ){
114
+ $feed->enable_order_by_date( true );
115
+ }else{
116
+ $feed->enable_order_by_date( false );
117
+ }
118
  }
119
 
120
  // Outer wrap start
125
 
126
  // Check feed items
127
  if ( $max_items == 0 ){
128
+ $html .= $no_feed_html;
129
  }else{
130
 
131
  $feed_items = $feed->get_items();
183
  // Description
184
  $desc = '';
185
  if( $show_desc ){
186
+ $desc_content = ( $desc_type == 'summary' ) ? $item->get_description() : $item->get_content();
187
  if( $rich_desc ){
188
+ $desc = strip_tags( $desc_content, '<p><a><img><em><strong><font><strike><s><u><i>' );
189
  }else{
190
 
191
+ $desc = str_replace( array( "\n", "\r" ), ' ', esc_attr( strip_tags( @html_entity_decode( $desc_content, ENT_QUOTES, get_option('blog_charset') ) ) ) );
192
  $read_more_link = '';
193
 
194
  if( $strip_desc != 0 ){
204
  $desc = esc_html( $desc );
205
  }
206
 
207
+ $desc = trim( $desc );
208
+ if( !empty( $desc ) ){
209
+ $desc = $desc . $read_more_link;
210
+ }
211
 
212
  }
213
  }
243
  $t_thumb .= $thumb;
244
  }
245
 
246
+ if( $show_desc && !empty( $desc ) ){
247
  $t_desc .= '<div class="srr-summary srr-clearfix">';
248
  $t_desc .= $rich_desc ? $desc : ( '<p>' . $desc . '</p>' );
249
  $t_desc .= '</div>'; // End summary
276
 
277
  $j++;
278
  }
279
+
280
+ if( $j == 1 ){
281
+ $html .= $no_feed_html;
282
+ }
283
+
284
  }
285
 
286
  // Outer wrap end
301
 
302
  function process_items( $items, $count, $order_by ){
303
 
304
+ if( count( $items ) == 0 || $order_by == 'default' ){
305
  return $items;
306
  }
307
 
includes/options.php CHANGED
@@ -68,9 +68,10 @@ class SRR_Options{
68
  'description' => __( 'The format of the feed item date.', 'super-rss-reader' )
69
  ),
70
  'order_by' => array(
71
- 'default' => 'date',
72
  'description' => __( 'The order of the feed', 'super-rss-reader' ),
73
  'options' => array(
 
74
  'date' => __( 'Date', 'super-rss-reader' ),
75
  'date_reverse' => __( 'Date reverse', 'super-rss-reader' ),
76
  'random' => __( 'Random', 'super-rss-reader' )
@@ -88,6 +89,14 @@ class SRR_Options{
88
  1 => __( 'Rich description', 'super-rss-reader' )
89
  )
90
  ),
 
 
 
 
 
 
 
 
91
  'add_nofollow' => array(
92
  'default' => 1,
93
  'description' => __( 'Add "nofollow" attribute to feed links.', 'super-rss-reader' ),
@@ -121,6 +130,10 @@ class SRR_Options{
121
  'default' => '',
122
  'description' => __( 'The URL of the default thumbnail image if not present. Leave empty to not display any thumbnail.', 'super-rss-reader' )
123
  ),
 
 
 
 
124
  'color_style' => array(
125
  'default' => 'none',
126
  'description' => __( 'The style of the feed display.', 'super-rss-reader' ),
68
  'description' => __( 'The format of the feed item date.', 'super-rss-reader' )
69
  ),
70
  'order_by' => array(
71
+ 'default' => 'default',
72
  'description' => __( 'The order of the feed', 'super-rss-reader' ),
73
  'options' => array(
74
+ 'default' => __( 'Default', 'super-rss-reader' ),
75
  'date' => __( 'Date', 'super-rss-reader' ),
76
  'date_reverse' => __( 'Date reverse', 'super-rss-reader' ),
77
  'random' => __( 'Random', 'super-rss-reader' )
89
  1 => __( 'Rich description', 'super-rss-reader' )
90
  )
91
  ),
92
+ 'desc_type' => array(
93
+ 'default' => 'summary',
94
+ 'description' => __( 'Type of description to prefer', 'super-rss-reader' ),
95
+ 'options' => array(
96
+ 'summary' => __( 'Summary', 'super-rss-reader' ),
97
+ 'full_content' => __( 'Full content', 'super-rss-reader' )
98
+ )
99
+ ),
100
  'add_nofollow' => array(
101
  'default' => 1,
102
  'description' => __( 'Add "nofollow" attribute to feed links.', 'super-rss-reader' ),
130
  'default' => '',
131
  'description' => __( 'The URL of the default thumbnail image if not present. Leave empty to not display any thumbnail.', 'super-rss-reader' )
132
  ),
133
+ 'no_feed_text' => array(
134
+ 'default' => __( 'No items', 'super-rss-reader' ),
135
+ 'description' => __( 'Text to display when there are no feed items', 'super-rss-reader' )
136
+ ),
137
  'color_style' => array(
138
  'default' => 'none',
139
  'description' => __( 'The style of the feed display.', 'super-rss-reader' ),
includes/widget-admin.php CHANGED
@@ -62,9 +62,11 @@ class super_rss_reader_widget extends WP_Widget{
62
  $instance[ 'add_nofollow' ] = intval( isset( $new_instance['add_nofollow'] ) ? $new_instance['add_nofollow'] : 0 );
63
  $instance[ 'open_newtab' ] = intval( isset( $new_instance['open_newtab'] ) ? $new_instance['open_newtab'] : 0 );
64
  $instance[ 'rich_desc' ] = intval( isset( $new_instance['rich_desc'] ) ? $new_instance['rich_desc'] : 0 );
 
65
  $instance[ 'thumbnail_position' ] = stripslashes( $new_instance['thumbnail_position'] );
66
  $instance[ 'thumbnail_size' ] = stripslashes( $new_instance['thumbnail_size'] );
67
  $instance[ 'thumbnail_default' ] = stripslashes( $new_instance['thumbnail_default'] );
 
68
 
69
  $instance[ 'color_style' ] = stripslashes( $new_instance['color_style']);
70
  $instance[ 'display_type' ] = stripslashes( $new_instance['display_type']);
@@ -96,9 +98,11 @@ class super_rss_reader_widget extends WP_Widget{
96
  $order_by = htmlspecialchars($instance['order_by']);
97
  $read_more = htmlspecialchars($instance['read_more']);
98
  $rich_desc = intval($instance['rich_desc']);
 
99
  $thumbnail_position = htmlspecialchars($instance['thumbnail_position']);
100
  $thumbnail_size = htmlspecialchars($instance['thumbnail_size']);
101
  $thumbnail_default = htmlspecialchars($instance['thumbnail_default']);
 
102
 
103
  $color_style = stripslashes($instance['color_style']);
104
  $display_type = stripslashes($instance['display_type']);
@@ -136,6 +140,7 @@ class super_rss_reader_widget extends WP_Widget{
136
  <li><a href="#" data-tab="general" class="active"><?php _e( 'General', 'super-rss-reader' ); ?></a></li>
137
  <li><a href="#" data-tab="content"><?php _e( 'Content', 'super-rss-reader' ); ?></a></li>
138
  <li><a href="#" data-tab="display"><?php _e( 'Display', 'super-rss-reader' ); ?></a></li>
 
139
  </ul>
140
 
141
  <section data-tab-id="general" class="active">
@@ -194,7 +199,7 @@ class super_rss_reader_widget extends WP_Widget{
194
  <?php
195
  echo '<select name="' . $this->get_field_name('order_by') . '" id="' . $this->get_field_id('order_by') . '">';
196
  foreach( $option_lists[ 'order_by' ] as $k => $v ){
197
- echo '<option value="' . $k . '" ' . selected( $order_by, $k ) . '>' . $v . '</option>';
198
  }
199
  echo '</select>';
200
  ?>
@@ -203,6 +208,19 @@ class super_rss_reader_widget extends WP_Widget{
203
 
204
  <h4><?php _e( 'Description', 'super-rss-reader' ); ?></h4>
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  <div class="srr_row">
207
  <div class="srr_label"><label for="<?php echo $this->get_field_id('strip_desc');?>"><?php _e( 'Trim description to words', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'The number of words to be displayed. Use 0 to disable trimming', 'super-rss-reader' ) ); ?></div>
208
  <div class="srr_field"><input id="<?php echo $this->get_field_id('strip_desc');?>" name="<?php echo $this->get_field_name('strip_desc'); ?>" type="number" value="<?php echo $strip_desc; ?>" class="widefat" /></div>
@@ -230,7 +248,7 @@ class super_rss_reader_widget extends WP_Widget{
230
  <?php
231
  echo '<select name="' . $this->get_field_name('thumbnail_position') . '" id="' . $this->get_field_id('thumbnail_position') . '">';
232
  foreach( $option_lists[ 'thumbnail_position' ] as $k => $v ){
233
- echo '<option value="' . $k . '" ' . selected( $thumbnail_position, $k ) . '>' . $v . '</option>';
234
  }
235
  echo '</select>';
236
  ?>
@@ -247,6 +265,13 @@ class super_rss_reader_widget extends WP_Widget{
247
  <div class="srr_field"><input id="<?php echo $this->get_field_id('thumbnail_default');?>" name="<?php echo $this->get_field_name('thumbnail_default'); ?>" type="text" value="<?php echo $thumbnail_default; ?>" class="widefat" /></div>
248
  </div>
249
 
 
 
 
 
 
 
 
250
  </section>
251
 
252
  <section data-tab-id="display">
@@ -257,7 +282,7 @@ class super_rss_reader_widget extends WP_Widget{
257
  <?php
258
  echo '<select name="' . $this->get_field_name('color_style') . '" id="' . $this->get_field_id('color_style') . '">';
259
  foreach( $option_lists[ 'color_style' ] as $k => $v ){
260
- echo '<option value="' . $k . '" ' . selected( $color_style, $k ) . '>' . $v . '</option>';
261
  }
262
  echo '</select>';
263
  ?>
@@ -270,7 +295,7 @@ class super_rss_reader_widget extends WP_Widget{
270
  <?php
271
  echo '<select name="' . $this->get_field_name('display_type') . '" id="' . $this->get_field_id('display_type') . '">';
272
  foreach( $option_lists[ 'display_type' ] as $k => $v ){
273
- echo '<option value="' . $k . '" ' . selected( $display_type, $k ) . '>' . $v . '</option>';
274
  }
275
  echo '</select>';
276
  ?>
@@ -291,23 +316,50 @@ class super_rss_reader_widget extends WP_Widget{
291
 
292
  </section>
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  </div>
295
 
296
  <div class="srr_pro">
297
  <div class="srr_pro_intro">
298
  <div><span class="srr_pro_label">PRO</span></div>
299
- <p>Get the PRO version to enjoy more features like<br/> <span>Shortcode, Grid display, Custom feed item template</span> and more !</p>
300
  <div><span class="dashicons dashicons-arrow-down-alt2 srr_pro_more"></span></div>
301
  </div>
302
  <div class="srr_pro_details">
303
  <ul class="srr_pro_features">
304
  <li>Shortcode - <span>Display RSS feed anywhere in your website</span></li>
305
  <li>Grid display - <span>Display feed item in rows and columns</span></li>
 
306
  <li>Custom template - <span>Change order of feed item content, add HTML</span></li>
307
  <li>4+ new color themes</li>
308
  <li>Updates and support for 1 year</li>
309
  </ul>
310
- <p><a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=admin&utm_medium=widget-get&utm_campaign=srr-pro#purchase" class="button button-primary">Get PRO version</a> <a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=admin&utm_medium=widget-info&utm_campaign=srr-pro" class="button">More information</a></p>
311
  </div>
312
  </div>
313
 
62
  $instance[ 'add_nofollow' ] = intval( isset( $new_instance['add_nofollow'] ) ? $new_instance['add_nofollow'] : 0 );
63
  $instance[ 'open_newtab' ] = intval( isset( $new_instance['open_newtab'] ) ? $new_instance['open_newtab'] : 0 );
64
  $instance[ 'rich_desc' ] = intval( isset( $new_instance['rich_desc'] ) ? $new_instance['rich_desc'] : 0 );
65
+ $instance[ 'desc_type' ] = stripslashes( $new_instance['desc_type'] );
66
  $instance[ 'thumbnail_position' ] = stripslashes( $new_instance['thumbnail_position'] );
67
  $instance[ 'thumbnail_size' ] = stripslashes( $new_instance['thumbnail_size'] );
68
  $instance[ 'thumbnail_default' ] = stripslashes( $new_instance['thumbnail_default'] );
69
+ $instance[ 'no_feed_text' ] = stripslashes( $new_instance['no_feed_text'] );
70
 
71
  $instance[ 'color_style' ] = stripslashes( $new_instance['color_style']);
72
  $instance[ 'display_type' ] = stripslashes( $new_instance['display_type']);
98
  $order_by = htmlspecialchars($instance['order_by']);
99
  $read_more = htmlspecialchars($instance['read_more']);
100
  $rich_desc = intval($instance['rich_desc']);
101
+ $desc_type = htmlspecialchars($instance['desc_type']);
102
  $thumbnail_position = htmlspecialchars($instance['thumbnail_position']);
103
  $thumbnail_size = htmlspecialchars($instance['thumbnail_size']);
104
  $thumbnail_default = htmlspecialchars($instance['thumbnail_default']);
105
+ $no_feed_text = htmlspecialchars($instance['no_feed_text']);
106
 
107
  $color_style = stripslashes($instance['color_style']);
108
  $display_type = stripslashes($instance['display_type']);
140
  <li><a href="#" data-tab="general" class="active"><?php _e( 'General', 'super-rss-reader' ); ?></a></li>
141
  <li><a href="#" data-tab="content"><?php _e( 'Content', 'super-rss-reader' ); ?></a></li>
142
  <li><a href="#" data-tab="display"><?php _e( 'Display', 'super-rss-reader' ); ?></a></li>
143
+ <li><a href="#" data-tab="filter"><?php _e( 'Filter', 'super-rss-reader' ); ?><span class="srr_pro_tag">PRO</span></a></li>
144
  </ul>
145
 
146
  <section data-tab-id="general" class="active">
199
  <?php
200
  echo '<select name="' . $this->get_field_name('order_by') . '" id="' . $this->get_field_id('order_by') . '">';
201
  foreach( $option_lists[ 'order_by' ] as $k => $v ){
202
+ echo '<option value="' . $k . '" ' . selected( $order_by, $k, false ) . '>' . $v . '</option>';
203
  }
204
  echo '</select>';
205
  ?>
208
 
209
  <h4><?php _e( 'Description', 'super-rss-reader' ); ?></h4>
210
 
211
+ <div class="srr_row">
212
+ <div class="srr_label"><label for="<?php echo $this->get_field_id('desc_type');?>"><?php _e( 'Description to prefer', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'Sometimes feed items have both summary and the full post content. Select the type to prefer.', 'super-rss-reader' ) ); ?></div>
213
+ <div class="srr_field">
214
+ <?php
215
+ echo '<select name="' . $this->get_field_name('desc_type') . '" id="' . $this->get_field_id('desc_type') . '">';
216
+ foreach( $option_lists[ 'desc_type' ] as $k => $v ){
217
+ echo '<option value="' . $k . '" ' . selected( $desc_type, $k, false ) . '>' . $v . '</option>';
218
+ }
219
+ echo '</select>';
220
+ ?>
221
+ </div>
222
+ </div>
223
+
224
  <div class="srr_row">
225
  <div class="srr_label"><label for="<?php echo $this->get_field_id('strip_desc');?>"><?php _e( 'Trim description to words', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'The number of words to be displayed. Use 0 to disable trimming', 'super-rss-reader' ) ); ?></div>
226
  <div class="srr_field"><input id="<?php echo $this->get_field_id('strip_desc');?>" name="<?php echo $this->get_field_name('strip_desc'); ?>" type="number" value="<?php echo $strip_desc; ?>" class="widefat" /></div>
248
  <?php
249
  echo '<select name="' . $this->get_field_name('thumbnail_position') . '" id="' . $this->get_field_id('thumbnail_position') . '">';
250
  foreach( $option_lists[ 'thumbnail_position' ] as $k => $v ){
251
+ echo '<option value="' . $k . '" ' . selected( $thumbnail_position, $k, false ) . '>' . $v . '</option>';
252
  }
253
  echo '</select>';
254
  ?>
265
  <div class="srr_field"><input id="<?php echo $this->get_field_id('thumbnail_default');?>" name="<?php echo $this->get_field_name('thumbnail_default'); ?>" type="text" value="<?php echo $thumbnail_default; ?>" class="widefat" /></div>
266
  </div>
267
 
268
+ <h4><?php _e( 'Misc', 'super-rss-reader' ); ?></h4>
269
+
270
+ <div class="srr_row">
271
+ <div class="srr_label"><label for="<?php echo $this->get_field_id('no_feed_text'); ?>"><?php _e( 'No feed items text', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'Text to display when there are no feed items', 'super-rss-reader' ) ); ?></div>
272
+ <div class="srr_field"><input id="<?php echo $this->get_field_id('no_feed_text');?>" name="<?php echo $this->get_field_name('no_feed_text'); ?>" type="text" value="<?php echo $no_feed_text; ?>" class="widefat" /></div>
273
+ </div>
274
+
275
  </section>
276
 
277
  <section data-tab-id="display">
282
  <?php
283
  echo '<select name="' . $this->get_field_name('color_style') . '" id="' . $this->get_field_id('color_style') . '">';
284
  foreach( $option_lists[ 'color_style' ] as $k => $v ){
285
+ echo '<option value="' . $k . '" ' . selected( $color_style, $k, false ) . '>' . $v . '</option>';
286
  }
287
  echo '</select>';
288
  ?>
295
  <?php
296
  echo '<select name="' . $this->get_field_name('display_type') . '" id="' . $this->get_field_id('display_type') . '">';
297
  foreach( $option_lists[ 'display_type' ] as $k => $v ){
298
+ echo '<option value="' . $k . '" ' . selected( $display_type, $k, false ) . '>' . $v . '</option>';
299
  }
300
  echo '</select>';
301
  ?>
316
 
317
  </section>
318
 
319
+ <section data-tab-id="filter" class="srr_pro_sec">
320
+
321
+ <p>You can build rules to show/hide feed items based on feed title, URL and description. This feature is available in the <a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=admin&utm_medium=filter&utm_campaign=srr-pro#pro" target="_blank">PRO version</a>.</p>
322
+
323
+ <div>
324
+ <h4><?php _e( 'Filter RSS feed items', 'super-rss-reader' ); ?></h4>
325
+
326
+ <div class="srr_row">
327
+ <div class="srr_label"><label><?php _e( 'Filter type', 'super-rss-reader' ); ?></label></div>
328
+ <div class="srr_field">
329
+ <?php
330
+ echo '<select disabled="disabled">';
331
+ echo '<option>Show items based on filter</option>';
332
+ echo '</select>';
333
+ ?>
334
+ </div>
335
+ </div>
336
+
337
+ <div class="srr_row">
338
+ <div class="srr_label"><label><?php _e( 'Filter rules', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'The rules for the keyword filters', 'super-rss-reader' ) ); ?></div>
339
+ <div class="srr_field"><a href="#"><?php _e( 'View/Edit filter rules', 'super-rss-reader' ); ?></a></div>
340
+ </div>
341
+ </div>
342
+
343
+ </section>
344
+
345
  </div>
346
 
347
  <div class="srr_pro">
348
  <div class="srr_pro_intro">
349
  <div><span class="srr_pro_label">PRO</span></div>
350
+ <p>Get the PRO version to enjoy more features like<br/> <span>Shortcode, Grid display, Filter by keyword</span> and more !</p>
351
  <div><span class="dashicons dashicons-arrow-down-alt2 srr_pro_more"></span></div>
352
  </div>
353
  <div class="srr_pro_details">
354
  <ul class="srr_pro_features">
355
  <li>Shortcode - <span>Display RSS feed anywhere in your website</span></li>
356
  <li>Grid display - <span>Display feed item in rows and columns</span></li>
357
+ <li>Filter by keyword - <span>Show/hide feed items based on keyword</span></li>
358
  <li>Custom template - <span>Change order of feed item content, add HTML</span></li>
359
  <li>4+ new color themes</li>
360
  <li>Updates and support for 1 year</li>
361
  </ul>
362
+ <p><a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=admin&utm_medium=widget-get&utm_campaign=srr-pro#pro" class="button button-primary">Get PRO version</a> <a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=admin&utm_medium=widget-info&utm_campaign=srr-pro" class="button">More information</a></p>
363
  </div>
364
  </div>
365
 
includes/widget.php CHANGED
@@ -52,7 +52,7 @@ class SRR_Widget{
52
  }
53
 
54
  public static function action_links( $links ){
55
- array_unshift( $links, '<a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=admin&utm_medium=plugin-list&utm_campaign=srr-pro" target="_blank"><b>' . __( 'Upgrade to PRO', 'super-rss-reader' ) . '</b></a>' );
56
  return $links;
57
  }
58
 
52
  }
53
 
54
  public static function action_links( $links ){
55
+ array_unshift( $links, '<a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=admin&utm_medium=plugin-list&utm_campaign=srr-pro" target="_blank"><b>' . __( 'Upgrade to PRO', 'super-rss-reader' ) . '</b></a>' );
56
  return $links;
57
  }
58
 
readme.txt CHANGED
@@ -7,8 +7,8 @@ License: GPLv2 or later
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
  Requires PHP: 5.3
10
- Tested up to: 5.7.2
11
- Stable tag: 4.3
12
 
13
  Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
14
 
@@ -47,10 +47,11 @@ Super RSS reader has a PRO version which has more features to further enhance an
47
 
48
  * **Shortcode** - Display RSS feed anywhere in your website using `[srr_feed]`
49
  * **Grid display** - Display feed item in rows and columns
 
50
  * **Custom feed item template** - Change order of feed item content, add HTML
51
  * **4 new** color themes
52
 
53
- [**More information**](https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=readme&utm_medium=description&utm_campaign=srr-pro) - [Live demo](https://wpdemos.aakashweb.com/super-rss-reader-pro/?utm_source=readme&utm_medium=description&utm_campaign=srr-pro)
54
 
55
  ### Resources
56
 
@@ -108,7 +109,7 @@ By default content like title, date, author, description, thumbnail can toggled
108
 
109
  ### Can I change the order of the content shown in the feed ?
110
 
111
- Yes, it is possible with the [PRO version](https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=readme&utm_medium=faq&utm_campaign=srr-pro) of the plugin. In the free version we can toggle the content.
112
 
113
  ### Will the additional ticker effect slow down the site ?
114
 
@@ -127,6 +128,13 @@ The additional effect needs only 2.5 KB of additional JavaScript file which is v
127
 
128
  ## Changelog
129
 
 
 
 
 
 
 
 
130
  ### 4.3
131
  * New: Option to order/sort feed items by date, random.
132
  * New: Filter hook to customize thumbnail URL.
@@ -152,7 +160,7 @@ The additional effect needs only 2.5 KB of additional JavaScript file which is v
152
  * New: Plugin is now translation ready.
153
  * New: `noreferrer` added to the feed links.
154
  * New: Stripe of feed items is now done using CSS class `srr-stripe` instead of `even`.
155
- * New: Introducing [PRO version](https://www.aakashweb.com/wordpress-plugins/super-rss-reader-pro/?utm_source=readme&utm_medium=changelog&utm_campaign=srr-pro).
156
 
157
  ### 3.2
158
  * Fix: Read more link not present
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
  Requires PHP: 5.3
10
+ Tested up to: 5.8.2
11
+ Stable tag: 4.4
12
 
13
  Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
14
 
47
 
48
  * **Shortcode** - Display RSS feed anywhere in your website using `[srr_feed]`
49
  * **Grid display** - Display feed item in rows and columns
50
+ * **Filter by keyword** - Show/hide feed items based on keyword
51
  * **Custom feed item template** - Change order of feed item content, add HTML
52
  * **4 new** color themes
53
 
54
+ [**More information**](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=readme&utm_medium=description&utm_campaign=srr-pro) - [Live demo](https://wpdemos.aakashweb.com/super-rss-reader/?utm_source=readme&utm_medium=description&utm_campaign=srr-pro)
55
 
56
  ### Resources
57
 
109
 
110
  ### Can I change the order of the content shown in the feed ?
111
 
112
+ Yes, it is possible with the [PRO version](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=readme&utm_medium=faq&utm_campaign=srr-pro) of the plugin. In the free version we can toggle the content.
113
 
114
  ### Will the additional ticker effect slow down the site ?
115
 
128
 
129
  ## Changelog
130
 
131
+ ### 4.4
132
+ * New: Option to prefer full content or summary to display as feed description.
133
+ * New: Default ordering option.
134
+ * New: Option to change no feed item text.
135
+ * Fix: Bug with select field in widget form.
136
+ * Fix: Read more link being displayed when description is empty.
137
+
138
  ### 4.3
139
  * New: Option to order/sort feed items by date, random.
140
  * New: Filter hook to customize thumbnail URL.
160
  * New: Plugin is now translation ready.
161
  * New: `noreferrer` added to the feed links.
162
  * New: Stripe of feed items is now done using CSS class `srr-stripe` instead of `even`.
163
+ * New: Introducing [PRO version](https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=readme&utm_medium=changelog&utm_campaign=srr-pro).
164
 
165
  ### 3.2
166
  * Fix: Read more link not present
super-rss-reader.php CHANGED
@@ -5,12 +5,12 @@
5
  * Description: Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
6
  * Author: Aakash Chakravarthy
7
  * Author URI: https://www.aakashweb.com/
8
- * Version: 4.3
9
  * Text Domain: super-rss-reader
10
  * Domain Path: /languages
11
  */
12
 
13
- define( 'SRR_VERSION', '4.3' );
14
  define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'SRR_BASE_NAME', plugin_basename( __FILE__ ) );
5
  * Description: Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
6
  * Author: Aakash Chakravarthy
7
  * Author URI: https://www.aakashweb.com/
8
+ * Version: 4.4
9
  * Text Domain: super-rss-reader
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'SRR_VERSION', '4.4' );
14
  define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'SRR_BASE_NAME', plugin_basename( __FILE__ ) );