Version Description
- Minor javascript update for scrolling tickers.
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 2.1.16 |
Comparing to | |
See all releases |
Code changes from version 2.1.15 to 2.1.16
- assets/js/ditty-news-ticker.js +37 -34
- ditty-news-ticker.php +2 -2
- includes/scripts.php +6 -6
- readme.txt +4 -1
assets/js/ditty-news-ticker.js
CHANGED
@@ -450,42 +450,45 @@
|
|
450 |
function mtphr_dnt_scroll_reset_ticks() {
|
451 |
|
452 |
for( var i=0; i<vars.tick_count; i++ ) {
|
|
|
|
|
|
|
|
|
453 |
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
$tick.
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
|
|
|
|
|
|
|
|
|
|
482 |
}
|
483 |
-
|
484 |
-
ticks[i][0].width = $tick.width();
|
485 |
-
ticks[i][0].height = $tick.height();
|
486 |
-
ticks[i][0].position = position;
|
487 |
-
ticks[i][0].reset = position;
|
488 |
-
ticks[i][0].visible = false;
|
489 |
}
|
490 |
|
491 |
// Reset the current tick
|
450 |
function mtphr_dnt_scroll_reset_ticks() {
|
451 |
|
452 |
for( var i=0; i<vars.tick_count; i++ ) {
|
453 |
+
|
454 |
+
if( ticks[i] ) {
|
455 |
+
|
456 |
+
var $tick = ticks[i][0].headline;
|
457 |
|
458 |
+
switch( settings.scroll_direction ) {
|
459 |
+
case 'left':
|
460 |
+
position = ticker_width+settings.offset;
|
461 |
+
$tick.stop(true,true).css('left',position+'px');
|
462 |
+
break;
|
463 |
+
|
464 |
+
case 'right':
|
465 |
+
position = parseInt('-'+($tick.width()+settings.offset));
|
466 |
+
$tick.stop(true,true).css('left',position+'px');
|
467 |
+
break;
|
468 |
+
|
469 |
+
case 'up':
|
470 |
+
if( ticker_scroll_resize ) {
|
471 |
+
$tick.css('width',ticker_width);
|
472 |
+
}
|
473 |
+
position = parseInt(ticker_height+settings.offset);
|
474 |
+
$tick.stop(true,true).css('top',position+'px');
|
475 |
+
break;
|
476 |
+
|
477 |
+
case 'down':
|
478 |
+
if( ticker_scroll_resize ) {
|
479 |
+
$tick.css('width',ticker_width);
|
480 |
+
}
|
481 |
+
position = parseInt('-'+($tick.height()+settings.offset));
|
482 |
+
$tick.stop(true,true).css('top',position+'px');
|
483 |
+
break;
|
484 |
+
}
|
485 |
+
|
486 |
+
ticks[i][0].width = $tick.width();
|
487 |
+
ticks[i][0].height = $tick.height();
|
488 |
+
ticks[i][0].position = position;
|
489 |
+
ticks[i][0].reset = position;
|
490 |
+
ticks[i][0].visible = false;
|
491 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
}
|
493 |
|
494 |
// Reset the current tick
|
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.16
|
9 |
Author: Metaphor Creations
|
10 |
Author URI: http://www.metaphorcreations.com
|
11 |
Contributors: metaphorcreations
|
31 |
|
32 |
|
33 |
|
34 |
+
define( 'MTPHR_DNT_VERSION', '2.1.16' );
|
35 |
define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
|
36 |
define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
|
37 |
|
includes/scripts.php
CHANGED
@@ -7,20 +7,20 @@
|
|
7 |
function mtphr_dnt_scripts() {
|
8 |
|
9 |
// Load the icon font css
|
10 |
-
wp_register_style( 'ditty-news-ticker-font', plugins_url('ditty-news-ticker/assets/fontastic/styles.css'), false,
|
11 |
wp_enqueue_style( 'ditty-news-ticker-font' );
|
12 |
|
13 |
// Register touchSwipe
|
14 |
-
wp_register_script( 'touchSwipe', plugins_url('ditty-news-ticker/assets/js/jquery.touchSwipe.min.js'), array('jquery'),
|
15 |
|
16 |
// Register the jQuery easing
|
17 |
-
wp_register_script( 'jquery-easing', plugins_url('ditty-news-ticker/assets/js/jquery.easing.1.3.js'), array('jquery'),
|
18 |
|
19 |
// Register the Ditty News Ticker scripts
|
20 |
-
wp_register_style( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/css/style.css'), false,
|
21 |
wp_enqueue_style( 'ditty-news-ticker' );
|
22 |
-
wp_register_script( 'imagesLoaded', plugins_url('ditty-news-ticker/assets/js/imagesloaded.pkgd.min.js'), array('jquery'),
|
23 |
-
wp_register_script( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/js/ditty-news-ticker.js'), array('jquery', 'imagesLoaded', 'touchSwipe', 'jquery-easing'),
|
24 |
}
|
25 |
add_action( 'wp_enqueue_scripts', 'mtphr_dnt_scripts' );
|
26 |
|
7 |
function mtphr_dnt_scripts() {
|
8 |
|
9 |
// Load the icon font css
|
10 |
+
wp_register_style( 'ditty-news-ticker-font', plugins_url('ditty-news-ticker/assets/fontastic/styles.css'), false, filemtime(MTPHR_DNT_DIR.'assets/fontastic/styles.css') );
|
11 |
wp_enqueue_style( 'ditty-news-ticker-font' );
|
12 |
|
13 |
// Register touchSwipe
|
14 |
+
wp_register_script( 'touchSwipe', plugins_url('ditty-news-ticker/assets/js/jquery.touchSwipe.min.js'), array('jquery'), filemtime(MTPHR_DNT_DIR.'assets/js/jquery.touchSwipe.min.js'), true );
|
15 |
|
16 |
// Register the jQuery easing
|
17 |
+
wp_register_script( 'jquery-easing', plugins_url('ditty-news-ticker/assets/js/jquery.easing.1.3.js'), array('jquery'), '1.3', true );
|
18 |
|
19 |
// Register the Ditty News Ticker scripts
|
20 |
+
wp_register_style( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/css/style.css'), false, filemtime(MTPHR_DNT_DIR.'assets/css/style.css') );
|
21 |
wp_enqueue_style( 'ditty-news-ticker' );
|
22 |
+
wp_register_script( 'imagesLoaded', plugins_url('ditty-news-ticker/assets/js/imagesloaded.pkgd.min.js'), array('jquery'), '4.1.0', true );
|
23 |
+
wp_register_script( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/js/ditty-news-ticker.js'), array('jquery', 'imagesLoaded', 'touchSwipe', 'jquery-easing'), filemtime(MTPHR_DNT_DIR.'assets/js/ditty-news-ticker.js'), true );
|
24 |
}
|
25 |
add_action( 'wp_enqueue_scripts', 'mtphr_dnt_scripts' );
|
26 |
|
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.15 =
|
76 |
* Resolved bug in ticker widget.
|
77 |
|
@@ -451,4 +454,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
|
|
451 |
|
452 |
== Upgrade Notice ==
|
453 |
|
454 |
-
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.1.16 =
|
76 |
+
* Minor javascript update for scrolling tickers.
|
77 |
+
|
78 |
= 2.1.15 =
|
79 |
* Resolved bug in ticker widget.
|
80 |
|
454 |
|
455 |
== Upgrade Notice ==
|
456 |
|
457 |
+
Minor javascript update for scrolling tickers.
|