Version Description
- Added shortcode option to reverse the tick order for rotating tickers. Use reverse="1".
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 2.1.14 |
Comparing to | |
See all releases |
Code changes from version 2.1.13 to 2.1.14
- ditty-news-ticker.php +2 -2
- includes/functions.php +6 -1
- readme.txt +4 -1
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.
|
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.
|
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.14
|
9 |
Author: Metaphor Creations
|
10 |
Author URI: http://www.metaphorcreations.com
|
11 |
Contributors: metaphorcreations
|
31 |
|
32 |
|
33 |
|
34 |
+
define( 'MTPHR_DNT_VERSION', '2.1.14' );
|
35 |
define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
|
36 |
define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
|
37 |
|
includes/functions.php
CHANGED
@@ -231,7 +231,7 @@ function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
|
|
231 |
|
232 |
|
233 |
/* --------------------------------------------------------- */
|
234 |
-
/* !Render the rotate ticker - 2.
|
235 |
/* --------------------------------------------------------- */
|
236 |
|
237 |
function render_mtphr_dnt_rotate_ticker( $id='', $class='', $meta_data=false ) {
|
@@ -257,6 +257,11 @@ function render_mtphr_dnt_rotate_ticker( $id='', $class='', $meta_data=false ) {
|
|
257 |
// Transform the tick array
|
258 |
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
|
259 |
|
|
|
|
|
|
|
|
|
|
|
260 |
// Randomize the ticks
|
261 |
if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
|
262 |
shuffle( $dnt_ticks );
|
231 |
|
232 |
|
233 |
/* --------------------------------------------------------- */
|
234 |
+
/* !Render the rotate ticker - 2.1.14 */
|
235 |
/* --------------------------------------------------------- */
|
236 |
|
237 |
function render_mtphr_dnt_rotate_ticker( $id='', $class='', $meta_data=false ) {
|
257 |
// Transform the tick array
|
258 |
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
|
259 |
|
260 |
+
// Reverse the ticker
|
261 |
+
if( isset($_mtphr_dnt_reverse) && $_mtphr_dnt_reverse ) {
|
262 |
+
$dnt_ticks = array_reverse( $dnt_ticks );
|
263 |
+
}
|
264 |
+
|
265 |
// Randomize the ticks
|
266 |
if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
|
267 |
shuffle( $dnt_ticks );
|
readme.txt
CHANGED
@@ -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.13 =
|
76 |
* Added shortcode option to reverse the tick order. Use reverse="1".
|
77 |
|
@@ -445,4 +448,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
|
|
445 |
|
446 |
== Upgrade Notice ==
|
447 |
|
448 |
-
Added shortcode option to reverse the tick order. Use reverse="1".
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.1.14 =
|
76 |
+
* Added shortcode option to reverse the tick order for rotating tickers. Use reverse="1".
|
77 |
+
|
78 |
= 2.1.13 =
|
79 |
* Added shortcode option to reverse the tick order. Use reverse="1".
|
80 |
|
448 |
|
449 |
== Upgrade Notice ==
|
450 |
|
451 |
+
Added shortcode option to reverse the tick order for rotating tickers. Use reverse="1".
|