Version Description
- Added option to open links in new window.
- Changed the method to include the scripts and styles.
- Added a new 'Orange' color style.
Download this release
Release Info
Developer | vaakash |
Plugin | Super RSS Reader |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- public/srr-css.css +25 -0
- readme.txt +8 -2
- super-rss-reader.php +30 -12
public/srr-css.css
CHANGED
@@ -72,6 +72,31 @@
|
|
72 |
background: #666666!important;
|
73 |
}
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
/** Clearfix hack **/
|
76 |
* html .srr-clearfix{
|
77 |
height: 1%;
|
72 |
background: #666666!important;
|
73 |
}
|
74 |
|
75 |
+
/** Orange **/
|
76 |
+
|
77 |
+
.srr-style-orange{
|
78 |
+
border: 2px solid #FF9900;
|
79 |
+
-webkit-border-radius: 5px;
|
80 |
+
border-radius: 5px;
|
81 |
+
-webkit-box-shadow: inset 0px 2px 6px 0px rgba(0, 0, 0, 0.3);
|
82 |
+
box-shadow: inset 0px 2px 6px 0px rgba(0, 0, 0, 0.3);
|
83 |
+
}
|
84 |
+
.srr-style-orange .srr-item{
|
85 |
+
border-bottom: 1px solid #FF9900;
|
86 |
+
}
|
87 |
+
.srr-tab-style-orange{
|
88 |
+
margin: 0px 0px -1px 5px !important;
|
89 |
+
}
|
90 |
+
.srr-tab-style-orange li{
|
91 |
+
border-color: #FF9900;
|
92 |
+
background: #FFF8EC;
|
93 |
+
color: #333333 !important;
|
94 |
+
}
|
95 |
+
.srr-tab-style-orange .srr-active-tab{
|
96 |
+
background: #FF9900!important;
|
97 |
+
color: #FFFFFF !important;
|
98 |
+
}
|
99 |
+
|
100 |
/** Clearfix hack **/
|
101 |
* html .srr-clearfix{
|
102 |
height: 1%;
|
readme.txt
CHANGED
@@ -4,9 +4,10 @@ Donate link: http://bit.ly/srrdonate
|
|
4 |
Tags: rss, feeds, widget, links, twitter, admin, plugin, feed, posts, page
|
5 |
Author URI: http://www.aakashweb.com
|
6 |
Plugin URI: http://www.aakashweb.com/wordpress-plugins/super-rss-reader/
|
|
|
7 |
Requires at least: 2.8
|
8 |
-
Tested up to: 3.
|
9 |
-
Stable tag: 2.
|
10 |
|
11 |
Super RSS Reader is an awesome RSS widget plugin, which has features like news ticker effect, tabbed RSS feeds, customizable color modes and more.
|
12 |
|
@@ -82,6 +83,11 @@ For more FAQs just check out the [official page](http://www.aakashweb.com/wordpr
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
|
|
85 |
= 2.0 =
|
86 |
* Core code is completely rewritten.
|
87 |
* Flash RSS Reader is removed and instead jQuery is used.
|
4 |
Tags: rss, feeds, widget, links, twitter, admin, plugin, feed, posts, page
|
5 |
Author URI: http://www.aakashweb.com
|
6 |
Plugin URI: http://www.aakashweb.com/wordpress-plugins/super-rss-reader/
|
7 |
+
License: GPLv2 or later
|
8 |
Requires at least: 2.8
|
9 |
+
Tested up to: 3.4.1
|
10 |
+
Stable tag: 2.1
|
11 |
|
12 |
Super RSS Reader is an awesome RSS widget plugin, which has features like news ticker effect, tabbed RSS feeds, customizable color modes and more.
|
13 |
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 2.1 =
|
87 |
+
* Added option to open links in new window.
|
88 |
+
* Changed the method to include the scripts and styles.
|
89 |
+
* Added a new 'Orange' color style.
|
90 |
+
|
91 |
= 2.0 =
|
92 |
* Core code is completely rewritten.
|
93 |
* Flash RSS Reader is removed and instead jQuery is used.
|
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,29 +14,36 @@ 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 |
-
|
23 |
// jQuery
|
24 |
wp_deregister_script('jquery');
|
25 |
-
|
26 |
-
|
27 |
|
28 |
// Super RSS Reader JS and CSS
|
29 |
wp_register_script('super-rss-reader-js', SRR_URL . 'public/srr-js.js');
|
30 |
wp_enqueue_script(array('jquery', 'super-rss-reader-js'));
|
|
|
|
|
|
|
|
|
|
|
31 |
wp_register_style('super-rss-reader-css', SRR_URL . 'public/srr-css.css');
|
32 |
wp_enqueue_style('super-rss-reader-css');
|
33 |
}
|
|
|
34 |
|
35 |
## Default color styles
|
36 |
$srr_color_styles = array(
|
37 |
'No style' => 'none',
|
38 |
'Grey' => 'grey',
|
39 |
-
'Dark' => 'dark'
|
|
|
40 |
);
|
41 |
|
42 |
## The main RSS Parser
|
@@ -47,6 +54,7 @@ function srr_rss_parser($instance){
|
|
47 |
$show_date = intval($instance['show_date']);
|
48 |
$show_desc = intval($instance['show_desc']);
|
49 |
$show_author = intval($instance['show_author']);
|
|
|
50 |
$strip_desc = intval($instance['strip_desc']);
|
51 |
$color_style = stripslashes($instance['color_style']);
|
52 |
$enable_ticker = intval($instance['enable_ticker']);
|
@@ -138,11 +146,14 @@ function srr_rss_parser($instance){
|
|
138 |
$author = esc_html(strip_tags($author));
|
139 |
}
|
140 |
|
|
|
|
|
|
|
141 |
echo "\n\n\t";
|
142 |
|
143 |
// Display the feed items
|
144 |
echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
|
145 |
-
echo '<a href="' . $link . '" title="Posted on ' . $date . '">' .$title . '</a>';
|
146 |
if($show_date) echo '<br/><em class="srr-date">' . $date . '</em>';
|
147 |
if($show_author) echo ' - <cite class="srr-author">' . $author . '</cite>';
|
148 |
if($show_desc) echo '<p class="srr-summary">' . $desc . '</p>';
|
@@ -204,6 +215,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
204 |
$instance['show_date'] = intval($new_instance['show_date']);
|
205 |
$instance['show_desc'] = intval($new_instance['show_desc']);
|
206 |
$instance['show_author'] = intval($new_instance['show_author']);
|
|
|
207 |
$instance['strip_desc'] = intval($new_instance['strip_desc']);
|
208 |
|
209 |
$instance['color_style'] = stripslashes($new_instance['color_style']);
|
@@ -220,8 +232,8 @@ class super_rss_reader_widget extends WP_Widget{
|
|
220 |
$instance = wp_parse_args( (array) $instance, array(
|
221 |
'title' => '', 'urls' => '', 'count' => 5,
|
222 |
'show_date' => 0, 'show_desc' => 1, 'show_author' => 0,
|
223 |
-
'strip_desc' => 100, 'color_style' => 'none',
|
224 |
-
'visible_items' => 5
|
225 |
));
|
226 |
|
227 |
$title = htmlspecialchars($instance['title']);
|
@@ -231,6 +243,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
231 |
$show_date = intval($instance['show_date']);
|
232 |
$show_desc = intval($instance['show_desc']);
|
233 |
$show_author = intval($instance['show_author']);
|
|
|
234 |
$strip_desc = intval($instance['strip_desc']);
|
235 |
|
236 |
$color_style = stripslashes($instance['color_style']);
|
@@ -266,8 +279,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
266 |
<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>
|
267 |
<td><label for="<?php echo $this->get_field_id('show_date'); ?>">Show Date</label></td>
|
268 |
<td><label for="<?php echo $this->get_field_id('strip_desc');?>">Strip description</label></td>
|
269 |
-
<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="Use 0 to avoid striping the description of the feed"/>
|
270 |
-
</td>
|
271 |
</tr>
|
272 |
<tr>
|
273 |
<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>
|
@@ -275,6 +287,12 @@ class super_rss_reader_widget extends WP_Widget{
|
|
275 |
<td> </td>
|
276 |
<td> </td>
|
277 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
</table>
|
279 |
</div>
|
280 |
|
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.1
|
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.1');
|
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
|
29 |
wp_register_script('super-rss-reader-js', SRR_URL . 'public/srr-js.js');
|
30 |
wp_enqueue_script(array('jquery', 'super-rss-reader-js'));
|
31 |
+
}
|
32 |
+
add_action('wp_enqueue_scripts', 'srr_public_scripts');
|
33 |
+
|
34 |
+
## Include the required styles
|
35 |
+
function srr_public_styles(){
|
36 |
wp_register_style('super-rss-reader-css', SRR_URL . 'public/srr-css.css');
|
37 |
wp_enqueue_style('super-rss-reader-css');
|
38 |
}
|
39 |
+
add_action('wp_enqueue_scripts', 'srr_public_styles');
|
40 |
|
41 |
## Default color styles
|
42 |
$srr_color_styles = array(
|
43 |
'No style' => 'none',
|
44 |
'Grey' => 'grey',
|
45 |
+
'Dark' => 'dark',
|
46 |
+
'Orange' => 'orange'
|
47 |
);
|
48 |
|
49 |
## The main RSS Parser
|
54 |
$show_date = intval($instance['show_date']);
|
55 |
$show_desc = intval($instance['show_desc']);
|
56 |
$show_author = intval($instance['show_author']);
|
57 |
+
$open_newtab = intval($instance['open_newtab']);
|
58 |
$strip_desc = intval($instance['strip_desc']);
|
59 |
$color_style = stripslashes($instance['color_style']);
|
60 |
$enable_ticker = intval($instance['enable_ticker']);
|
146 |
$author = esc_html(strip_tags($author));
|
147 |
}
|
148 |
|
149 |
+
// Open links in new tab
|
150 |
+
$newtab = ($open_newtab) ? ' target="_blank"' : '';
|
151 |
+
|
152 |
echo "\n\n\t";
|
153 |
|
154 |
// Display the feed items
|
155 |
echo '<div class="srr-item ' . (($j%2 == 0) ? 'even' : 'odd') . '">';
|
156 |
+
echo '<a href="' . $link . '"' . $newtab . ' title="Posted on ' . $date . '">' .$title . '</a>';
|
157 |
if($show_date) echo '<br/><em class="srr-date">' . $date . '</em>';
|
158 |
if($show_author) echo ' - <cite class="srr-author">' . $author . '</cite>';
|
159 |
if($show_desc) echo '<p class="srr-summary">' . $desc . '</p>';
|
215 |
$instance['show_date'] = intval($new_instance['show_date']);
|
216 |
$instance['show_desc'] = intval($new_instance['show_desc']);
|
217 |
$instance['show_author'] = intval($new_instance['show_author']);
|
218 |
+
$instance['open_newtab'] = intval($new_instance['open_newtab']);
|
219 |
$instance['strip_desc'] = intval($new_instance['strip_desc']);
|
220 |
|
221 |
$instance['color_style'] = stripslashes($new_instance['color_style']);
|
232 |
$instance = wp_parse_args( (array) $instance, array(
|
233 |
'title' => '', 'urls' => '', 'count' => 5,
|
234 |
'show_date' => 0, 'show_desc' => 1, 'show_author' => 0,
|
235 |
+
'open_newtab' => 1, 'strip_desc' => 100, 'color_style' => 'none',
|
236 |
+
'enable_ticker' => 1, 'visible_items' => 5
|
237 |
));
|
238 |
|
239 |
$title = htmlspecialchars($instance['title']);
|
243 |
$show_date = intval($instance['show_date']);
|
244 |
$show_desc = intval($instance['show_desc']);
|
245 |
$show_author = intval($instance['show_author']);
|
246 |
+
$open_newtab = intval($instance['open_newtab']);
|
247 |
$strip_desc = intval($instance['strip_desc']);
|
248 |
|
249 |
$color_style = stripslashes($instance['color_style']);
|
279 |
<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>
|
280 |
<td><label for="<?php echo $this->get_field_id('show_date'); ?>">Show Date</label></td>
|
281 |
<td><label for="<?php echo $this->get_field_id('strip_desc');?>">Strip description</label></td>
|
282 |
+
<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="Use 0 to avoid striping the description of the feed"/> </td>
|
|
|
283 |
</tr>
|
284 |
<tr>
|
285 |
<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>
|
287 |
<td> </td>
|
288 |
<td> </td>
|
289 |
</tr>
|
290 |
+
<tr>
|
291 |
+
<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>
|
292 |
+
<td><label for="<?php echo $this->get_field_id('open_newtab'); ?>">Open links in new tab</label></td>
|
293 |
+
<td> </td>
|
294 |
+
<td> </td>
|
295 |
+
</tr>
|
296 |
</table>
|
297 |
</div>
|
298 |
|