Ditty News Ticker - Version 2.1.13

Version Description

  • Added shortcode option to reverse the tick order. Use reverse="1".
Download this release

Release Info

Developer metaphorcreations
Plugin Icon 128x128 Ditty News Ticker
Version 2.1.13
Comparing to
See all releases

Code changes from version 2.1.12 to 2.1.13

Files changed (3) hide show
  1. ditty-news-ticker.php +2 -2
  2. includes/functions.php +6 -1
  3. readme.txt +5 -2
ditty-news-ticker.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
- Version: 2.1.12
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
 
32
 
33
 
34
- define( 'MTPHR_DNT_VERSION', '2.1.12' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
 
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
+ Version: 2.1.13
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
31
 
32
 
33
 
34
+ define( 'MTPHR_DNT_VERSION', '2.1.13' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
 
includes/functions.php CHANGED
@@ -80,7 +80,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
80
  /**
81
  * Render the ticker
82
  *
83
- * @since 2.1.10
84
  */
85
  function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
86
 
@@ -177,6 +177,11 @@ function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
177
  $offset = ($page-1) * $_mtphr_dnt_list_tick_count;
178
  $dnt_ticks = array_slice( $dnt_ticks, $offset, $_mtphr_dnt_list_tick_count );
179
  }
 
 
 
 
 
180
 
181
  // Randomize the ticks
182
  if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
80
  /**
81
  * Render the ticker
82
  *
83
+ * @since 2.1.13
84
  */
85
  function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
86
 
177
  $offset = ($page-1) * $_mtphr_dnt_list_tick_count;
178
  $dnt_ticks = array_slice( $dnt_ticks, $offset, $_mtphr_dnt_list_tick_count );
179
  }
180
+
181
+ // Reverse the ticker
182
+ if( isset($_mtphr_dnt_reverse) && $_mtphr_dnt_reverse ) {
183
+ $dnt_ticks = array_reverse( $dnt_ticks );
184
+ }
185
 
186
  // Randomize the ticks
187
  if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.5
6
- Tested up to: 4.9.2
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
@@ -72,6 +72,9 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.1.12 =
76
  * Resolved bug from last update
77
 
@@ -442,4 +445,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
442
 
443
  == Upgrade Notice ==
444
 
445
- Resolved bug from last update
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.5
6
+ Tested up to: 4.9.4
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
72
 
73
  == Changelog ==
74
 
75
+ = 2.1.13 =
76
+ * Added shortcode option to reverse the tick order. Use reverse="1".
77
+
78
  = 2.1.12 =
79
  * Resolved bug from last update
80
 
445
 
446
  == Upgrade Notice ==
447
 
448
+ Added shortcode option to reverse the tick order. Use reverse="1".