Version Description
- Fix: Settings not being saved.
- New: Updated the ticker library to the latest.
- Fix: Added cache buster to JS and CSS files.
- Fix: Upon tab change, sometimes ticker height gets to 0;
Download this release
Release Info
Developer | vaakash |
Plugin | Super RSS Reader |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
- includes/widget-admin.php +0 -1
- includes/widget.php +3 -3
- public/js/jquery.easy-ticker.min.js +2 -2
- public/js/script.js +10 -1
- public/js/script.min.js +2 -5
- readme.txt +8 -2
- super-rss-reader.php +2 -2
includes/widget-admin.php
CHANGED
@@ -47,7 +47,6 @@ class super_rss_reader_widget extends WP_Widget{
|
|
47 |
public function update( $new_instance, $old_instance ){
|
48 |
|
49 |
$instance = $old_instance;
|
50 |
-
$new_instance = wp_parse_args( $new_instance, SRR_Widget::default_settings() );
|
51 |
|
52 |
$instance[ 'title' ] = stripslashes( $new_instance['title'] );
|
53 |
$instance[ 'urls' ] = stripslashes( $new_instance['urls']) ;
|
47 |
public function update( $new_instance, $old_instance ){
|
48 |
|
49 |
$instance = $old_instance;
|
|
|
50 |
|
51 |
$instance[ 'title' ] = stripslashes( $new_instance['title'] );
|
52 |
$instance[ 'urls' ] = stripslashes( $new_instance['urls']) ;
|
includes/widget.php
CHANGED
@@ -26,9 +26,9 @@ class SRR_Widget{
|
|
26 |
|
27 |
public static function public_scripts(){
|
28 |
|
29 |
-
wp_enqueue_script( 'jquery-easy-ticker-js', SRR_URL . 'public/js/jquery.easy-ticker.min.js', array( 'jquery', 'super-rss-reader-js' ) );
|
30 |
-
wp_enqueue_script( 'super-rss-reader-js', SRR_URL . 'public/js/script.min.js', array( 'jquery' ) );
|
31 |
-
wp_enqueue_style( 'super-rss-reader-css', SRR_URL . 'public/css/style.min.css' );
|
32 |
|
33 |
}
|
34 |
|
26 |
|
27 |
public static function public_scripts(){
|
28 |
|
29 |
+
wp_enqueue_script( 'jquery-easy-ticker-js', SRR_URL . 'public/js/jquery.easy-ticker.min.js', array( 'jquery', 'super-rss-reader-js' ), SRR_VERSION );
|
30 |
+
wp_enqueue_script( 'super-rss-reader-js', SRR_URL . 'public/js/script.min.js', array( 'jquery' ), SRR_VERSION );
|
31 |
+
wp_enqueue_style( 'super-rss-reader-css', SRR_URL . 'public/css/style.min.css', array(), SRR_VERSION );
|
32 |
|
33 |
}
|
34 |
|
public/js/jquery.easy-ticker.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
/*
|
2 |
-
|
1 |
+
/*jQuery easy ticker v3.1.0 - (c) 2020 Aakash Chakravarthy*/
|
2 |
+
!function(r,a,p){var e="easyTicker",u={direction:"up",easing:"swing",speed:"slow",interval:2e3,height:"auto",visible:0,mousePause:!0,controls:{up:"",down:"",toggle:"",playText:"Play",stopText:"Stop"},callbacks:{before:!1,after:!1}};function o(t,e){var l=this;function o(){l.timer=setInterval(function(){1==l.winFocus&&i(l.opts.direction)},l.opts.interval),r(l.opts.controls.toggle).addClass("et-run").html(l.opts.controls.stopText)}function n(){clearInterval(l.timer),l.timer=0,r(l.opts.controls.toggle).removeClass("et-run").html(l.opts.controls.playText)}function i(t){var e,o,n;if(l.elem.is(":visible")){n="up"==t?(e=":first-child",o="-=","appendTo"):(e=":last-child",o="+=","prependTo");var i=l.targ.children(e),s=i.outerHeight();"function"==typeof l.opts.callbacks.before&&l.opts.callbacks.before.call(l,l.targ,i),l.targ.stop(!0,!0).animate({top:o+s+"px"},l.opts.speed,l.opts.easing,function(){i.hide()[n](l.targ).fadeIn(),l.targ.css("top",0),c(!0),"function"==typeof l.opts.callbacks.after&&l.opts.callbacks.after.call(l,l.targ,i)})}}function s(t){n(),i("up"==t?"up":"down")}function c(t){var e,o,n,i,s;"auto"==l.opts.height&&(0<l.opts.visible?(n=t,i=0,s="et-item-visible",l.targ.children().removeClass(s),l.targ.children(":lt("+l.opts.visible+")").each(function(){i+=r(this).outerHeight(),r(this).addClass(s)}),n?l.elem.stop(!0,!0).animate({height:i},l.opts.speed):l.elem.css("height",i)):(e=0,o=l.elem.css("display"),l.elem.css("display","block"),l.targ.children().each(function(){e+=r(this).outerHeight()}),l.elem.css({display:o,height:e}))),t||clearInterval(l.heightTimer)}return l.opts=r.extend({},u,e),l.elem=r(t),l.targ=r(t).children(":first-child"),l.timer=0,l.winFocus=1,l.elem.children().css("margin",0).children().css("margin",0),l.elem.css({position:"relative",height:l.opts.height,overflow:"hidden"}),l.targ.css({position:"absolute",margin:0}),l.heightTimer=setInterval(function(){c(!1)},100),o(),r([a,p]).off("focus").on("focus",function(){l.winFocus=1}).off("blur").on("blur",function(){l.winFocus=0}),l.opts.mousePause&&l.elem.mouseenter(function(){l.timerTemp=l.timer,n()}).mouseleave(function(){0!==l.timerTemp&&o()}),r(l.opts.controls.up).on("click",function(t){t.preventDefault(),s("up")}),r(l.opts.controls.down).on("click",function(t){t.preventDefault(),s("down")}),r(l.opts.controls.toggle).on("click",function(t){t.preventDefault(),(0==l.timer?o:n)()}),{up:function(){s("up")},down:function(){s("down")},start:o,stop:n,options:l.opts}}r.fn[e]=function(t){return this.each(function(){r.data(this,e)||r.data(this,e,new o(this,t))})}}(jQuery,window,document);
|
public/js/script.js
CHANGED
@@ -20,7 +20,16 @@ $(document).ready(function(){
|
|
20 |
$(this).addClass('srr-active-tab');
|
21 |
|
22 |
parent.find('.srr-wrap').hide();
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
});
|
25 |
|
26 |
// Add the ticker to the required elements
|
20 |
$(this).addClass('srr-active-tab');
|
21 |
|
22 |
parent.find('.srr-wrap').hide();
|
23 |
+
|
24 |
+
$srrTicker = parent.find('.srr-wrap[data-id=' + id + ']');
|
25 |
+
$srrTicker.show();
|
26 |
+
|
27 |
+
if($srrTicker.height() == 0){
|
28 |
+
var visibleItems = $srrTicker.data('visible');
|
29 |
+
var tempHeight = $srrTicker.find('.srr-item:first-child').outerHeight() * visibleItems;
|
30 |
+
$srrTicker.height(tempHeight);
|
31 |
+
}
|
32 |
+
|
33 |
});
|
34 |
|
35 |
// Add the ticker to the required elements
|
public/js/script.min.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
/*
|
2 |
-
* Super RSS Reader - v1.
|
3 |
* Included with "Super RSS Reader" Wordpress plugin @since v2.0
|
4 |
* Author: Aakash Chakravarthy, www.aakashweb.com
|
5 |
*/
|
6 |
-
!function(r){r(document).ready(function(){var
|
7 |
-
a.find(".srr-wrap").hide(),a.find(".srr-wrap:first").show(),a.find(".srr-tab-wrap li:first").addClass("srr-active-tab"),r(".srr-tab-wrap li").click(function(){var a=r(this).attr("data-tab"),t=r(this).parent().parent()
|
8 |
-
r(this).parent().children("li").removeClass("srr-active-tab"),r(this).addClass("srr-active-tab"),t.find(".srr-wrap").hide(),t.find(".srr-wrap[data-id="+a+"]").show()}),r(".srr-vticker").each(function(){var a=r(this).attr("data-visible"),t=r(this).attr("data-speed"),i=parseInt(a)<=20?"auto":a
|
9 |
-
r(this).easyTicker({visible:a,height:i,interval:t})})})}(jQuery)
|
1 |
/*
|
2 |
+
* Super RSS Reader - v1.3
|
3 |
* Included with "Super RSS Reader" Wordpress plugin @since v2.0
|
4 |
* Author: Aakash Chakravarthy, www.aakashweb.com
|
5 |
*/
|
6 |
+
!function(r){r(document).ready(function(){var i=r(".super-rss-reader-widget");i.find(".srr-wrap").hide(),i.find(".srr-wrap:first").show(),i.find(".srr-tab-wrap li:first").addClass("srr-active-tab"),r(".srr-tab-wrap li").click(function(){var i=r(this).attr("data-tab"),t=r(this).parent().parent();if(r(this).parent().children("li").removeClass("srr-active-tab"),r(this).addClass("srr-active-tab"),t.find(".srr-wrap").hide(),$srrTicker=t.find(".srr-wrap[data-id="+i+"]"),$srrTicker.show(),0==$srrTicker.height()){var a=$srrTicker.data("visible"),s=$srrTicker.find(".srr-item:first-child").outerHeight()*a;$srrTicker.height(s)}}),r(".srr-vticker").each(function(){var i=r(this).attr("data-visible"),t=r(this).attr("data-speed"),a=parseInt(i)<=20?"auto":i;r(this).easyTicker({visible:i,height:a,interval:t})})})}(jQuery);
|
|
|
|
|
|
readme.txt
CHANGED
@@ -8,7 +8,7 @@ Donate Link: https://www.paypal.me/vaakash
|
|
8 |
Requires at least: 2.8
|
9 |
Requires PHP: 5.3
|
10 |
Tested up to: 5.4
|
11 |
-
Stable tag: 3.
|
12 |
|
13 |
A plugin to display RSS feed(s) in widget with news ticker effect in multiple tabbed feeds, thumbnails, customizable color themes and more.
|
14 |
|
@@ -84,7 +84,7 @@ By default the plugin shows fields like title, author, description, thumbnail. O
|
|
84 |
|
85 |
= How big is the ticker library ? =
|
86 |
|
87 |
-
The size of the ticker library is only 2.
|
88 |
|
89 |
== Screenshots ==
|
90 |
|
@@ -97,6 +97,12 @@ The size of the ticker library is only 2.74 KB.
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 3.0 =
|
101 |
* New: Plugin code is refactored.
|
102 |
* New: Options are reorganized for easy configuration.
|
8 |
Requires at least: 2.8
|
9 |
Requires PHP: 5.3
|
10 |
Tested up to: 5.4
|
11 |
+
Stable tag: 3.1
|
12 |
|
13 |
A plugin to display RSS feed(s) in widget with news ticker effect in multiple tabbed feeds, thumbnails, customizable color themes and more.
|
14 |
|
84 |
|
85 |
= How big is the ticker library ? =
|
86 |
|
87 |
+
The size of the ticker library is only 2.5 KB.
|
88 |
|
89 |
== Screenshots ==
|
90 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 3.1 =
|
101 |
+
* Fix: Settings not being saved.
|
102 |
+
* New: Updated the ticker library to the latest.
|
103 |
+
* Fix: Added cache buster to JS and CSS files.
|
104 |
+
* Fix: Upon tab change, sometimes ticker height gets to 0;
|
105 |
+
|
106 |
= 3.0 =
|
107 |
* New: Plugin code is refactored.
|
108 |
* New: Options are reorganized for easy configuration.
|
super-rss-reader.php
CHANGED
@@ -6,12 +6,12 @@
|
|
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.
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com/
|
9 |
-
* Version: 3.
|
10 |
* Text Domain: super-rss-reader
|
11 |
* Domain Path: /languages
|
12 |
*/
|
13 |
|
14 |
-
define( 'SRR_VERSION', '3.
|
15 |
define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
16 |
define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
|
17 |
|
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.
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com/
|
9 |
+
* Version: 3.1
|
10 |
* Text Domain: super-rss-reader
|
11 |
* Domain Path: /languages
|
12 |
*/
|
13 |
|
14 |
+
define( 'SRR_VERSION', '3.1' );
|
15 |
define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
16 |
define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
|
17 |
|