Ditty News Ticker - Version 1.2.0

Version Description

  • Modified ditty-news-ticker js class due to issues with certain versions of jQuery.
  • Changed outerWidth() to with().
  • Changed outherHeight() to height().
Download this release

Release Info

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

Code changes from version 1.1.9 to 1.2.0

assets/js/ditty-news-ticker.js CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * Ditty News Ticker
3
- * Date: 8/07/2013
4
  *
5
  * @author Metaphor Creations
6
- * @version 1.1.8
7
  *
8
  **/
9
 
@@ -57,7 +57,7 @@
57
  $nav_prev = $(this).find('.mtphr-dnt-nav-prev'),
58
  $nav_next = $(this).find('.mtphr-dnt-nav-next'),
59
  $nav_controls = $(this).find('.mtphr-dnt-control-links'),
60
- ticker_width = $ticker.outerWidth(),
61
  ticker_height = 0,
62
  ticks = [],
63
  ticker_scroll,
@@ -111,8 +111,8 @@
111
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
112
 
113
  // Find the greatest tick height
114
- if( $(this).outerHeight() > ticker_height ) {
115
- ticker_height = $(this).outerHeight();
116
  }
117
 
118
  if( settings.scroll_direction == 'up' || settings.scroll_direction == 'down' ) {
@@ -335,7 +335,7 @@
335
  break;
336
 
337
  case 'right':
338
- position = parseInt('-'+($tick.outerWidth()+settings.offset));
339
  if( ticks[i][0].visible == false ) {
340
  $tick.css('left',position+'px');
341
  }
@@ -355,7 +355,7 @@
355
  if( ticker_scroll_resize ) {
356
  $tick.css('width',ticker_width);
357
  }
358
- position = parseInt('-'+($tick.outerHeight()+settings.offset));
359
  if( ticks[i][0].visible == false ) {
360
  $tick.css('top',position+'px');
361
  }
@@ -363,8 +363,8 @@
363
  }
364
 
365
  // Adjust the tick data
366
- ticks[i][0].width = $tick.outerWidth();
367
- ticks[i][0].height = $tick.outerHeight();
368
  if( ticks[i][0].visible == false ) {
369
  ticks[i][0].position = position;
370
  }
@@ -390,7 +390,7 @@
390
  break;
391
 
392
  case 'right':
393
- position = parseInt('-'+($tick.outerWidth()+settings.offset));
394
  $tick.stop(true,true).css('left',position+'px');
395
  break;
396
 
@@ -406,13 +406,13 @@
406
  if( ticker_scroll_resize ) {
407
  $tick.css('width',ticker_width);
408
  }
409
- position = parseInt('-'+($tick.outerHeight()+settings.offset));
410
  $tick.stop(true,true).css('top',position+'px');
411
  break;
412
  }
413
 
414
- ticks[i][0].width = $tick.outerWidth();
415
- ticks[i][0].height = $tick.outerHeight();
416
  ticks[i][0].position = position;
417
  ticks[i][0].reset = position;
418
  ticks[i][0].visible = false;
@@ -658,7 +658,7 @@
658
  }
659
 
660
  // Resize the ticker
661
- var h = $(ticks[vars.current_tick]).outerHeight();
662
  $ticker.stop().css( 'height', h+'px' );
663
  }
664
 
@@ -676,8 +676,8 @@
676
  $tick = ticks[0];
677
 
678
  // Find the width of the tick
679
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
680
- var h = $tick.outerHeight();
681
 
682
  // Set the height of the ticker
683
  $ticker.css( 'height', h+'px' );
@@ -690,7 +690,7 @@
690
  function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
691
  $tick.fadeIn( rotate_speed );
692
 
693
- var h = $tick.outerHeight();
694
 
695
  // Resize the ticker
696
  $ticker.stop().animate( {
@@ -718,8 +718,8 @@
718
  $tick = ticks[0];
719
 
720
  // Find the dimensions of the tick
721
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
722
- var h = $tick.outerHeight();
723
 
724
  // Set the height of the ticker
725
  $ticker.css( 'height', h+'px' );
@@ -736,7 +736,7 @@
736
  jQuery(this).load( function() {
737
 
738
  // Find the height of the tick
739
- var h = $tick.outerHeight();
740
 
741
  // Set the height of the ticker
742
  $ticker.css( 'height', h+'px' );
@@ -749,8 +749,8 @@
749
  function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
750
 
751
  // Find the dimensions of the tick
752
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
753
- var h = $tick.outerHeight();
754
 
755
  // Set the initial position of the width & make sure it's visible
756
  $tick.css( 'left', parseFloat(w+settings.offset)+'px' );
@@ -773,8 +773,8 @@
773
  function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
774
 
775
  // Find the dimensions of the tick
776
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
777
- var h = $tick.outerHeight();
778
 
779
  // Slide the tick in
780
  $tick.stop().animate( {
@@ -799,8 +799,8 @@
799
  $tick = ticks[0];
800
 
801
  // Find the dimensions of the tick
802
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
803
- var h = $tick.outerHeight();
804
 
805
  // Set the height of the ticker
806
  $ticker.css( 'height', h+'px' );
@@ -817,7 +817,7 @@
817
  jQuery(this).load( function() {
818
 
819
  // Find the height of the tick
820
- var h = $tick.outerHeight();
821
 
822
  // Set the height of the ticker
823
  $ticker.css( 'height', h+'px' );
@@ -830,8 +830,8 @@
830
  function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
831
 
832
  // Find the dimensions of the tick
833
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
834
- var h = $tick.outerHeight();
835
 
836
  // Set the initial position of the width & make sure it's visible
837
  $tick.css( 'left', '-'+parseFloat(w+settings.offset)+'px' );
@@ -854,8 +854,8 @@
854
  function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
855
 
856
  // Find the dimensions of the tick
857
- var w = $tick.parents('.mtphr-dnt-rotate').outerWidth();
858
- var h = $tick.outerHeight();
859
 
860
  // Slide the tick in
861
  $tick.stop().animate( {
@@ -880,7 +880,7 @@
880
  $tick = ticks[0];
881
 
882
  // Find the height of the tick
883
- var h = $tick.outerHeight();
884
 
885
  // Set the height of the ticker
886
  $ticker.css( 'height', h+'px' );
@@ -897,7 +897,7 @@
897
  jQuery(this).load( function() {
898
 
899
  // Find the height of the tick
900
- var h = $tick.outerHeight();
901
 
902
  // Set the height of the ticker
903
  $ticker.css( 'height', h+'px' );
@@ -910,7 +910,7 @@
910
  function mtphr_dnt_rotator_slide_down_in( $ticker, $tick, $prev, rotate_speed, ease ) {
911
 
912
  // Find the height of the tick
913
- var h = $tick.outerHeight();
914
 
915
  // Set the initial position of the width & make sure it's visible
916
  $tick.css( 'top', '-'+parseFloat(h+settings.offset)+'px' );
@@ -933,7 +933,7 @@
933
  function mtphr_dnt_rotator_slide_down_out( $ticker, $tick, $next, rotate_speed, ease ) {
934
 
935
  // Find the height of the next tick
936
- var h = $next.outerHeight();
937
 
938
  // Slide the tick in
939
  $tick.stop().animate( {
@@ -958,7 +958,7 @@
958
  $tick = ticks[0];
959
 
960
  // Find the height of the tick
961
- var h = $tick.outerHeight();
962
 
963
  // Set the height of the ticker
964
  $ticker.css( 'height', h+'px' );
@@ -975,7 +975,7 @@
975
  jQuery(this).load( function() {
976
 
977
  // Find the height of the tick
978
- var h = $tick.outerHeight();
979
 
980
  // Set the height of the ticker
981
  $ticker.css( 'height', h+'px' );
@@ -988,10 +988,10 @@
988
  function mtphr_dnt_rotator_slide_up_in( $ticker, $tick, $prev, rotate_speed, ease ) {
989
 
990
  // Find the height of the tick
991
- var h = $tick.outerHeight();
992
 
993
  // Set the initial position of the width & make sure it's visible
994
- $tick.css( 'top', parseFloat($prev.outerHeight()+settings.offset)+'px' );
995
  $tick.show();
996
 
997
  // Resize the ticker
@@ -1011,7 +1011,7 @@
1011
  function mtphr_dnt_rotator_slide_up_out( $ticker, $tick, $next, rotate_speed, ease ) {
1012
 
1013
  // Find the height of the next tick
1014
- var h = $tick.outerHeight();
1015
 
1016
  // Slide the tick in
1017
  $tick.stop().animate( {
@@ -1176,9 +1176,9 @@
1176
  $(window).resize( function() {
1177
 
1178
  // Resize the tickers if the width is different
1179
- if( $ticker.outerWidth() != ticker_width ) {
1180
 
1181
- ticker_width = $ticker.outerWidth();
1182
 
1183
  if( settings.type == 'scroll' ) {
1184
  if( settings.scroll_direction=='up' || settings.scroll_direction=='down' ) {
1
  /**
2
  * Ditty News Ticker
3
+ * Date: 9/17/2013
4
  *
5
  * @author Metaphor Creations
6
+ * @version 1.2.0
7
  *
8
  **/
9
 
57
  $nav_prev = $(this).find('.mtphr-dnt-nav-prev'),
58
  $nav_next = $(this).find('.mtphr-dnt-nav-next'),
59
  $nav_controls = $(this).find('.mtphr-dnt-control-links'),
60
+ ticker_width = $ticker.width(),
61
  ticker_height = 0,
62
  ticks = [],
63
  ticker_scroll,
111
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
112
 
113
  // Find the greatest tick height
114
+ if( $(this).height() > ticker_height ) {
115
+ ticker_height = $(this).height();
116
  }
117
 
118
  if( settings.scroll_direction == 'up' || settings.scroll_direction == 'down' ) {
335
  break;
336
 
337
  case 'right':
338
+ position = parseInt('-'+($tick.width()+settings.offset));
339
  if( ticks[i][0].visible == false ) {
340
  $tick.css('left',position+'px');
341
  }
355
  if( ticker_scroll_resize ) {
356
  $tick.css('width',ticker_width);
357
  }
358
+ position = parseInt('-'+($tick.height()+settings.offset));
359
  if( ticks[i][0].visible == false ) {
360
  $tick.css('top',position+'px');
361
  }
363
  }
364
 
365
  // Adjust the tick data
366
+ ticks[i][0].width = $tick.width();
367
+ ticks[i][0].height = $tick.height();
368
  if( ticks[i][0].visible == false ) {
369
  ticks[i][0].position = position;
370
  }
390
  break;
391
 
392
  case 'right':
393
+ position = parseInt('-'+($tick.width()+settings.offset));
394
  $tick.stop(true,true).css('left',position+'px');
395
  break;
396
 
406
  if( ticker_scroll_resize ) {
407
  $tick.css('width',ticker_width);
408
  }
409
+ position = parseInt('-'+($tick.height()+settings.offset));
410
  $tick.stop(true,true).css('top',position+'px');
411
  break;
412
  }
413
 
414
+ ticks[i][0].width = $tick.width();
415
+ ticks[i][0].height = $tick.height();
416
  ticks[i][0].position = position;
417
  ticks[i][0].reset = position;
418
  ticks[i][0].visible = false;
658
  }
659
 
660
  // Resize the ticker
661
+ var h = $(ticks[vars.current_tick]).height();
662
  $ticker.stop().css( 'height', h+'px' );
663
  }
664
 
676
  $tick = ticks[0];
677
 
678
  // Find the width of the tick
679
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
680
+ var h = $tick.height();
681
 
682
  // Set the height of the ticker
683
  $ticker.css( 'height', h+'px' );
690
  function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
691
  $tick.fadeIn( rotate_speed );
692
 
693
+ var h = $tick.height();
694
 
695
  // Resize the ticker
696
  $ticker.stop().animate( {
718
  $tick = ticks[0];
719
 
720
  // Find the dimensions of the tick
721
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
722
+ var h = $tick.height();
723
 
724
  // Set the height of the ticker
725
  $ticker.css( 'height', h+'px' );
736
  jQuery(this).load( function() {
737
 
738
  // Find the height of the tick
739
+ var h = $tick.height();
740
 
741
  // Set the height of the ticker
742
  $ticker.css( 'height', h+'px' );
749
  function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
750
 
751
  // Find the dimensions of the tick
752
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
753
+ var h = $tick.height();
754
 
755
  // Set the initial position of the width & make sure it's visible
756
  $tick.css( 'left', parseFloat(w+settings.offset)+'px' );
773
  function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
774
 
775
  // Find the dimensions of the tick
776
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
777
+ var h = $tick.height();
778
 
779
  // Slide the tick in
780
  $tick.stop().animate( {
799
  $tick = ticks[0];
800
 
801
  // Find the dimensions of the tick
802
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
803
+ var h = $tick.height();
804
 
805
  // Set the height of the ticker
806
  $ticker.css( 'height', h+'px' );
817
  jQuery(this).load( function() {
818
 
819
  // Find the height of the tick
820
+ var h = $tick.height();
821
 
822
  // Set the height of the ticker
823
  $ticker.css( 'height', h+'px' );
830
  function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
831
 
832
  // Find the dimensions of the tick
833
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
834
+ var h = $tick.height();
835
 
836
  // Set the initial position of the width & make sure it's visible
837
  $tick.css( 'left', '-'+parseFloat(w+settings.offset)+'px' );
854
  function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
855
 
856
  // Find the dimensions of the tick
857
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
858
+ var h = $tick.height();
859
 
860
  // Slide the tick in
861
  $tick.stop().animate( {
880
  $tick = ticks[0];
881
 
882
  // Find the height of the tick
883
+ var h = $tick.height();
884
 
885
  // Set the height of the ticker
886
  $ticker.css( 'height', h+'px' );
897
  jQuery(this).load( function() {
898
 
899
  // Find the height of the tick
900
+ var h = $tick.height();
901
 
902
  // Set the height of the ticker
903
  $ticker.css( 'height', h+'px' );
910
  function mtphr_dnt_rotator_slide_down_in( $ticker, $tick, $prev, rotate_speed, ease ) {
911
 
912
  // Find the height of the tick
913
+ var h = $tick.height();
914
 
915
  // Set the initial position of the width & make sure it's visible
916
  $tick.css( 'top', '-'+parseFloat(h+settings.offset)+'px' );
933
  function mtphr_dnt_rotator_slide_down_out( $ticker, $tick, $next, rotate_speed, ease ) {
934
 
935
  // Find the height of the next tick
936
+ var h = $next.height();
937
 
938
  // Slide the tick in
939
  $tick.stop().animate( {
958
  $tick = ticks[0];
959
 
960
  // Find the height of the tick
961
+ var h = $tick.height();
962
 
963
  // Set the height of the ticker
964
  $ticker.css( 'height', h+'px' );
975
  jQuery(this).load( function() {
976
 
977
  // Find the height of the tick
978
+ var h = $tick.height();
979
 
980
  // Set the height of the ticker
981
  $ticker.css( 'height', h+'px' );
988
  function mtphr_dnt_rotator_slide_up_in( $ticker, $tick, $prev, rotate_speed, ease ) {
989
 
990
  // Find the height of the tick
991
+ var h = $tick.height();
992
 
993
  // Set the initial position of the width & make sure it's visible
994
+ $tick.css( 'top', parseFloat($prev.height()+settings.offset)+'px' );
995
  $tick.show();
996
 
997
  // Resize the ticker
1011
  function mtphr_dnt_rotator_slide_up_out( $ticker, $tick, $next, rotate_speed, ease ) {
1012
 
1013
  // Find the height of the next tick
1014
+ var h = $tick.height();
1015
 
1016
  // Slide the tick in
1017
  $tick.stop().animate( {
1176
  $(window).resize( function() {
1177
 
1178
  // Resize the tickers if the width is different
1179
+ if( $ticker.width() != ticker_width ) {
1180
 
1181
+ ticker_width = $ticker.width();
1182
 
1183
  if( settings.type == 'scroll' ) {
1184
  if( settings.scroll_direction=='up' || settings.scroll_direction=='down' ) {
ditty-news-ticker.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ditty News Ticker
4
  Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
- Version: 1.1.9
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
9
  License: GPL2
@@ -45,9 +45,9 @@ The icons are licensed under a Creative Commons Attribution
45
  * @since 1.1.9
46
  */
47
  if ( WP_DEBUG ) {
48
- define ( 'MTPHR_DNT_VERSION', '1.1.9-'.time() );
49
  } else {
50
- define ( 'MTPHR_DNT_VERSION', '1.1.9' );
51
  }
52
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
53
  define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
3
  Plugin Name: Ditty News Ticker
4
  Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
+ Version: 1.2.0
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
9
  License: GPL2
45
  * @since 1.1.9
46
  */
47
  if ( WP_DEBUG ) {
48
+ define ( 'MTPHR_DNT_VERSION', '1.2.0-'.time() );
49
  } else {
50
+ define ( 'MTPHR_DNT_VERSION', '1.2.0' );
51
  }
52
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
53
  define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
includes/metaboxer/metaboxer.css CHANGED
@@ -61,7 +61,10 @@
61
  .mtphr-dnt-metaboxer-field-content {
62
  width: 80%;
63
  vertical-align: top;
64
- padding-bottom: 20px;
 
 
 
65
  }
66
  .mtphr-dnt-metaboxer-field-content-full {
67
  width: 100%;
61
  .mtphr-dnt-metaboxer-field-content {
62
  width: 80%;
63
  vertical-align: top;
64
+ padding-bottom: 10px;
65
+ }
66
+ #mtphr_dnt_global_settings .mtphr-dnt-metaboxer-field-content {
67
+ padding-bottom: 0;
68
  }
69
  .mtphr-dnt-metaboxer-field-content-full {
70
  width: 100%;
readme.txt CHANGED
@@ -52,6 +52,11 @@ Each individual Ticker post has multiple settings to customize.
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
55
  = 1.1.9 =
56
  * Fixed touchSwipe error that was occurring in Firefox.
57
  * Fixed undefined variable error in functions.php.
@@ -145,4 +150,4 @@ Each individual Ticker post has multiple settings to customize.
145
 
146
  == Upgrade Notice ==
147
 
148
- Bug fixes and minor upgrades.
52
 
53
  == Changelog ==
54
 
55
+ = 1.2.0 =
56
+ * Modified ditty-news-ticker js class due to issues with certain versions of jQuery.
57
+ * Changed outerWidth() to with().
58
+ * Changed outherHeight() to height().
59
+
60
  = 1.1.9 =
61
  * Fixed touchSwipe error that was occurring in Firefox.
62
  * Fixed undefined variable error in functions.php.
150
 
151
  == Upgrade Notice ==
152
 
153
+ Modified ditty-news-ticker js class due to issues with certain versions of jQuery.