Version Description
Download this release
Release Info
Developer | vaakash |
Plugin | Super RSS Reader |
Version | 4.5 |
Comparing to | |
See all releases |
Code changes from version 4.4.1 to 4.5
- Thumbs.db +0 -0
- admin/css/style-widget.css +9 -7
- includes/feed.php +12 -1
- includes/widget-admin.php +7 -5
- readme.txt +7 -2
- super-rss-reader.php +2 -2
Thumbs.db
ADDED
Binary file
|
admin/css/style-widget.css
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
padding: 10px 0;
|
19 |
}
|
20 |
.srr_label{
|
21 |
-
width:
|
22 |
padding-right: 15px;
|
23 |
box-sizing: border-box;
|
24 |
}
|
@@ -40,7 +40,8 @@
|
|
40 |
border-top: 1px solid #dfdfdf;
|
41 |
}
|
42 |
.srr_tab_list li{
|
43 |
-
margin: 0;
|
|
|
44 |
}
|
45 |
.srr_tab_list a{
|
46 |
padding: 10px 15px;
|
@@ -119,10 +120,10 @@
|
|
119 |
}
|
120 |
.srr_info{
|
121 |
border: 1px solid #dfdfdf;
|
122 |
-
margin: 15px
|
123 |
padding: 10px 15px;
|
124 |
background: #fafafa;
|
125 |
-
border-
|
126 |
}
|
127 |
.srr_info p{
|
128 |
margin: 0;
|
@@ -135,12 +136,12 @@
|
|
135 |
}
|
136 |
|
137 |
.srr_pro {
|
138 |
-
border: 1px solid #
|
139 |
-
margin:
|
140 |
padding: 10px 15px;
|
141 |
background: #fffdf0;
|
142 |
-
border-width: 1px 0 2px 0;
|
143 |
color: #011936;
|
|
|
144 |
}
|
145 |
.srr_pro_label {
|
146 |
background: gold;
|
@@ -188,6 +189,7 @@
|
|
188 |
margin: 0 0 15px 20px;
|
189 |
position: relative;
|
190 |
font-weight: bold;
|
|
|
191 |
}
|
192 |
.srr_pro_features li:before{
|
193 |
font-family: Dashicons;
|
18 |
padding: 10px 0;
|
19 |
}
|
20 |
.srr_label{
|
21 |
+
width: 50%;
|
22 |
padding-right: 15px;
|
23 |
box-sizing: border-box;
|
24 |
}
|
40 |
border-top: 1px solid #dfdfdf;
|
41 |
}
|
42 |
.srr_tab_list li{
|
43 |
+
margin: 0 !important;
|
44 |
+
list-style: none;
|
45 |
}
|
46 |
.srr_tab_list a{
|
47 |
padding: 10px 15px;
|
120 |
}
|
121 |
.srr_info{
|
122 |
border: 1px solid #dfdfdf;
|
123 |
+
margin: 0 0 15px 0;
|
124 |
padding: 10px 15px;
|
125 |
background: #fafafa;
|
126 |
+
border-radius: 5px;
|
127 |
}
|
128 |
.srr_info p{
|
129 |
margin: 0;
|
136 |
}
|
137 |
|
138 |
.srr_pro {
|
139 |
+
border: 1px solid #ffd700;
|
140 |
+
margin: 15px 0 10px 0;
|
141 |
padding: 10px 15px;
|
142 |
background: #fffdf0;
|
|
|
143 |
color: #011936;
|
144 |
+
border-radius: 5px;
|
145 |
}
|
146 |
.srr_pro_label {
|
147 |
background: gold;
|
189 |
margin: 0 0 15px 20px;
|
190 |
position: relative;
|
191 |
font-weight: bold;
|
192 |
+
list-style: none;
|
193 |
}
|
194 |
.srr_pro_features li:before{
|
195 |
font-family: Dashicons;
|
includes/feed.php
CHANGED
@@ -159,9 +159,20 @@ class SRR_Feed{
|
|
159 |
$no_follow = $add_nofollow ? ' rel="nofollow noopener noreferrer"' : '';
|
160 |
|
161 |
// Date
|
162 |
-
$date =
|
163 |
$date_full = esc_attr( $item->get_date() );
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
// Thumbnail
|
166 |
$thumb = '';
|
167 |
if ( $show_thumb == 1 ){
|
159 |
$no_follow = $add_nofollow ? ' rel="nofollow noopener noreferrer"' : '';
|
160 |
|
161 |
// Date
|
162 |
+
$date = '';
|
163 |
$date_full = esc_attr( $item->get_date() );
|
164 |
|
165 |
+
if( strtolower( $date_format ) == 'relative' ){
|
166 |
+
$item_date = $item->get_date( 'U' );
|
167 |
+
if( $item_date ){
|
168 |
+
$date = human_time_diff( $item_date, current_time( 'U' ) ) . ' ' . __( 'ago' );
|
169 |
+
}else{
|
170 |
+
$date = __( 'Today' );
|
171 |
+
}
|
172 |
+
}else{
|
173 |
+
$date = date_i18n( $date_format, $item->get_date( 'U' ) );
|
174 |
+
}
|
175 |
+
|
176 |
// Thumbnail
|
177 |
$thumb = '';
|
178 |
if ( $show_thumb == 1 ){
|
includes/widget-admin.php
CHANGED
@@ -188,11 +188,6 @@ class super_rss_reader_widget extends WP_Widget{
|
|
188 |
<div class="srr_field"><input id="<?php echo $this->get_field_id('strip_title');?>" name="<?php echo $this->get_field_name('strip_title'); ?>" type="number" value="<?php echo $strip_title; ?>" class="widefat" /></div>
|
189 |
</div>
|
190 |
|
191 |
-
<div class="srr_row">
|
192 |
-
<div class="srr_label"><label for="<?php echo $this->get_field_id('date_format'); ?>"><?php _e( 'Date format', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'The format of the feed item date.', 'super-rss-reader' ) ); ?></div>
|
193 |
-
<div class="srr_field"><input id="<?php echo $this->get_field_id('date_format'); ?>" name="<?php echo $this->get_field_name('date_format'); ?>" type="text" value="<?php echo $date_format; ?>" class="widefat" /><div><a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank"><?php _e( 'Refer format codes here', 'super-rss-reader' ); ?></a></div></div>
|
194 |
-
</div>
|
195 |
-
|
196 |
<div class="srr_row">
|
197 |
<div class="srr_label"><label for="<?php echo $this->get_field_id('order_by');?>"><?php _e( 'Order feed items by', 'super-rss-reader' ); ?></label></div>
|
198 |
<div class="srr_field">
|
@@ -206,6 +201,13 @@ class super_rss_reader_widget extends WP_Widget{
|
|
206 |
</div>
|
207 |
</div>
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
<h4><?php _e( 'Description', 'super-rss-reader' ); ?></h4>
|
210 |
|
211 |
<div class="srr_row">
|
188 |
<div class="srr_field"><input id="<?php echo $this->get_field_id('strip_title');?>" name="<?php echo $this->get_field_name('strip_title'); ?>" type="number" value="<?php echo $strip_title; ?>" class="widefat" /></div>
|
189 |
</div>
|
190 |
|
|
|
|
|
|
|
|
|
|
|
191 |
<div class="srr_row">
|
192 |
<div class="srr_label"><label for="<?php echo $this->get_field_id('order_by');?>"><?php _e( 'Order feed items by', 'super-rss-reader' ); ?></label></div>
|
193 |
<div class="srr_field">
|
201 |
</div>
|
202 |
</div>
|
203 |
|
204 |
+
<div class="srr_row">
|
205 |
+
<div class="srr_label"><label for="<?php echo $this->get_field_id('date_format'); ?>"><?php _e( 'Date format', 'super-rss-reader' ); ?></label><?php $this->tt( __( 'The format of the feed item date.', 'super-rss-reader' ) ); ?></div>
|
206 |
+
<div class="srr_field"><input id="<?php echo $this->get_field_id('date_format'); ?>" name="<?php echo $this->get_field_name('date_format'); ?>" type="text" value="<?php echo $date_format; ?>" class="widefat" />
|
207 |
+
<small class="srr_small_text"><a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank"><?php _e( 'Refer format codes here', 'super-rss-reader' ); ?>.</a> <?php _e( 'Default: ', 'super-rss-reader' ); ?> <code>j F Y</code> <?php _e( 'or Type <code>relative</code> for relative format (example 2 days ago)', 'super-rss-reader' ); ?></small>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
|
211 |
<h4><?php _e( 'Description', 'super-rss-reader' ); ?></h4>
|
212 |
|
213 |
<div class="srr_row">
|
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.
|
11 |
-
Stable tag: 4.
|
12 |
|
13 |
Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
|
14 |
|
@@ -28,6 +28,7 @@ The widget is fully customizable with external styles and also has color themes
|
|
28 |
* **Color themes** - Options of multiple color themes out of the box. Customizable via CSS.
|
29 |
* Different **thumbnail positions** (align left, right and cover)
|
30 |
* Customizable ticker speed.
|
|
|
31 |
* Supports RSS and atom feed.
|
32 |
* Trim title and description text of the feed item.
|
33 |
* **Order** feed items by date or random.
|
@@ -128,6 +129,10 @@ The additional effect needs only 2.5 KB of additional JavaScript file which is v
|
|
128 |
|
129 |
## Changelog
|
130 |
|
|
|
|
|
|
|
|
|
131 |
### 4.4.1
|
132 |
* Fix: All feed items were displayed when "Order by" is selected as "default"
|
133 |
|
7 |
Donate Link: https://www.paypal.me/vaakash
|
8 |
Requires at least: 2.8
|
9 |
Requires PHP: 5.3
|
10 |
+
Tested up to: 5.9.3
|
11 |
+
Stable tag: 4.5
|
12 |
|
13 |
Display any RSS feed(s) in widget with news ticker effect in multiple tabs, thumbnails, customizable color themes and more.
|
14 |
|
28 |
* **Color themes** - Options of multiple color themes out of the box. Customizable via CSS.
|
29 |
* Different **thumbnail positions** (align left, right and cover)
|
30 |
* Customizable ticker speed.
|
31 |
+
* Different **date formats** for feed item (absolute and relative)
|
32 |
* Supports RSS and atom feed.
|
33 |
* Trim title and description text of the feed item.
|
34 |
* **Order** feed items by date or random.
|
129 |
|
130 |
## Changelog
|
131 |
|
132 |
+
### 4.5
|
133 |
+
* New: Display feed item date in relative format.
|
134 |
+
* Fix: Minor enhancements to widget admin UI.
|
135 |
+
|
136 |
### 4.4.1
|
137 |
* Fix: All feed items were displayed when "Order by" is selected as "default"
|
138 |
|
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.
|
9 |
* Text Domain: super-rss-reader
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define( 'SRR_VERSION', '4.
|
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__ ) );
|
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.5
|
9 |
* Text Domain: super-rss-reader
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define( 'SRR_VERSION', '4.5' );
|
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__ ) );
|