Version Description
- Added feature to cut down/strip feed titles.
- Added a new 'Simple modern' color style.
Download this release
Release Info
Developer | vaakash |
Plugin | Super RSS Reader |
Version | 2.4 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.4
- public/srr-css.css +33 -0
- readme.txt +9 -3
- super-rss-reader.php +26 -11
public/srr-css.css
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/** Tab settings **/
|
2 |
.srr-tab-wrap{
|
3 |
margin: 5px 0px 10px!important;
|
@@ -112,6 +119,32 @@
|
|
112 |
color: #FFFFFF !important;
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
/** Clearfix hack **/
|
116 |
* html .srr-clearfix{
|
117 |
height: 1%;
|
1 |
+
/**
|
2 |
+
* Super RSS Reader - Styles file
|
3 |
+
* Author: Aakash Chakravarthy
|
4 |
+
* Version: 1.4
|
5 |
+
*
|
6 |
+
**/
|
7 |
+
|
8 |
/** Tab settings **/
|
9 |
.srr-tab-wrap{
|
10 |
margin: 5px 0px 10px!important;
|
119 |
color: #FFFFFF !important;
|
120 |
}
|
121 |
|
122 |
+
/** Simple modern **/
|
123 |
+
|
124 |
+
.srr-style-smodern{
|
125 |
+
border: 0;
|
126 |
+
}
|
127 |
+
.srr-style-smodern .srr-item{
|
128 |
+
border-radius: 10px;
|
129 |
+
border: 0;
|
130 |
+
-webkit-transition: opacity 1s;
|
131 |
+
-moz-transition: opacity 1s;
|
132 |
+
}
|
133 |
+
.srr-style-smodern:hover .srr-item{
|
134 |
+
opacity: 0.3;
|
135 |
+
}
|
136 |
+
.srr-style-smodern .srr-item:hover{
|
137 |
+
opacity: 1;
|
138 |
+
}
|
139 |
+
.srr-tab-style-smodern .srr-active-tab{
|
140 |
+
color: #000 !important;
|
141 |
+
background: #fff !important;
|
142 |
+
box-shadow: inset 0 0 5px #747474;
|
143 |
+
}
|
144 |
+
.srr-style-smodern .even{
|
145 |
+
background: #f8f8f8;
|
146 |
+
}
|
147 |
+
|
148 |
/** Clearfix hack **/
|
149 |
* html .srr-clearfix{
|
150 |
height: 1%;
|
readme.txt
CHANGED
@@ -4,10 +4,10 @@ Author URI: http://www.aakashweb.com/
|
|
4 |
Plugin URI: http://www.aakashweb.com/wordpress-plugins/super-rss-reader/
|
5 |
Tags: rss, feeds, widget, links, twitter, admin, plugin, feed, posts, page, ticker, thumbnail, atom, jquery
|
6 |
License: GPLv2 or later
|
7 |
-
Donate Link: http://bit.ly/
|
8 |
Requires at least: 2.8
|
9 |
-
Tested up to: 3.5
|
10 |
-
Stable tag: 2.
|
11 |
|
12 |
An awesome RSS widget plugin, which displays feeds like news ticker effect with thumbnails, multiple tabbed feeds, customizable color styles and more
|
13 |
|
@@ -28,6 +28,7 @@ The plugin is fully customizable with external styles and with some inbuilt colo
|
|
28 |
* **(NEW)** Customizable ticker speed.
|
29 |
* Add multiple RSS feeds in a page with a ticker effect.
|
30 |
* Supports RSS or atom feed.
|
|
|
31 |
* Can tweak the widget to change the no of visible feed itemas and more...
|
32 |
|
33 |
[youtube=http://www.youtube.com/watch?v=02aOG_-98Tg]
|
@@ -85,6 +86,11 @@ For more FAQs just check out the [official page](http://www.aakashweb.com/wordpr
|
|
85 |
[More screenshots in Aakash Web](http://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
|
86 |
|
87 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
88 |
= 2.3 =
|
89 |
* Fixed imcompatibility of other jQuery plugins due to the usage of the latest version of jQuery.
|
90 |
|
4 |
Plugin URI: http://www.aakashweb.com/wordpress-plugins/super-rss-reader/
|
5 |
Tags: rss, feeds, widget, links, twitter, admin, plugin, feed, posts, page, ticker, thumbnail, atom, jquery
|
6 |
License: GPLv2 or later
|
7 |
+
Donate Link: http://bit.ly/srrDonate
|
8 |
Requires at least: 2.8
|
9 |
+
Tested up to: 3.5.1
|
10 |
+
Stable tag: 2.4
|
11 |
|
12 |
An awesome RSS widget plugin, which displays feeds like news ticker effect with thumbnails, multiple tabbed feeds, customizable color styles and more
|
13 |
|
28 |
* **(NEW)** Customizable ticker speed.
|
29 |
* Add multiple RSS feeds in a page with a ticker effect.
|
30 |
* Supports RSS or atom feed.
|
31 |
+
* Can strip title and description text of the feed item.
|
32 |
* Can tweak the widget to change the no of visible feed itemas and more...
|
33 |
|
34 |
[youtube=http://www.youtube.com/watch?v=02aOG_-98Tg]
|
86 |
[More screenshots in Aakash Web](http://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
|
87 |
|
88 |
== Changelog ==
|
89 |
+
|
90 |
+
= 2.4 =
|
91 |
+
* Added feature to cut down/strip feed titles.
|
92 |
+
* Added a new 'Simple modern' color style.
|
93 |
+
|
94 |
= 2.3 =
|
95 |
* Fixed imcompatibility of other jQuery plugins due to the usage of the latest version of jQuery.
|
96 |
|
super-rss-reader.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.aakashweb.com/wordpress-plugins/super-rss-reader/
|
|
5 |
Author URI: http://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 seperated in tabs. <a href="http://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.
|
9 |
*/
|
10 |
|
11 |
if(!defined('WP_CONTENT_URL')) {
|
@@ -14,15 +14,13 @@ if(!defined('WP_CONTENT_URL')) {
|
|
14 |
$srr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
|
15 |
}
|
16 |
|
17 |
-
define('SRR_VERSION', '2.
|
18 |
define('SRR_AUTHOR', 'Aakash Chakravarthy');
|
19 |
define('SRR_URL', $srr_url);
|
20 |
|
21 |
## Include the required scripts
|
22 |
function srr_public_scripts(){
|
23 |
// jQuery
|
24 |
-
//wp_deregister_script('jquery');
|
25 |
-
//wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
|
26 |
wp_enqueue_script('jquery');
|
27 |
|
28 |
// Super RSS Reader JS and CSS
|
@@ -43,7 +41,8 @@ $srr_color_styles = array(
|
|
43 |
'No style' => 'none',
|
44 |
'Grey' => 'grey',
|
45 |
'Dark' => 'dark',
|
46 |
-
'Orange' => 'orange'
|
|
|
47 |
);
|
48 |
|
49 |
## The main RSS Parser
|
@@ -57,6 +56,7 @@ function srr_rss_parser($instance){
|
|
57 |
$show_thumb = stripslashes($instance['show_thumb']);
|
58 |
$open_newtab = intval($instance['open_newtab']);
|
59 |
$strip_desc = intval($instance['strip_desc']);
|
|
|
60 |
$read_more = htmlspecialchars($instance['read_more']);
|
61 |
$color_style = stripslashes($instance['color_style']);
|
62 |
$enable_ticker = intval($instance['enable_ticker']);
|
@@ -133,6 +133,12 @@ function srr_rss_parser($instance){
|
|
133 |
if ( empty($title) )
|
134 |
$title = __('No Title');
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
// Get the date
|
137 |
$date = $item->get_date('j F Y');
|
138 |
|
@@ -173,7 +179,7 @@ function srr_rss_parser($instance){
|
|
173 |
|
174 |
// Display the feed items
|
175 |
echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
|
176 |
-
echo '<div class="srr-title"><a href="' . $link . '"' . $newtab . ' title="Posted on ' . $date . '">'
|
177 |
echo '<div class="srr-meta">';
|
178 |
|
179 |
if($show_date && !empty($date))
|
@@ -248,6 +254,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
248 |
$instance['show_thumb'] = stripslashes($new_instance['show_thumb']);
|
249 |
$instance['open_newtab'] = intval($new_instance['open_newtab']);
|
250 |
$instance['strip_desc'] = intval($new_instance['strip_desc']);
|
|
|
251 |
$instance['read_more'] = stripslashes($new_instance['read_more']);
|
252 |
|
253 |
$instance['color_style'] = stripslashes($new_instance['color_style']);
|
@@ -266,7 +273,8 @@ class super_rss_reader_widget extends WP_Widget{
|
|
266 |
'title' => '', 'urls' => '', 'count' => 5,
|
267 |
'show_date' => 0, 'show_desc' => 1, 'show_author' => 0, 'show_thumb' => 1,
|
268 |
'open_newtab' => 1, 'strip_desc' => 100, 'read_more' => '[...]',
|
269 |
-
'color_style' => 'none', 'enable_ticker' => 1, 'visible_items' => 5,
|
|
|
270 |
));
|
271 |
|
272 |
$title = htmlspecialchars($instance['title']);
|
@@ -279,6 +287,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
279 |
$show_thumb = intval($instance['show_thumb']);
|
280 |
$open_newtab = intval($instance['open_newtab']);
|
281 |
$strip_desc = intval($instance['strip_desc']);
|
|
|
282 |
$read_more = htmlspecialchars($instance['read_more']);
|
283 |
|
284 |
$color_style = stripslashes($instance['color_style']);
|
@@ -315,19 +324,25 @@ class super_rss_reader_widget extends WP_Widget{
|
|
315 |
<td height="32"><input id="<?php echo $this->get_field_id('show_date'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_date'); ?>" value="1" <?php echo $show_date == "1" ? 'checked="checked"' : ""; ?> /></td>
|
316 |
<td><label for="<?php echo $this->get_field_id('show_date'); ?>">Show Date</label></td>
|
317 |
<td><label for="<?php echo $this->get_field_id('strip_desc');?>">Strip description</label></td>
|
318 |
-
<td><input id="<?php echo $this->get_field_id('strip_desc');?>" name="<?php echo $this->get_field_name('strip_desc'); ?>" type="text" value="<?php echo $strip_desc; ?>" class="widefat" title="
|
319 |
</tr>
|
320 |
<tr>
|
321 |
<td height="29"><input id="<?php echo $this->get_field_id('show_author'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_author'); ?>" value="1" <?php echo $show_author == "1" ? 'checked="checked"' : ""; ?> /></td>
|
322 |
-
<td>Show Author</label></td>
|
323 |
<td><label for="<?php echo $this->get_field_id('read_more'); ?>">Read more text</label></td>
|
324 |
<td><input id="<?php echo $this->get_field_name('read_more'); ?>" name="<?php echo $this->get_field_name('read_more'); ?>" type="text" value="<?php echo $read_more; ?>" class="widefat" title="Leave blank to hide read more text"/></td>
|
325 |
</tr>
|
326 |
<tr>
|
327 |
<td height="29"><input id="<?php echo $this->get_field_id('open_newtab'); ?>" type="checkbox" name="<?php echo $this->get_field_name('open_newtab'); ?>" value="1" <?php echo $open_newtab == "1" ? 'checked="checked"' : ""; ?> /></td>
|
328 |
<td><label for="<?php echo $this->get_field_id('open_newtab'); ?>">Open links in new tab</label></td>
|
|
|
|
|
|
|
|
|
|
|
329 |
<td><label for="<?php echo $this->get_field_id('show_thumb'); ?>">Show thumbnail if present</label></td>
|
330 |
-
<td
|
|
|
331 |
</tr>
|
332 |
</table>
|
333 |
</div>
|
@@ -364,7 +379,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
364 |
</table>
|
365 |
</div>
|
366 |
|
367 |
-
<div class="srr_support"> <a href="http://facebook.com/aakashweb" class="srr_fblike" target="_blank">Like</a> | <a href="http://bit.ly/
|
368 |
<small>Please donate and share this plugin to show your support. Thank you :)</small>
|
369 |
|
370 |
<?php
|
5 |
Author URI: http://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 seperated in tabs. <a href="http://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.4
|
9 |
*/
|
10 |
|
11 |
if(!defined('WP_CONTENT_URL')) {
|
14 |
$srr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
|
15 |
}
|
16 |
|
17 |
+
define('SRR_VERSION', '2.4');
|
18 |
define('SRR_AUTHOR', 'Aakash Chakravarthy');
|
19 |
define('SRR_URL', $srr_url);
|
20 |
|
21 |
## Include the required scripts
|
22 |
function srr_public_scripts(){
|
23 |
// jQuery
|
|
|
|
|
24 |
wp_enqueue_script('jquery');
|
25 |
|
26 |
// Super RSS Reader JS and CSS
|
41 |
'No style' => 'none',
|
42 |
'Grey' => 'grey',
|
43 |
'Dark' => 'dark',
|
44 |
+
'Orange' => 'orange',
|
45 |
+
'Simple modern' => 'smodern'
|
46 |
);
|
47 |
|
48 |
## The main RSS Parser
|
56 |
$show_thumb = stripslashes($instance['show_thumb']);
|
57 |
$open_newtab = intval($instance['open_newtab']);
|
58 |
$strip_desc = intval($instance['strip_desc']);
|
59 |
+
$strip_title = intval($instance['strip_title']);
|
60 |
$read_more = htmlspecialchars($instance['read_more']);
|
61 |
$color_style = stripslashes($instance['color_style']);
|
62 |
$enable_ticker = intval($instance['enable_ticker']);
|
133 |
if ( empty($title) )
|
134 |
$title = __('No Title');
|
135 |
|
136 |
+
if($strip_title != 0){
|
137 |
+
$titleLen = strlen($title);
|
138 |
+
$title = wp_html_excerpt( $title, $strip_title );
|
139 |
+
$title = ($titleLen > $strip_title) ? $title . ' ...' : $title;
|
140 |
+
}
|
141 |
+
|
142 |
// Get the date
|
143 |
$date = $item->get_date('j F Y');
|
144 |
|
179 |
|
180 |
// Display the feed items
|
181 |
echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
|
182 |
+
echo '<div class="srr-title"><a href="' . $link . '"' . $newtab . ' title="Posted on ' . $date . '">' . $title . '</a></div>';
|
183 |
echo '<div class="srr-meta">';
|
184 |
|
185 |
if($show_date && !empty($date))
|
254 |
$instance['show_thumb'] = stripslashes($new_instance['show_thumb']);
|
255 |
$instance['open_newtab'] = intval($new_instance['open_newtab']);
|
256 |
$instance['strip_desc'] = intval($new_instance['strip_desc']);
|
257 |
+
$instance['strip_title'] = intval($new_instance['strip_title']);
|
258 |
$instance['read_more'] = stripslashes($new_instance['read_more']);
|
259 |
|
260 |
$instance['color_style'] = stripslashes($new_instance['color_style']);
|
273 |
'title' => '', 'urls' => '', 'count' => 5,
|
274 |
'show_date' => 0, 'show_desc' => 1, 'show_author' => 0, 'show_thumb' => 1,
|
275 |
'open_newtab' => 1, 'strip_desc' => 100, 'read_more' => '[...]',
|
276 |
+
'color_style' => 'none', 'enable_ticker' => 1, 'visible_items' => 5,
|
277 |
+
'strip_title' => 0, 'ticker_speed' => 2,
|
278 |
));
|
279 |
|
280 |
$title = htmlspecialchars($instance['title']);
|
287 |
$show_thumb = intval($instance['show_thumb']);
|
288 |
$open_newtab = intval($instance['open_newtab']);
|
289 |
$strip_desc = intval($instance['strip_desc']);
|
290 |
+
$strip_title = intval($instance['strip_title']);
|
291 |
$read_more = htmlspecialchars($instance['read_more']);
|
292 |
|
293 |
$color_style = stripslashes($instance['color_style']);
|
324 |
<td height="32"><input id="<?php echo $this->get_field_id('show_date'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_date'); ?>" value="1" <?php echo $show_date == "1" ? 'checked="checked"' : ""; ?> /></td>
|
325 |
<td><label for="<?php echo $this->get_field_id('show_date'); ?>">Show Date</label></td>
|
326 |
<td><label for="<?php echo $this->get_field_id('strip_desc');?>">Strip description</label></td>
|
327 |
+
<td><input id="<?php echo $this->get_field_id('strip_desc');?>" name="<?php echo $this->get_field_name('strip_desc'); ?>" type="text" value="<?php echo $strip_desc; ?>" class="widefat" title="The number of charaters to be displayed. Use 0 to disable stripping"/> </td>
|
328 |
</tr>
|
329 |
<tr>
|
330 |
<td height="29"><input id="<?php echo $this->get_field_id('show_author'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_author'); ?>" value="1" <?php echo $show_author == "1" ? 'checked="checked"' : ""; ?> /></td>
|
331 |
+
<td><label for="<?php echo $this->get_field_id('show_author'); ?>">Show Author</label></td>
|
332 |
<td><label for="<?php echo $this->get_field_id('read_more'); ?>">Read more text</label></td>
|
333 |
<td><input id="<?php echo $this->get_field_name('read_more'); ?>" name="<?php echo $this->get_field_name('read_more'); ?>" type="text" value="<?php echo $read_more; ?>" class="widefat" title="Leave blank to hide read more text"/></td>
|
334 |
</tr>
|
335 |
<tr>
|
336 |
<td height="29"><input id="<?php echo $this->get_field_id('open_newtab'); ?>" type="checkbox" name="<?php echo $this->get_field_name('open_newtab'); ?>" value="1" <?php echo $open_newtab == "1" ? 'checked="checked"' : ""; ?> /></td>
|
337 |
<td><label for="<?php echo $this->get_field_id('open_newtab'); ?>">Open links in new tab</label></td>
|
338 |
+
<td><label for="<?php echo $this->get_field_id('strip_title'); ?>">Strip Title</label></td>
|
339 |
+
<td><input id="<?php echo $this->get_field_id('strip_title');?>" name="<?php echo $this->get_field_name('strip_title'); ?>" type="text" value="<?php echo $strip_title; ?>" class="widefat" title="The number of charaters to be displayed. Use 0 to disable stripping"/></td>
|
340 |
+
</tr>
|
341 |
+
<tr>
|
342 |
+
<td height="29"><input id="<?php echo $this->get_field_id('show_thumb'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_thumb'); ?>" value="1" <?php echo $show_thumb == "1" ? 'checked="checked"' : ""; ?> /></td>
|
343 |
<td><label for="<?php echo $this->get_field_id('show_thumb'); ?>">Show thumbnail if present</label></td>
|
344 |
+
<td> </td>
|
345 |
+
<td> </td>
|
346 |
</tr>
|
347 |
</table>
|
348 |
</div>
|
379 |
</table>
|
380 |
</div>
|
381 |
|
382 |
+
<div class="srr_support"> <a href="http://facebook.com/aakashweb" class="srr_fblike" target="_blank">Like</a> | <a href="http://bit.ly/srrDonate" target="_blank" style="color: #FF6600" title="If you like this plugin, then just make a small donation and it will be helpful for the plugin's development.">Donate</a> | <a href="http://www.aakashweb.com/wordpress-plugins/super-rss-reader/" target="_blank">Support</a></div>
|
383 |
<small>Please donate and share this plugin to show your support. Thank you :)</small>
|
384 |
|
385 |
<?php
|