Version Description
- Added feature to change individual tab titles/names.
- Added feature to enable rich or full description.
- Fixed feed ordering issues.
- Updated jQuery easy ticker plugin to v2.0.
- Minor code revisions.
Download this release
Release Info
Developer | vaakash |
Plugin | Super RSS Reader |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- Thumbs.db +0 -0
- admin.css +0 -104
- images/donate.png +0 -0
- images/index.html +0 -0
- public/index.html +0 -0
- public/srr-css.css +3 -1
- public/srr-js.js +180 -152
- readme.txt +18 -4
- screenshot-4.png +0 -0
- super-rss-reader.php +99 -51
Thumbs.db
DELETED
Binary file
|
admin.css
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
Shortcoder Admin theme
|
3 |
-
By : Aakash Chakravarthy (www.aakashweb.com)
|
4 |
-
Version : 1.6
|
5 |
-
*/
|
6 |
-
|
7 |
-
.boxes {
|
8 |
-
padding: 5px;
|
9 |
-
-moz-border-radius-bottomleft: 5px;
|
10 |
-
-moz-border-radius-bottomright: 5px;
|
11 |
-
-khtml-border-radius: 5px;
|
12 |
-
-webkit-border-top-left-radius: 5px;
|
13 |
-
-webkit-border-top-right-radius: 5px;
|
14 |
-
-webkit-border-bottom-left-radius: 5px;
|
15 |
-
-webkit-border-bottom-right-radius: 5px;
|
16 |
-
border-top: 1px solid #D4D4D4;
|
17 |
-
border-bottom: 3px solid #666666;
|
18 |
-
background: #FFFFFF;
|
19 |
-
margin-bottom: 10px;
|
20 |
-
margin-top: 5px;
|
21 |
-
border-right: 1px solid #EBEBEB;
|
22 |
-
border-left: 1px solid #EBEBEB;
|
23 |
-
}
|
24 |
-
.boxes:hover{
|
25 |
-
border-bottom-color: #FF0033;
|
26 |
-
}
|
27 |
-
#sc_content{
|
28 |
-
width: 100%;
|
29 |
-
}
|
30 |
-
.setting-description{
|
31 |
-
font-size: 10px;
|
32 |
-
color: #666666;
|
33 |
-
}
|
34 |
-
.wrap{
|
35 |
-
width: 75%;
|
36 |
-
float: left;
|
37 |
-
margin: 0px;
|
38 |
-
}
|
39 |
-
.wrap h3 {
|
40 |
-
font: italic 21px "Times New Roman", Times, serif;
|
41 |
-
color: #333333;
|
42 |
-
}
|
43 |
-
.wrap #sc_content {
|
44 |
-
background: #FFFFFF;
|
45 |
-
}
|
46 |
-
.wrap #preview_box {
|
47 |
-
background: #FFFFFF;
|
48 |
-
border: 1px solid #E8E8E8;
|
49 |
-
padding: 10px;
|
50 |
-
margin-top: -10px;
|
51 |
-
-moz-border-radius-bottomleft: 10px;
|
52 |
-
-moz-border-radius-bottomright: 10px;
|
53 |
-
-khtml-border-radius: 10px;
|
54 |
-
-webkit-border-top-left-radius: 10px;
|
55 |
-
-webkit-border-top-right-radius: 10px;
|
56 |
-
-webkit-border-bottom-left-radius: 10px;
|
57 |
-
-webkit-border-bottom-right-radius: 10px;
|
58 |
-
}
|
59 |
-
#sidebar{
|
60 |
-
float: right;
|
61 |
-
height: 80%;
|
62 |
-
width: 24%;
|
63 |
-
margin-top: 45px;
|
64 |
-
margin-left: 0px;
|
65 |
-
}
|
66 |
-
#sidebar ul{
|
67 |
-
height: 80%;
|
68 |
-
width: 90%;
|
69 |
-
border: 1px solid #E9E9E9;
|
70 |
-
margin-right: 15px;
|
71 |
-
-moz-border-radius-bottomleft: 10px;
|
72 |
-
-moz-border-radius-bottomright: 10px;
|
73 |
-
-khtml-border-radius-bottomright: 10px;
|
74 |
-
-khtml-border-radius-bottomleft: 10px;
|
75 |
-
-webkit-border-bottom-left-radius: 10px;
|
76 |
-
-webkit-border-bottom-right-radius: 10px;
|
77 |
-
background: #FFFFFF;
|
78 |
-
padding: 5px;
|
79 |
-
margin-top: 0px;
|
80 |
-
margin-bottom: 5px;
|
81 |
-
}
|
82 |
-
#sidebar li{
|
83 |
-
display: block;
|
84 |
-
padding: 3px;
|
85 |
-
border-bottom: 1px solid #E2E2E2;
|
86 |
-
}
|
87 |
-
#sidebar li a{
|
88 |
-
text-decoration: none;
|
89 |
-
}
|
90 |
-
#sidebar h4{
|
91 |
-
color: #333333;
|
92 |
-
margin-top: 2px;
|
93 |
-
margin-bottom: 5px;
|
94 |
-
font: bold 14px Arial, Helvetica, sans-serif;
|
95 |
-
margin-left: 5px;
|
96 |
-
}
|
97 |
-
|
98 |
-
#donators li{
|
99 |
-
display: inline-table;
|
100 |
-
font-size: 9px;
|
101 |
-
line-height: 1px;
|
102 |
-
text-decoration: none;
|
103 |
-
border-bottom-style: none;
|
104 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
images/donate.png
ADDED
Binary file
|
images/index.html
ADDED
File without changes
|
public/index.html
ADDED
File without changes
|
public/srr-css.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* Super RSS Reader - Styles file
|
3 |
* Author: Aakash Chakravarthy
|
4 |
-
* Version: 1.
|
5 |
*
|
6 |
**/
|
7 |
|
@@ -31,6 +31,8 @@
|
|
31 |
/** General styling **/
|
32 |
.srr-wrap{
|
33 |
padding: 0px !important;
|
|
|
|
|
34 |
}
|
35 |
.srr-wrap div{
|
36 |
left: 0px;
|
1 |
/**
|
2 |
* Super RSS Reader - Styles file
|
3 |
* Author: Aakash Chakravarthy
|
4 |
+
* Version: 1.5
|
5 |
*
|
6 |
**/
|
7 |
|
31 |
/** General styling **/
|
32 |
.srr-wrap{
|
33 |
padding: 0px !important;
|
34 |
+
max-width: 100%;
|
35 |
+
min-width: 100% !important;
|
36 |
}
|
37 |
.srr-wrap div{
|
38 |
left: 0px;
|
public/srr-js.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
* Super RSS Reader -
|
3 |
* Included with "Super RSS Reader" Wordpress plugin @since v2.0
|
4 |
* Author: Aakash Chakravarthy, www.aakashweb.com
|
5 |
*/
|
@@ -26,8 +26,7 @@ jQuery(document).ready(function(){
|
|
26 |
jQuery('.srr-vticker').each(function(){
|
27 |
var visible = jQuery(this).attr('data-visible');
|
28 |
var interval = jQuery(this).attr('data-speed');
|
29 |
-
var
|
30 |
-
obj.easyTicker({
|
31 |
'visible': visible,
|
32 |
'interval': interval
|
33 |
});
|
@@ -35,181 +34,210 @@ jQuery(document).ready(function(){
|
|
35 |
});
|
36 |
|
37 |
/*
|
38 |
-
* jQuery - Easy Ticker plugin -
|
39 |
* http://www.aakashweb.com/
|
40 |
-
* Copyright
|
41 |
* Released under the MIT License.
|
42 |
*/
|
43 |
-
|
44 |
-
(function(
|
45 |
-
$.fn.easyTicker = function(options) {
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
-
};
|
61 |
-
|
62 |
-
// Initialize the variables
|
63 |
-
var options = $.extend(defaults, options),
|
64 |
-
timer = 0,
|
65 |
-
tClass = 'et-run',
|
66 |
-
winFocus = 0,
|
67 |
-
vBody = $('body'),
|
68 |
-
cUp = $(options.controls.up),
|
69 |
-
cDown = $(options.controls.down),
|
70 |
-
cToggle = $(options.controls.toggle);
|
71 |
-
|
72 |
-
// The initializing function
|
73 |
-
var init = function(obj, target){
|
74 |
|
75 |
-
|
|
|
|
|
|
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
overflow : 'hidden'
|
81 |
});
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
99 |
|
100 |
-
if(!obj.is(':visible')) return;
|
101 |
|
102 |
-
|
103 |
-
var sel
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
105 |
appType = 'appendTo';
|
106 |
-
|
107 |
-
|
108 |
-
eq = '+='
|
109 |
appType = 'prependTo';
|
110 |
-
}
|
111 |
-
|
112 |
-
var selChild = $(target).children(sel);
|
113 |
-
var height = selChild.outerHeight();
|
114 |
-
|
115 |
-
$(target).stop(true, true).animate({
|
116 |
-
'top': eq + height + "px"
|
117 |
-
}, options.speed, options.easing, function(){
|
118 |
-
selChild.hide()[appType](target).fadeIn();
|
119 |
-
$(target).css('top', 0);
|
120 |
-
if(options.visible != 0 && options.height == 'auto'){
|
121 |
-
adjHeight(obj, target);
|
122 |
}
|
123 |
-
});
|
124 |
-
}
|
125 |
-
|
126 |
-
// Activates the timer.
|
127 |
-
var setTimer = function(obj, target){
|
128 |
-
if(cToggle.length == 0 || cToggle.hasClass(tClass)){
|
129 |
-
timer = setInterval(function(){
|
130 |
-
if (vBody.attr('data-focus') != 1){ return; }
|
131 |
-
move(obj, target, options.direction);
|
132 |
-
}, options.interval);
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
// Stops the timer
|
137 |
-
var stopTimer = function(obj){
|
138 |
-
clearInterval(timer);
|
139 |
-
}
|
140 |
-
|
141 |
-
// Adjust the wrapper height and show the visible elements only.
|
142 |
-
var adjHeight = function(obj, target){
|
143 |
-
var wrapHeight = 0;
|
144 |
-
$(target).children(':lt(' + options.visible + ')').each(function(){
|
145 |
-
wrapHeight += $(this).outerHeight();
|
146 |
-
});
|
147 |
-
|
148 |
-
obj.stop(true, true).animate({height: wrapHeight}, options.speed);
|
149 |
-
}
|
150 |
-
|
151 |
-
// Get the maximum height of the children.
|
152 |
-
var objHeight = function(obj, target){
|
153 |
-
var height = 0;
|
154 |
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
161 |
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
function onBlur(){ vBody.attr('data-focus', 0); };
|
168 |
-
function onFocus(){ vBody.attr('data-focus', 1); };
|
169 |
-
|
170 |
-
if (/*@cc_on!@*/false) { // check for Internet Explorer
|
171 |
-
document.onfocusin = onFocus;
|
172 |
-
document.onfocusout = onBlur;
|
173 |
-
}else{
|
174 |
-
$(window).bind('focus mouseover', onFocus);
|
175 |
-
$(window).bind('blur', onBlur);
|
176 |
-
}
|
177 |
-
|
178 |
-
return this.each(function(){
|
179 |
-
var obj = $(this);
|
180 |
-
var tar = obj.children(':first-child');
|
181 |
|
182 |
-
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
stopTimer(obj);
|
189 |
-
}).mouseleave(function(){
|
190 |
-
setTimer(obj, tar);
|
191 |
});
|
192 |
}
|
193 |
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
199 |
}else{
|
200 |
-
|
201 |
-
setTimer(obj, tar);
|
202 |
}
|
203 |
-
}
|
204 |
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
208 |
|
209 |
-
|
210 |
-
|
211 |
-
|
|
|
|
|
|
|
|
|
212 |
|
213 |
-
|
214 |
-
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
+
* Super RSS Reader - v1.2
|
3 |
* Included with "Super RSS Reader" Wordpress plugin @since v2.0
|
4 |
* Author: Aakash Chakravarthy, www.aakashweb.com
|
5 |
*/
|
26 |
jQuery('.srr-vticker').each(function(){
|
27 |
var visible = jQuery(this).attr('data-visible');
|
28 |
var interval = jQuery(this).attr('data-speed');
|
29 |
+
var ticker = jQuery(this).easyTicker({
|
|
|
30 |
'visible': visible,
|
31 |
'interval': interval
|
32 |
});
|
34 |
});
|
35 |
|
36 |
/*
|
37 |
+
* jQuery - Easy Ticker plugin - v2.0
|
38 |
* http://www.aakashweb.com/
|
39 |
+
* Copyright 2014, Aakash Chakravarthy
|
40 |
* Released under the MIT License.
|
41 |
*/
|
42 |
+
|
43 |
+
;(function ( $, window, document, undefined ) {
|
|
|
44 |
|
45 |
+
var name = "easyTicker",
|
46 |
+
defaults = {
|
47 |
+
direction: 'up',
|
48 |
+
easing: 'swing',
|
49 |
+
speed: 'slow',
|
50 |
+
interval: 2000,
|
51 |
+
height: 'auto',
|
52 |
+
visible: 0,
|
53 |
+
mousePause: 1,
|
54 |
+
controls: {
|
55 |
+
up: '',
|
56 |
+
down: '',
|
57 |
+
toggle: '',
|
58 |
+
playText: 'Play',
|
59 |
+
stopText: 'Stop'
|
60 |
+
}
|
61 |
+
};
|
62 |
+
|
63 |
+
// Constructor
|
64 |
+
function EasyTicker( el, options ) {
|
65 |
+
|
66 |
+
var s = this;
|
67 |
+
|
68 |
+
s.opts = $.extend( {}, defaults, options );
|
69 |
+
s.elem = $(el);
|
70 |
+
s.targ = $(el).children(':first-child');
|
71 |
+
s.timer = 0;
|
72 |
+
s.mHover = 0;
|
73 |
+
s.winFocus = 1;
|
74 |
+
|
75 |
+
init();
|
76 |
+
start();
|
77 |
+
|
78 |
+
$([window, document]).off('focus.jqet').on('focus.jqet', function(){
|
79 |
+
s.winFocus = 1;
|
80 |
+
}).off('blur.jqet').on('blur.jqet', function(){
|
81 |
+
s.winFocus = 0;
|
82 |
+
});
|
83 |
+
|
84 |
+
if( s.opts.mousePause == 1 ){
|
85 |
+
s.elem.mouseenter(function(){
|
86 |
+
s.timerTemp = s.timer;
|
87 |
+
stop();
|
88 |
+
}).mouseleave(function(){
|
89 |
+
if( s.timerTemp !== 0 )
|
90 |
+
start();
|
91 |
+
});
|
92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
+
$(s.opts.controls.up).on('click', function(e){
|
95 |
+
e.preventDefault();
|
96 |
+
moveDir('up');
|
97 |
+
});
|
98 |
|
99 |
+
$(s.opts.controls.down).on('click', function(e){
|
100 |
+
e.preventDefault();
|
101 |
+
moveDir('down');
|
|
|
102 |
});
|
103 |
|
104 |
+
$(s.opts.controls.toggle).on('click', function(e){
|
105 |
+
e.preventDefault();
|
106 |
+
if( s.timer == 0 ) start();
|
107 |
+
else stop();
|
108 |
+
});
|
109 |
|
110 |
+
function init(){
|
111 |
+
|
112 |
+
s.elem.children().css('margin', 0).children().css('margin', 0);
|
113 |
+
|
114 |
+
s.elem.css({
|
115 |
+
position : 'relative',
|
116 |
+
height: s.opts.height,
|
117 |
+
overflow : 'hidden'
|
118 |
+
});
|
119 |
+
|
120 |
+
s.targ.css({
|
121 |
+
'position' : 'absolute',
|
122 |
+
'margin' : 0
|
123 |
+
});
|
124 |
+
|
125 |
+
setInterval( function(){
|
126 |
+
adjHeight();
|
127 |
+
}, 100);
|
128 |
+
|
129 |
+
} // Init Method
|
130 |
+
|
131 |
+
function start(){
|
132 |
+
s.timer = setInterval(function(){
|
133 |
+
if( s.winFocus == 1 ){
|
134 |
+
move( s.opts.direction );
|
135 |
+
}
|
136 |
+
}, s.opts.interval);
|
137 |
|
138 |
+
$(s.opts.controls.toggle).addClass('et-run').html(s.opts.controls.stopText);
|
139 |
+
|
140 |
+
} // Start method
|
141 |
+
|
142 |
+
|
143 |
+
function stop(){
|
144 |
+
clearInterval( s.timer );
|
145 |
+
s.timer = 0;
|
146 |
+
$(s.opts.controls.toggle).removeClass('et-run').html(s.opts.controls.playText);
|
147 |
+
}// Stop
|
148 |
|
|
|
149 |
|
150 |
+
function move( dir ){
|
151 |
+
var sel, eq, appType;
|
152 |
+
|
153 |
+
if( !s.elem.is(':visible') ) return;
|
154 |
+
|
155 |
+
if( dir == 'up' ){
|
156 |
+
sel = ':first-child';
|
157 |
+
eq = '-=';
|
158 |
appType = 'appendTo';
|
159 |
+
}else{
|
160 |
+
sel = ':last-child';
|
161 |
+
eq = '+=';
|
162 |
appType = 'prependTo';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
|
165 |
+
var selChild = s.targ.children(sel);
|
166 |
+
var height = selChild.outerHeight();
|
167 |
+
|
168 |
+
s.targ.stop(true, true).animate({
|
169 |
+
'top': eq + height + "px"
|
170 |
+
}, s.opts.speed, s.opts.easing, function(){
|
171 |
|
172 |
+
selChild.hide()[appType]( s.targ ).fadeIn();
|
173 |
+
s.targ.css('top', 0);
|
174 |
+
|
175 |
+
adjHeight();
|
176 |
+
|
177 |
+
});
|
178 |
+
}// Move
|
179 |
|
180 |
+
function moveDir( dir ){
|
181 |
+
stop();
|
182 |
+
if( dir == 'up' ) move('up'); else move('down');
|
183 |
+
// start();
|
184 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
|
186 |
+
function fullHeight(){
|
187 |
+
var height = 0;
|
188 |
+
var tempDisp = s.elem.css('display'); // Get the current el display value
|
189 |
+
|
190 |
+
s.elem.css('display', 'block');
|
191 |
+
|
192 |
+
s.targ.children().each(function(){
|
193 |
+
height += $(this).outerHeight();
|
194 |
+
});
|
195 |
|
196 |
+
s.elem.css({
|
197 |
+
'display' : tempDisp,
|
198 |
+
'height' : height
|
|
|
|
|
|
|
199 |
});
|
200 |
}
|
201 |
|
202 |
+
function visHeight( anim ){
|
203 |
+
var wrapHeight = 0;
|
204 |
+
s.targ.children(':lt(' + s.opts.visible + ')').each(function(){
|
205 |
+
wrapHeight += $(this).outerHeight();
|
206 |
+
});
|
207 |
+
|
208 |
+
if( anim == 1 ){
|
209 |
+
s.elem.stop(true, true).animate({height: wrapHeight}, s.opts.speed);
|
210 |
}else{
|
211 |
+
s.elem.css( 'height', wrapHeight);
|
|
|
212 |
}
|
213 |
+
}
|
214 |
|
215 |
+
function adjHeight(){
|
216 |
+
if( s.opts.height == 'auto' && s.opts.visible != 0 ){
|
217 |
+
anim = arguments.callee.caller.name == 'init' ? 0 : 1;
|
218 |
+
visHeight( anim );
|
219 |
+
}else if( s.opts.height == 'auto' ){
|
220 |
+
fullHeight();
|
221 |
+
}
|
222 |
+
}
|
223 |
|
224 |
+
return {
|
225 |
+
up: function(){ moveDir('up'); },
|
226 |
+
down: function(){ moveDir('down'); },
|
227 |
+
start: start,
|
228 |
+
stop: stop,
|
229 |
+
options: s.opts
|
230 |
+
};
|
231 |
|
232 |
+
}
|
233 |
+
|
234 |
+
// Attach the object to the DOM
|
235 |
+
$.fn[name] = function ( options ) {
|
236 |
+
return this.each(function () {
|
237 |
+
if (!$.data(this, name)) {
|
238 |
+
$.data(this, name, new EasyTicker( this, options ));
|
239 |
+
}
|
240 |
+
});
|
241 |
+
};
|
242 |
+
|
243 |
+
})( jQuery, window, document );
|
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.
|
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 |
|
@@ -19,6 +19,12 @@ The plugin is fully customizable with external styles and with some inbuilt colo
|
|
19 |
|
20 |
[Check out the **LIVE DEMO** of the plugin](http://www.aakashweb.com/demos/super-rss-reader/)
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
= Features =
|
23 |
|
24 |
* jQuery [news ticker like effect](http://www.aakashweb.com/jquery-plugins/easy-ticker/) to the RSS feeds (can turn off or on)
|
@@ -38,6 +44,7 @@ The plugin is fully customizable with external styles and with some inbuilt colo
|
|
38 |
|
39 |
= Resources =
|
40 |
|
|
|
41 |
* [Documentation](http://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
|
42 |
* [FAQs](http://www.aakashweb.com/faqs/wordpress-plugins/super-rss-reader/)
|
43 |
* [Support](http://www.aakashweb.com/forum/)
|
@@ -68,7 +75,7 @@ You can use the `super-rss-reader-widget` class in your stylesheet to control th
|
|
68 |
|
69 |
No. the additional effect needs only 3.4 Kb of additional file. I think thats not too heavy to slow down the site.
|
70 |
|
71 |
-
= How to create a tabbed mode ? =
|
72 |
|
73 |
Just enter the RSS feed URLs seperated by comma in the widget, the plugin automatically renders the tab.
|
74 |
|
@@ -87,6 +94,13 @@ For more FAQs just check out the [official page](http://www.aakashweb.com/wordpr
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
= 2.4 =
|
91 |
* Added feature to cut down/strip feed titles.
|
92 |
* Added a new 'Simple modern' color style.
|
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/srrDonation
|
8 |
Requires at least: 2.8
|
9 |
+
Tested up to: 3.8.1
|
10 |
+
Stable tag: 2.5
|
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 |
|
19 |
|
20 |
[Check out the **LIVE DEMO** of the plugin](http://www.aakashweb.com/demos/super-rss-reader/)
|
21 |
|
22 |
+
= New features in v2.5 =
|
23 |
+
|
24 |
+
* Added option to change the title for individual tabs.
|
25 |
+
* Support for full or rich description.
|
26 |
+
* Revised feed ordering.
|
27 |
+
|
28 |
= Features =
|
29 |
|
30 |
* jQuery [news ticker like effect](http://www.aakashweb.com/jquery-plugins/easy-ticker/) to the RSS feeds (can turn off or on)
|
44 |
|
45 |
= Resources =
|
46 |
|
47 |
+
* [Donate](http://bit.ly/srrDonation)
|
48 |
* [Documentation](http://www.aakashweb.com/wordpress-plugins/super-rss-reader/)
|
49 |
* [FAQs](http://www.aakashweb.com/faqs/wordpress-plugins/super-rss-reader/)
|
50 |
* [Support](http://www.aakashweb.com/forum/)
|
75 |
|
76 |
No. the additional effect needs only 3.4 Kb of additional file. I think thats not too heavy to slow down the site.
|
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 |
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
= 2.5 =
|
98 |
+
* Added feature to change individual tab titles/names.
|
99 |
+
* Added feature to enable rich or full description.
|
100 |
+
* Fixed feed ordering issues.
|
101 |
+
* Updated jQuery easy ticker plugin to v2.0.
|
102 |
+
* Minor code revisions.
|
103 |
+
|
104 |
= 2.4 =
|
105 |
* Added feature to cut down/strip feed titles.
|
106 |
* Added a new 'Simple modern' color style.
|
screenshot-4.png
CHANGED
Binary file
|
super-rss-reader.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
Plugin Name: Super RSS Reader
|
4 |
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
|
7 |
Author: Aakash Chakravarthy
|
8 |
-
Version: 2.
|
9 |
*/
|
10 |
|
11 |
if(!defined('WP_CONTENT_URL')) {
|
@@ -14,7 +14,7 @@ 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 |
|
@@ -49,7 +49,9 @@ $srr_color_styles = array(
|
|
49 |
function srr_rss_parser($instance){
|
50 |
|
51 |
$urls = stripslashes($instance['urls']);
|
|
|
52 |
$count = intval($instance['count']);
|
|
|
53 |
$show_date = intval($instance['show_date']);
|
54 |
$show_desc = intval($instance['show_desc']);
|
55 |
$show_author = intval($instance['show_author']);
|
@@ -58,6 +60,8 @@ function srr_rss_parser($instance){
|
|
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']);
|
63 |
$visible_items = intval($instance['visible_items']);
|
@@ -69,19 +73,26 @@ function srr_rss_parser($instance){
|
|
69 |
|
70 |
$rand = array();
|
71 |
$url = explode(',', $urls);
|
|
|
72 |
$ucount = count($url);
|
73 |
|
74 |
// Generate the Tabs
|
75 |
if($ucount > 1){
|
76 |
echo '<ul class="srr-tab-wrap srr-tab-style-' . $color_style . ' srr-clearfix">';
|
77 |
-
for($i=0; $i
|
78 |
// Get the Feed URL
|
79 |
-
$feedUrl = trim($url[$i]);
|
80 |
-
$rss = fetch_feed($feedUrl);
|
81 |
$rand[$i] = rand(0, 999);
|
82 |
|
83 |
if (!is_wp_error($rss)){
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
echo '<li data-tab="srr-tab-' . $rand[$i] . '">' . $rss_title . '</li>';
|
86 |
}else{
|
87 |
echo '<li data-tab="srr-tab-' . $rand[$i] . '">Error</li>';
|
@@ -100,6 +111,10 @@ function srr_rss_parser($instance){
|
|
100 |
return '';
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
103 |
// Check for feed errors
|
104 |
if (!is_wp_error( $rss ) ){
|
105 |
$maxitems = $rss->get_item_quantity($count);
|
@@ -133,12 +148,15 @@ function srr_rss_parser($instance){
|
|
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 |
|
@@ -151,20 +169,30 @@ function srr_rss_parser($instance){
|
|
151 |
}
|
152 |
|
153 |
// Get the description
|
154 |
-
$desc =
|
155 |
-
if($
|
156 |
-
|
157 |
-
$
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
|
|
|
|
163 |
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
}
|
166 |
-
|
167 |
-
|
168 |
// Get the author
|
169 |
$author = $item->get_author();
|
170 |
if ( is_object($author) ) {
|
@@ -172,9 +200,6 @@ function srr_rss_parser($instance){
|
|
172 |
$author = esc_html(strip_tags($author));
|
173 |
}
|
174 |
|
175 |
-
// Open links in new tab
|
176 |
-
$newtab = ($open_newtab) ? ' target="_blank"' : '';
|
177 |
-
|
178 |
echo "\n\n\t";
|
179 |
|
180 |
// Display the feed items
|
@@ -204,6 +229,9 @@ function srr_rss_parser($instance){
|
|
204 |
echo "\n\n</div>
|
205 |
</div> \n\n" ;
|
206 |
|
|
|
|
|
|
|
207 |
}
|
208 |
}
|
209 |
|
@@ -246,6 +274,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
246 |
$instance = $old_instance;
|
247 |
$instance['title'] = stripslashes($new_instance['title']);
|
248 |
$instance['urls'] = stripslashes($new_instance['urls']);
|
|
|
249 |
|
250 |
$instance['count'] = intval($new_instance['count']);
|
251 |
$instance['show_date'] = intval($new_instance['show_date']);
|
@@ -256,6 +285,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
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']);
|
261 |
$instance['enable_ticker'] = intval($new_instance['enable_ticker']);
|
@@ -270,15 +300,17 @@ class super_rss_reader_widget extends WP_Widget{
|
|
270 |
global $srr_color_styles;
|
271 |
|
272 |
$instance = wp_parse_args( (array) $instance, array(
|
273 |
-
'title' => '', 'urls' => '', '
|
274 |
-
'
|
275 |
-
'
|
|
|
276 |
'color_style' => 'none', 'enable_ticker' => 1, 'visible_items' => 5,
|
277 |
-
'strip_title' => 0, 'ticker_speed' =>
|
278 |
));
|
279 |
|
280 |
$title = htmlspecialchars($instance['title']);
|
281 |
$urls = htmlspecialchars($instance['urls']);
|
|
|
282 |
|
283 |
$count = intval($instance['count']);
|
284 |
$show_date = intval($instance['show_date']);
|
@@ -289,6 +321,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
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']);
|
294 |
$enable_ticker = intval($instance['enable_ticker']);
|
@@ -308,6 +341,14 @@ class super_rss_reader_widget extends WP_Widget{
|
|
308 |
<small class="srr_smalltext">Can enter multiple RSS/atom feed URLs seperated by a comma.</small>
|
309 |
</td>
|
310 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
</table>
|
312 |
</div>
|
313 |
|
@@ -330,7 +371,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
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->
|
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>
|
@@ -344,9 +385,21 @@ class super_rss_reader_widget extends WP_Widget{
|
|
344 |
<td> </td>
|
345 |
<td> </td>
|
346 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
</table>
|
348 |
</div>
|
349 |
|
|
|
|
|
|
|
|
|
350 |
<div class="srr_settings">
|
351 |
<h4>Other settings</h4>
|
352 |
<table width="100%" height="109" border="0">
|
@@ -379,7 +432,7 @@ class super_rss_reader_widget extends WP_Widget{
|
|
379 |
</table>
|
380 |
</div>
|
381 |
|
382 |
-
<div class="srr_support"> <a href="http://facebook.com/aakashweb" class="srr_fblike" target="_blank">Like</a>
|
383 |
<small>Please donate and share this plugin to show your support. Thank you :)</small>
|
384 |
|
385 |
<?php
|
@@ -403,43 +456,34 @@ function srr_widget_scripts(){
|
|
403 |
background-color: #fff;
|
404 |
background-image: -ms-linear-gradient(top,#fff,#f9f9f9);
|
405 |
background-image: -moz-linear-gradient(top,#fff,#f9f9f9);
|
406 |
-
background-image: -o-linear-gradient(top,#fff,#f9f9f9);
|
407 |
-
background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#f9f9f9));
|
408 |
background-image: -webkit-linear-gradient(top,#fff,#f9f9f9);
|
409 |
background-image: linear-gradient(top,#fff,#f9f9f9);
|
410 |
}
|
411 |
-
.srr_support{
|
412 |
-
border: 1px solid #DFDFDF;
|
413 |
-
padding: 5px 13px;
|
414 |
-
background: #F9F9F9;
|
415 |
-
text-decoration:none;
|
416 |
-
margin: 10px -13px;
|
417 |
-
}
|
418 |
-
.srr_support a{
|
419 |
-
text-decoration: none;
|
420 |
-
}
|
421 |
-
.srr_support a:hover{
|
422 |
-
text-decoration: underline;
|
423 |
-
}
|
424 |
.srr_smalltext{
|
425 |
font-size: 11px;
|
426 |
color: #666666;
|
427 |
}
|
428 |
.srr_support{
|
429 |
border: 1px solid #DFDFDF;
|
430 |
-
padding:
|
431 |
background: #F9F9F9;
|
432 |
-
text-decoration:none;
|
433 |
margin: 10px -13px;
|
434 |
}
|
435 |
.srr_support a{
|
436 |
text-decoration: none;
|
|
|
437 |
}
|
438 |
.srr_support a:hover{
|
439 |
text-decoration: underline;
|
440 |
}
|
|
|
|
|
|
|
|
|
|
|
441 |
.srr_fblike{
|
442 |
-
background: url('<?php echo SRR_URL; ?>images/like-button.png') no-repeat;
|
443 |
padding-left: 19px;
|
444 |
}
|
445 |
.srr_fblike span{
|
@@ -452,17 +496,21 @@ function srr_widget_scripts(){
|
|
452 |
position:absolute;
|
453 |
background:#ffffff;
|
454 |
border:1px solid #cccccc;
|
455 |
-
-webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
|
456 |
-
-moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
|
457 |
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
|
458 |
-
-moz-border-radius: 5px;
|
459 |
border-radius: 5px;
|
460 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
</style>
|
462 |
|
463 |
<script type="text/javascript">
|
464 |
jQuery(document).ready(function(){
|
465 |
-
var social = '<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Faakashweb&send=false&layout=button_count&width=75&show_faces=true&action=like&colorscheme=light&font&height=21&appId=106994469342299" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:
|
466 |
|
467 |
jQuery('.srr_fblike').live('mouseenter', function(){
|
468 |
if(jQuery('.srr_fblike span').length == 0)
|
3 |
Plugin Name: Super RSS Reader
|
4 |
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 separated 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.5
|
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.5');
|
18 |
define('SRR_AUTHOR', 'Aakash Chakravarthy');
|
19 |
define('SRR_URL', $srr_url);
|
20 |
|
49 |
function srr_rss_parser($instance){
|
50 |
|
51 |
$urls = stripslashes($instance['urls']);
|
52 |
+
$tab_titles = stripslashes($instance['tab_titles']);
|
53 |
$count = intval($instance['count']);
|
54 |
+
|
55 |
$show_date = intval($instance['show_date']);
|
56 |
$show_desc = intval($instance['show_desc']);
|
57 |
$show_author = intval($instance['show_author']);
|
60 |
$strip_desc = intval($instance['strip_desc']);
|
61 |
$strip_title = intval($instance['strip_title']);
|
62 |
$read_more = htmlspecialchars($instance['read_more']);
|
63 |
+
$rich_desc = intval($instance['rich_desc']);
|
64 |
+
|
65 |
$color_style = stripslashes($instance['color_style']);
|
66 |
$enable_ticker = intval($instance['enable_ticker']);
|
67 |
$visible_items = intval($instance['visible_items']);
|
73 |
|
74 |
$rand = array();
|
75 |
$url = explode(',', $urls);
|
76 |
+
$tab_title = explode(',', $tab_titles);
|
77 |
$ucount = count($url);
|
78 |
|
79 |
// Generate the Tabs
|
80 |
if($ucount > 1){
|
81 |
echo '<ul class="srr-tab-wrap srr-tab-style-' . $color_style . ' srr-clearfix">';
|
82 |
+
for( $i=0; $i < $ucount; $i++ ){
|
83 |
// Get the Feed URL
|
84 |
+
$feedUrl = trim( $url[$i] );
|
85 |
+
$rss = fetch_feed( $feedUrl );
|
86 |
$rand[$i] = rand(0, 999);
|
87 |
|
88 |
if (!is_wp_error($rss)){
|
89 |
+
|
90 |
+
if( isset( $tab_title[$i] ) && !empty( $tab_title[$i]) ){
|
91 |
+
$rss_title = $tab_title[$i];
|
92 |
+
}else{
|
93 |
+
$rss_title = esc_attr(strip_tags($rss->get_title()));
|
94 |
+
}
|
95 |
+
|
96 |
echo '<li data-tab="srr-tab-' . $rand[$i] . '">' . $rss_title . '</li>';
|
97 |
}else{
|
98 |
echo '<li data-tab="srr-tab-' . $rand[$i] . '">Error</li>';
|
111 |
return '';
|
112 |
}
|
113 |
|
114 |
+
if( method_exists( $rss, 'enable_order_by_date' ) ){
|
115 |
+
$rss->enable_order_by_date(false);
|
116 |
+
}
|
117 |
+
|
118 |
// Check for feed errors
|
119 |
if (!is_wp_error( $rss ) ){
|
120 |
$maxitems = $rss->get_item_quantity($count);
|
148 |
if ( empty($title) )
|
149 |
$title = __('No Title');
|
150 |
|
151 |
+
if( $strip_title != 0 ){
|
152 |
$titleLen = strlen($title);
|
153 |
$title = wp_html_excerpt( $title, $strip_title );
|
154 |
$title = ($titleLen > $strip_title) ? $title . ' ...' : $title;
|
155 |
}
|
156 |
|
157 |
+
// Open links in new tab
|
158 |
+
$newtab = ($open_newtab) ? ' target="_blank"' : '';
|
159 |
+
|
160 |
// Get the date
|
161 |
$date = $item->get_date('j F Y');
|
162 |
|
169 |
}
|
170 |
|
171 |
// Get the description
|
172 |
+
$desc = '';
|
173 |
+
if( $rich_desc == 1 ){
|
174 |
+
|
175 |
+
$desc = strip_tags( str_replace( 'eval', '', $item->get_description() ) , '<p><a><img><em><strong><font><strike><s><u><i>');
|
176 |
+
|
177 |
+
}else{
|
178 |
+
|
179 |
+
$desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
|
180 |
+
if($strip_desc != 0){
|
181 |
+
$desc = wp_html_excerpt( $desc, $strip_desc );
|
182 |
+
$rmore = (!empty($read_more)) ? '<a href="' . $link . '" title="Read more"' . $newtab . '>' . $read_more . '</a>' : '';
|
183 |
|
184 |
+
if ( '[...]' == substr( $desc, -5 ) )
|
185 |
+
$desc = substr( $desc, 0, -5 );
|
186 |
+
elseif ( '[…]' != substr( $desc, -10 ) )
|
187 |
+
$desc .= '';
|
188 |
+
|
189 |
+
$desc = esc_html( $desc );
|
190 |
+
}
|
191 |
+
|
192 |
+
$desc = $thumb . $desc . ' ' . $rmore;
|
193 |
+
|
194 |
}
|
195 |
+
|
|
|
196 |
// Get the author
|
197 |
$author = $item->get_author();
|
198 |
if ( is_object($author) ) {
|
200 |
$author = esc_html(strip_tags($author));
|
201 |
}
|
202 |
|
|
|
|
|
|
|
203 |
echo "\n\n\t";
|
204 |
|
205 |
// Display the feed items
|
229 |
echo "\n\n</div>
|
230 |
</div> \n\n" ;
|
231 |
|
232 |
+
$rss->__destruct();
|
233 |
+
unset($rss);
|
234 |
+
|
235 |
}
|
236 |
}
|
237 |
|
274 |
$instance = $old_instance;
|
275 |
$instance['title'] = stripslashes($new_instance['title']);
|
276 |
$instance['urls'] = stripslashes($new_instance['urls']);
|
277 |
+
$instance['tab_titles'] = stripslashes($new_instance['tab_titles']);
|
278 |
|
279 |
$instance['count'] = intval($new_instance['count']);
|
280 |
$instance['show_date'] = intval($new_instance['show_date']);
|
285 |
$instance['strip_desc'] = intval($new_instance['strip_desc']);
|
286 |
$instance['strip_title'] = intval($new_instance['strip_title']);
|
287 |
$instance['read_more'] = stripslashes($new_instance['read_more']);
|
288 |
+
$instance['rich_desc'] = stripslashes($new_instance['rich_desc']);
|
289 |
|
290 |
$instance['color_style'] = stripslashes($new_instance['color_style']);
|
291 |
$instance['enable_ticker'] = intval($new_instance['enable_ticker']);
|
300 |
global $srr_color_styles;
|
301 |
|
302 |
$instance = wp_parse_args( (array) $instance, array(
|
303 |
+
'title' => '', 'urls' => '', 'tab_titles' => '',
|
304 |
+
'count' => 5, 'show_date' => 0, 'show_desc' => 1,
|
305 |
+
'show_author' => 0, 'show_thumb' => 1, 'open_newtab' => 1,
|
306 |
+
'strip_desc' => 100, 'read_more' => '[...]', 'rich_desc' => 0 ,
|
307 |
'color_style' => 'none', 'enable_ticker' => 1, 'visible_items' => 5,
|
308 |
+
'strip_title' => 0, 'ticker_speed' => 4,
|
309 |
));
|
310 |
|
311 |
$title = htmlspecialchars($instance['title']);
|
312 |
$urls = htmlspecialchars($instance['urls']);
|
313 |
+
$tab_titles = htmlspecialchars($instance['tab_titles']);
|
314 |
|
315 |
$count = intval($instance['count']);
|
316 |
$show_date = intval($instance['show_date']);
|
321 |
$strip_desc = intval($instance['strip_desc']);
|
322 |
$strip_title = intval($instance['strip_title']);
|
323 |
$read_more = htmlspecialchars($instance['read_more']);
|
324 |
+
$rich_desc = htmlspecialchars($instance['rich_desc']);
|
325 |
|
326 |
$color_style = stripslashes($instance['color_style']);
|
327 |
$enable_ticker = intval($instance['enable_ticker']);
|
341 |
<small class="srr_smalltext">Can enter multiple RSS/atom feed URLs seperated by a comma.</small>
|
342 |
</td>
|
343 |
</tr>
|
344 |
+
|
345 |
+
<tr>
|
346 |
+
<td><label for="<?php echo $this->get_field_id('tab_titles'); ?>">Tab titles: </label></td>
|
347 |
+
<td><input id="<?php echo $this->get_field_id('tab_titles');?>" name="<?php echo $this->get_field_name('tab_titles'); ?>" type="text" value="<?php echo $tab_titles; ?>" class="widefat"/>
|
348 |
+
<small class="srr_smalltext">Enter corresponding tab titles seperated by a comma.</small>
|
349 |
+
</td>
|
350 |
+
</tr>
|
351 |
+
|
352 |
</table>
|
353 |
</div>
|
354 |
|
371 |
<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>
|
372 |
<td><label for="<?php echo $this->get_field_id('show_author'); ?>">Show Author</label></td>
|
373 |
<td><label for="<?php echo $this->get_field_id('read_more'); ?>">Read more text</label></td>
|
374 |
+
<td><input id="<?php echo $this->get_field_id('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>
|
375 |
</tr>
|
376 |
<tr>
|
377 |
<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>
|
385 |
<td> </td>
|
386 |
<td> </td>
|
387 |
</tr>
|
388 |
+
|
389 |
+
<tr>
|
390 |
+
<td height="29"><input id="<?php echo $this->get_field_id('rich_desc'); ?>" type="checkbox" name="<?php echo $this->get_field_name('rich_desc'); ?>" value="1" <?php echo $rich_desc == "1" ? 'checked="checked"' : ""; ?> /></td>
|
391 |
+
<td><label for="<?php echo $this->get_field_id('rich_desc'); ?>">Enable full or rich description</label></td>
|
392 |
+
<td> </td>
|
393 |
+
<td> </td>
|
394 |
+
</tr>
|
395 |
+
|
396 |
</table>
|
397 |
</div>
|
398 |
|
399 |
+
<?php if( $rich_desc == 1 ): ?>
|
400 |
+
<span class="srr_note">Note: You have enabled "Full/Rich HTML" Please make sure that the feed(s) are from trusted sources and do not contain any harmful scripts. If there are some aligment issues in the description, please use custom CSS to fix that. </span>
|
401 |
+
<?php endif; ?>
|
402 |
+
|
403 |
<div class="srr_settings">
|
404 |
<h4>Other settings</h4>
|
405 |
<table width="100%" height="109" border="0">
|
432 |
</table>
|
433 |
</div>
|
434 |
|
435 |
+
<div class="srr_support"> <a href="http://facebook.com/aakashweb" class="srr_fblike" target="_blank">Like</a> <a href="http://bit.ly/srrDonation" target="_blank" class="srr_donatebtn" 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>
|
436 |
<small>Please donate and share this plugin to show your support. Thank you :)</small>
|
437 |
|
438 |
<?php
|
456 |
background-color: #fff;
|
457 |
background-image: -ms-linear-gradient(top,#fff,#f9f9f9);
|
458 |
background-image: -moz-linear-gradient(top,#fff,#f9f9f9);
|
|
|
|
|
459 |
background-image: -webkit-linear-gradient(top,#fff,#f9f9f9);
|
460 |
background-image: linear-gradient(top,#fff,#f9f9f9);
|
461 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
.srr_smalltext{
|
463 |
font-size: 11px;
|
464 |
color: #666666;
|
465 |
}
|
466 |
.srr_support{
|
467 |
border: 1px solid #DFDFDF;
|
468 |
+
padding: 10px 13px;
|
469 |
background: #F9F9F9;
|
470 |
+
text-decoration: none;
|
471 |
margin: 10px -13px;
|
472 |
}
|
473 |
.srr_support a{
|
474 |
text-decoration: none;
|
475 |
+
margin: 0 5px;
|
476 |
}
|
477 |
.srr_support a:hover{
|
478 |
text-decoration: underline;
|
479 |
}
|
480 |
+
.srr_donatebtn{
|
481 |
+
background: url('<?php echo SRR_URL; ?>images/donate.png') left center no-repeat;
|
482 |
+
color: #f60;
|
483 |
+
padding-left: 20px;
|
484 |
+
}
|
485 |
.srr_fblike{
|
486 |
+
background: url('<?php echo SRR_URL; ?>images/like-button.png') left center no-repeat;
|
487 |
padding-left: 19px;
|
488 |
}
|
489 |
.srr_fblike span{
|
496 |
position:absolute;
|
497 |
background:#ffffff;
|
498 |
border:1px solid #cccccc;
|
|
|
|
|
499 |
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
|
|
|
500 |
border-radius: 5px;
|
501 |
}
|
502 |
+
.srr_note{
|
503 |
+
border: 1px solid #FFD893;
|
504 |
+
padding: 5px;
|
505 |
+
background: #FFFEDA;
|
506 |
+
margin: 10px 0 0;
|
507 |
+
display: block;
|
508 |
+
}
|
509 |
</style>
|
510 |
|
511 |
<script type="text/javascript">
|
512 |
jQuery(document).ready(function(){
|
513 |
+
var social = '<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Faakashweb&send=false&layout=button_count&width=75&show_faces=true&action=like&colorscheme=light&font&height=21&appId=106994469342299" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
|
514 |
|
515 |
jQuery('.srr_fblike').live('mouseenter', function(){
|
516 |
if(jQuery('.srr_fblike span').length == 0)
|