Super RSS Reader - Version 4.2

Version Description

Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 Super RSS Reader
Version 4.2
Comparing to
See all releases

Code changes from version 4.1 to 4.2

includes/utilities.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Common utilities for the plugin
4
+ *
5
+ */
6
+
7
+ if( ! defined( 'ABSPATH' ) ) exit;
8
+
9
+ class SRR_Utilities{
10
+
11
+ public static function init(){
12
+
13
+ add_filter( 'the_excerpt_rss', array( __CLASS__, 'insert_featured_image_rss_feed' ) );
14
+ add_filter( 'the_content_feed', array( __CLASS__, 'insert_featured_image_rss_feed' ) );
15
+
16
+ }
17
+
18
+ public static function insert_featured_image_rss_feed( $content ){
19
+
20
+ global $post;
21
+
22
+ preg_match_all( '~<img.*?src=["\']+(.*?)["\']+~', $content, $image_urls );
23
+
24
+ if( empty( $image_urls[1] ) && has_post_thumbnail( $post->ID ) ) {
25
+ $content = '<p>' . get_the_post_thumbnail( $post->ID ) . '</p>' . $content;
26
+ }
27
+
28
+ return $content;
29
+
30
+ }
31
+
32
+ }
33
+
34
+ SRR_Utilities::init();
35
+
36
+ ?>
public/js/jquery.easy-ticker.min.js CHANGED
@@ -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);
1
+ /*jQuery easy ticker v3.2.1 - (c) 2021 Aakash Chakravarthy*/
2
+ !function(r,c){var e="easyTicker",p={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 i(t,e){var l=this;function i(){0==l.timer&&(l.timer=setInterval(function(){o(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 o(t){var e,i,n;if(l.elem.is(":visible")){n="up"==t?(e=":first-child",i="-=","appendTo"):(e=":last-child",i="+=","prependTo");var o=l.targ.children(e),s=o.outerHeight();"function"==typeof l.opts.callbacks.before&&l.opts.callbacks.before.call(l,l.targ,o),l.targ.stop(!0,!0).animate({top:i+s+"px"},l.opts.speed,l.opts.easing,function(){o.hide()[n](l.targ).fadeIn(),l.targ.css("top",0),a(!0),"function"==typeof l.opts.callbacks.after&&l.opts.callbacks.after.call(l,l.targ,o)})}}function s(t){n(),o("up"==t?"up":"down")}function a(t){var e,i,n,o,s;"auto"==l.opts.height&&(0<l.opts.visible?(n=t,o=0,s="et-item-visible",l.targ.children().removeClass(s),l.targ.children(":lt("+l.opts.visible+")").each(function(){o+=r(this).outerHeight(),r(this).addClass(s)}),n?l.elem.stop(!0,!0).animate({height:o},l.opts.speed):l.elem.css("height",o)):(e=0,i=l.elem.css("display"),l.elem.css("display","block"),l.targ.children().each(function(){e+=r(this).outerHeight()}),l.elem.css({display:i,height:e}))),t||clearInterval(l.heightTimer)}return l.opts=r.extend({},p,e),l.elem=r(t),l.targ=r(t).children(":first-child"),l.timer=0,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(){a(!1)},100),i(),function(){var t,e;void 0!==c.hidden?(t="hidden",e="visibilitychange"):void 0!==c.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==c.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange");c.addEventListener(e,function(){(c[t]?n:i)()},!1)}(),l.opts.mousePause&&l.elem.on("mouseenter",function(){l.timerTemp=l.timer,n()}).on("mouseleave",function(){0!==l.timerTemp&&i()}),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?i:n)()}),{up:function(){s("up")},down:function(){s("down")},start:i,stop:n,options:l.opts}}r.fn[e]=function(t){return this.each(function(){r.data(this,e)||r.data(this,e,new i(this,t))})}}(jQuery,(window,document));
readme.txt CHANGED
@@ -7,8 +7,8 @@ License: GPLv2 or later
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
  Requires PHP: 5.3
10
- Tested up to: 5.7
11
- Stable tag: 4.1
12
 
13
  Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
14
 
@@ -126,6 +126,10 @@ The additional effect needs only 2.5 KB of additional JavaScript file which is v
126
 
127
  ## Changelog
128
 
 
 
 
 
129
  ### 4.1
130
  * New: Option to change date format
131
  * New: Date will now be in the same language as the site.
7
  Donate Link: https://www.paypal.me/vaakash
8
  Requires at least: 2.8
9
  Requires PHP: 5.3
10
+ Tested up to: 5.7.1
11
+ Stable tag: 4.2
12
 
13
  Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
14
 
126
 
127
  ## Changelog
128
 
129
+ ### 4.2
130
+ * Fix: Ticker sometimes gets stuck when browser tab is switched or not viewed.
131
+ * New: Featured image is automatically inserted into local RSS feed to show as thumbnail if the post has no image in it.
132
+
133
  ### 4.1
134
  * New: Option to change date format
135
  * New: Date will now be in the same language as the site.
super-rss-reader.php CHANGED
@@ -5,12 +5,12 @@
5
  * Description: Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
6
  * Author: Aakash Chakravarthy
7
  * Author URI: https://www.aakashweb.com/
8
- * Version: 4.1
9
  * Text Domain: super-rss-reader
10
  * Domain Path: /languages
11
  */
12
 
13
- define( 'SRR_VERSION', '4.1' );
14
  define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'SRR_BASE_NAME', plugin_basename( __FILE__ ) );
@@ -27,6 +27,7 @@ final class Super_RSS_Reader{
27
 
28
  public static function includes(){
29
 
 
30
  include_once( SRR_PATH . 'includes/options.php' );
31
  include_once( SRR_PATH . 'includes/feed.php' );
32
  include_once( SRR_PATH . 'includes/widget.php' );
5
  * Description: Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
6
  * Author: Aakash Chakravarthy
7
  * Author URI: https://www.aakashweb.com/
8
+ * Version: 4.2
9
  * Text Domain: super-rss-reader
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'SRR_VERSION', '4.2' );
14
  define( 'SRR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SRR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'SRR_BASE_NAME', plugin_basename( __FILE__ ) );
27
 
28
  public static function includes(){
29
 
30
+ include_once( SRR_PATH . 'includes/utilities.php' );
31
  include_once( SRR_PATH . 'includes/options.php' );
32
  include_once( SRR_PATH . 'includes/feed.php' );
33
  include_once( SRR_PATH . 'includes/widget.php' );