Super RSS Reader - Version 3.1

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 Icon 128x128 Super RSS Reader
Version 3.1
Comparing to
See all releases

Code changes from version 3.0 to 3.1

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
- /* jQuery - Easy Ticker - Plugin v2.0 www.aakashweb.com (c) 2014 Aakash Chakravarthy MIT License. */
2
- ;(function($,h,i,j){var k="easyTicker",defaults={direction:'up',easing:'swing',speed:'slow',interval:2000,height:'auto',visible:0,mousePause:1,controls:{up:'',down:'',toggle:'',playText:'Play',stopText:'Stop'}};function EasyTicker(f,g){var s=this;s.opts=$.extend({},defaults,g);s.elem=$(f);s.targ=$(f).children(':first-child');s.timer=0;s.mHover=0;s.winFocus=1;init();start();$([h,i]).off('focus.jqet').on('focus.jqet',function(){s.winFocus=1}).off('blur.jqet').on('blur.jqet',function(){s.winFocus=0});if(s.opts.mousePause==1){s.elem.mouseenter(function(){s.timerTemp=s.timer;stop()}).mouseleave(function(){if(s.timerTemp!==0)start()})}$(s.opts.controls.up).on('click',function(e){e.preventDefault();moveDir('up')});$(s.opts.controls.down).on('click',function(e){e.preventDefault();moveDir('down')});$(s.opts.controls.toggle).on('click',function(e){e.preventDefault();if(s.timer==0)start();else stop()});function init(){s.elem.children().css('margin',0).children().css('margin',0);s.elem.css({position:'relative',height:s.opts.height,overflow:'hidden'});s.targ.css({'position':'absolute','margin':0});setInterval(function(){adjHeight()},100)}function start(){s.timer=setInterval(function(){if(s.winFocus==1){move(s.opts.direction)}},s.opts.interval);$(s.opts.controls.toggle).addClass('et-run').html(s.opts.controls.stopText)}function stop(){clearInterval(s.timer);s.timer=0;$(s.opts.controls.toggle).removeClass('et-run').html(s.opts.controls.playText)}function move(a){var b,eq,appType;if(!s.elem.is(':visible'))return;if(a=='up'){b=':first-child';eq='-=';appType='appendTo'}else{b=':last-child';eq='+=';appType='prependTo'}var c=s.targ.children(b);var d=c.outerHeight();s.targ.stop(true,true).animate({'top':eq+d+"px"},s.opts.speed,s.opts.easing,function(){c.hide()[appType](s.targ).fadeIn();s.targ.css('top',0);adjHeight()})}function moveDir(a){stop();if(a=='up')move('up');else move('down')}function fullHeight(){var a=0;var b=s.elem.css('display');s.elem.css('display','block');s.targ.children().each(function(){a+=$(this).outerHeight()});s.elem.css({'display':b,'height':a})}function visHeight(a){var b=0;s.targ.children(':lt('+s.opts.visible+')').each(function(){b+=$(this).outerHeight()});if(a==1){s.elem.stop(true,true).animate({height:b},s.opts.speed)}else{s.elem.css('height',b)}}function adjHeight(){if(s.opts.height=='auto'&&s.opts.visible!=0){anim=arguments.callee.caller.name=='init'?0:1;visHeight(anim)}else if(s.opts.height=='auto'){fullHeight()}}return{up:function(){moveDir('up')},down:function(){moveDir('down')},start:start,stop:stop,options:s.opts}}$.fn[k]=function(a){return this.each(function(){if(!$.data(this,k)){$.data(this,k,new EasyTicker(this,a))}})}})(jQuery,window,document);
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
- parent.find('.srr-wrap[data-id=' + id + ']').show();
 
 
 
 
 
 
 
 
 
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.2
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 a=r(".super-rss-reader-widget")
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.0
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.74 KB.
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.0
10
  * Text Domain: super-rss-reader
11
  * Domain Path: /languages
12
  */
13
 
14
- define( 'SRR_VERSION', '3.0' );
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