Ditty News Ticker - Version 1.1.2

Version Description

  • Reworked scroll mode to function better in IE.
  • Added a global offset to scrolling and rotating ticks to are hidden.
  • Moved rotating tick code into .js file.
  • Added css for max-image: 100%.
  • Converted .clearfix class to custom .mtrph-dnt-clearfix to avoid conflicts.
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

assets/css/style.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .mtphr-dnt-wrapper {
2
  position: relative;
3
  width: 100%;
@@ -11,23 +15,20 @@
11
  overflow: hidden;
12
  }
13
  .mtphr-dnt-tick {
14
- display: none;
15
- position: absolute;
16
- white-space: nowrap;
17
  margin: 0;
18
  }
19
- .mtphr-dnt-tick.clearfix {
 
20
  display:none;
21
  }
22
  .mtphr-dnt-rotate .mtphr-dnt-tick,
23
- .mtphr-dnt-scroll-up .mtphr-dnt-tick,
24
- .mtphr-dnt-scroll-down .mtphr-dnt-tick {
25
- white-space: normal;
26
  }
27
- .mtphr-dnt-list .mtphr-dnt-tick {
28
- display: block;
29
- position: relative;
30
- white-space: normal;
31
  }
32
 
33
  /* Directional nav
@@ -90,16 +91,16 @@
90
  /* Add clearfix
91
  ------------------------------------------------------------ */
92
 
93
- .clearfix {
94
  *zoom: 1;
95
  }
96
- .clearfix:before,
97
- .clearfix:after {
98
  display: table;
99
  line-height: 0;
100
  content: "";
101
  }
102
- .clearfix:after {
103
  clear: both;
104
  }
105
 
1
+ .mtphr-dnt img {
2
+ max-width: 100%;
3
+ height: auto;
4
+ }
5
  .mtphr-dnt-wrapper {
6
  position: relative;
7
  width: 100%;
15
  overflow: hidden;
16
  }
17
  .mtphr-dnt-tick {
 
 
 
18
  margin: 0;
19
  }
20
+ .mtphr-dnt-rotate .mtphr-dnt-tick,
21
+ .mtphr-dnt-scroll .mtphr-dnt-tick {
22
  display:none;
23
  }
24
  .mtphr-dnt-rotate .mtphr-dnt-tick,
25
+ .mtphr-dnt-scroll .mtphr-dnt-tick {
26
+ position: absolute;
27
+ display:none;
28
  }
29
+ .mtphr-dnt-scroll-left .mtphr-dnt-tick,
30
+ .mtphr-dnt-scroll-right .mtphr-dnt-tick {
31
+ white-space: nowrap;
 
32
  }
33
 
34
  /* Directional nav
91
  /* Add clearfix
92
  ------------------------------------------------------------ */
93
 
94
+ .mtphr-dnt-clearfix {
95
  *zoom: 1;
96
  }
97
+ .mtphr-dnt-clearfix:before,
98
+ .mtphr-dnt-clearfix:after {
99
  display: table;
100
  line-height: 0;
101
  content: "";
102
  }
103
+ .mtphr-dnt-clearfix:after {
104
  clear: both;
105
  }
106
 
assets/js/ditty-news-ticker.js CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * Ditty News Ticker
3
- * Date: 3/10/2013
4
  *
5
  * @author Metaphor Creations
6
- * @version 1.1.0
7
  *
8
  **/
9
 
@@ -23,7 +23,7 @@
23
  scroll_speed : 10,
24
  scroll_pause : 0,
25
  scroll_spacing : 40,
26
- scroll_units : 1,
27
  rotate_type : 'fade',
28
  auto_rotate : 0,
29
  rotate_delay : 10,
@@ -64,6 +64,7 @@
64
  rotate_adjustment = settings.rotate_type,
65
  after_change_timeout,
66
  ticker_pause = false,
 
67
  touch_down_x,
68
  touch_down_y,
69
  touch_link = '',
@@ -96,7 +97,7 @@
96
  * @since 1.1.0
97
  */
98
  function mtphr_dnt_scroll_setup() {
99
-
100
  var $first = $ticker.find('.mtphr-dnt-tick:first');
101
  if( $first.attr('style') ) {
102
  var style = $first.attr('style');
@@ -122,51 +123,20 @@
122
 
123
  // Loop through the tick items
124
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
125
-
126
- // Set the tick position
127
- var position;
128
-
129
- switch( settings.scroll_direction ) {
130
- case 'left':
131
- position = ticker_width;
132
- $(this).css('left',position+'px');
133
- break;
134
-
135
- case 'right':
136
- position = parseInt('-'+$(this).width());
137
- $(this).css('left',position+'px');
138
- break;
139
-
140
- case 'up':
141
- if( ticker_scroll_resize ) {
142
- $(this).css('width',ticker_width);
143
- }
144
- position = parseInt(ticker_height);
145
- $(this).css('top',position+'px');
146
- break;
147
-
148
- case 'down':
149
- if( ticker_scroll_resize ) {
150
- $(this).css('width',ticker_width);
151
- }
152
- position = parseInt('-'+$(this).height());
153
- $(this).css('top',position+'px');
154
- break;
155
- }
156
 
157
  // Make sure the ticker is visible
158
  $(this).show();
159
 
160
  // Add the tick data
161
- var tick = [{'headline':$(this), 'width':$(this).width(), 'height':$(this).height(), 'position':position, 'reset':position, 'visible':false}];
162
 
163
  // Add the tick to the array
164
  ticks.push(tick);
165
  });
166
-
167
- // Set the first tick visibility
168
- ticks[vars.current_tick][0].visible = true;
169
 
 
 
 
170
  // Start the scroll loop
171
  mtphr_dnt_scroll_loop();
172
 
@@ -200,34 +170,36 @@
200
 
201
  if( ticks[i][0].visible == true ) {
202
 
203
- var pos = 0;
204
 
205
- switch( settings.scroll_direction ) {
206
- case 'left':
207
- pos = mtphr_dnt_scroll_left(i);
208
- ticks[i][0].headline.css('left',pos+'px');
209
- break;
210
-
211
- case 'right':
212
- pos = mtphr_dnt_scroll_right(i);
213
- ticks[i][0].headline.css('left',pos+'px');
214
- break;
215
-
216
- case 'up':
217
- pos = mtphr_dnt_scroll_up(i);
218
- ticks[i][0].headline.css('top',pos+'px');
219
- break;
220
-
221
- case 'down':
222
- pos = mtphr_dnt_scroll_down(i);
223
- ticks[i][0].headline.css('top',pos+'px');
224
- break;
 
 
225
  }
226
 
227
  ticks[i][0].position = pos;
228
  }
229
  }
230
- }, parseFloat(100/settings.scroll_speed));
231
  }
232
 
233
  /**
@@ -238,12 +210,12 @@
238
  function mtphr_dnt_scroll_left( i ) {
239
 
240
  // Find the new position
241
- var pos = ticks[i][0].position - settings.scroll_units;
242
 
243
  // Reset the tick if off the screen
244
- if( pos < -ticks[i][0].width ) {
245
  pos = mtphr_dnt_scroll_check_current(i);
246
- } else if( pos < ticker_width-ticks[i][0].width-settings.scroll_spacing ) {
247
  mtphr_dnt_scroll_check_next(i);
248
  }
249
 
@@ -258,10 +230,10 @@
258
  function mtphr_dnt_scroll_right( i ) {
259
 
260
  // Find the new position
261
- var pos = ticks[i][0].position + settings.scroll_units;
262
 
263
  // Reset the tick if off the screen
264
- if( pos > ticker_width ) {
265
  pos = mtphr_dnt_scroll_check_current(i);
266
  } else if( pos > settings.scroll_spacing ) {
267
  mtphr_dnt_scroll_check_next(i);
@@ -278,10 +250,10 @@
278
  function mtphr_dnt_scroll_up( i ) {
279
 
280
  // Find the new position
281
- var pos = ticks[i][0].position - settings.scroll_units;
282
 
283
  // Reset the tick if off the screen
284
- if( pos < -ticks[i][0].height ) {
285
  pos = mtphr_dnt_scroll_check_current(i);
286
  } else if( pos < ticker_height-ticks[i][0].height-settings.scroll_spacing ) {
287
  mtphr_dnt_scroll_check_next(i);
@@ -298,10 +270,10 @@
298
  function mtphr_dnt_scroll_down( i ) {
299
 
300
  // Find the new position
301
- var pos = ticks[i][0].position + settings.scroll_units;
302
 
303
  // Reset the tick if off the screen
304
- if( pos > ticker_height ) {
305
  pos = mtphr_dnt_scroll_check_current(i);
306
  } else if( pos > settings.scroll_spacing ) {
307
  mtphr_dnt_scroll_check_next(i);
@@ -321,7 +293,7 @@
321
  ticks[i][0].visible = false;
322
  }
323
 
324
- return ticks[i][0].reset;
325
  }
326
 
327
  /**
@@ -349,19 +321,19 @@
349
 
350
  // Set the tick position
351
  var position;
352
-
353
  var $tick = ticks[i][0].headline;
354
 
355
  switch( settings.scroll_direction ) {
356
  case 'left':
357
- position = ticker_width;
358
  if( ticks[i][0].visible == false ) {
359
  $tick.css('left',position+'px');
360
  }
361
  break;
362
 
363
  case 'right':
364
- position = parseInt('-'+$tick.width());
365
  if( ticks[i][0].visible == false ) {
366
  $tick.css('left',position+'px');
367
  }
@@ -371,7 +343,7 @@
371
  if( ticker_scroll_resize ) {
372
  $tick.css('width',ticker_width);
373
  }
374
- position = parseInt(ticker_height);
375
  if( ticks[i][0].visible == false ) {
376
  $tick.css('top',position+'px');
377
  }
@@ -381,7 +353,7 @@
381
  if( ticker_scroll_resize ) {
382
  $tick.css('width',ticker_width);
383
  }
384
- position = parseInt('-'+$tick.height());
385
  if( ticks[i][0].visible == false ) {
386
  $tick.css('top',position+'px');
387
  }
@@ -411,31 +383,29 @@
411
 
412
  switch( settings.scroll_direction ) {
413
  case 'left':
414
- position = ticker_width;
415
- $(this).css('left',position+'px');
416
- $tick.css('left',position+'px');
417
  break;
418
 
419
  case 'right':
420
- position = parseInt('-'+$(this).width());
421
- $(this).css('left',position+'px');
422
- $tick.css('left',position+'px');
423
  break;
424
 
425
  case 'up':
426
  if( ticker_scroll_resize ) {
427
  $tick.css('width',ticker_width);
428
  }
429
- position = parseInt(ticker_height);
430
- $tick.css('top',position+'px');
431
  break;
432
 
433
  case 'down':
434
  if( ticker_scroll_resize ) {
435
  $tick.css('width',ticker_width);
436
  }
437
- position = parseInt('-'+$(this).height());
438
- $tick.css('top',position+'px');
439
  break;
440
  }
441
 
@@ -626,9 +596,369 @@
626
  var h = $(ticks[vars.current_tick]).height();
627
  $ticker.stop().css( 'height', h+'px' );
628
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
 
630
 
631
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
632
 
633
  /**
634
  * Navigation clicks
@@ -712,89 +1042,9 @@
712
  mtphr_dnt_rotator_update( new_tick );
713
  });
714
  }
715
-
716
-
717
-
718
-
719
- /**
720
- * Mobile touch support
721
- *
722
- * @since 1.0.0
723
- */
724
- if( settings.type == 'rotate' ) {
725
-
726
- /*
727
- $ticker.bind( 'touchstart', function(e) {
728
 
729
- e.preventDefault();
730
-
731
- // Save the target
732
- touch_link = $(e.target).attr('href');
733
- touch_target = $(e.target).attr('target');;
734
-
735
- var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
736
- touch_down_x = touch.pageX;
737
- touch_down_y = touch.pageY;
738
- });
739
-
740
- $ticker.bind( 'touchend', function(e) {
741
-
742
- if(vars.running) return false;
743
-
744
- var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
745
- touch_up_x = touch.pageX;
746
- touch_up_y = touch.pageY;
747
-
748
- if( Math.abs(touch_down_x-touch_up_x) > 100 ) {
749
- if ( touch_down_x-touch_up_x > 0 ) {
750
 
751
- // Find the new tick
752
- var new_tick = parseInt(vars.current_tick + 1);
753
- if( new_tick == vars.tick_count ) {
754
- new_tick = 0;
755
- }
756
- mtphr_dnt_rotator_update( new_tick );
757
-
758
- } else {
759
-
760
- // Find the new tick
761
- var new_tick = parseInt(vars.current_tick-1);
762
- if( new_tick < 0 ) {
763
- new_tick = vars.tick_count-1;
764
- }
765
- if( settings.nav_reverse ) {
766
- if( settings.rotate_type == 'slide_left' ) {
767
- rotate_adjustment = 'slide_right';
768
- } else if( settings.rotate_type == 'slide_right' ) {
769
- rotate_adjustment = 'slide_left';
770
- } else if( settings.rotate_type == 'slide_down' ) {
771
- rotate_adjustment = 'slide_up';
772
- } else if( settings.rotate_type == 'slide_up' ) {
773
- rotate_adjustment = 'slide_down';
774
- }
775
- vars.reverse = 1;
776
- }
777
- mtphr_dnt_rotator_update( new_tick );
778
- }
779
- } else {
780
-
781
- if( touch_link != '' ) {
782
- if( touch_target == '_blank' ) {
783
- window.open( touch_link );
784
- } else {
785
- window.location( touch_link );
786
- }
787
- }
788
-
789
- touch_link = '';
790
- touch_target = '';
791
- }
792
- });
793
- */
794
- }
795
-
796
-
797
-
798
 
799
  /**
800
  * Resize listener
1
  /**
2
  * Ditty News Ticker
3
+ * Date: 3/17/2013
4
  *
5
  * @author Metaphor Creations
6
+ * @version 1.1.2
7
  *
8
  **/
9
 
23
  scroll_speed : 10,
24
  scroll_pause : 0,
25
  scroll_spacing : 40,
26
+ scroll_units : 10,
27
  rotate_type : 'fade',
28
  auto_rotate : 0,
29
  rotate_delay : 10,
64
  rotate_adjustment = settings.rotate_type,
65
  after_change_timeout,
66
  ticker_pause = false,
67
+ offset = 20,
68
  touch_down_x,
69
  touch_down_y,
70
  touch_link = '',
97
  * @since 1.1.0
98
  */
99
  function mtphr_dnt_scroll_setup() {
100
+
101
  var $first = $ticker.find('.mtphr-dnt-tick:first');
102
  if( $first.attr('style') ) {
103
  var style = $first.attr('style');
123
 
124
  // Loop through the tick items
125
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  // Make sure the ticker is visible
128
  $(this).show();
129
 
130
  // Add the tick data
131
+ var tick = [{'headline':$(this)}];
132
 
133
  // Add the tick to the array
134
  ticks.push(tick);
135
  });
 
 
 
136
 
137
+ // Set the initial position of the ticks
138
+ mtphr_dnt_scroll_reset_ticks();
139
+
140
  // Start the scroll loop
141
  mtphr_dnt_scroll_loop();
142
 
170
 
171
  if( ticks[i][0].visible == true ) {
172
 
173
+ var pos = 'reset';
174
 
175
+ if( settings.scroll_direction == 'left' || settings.scroll_direction == 'right' ) {
176
+
177
+ pos = (settings.scroll_direction == 'left') ? mtphr_dnt_scroll_left(i) : mtphr_dnt_scroll_right(i);
178
+ if( pos == 'reset' ) {
179
+ pos = ticks[i][0].reset;
180
+ ticks[i][0].headline.stop(true,true).css('left',pos+'px');
181
+ } else {
182
+ ticks[i][0].headline.stop(true,true).animate( {
183
+ left: pos+'px'
184
+ }, 100, 'linear' );
185
+ }
186
+ } else {
187
+
188
+ pos = (settings.scroll_direction == 'up') ? mtphr_dnt_scroll_up(i) : mtphr_dnt_scroll_down(i);
189
+ if( pos == 'reset' ) {
190
+ pos = ticks[i][0].reset;
191
+ ticks[i][0].headline.stop(true,true).css('top',pos+'px');
192
+ } else {
193
+ ticks[i][0].headline.stop(true,true).animate( {
194
+ top: pos+'px'
195
+ }, 100, 'linear' );
196
+ }
197
  }
198
 
199
  ticks[i][0].position = pos;
200
  }
201
  }
202
+ }, 100);
203
  }
204
 
205
  /**
210
  function mtphr_dnt_scroll_left( i ) {
211
 
212
  // Find the new position
213
+ var pos = parseFloat(ticks[i][0].position - settings.scroll_speed);
214
 
215
  // Reset the tick if off the screen
216
+ if( pos < -(ticks[i][0].width+offset) ) {
217
  pos = mtphr_dnt_scroll_check_current(i);
218
+ } else if( pos < parseFloat(ticker_width-ticks[i][0].width-settings.scroll_spacing) ) {
219
  mtphr_dnt_scroll_check_next(i);
220
  }
221
 
230
  function mtphr_dnt_scroll_right( i ) {
231
 
232
  // Find the new position
233
+ var pos = ticks[i][0].position + settings.scroll_speed;
234
 
235
  // Reset the tick if off the screen
236
+ if( pos > ticker_width+offset ) {
237
  pos = mtphr_dnt_scroll_check_current(i);
238
  } else if( pos > settings.scroll_spacing ) {
239
  mtphr_dnt_scroll_check_next(i);
250
  function mtphr_dnt_scroll_up( i ) {
251
 
252
  // Find the new position
253
+ var pos = ticks[i][0].position - settings.scroll_speed;
254
 
255
  // Reset the tick if off the screen
256
+ if( pos < -(ticks[i][0].height+offset) ) {
257
  pos = mtphr_dnt_scroll_check_current(i);
258
  } else if( pos < ticker_height-ticks[i][0].height-settings.scroll_spacing ) {
259
  mtphr_dnt_scroll_check_next(i);
270
  function mtphr_dnt_scroll_down( i ) {
271
 
272
  // Find the new position
273
+ var pos = ticks[i][0].position + settings.scroll_speed;
274
 
275
  // Reset the tick if off the screen
276
+ if( pos > ticker_height+offset ) {
277
  pos = mtphr_dnt_scroll_check_current(i);
278
  } else if( pos > settings.scroll_spacing ) {
279
  mtphr_dnt_scroll_check_next(i);
293
  ticks[i][0].visible = false;
294
  }
295
 
296
+ return 'reset';
297
  }
298
 
299
  /**
321
 
322
  // Set the tick position
323
  var position;
324
+
325
  var $tick = ticks[i][0].headline;
326
 
327
  switch( settings.scroll_direction ) {
328
  case 'left':
329
+ position = ticker_width+offset;
330
  if( ticks[i][0].visible == false ) {
331
  $tick.css('left',position+'px');
332
  }
333
  break;
334
 
335
  case 'right':
336
+ position = parseInt('-'+($tick.width()+offset));
337
  if( ticks[i][0].visible == false ) {
338
  $tick.css('left',position+'px');
339
  }
343
  if( ticker_scroll_resize ) {
344
  $tick.css('width',ticker_width);
345
  }
346
+ position = parseInt(ticker_height+offset);
347
  if( ticks[i][0].visible == false ) {
348
  $tick.css('top',position+'px');
349
  }
353
  if( ticker_scroll_resize ) {
354
  $tick.css('width',ticker_width);
355
  }
356
+ position = parseInt('-'+($tick.height()+offset));
357
  if( ticks[i][0].visible == false ) {
358
  $tick.css('top',position+'px');
359
  }
383
 
384
  switch( settings.scroll_direction ) {
385
  case 'left':
386
+ position = ticker_width+offset;
387
+ $tick.stop(true,true).css('left',position+'px');
 
388
  break;
389
 
390
  case 'right':
391
+ position = parseInt('-'+($tick.width()+offset));
392
+ $tick.stop(true,true).css('left',position+'px');
 
393
  break;
394
 
395
  case 'up':
396
  if( ticker_scroll_resize ) {
397
  $tick.css('width',ticker_width);
398
  }
399
+ position = parseInt(ticker_height+offset);
400
+ $tick.stop(true,true).css('top',position+'px');
401
  break;
402
 
403
  case 'down':
404
  if( ticker_scroll_resize ) {
405
  $tick.css('width',ticker_width);
406
  }
407
+ position = parseInt('-'+($tick.height()+offset));
408
+ $tick.stop(true,true).css('top',position+'px');
409
  break;
410
  }
411
 
596
  var h = $(ticks[vars.current_tick]).height();
597
  $ticker.stop().css( 'height', h+'px' );
598
  }
599
+
600
+
601
+
602
+
603
+ /**
604
+ * Rotator fade scripts
605
+ *
606
+ * @since 1.0.0
607
+ */
608
+ function mtphr_dnt_rotator_fade_init( $ticker, ticks, rotate_speed, ease ) {
609
+
610
+ // Get the first tick
611
+ $tick = ticks[0];
612
+
613
+ // Find the width of the tick
614
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
615
+ var h = $tick.height();
616
+
617
+ // Set the height of the ticker
618
+ $ticker.css( 'height', h+'px' );
619
+
620
+ // Set the initial position of the width & make sure it's visible
621
+ $tick.show();
622
+ }
623
+
624
+ // Show the new tick
625
+ function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
626
+ $tick.fadeIn( rotate_speed );
627
+
628
+ var h = $tick.height();
629
+
630
+ // Resize the ticker
631
+ $ticker.stop().animate( {
632
+ height: h+'px'
633
+ }, rotate_speed, ease, function() {
634
+ });
635
+ }
636
+
637
+ // Hide the old tick
638
+ function mtphr_dnt_rotator_fade_out( $ticker, $tick, $next, rotate_speed, ease ) {
639
+ $tick.fadeOut( rotate_speed );
640
+ }
641
+
642
+
643
+
644
+
645
+ /**
646
+ * Rotator slide left scripts
647
+ *
648
+ * @since 1.0.0
649
+ */
650
+ function mtphr_dnt_rotator_slide_left_init( $ticker, ticks, rotate_speed, ease ) {
651
+
652
+ // Get the first tick
653
+ $tick = ticks[0];
654
+
655
+ // Find the dimensions of the tick
656
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
657
+ var h = $tick.height();
658
+
659
+ // Set the height of the ticker
660
+ $ticker.css( 'height', h+'px' );
661
+
662
+ // Set the initial position of the width & make sure it's visible
663
+ $tick.css( 'left', 0 );
664
+ $tick.show();
665
+
666
+ // If there are any images, reset height after loading
667
+ if( $tick.find('img').length > 0 ) {
668
+
669
+ $tick.find('img').each( function(index) {
670
+
671
+ jQuery(this).load( function() {
672
+
673
+ // Find the height of the tick
674
+ var h = $tick.height();
675
+
676
+ // Set the height of the ticker
677
+ $ticker.css( 'height', h+'px' );
678
+ });
679
+ });
680
+ }
681
+ }
682
+
683
+ // Show the new tick
684
+ function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
685
+
686
+ // Find the dimensions of the tick
687
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
688
+ var h = $tick.height();
689
+
690
+ // Set the initial position of the width & make sure it's visible
691
+ $tick.css( 'left', parseFloat(w+offset)+'px' );
692
+ $tick.show();
693
+
694
+ // Resize the ticker
695
+ $ticker.stop().animate( {
696
+ height: h+'px'
697
+ }, rotate_speed, ease, function() {
698
+ });
699
+
700
+ // Slide the tick in
701
+ $tick.stop().animate( {
702
+ left: '0'
703
+ }, rotate_speed, ease, function() {
704
+ });
705
+ }
706
+
707
+ // Hide the old tick
708
+ function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
709
+
710
+ // Find the dimensions of the tick
711
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
712
+ var h = $tick.height();
713
+
714
+ // Slide the tick in
715
+ $tick.stop().animate( {
716
+ left: '-'+parseFloat(w+offset)+'px'
717
+ }, rotate_speed, ease, function() {
718
+ // Hide the tick
719
+ $tick.hide();
720
+ });
721
+ }
722
+
723
+
724
+
725
+
726
+ /**
727
+ * Rotator slide right scripts
728
+ *
729
+ * @since 1.0.0
730
+ */
731
+ function mtphr_dnt_rotator_slide_right_init( $ticker, ticks, rotate_speed, ease ) {
732
+
733
+ // Get the first tick
734
+ $tick = ticks[0];
735
+
736
+ // Find the dimensions of the tick
737
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
738
+ var h = $tick.height();
739
+
740
+ // Set the height of the ticker
741
+ $ticker.css( 'height', h+'px' );
742
+
743
+ // Set the initial position of the width & make sure it's visible
744
+ $tick.css( 'left', 0 );
745
+ $tick.show();
746
+
747
+ // If there are any images, reset height after loading
748
+ if( $tick.find('img').length > 0 ) {
749
+
750
+ $tick.find('img').each( function(index) {
751
+
752
+ jQuery(this).load( function() {
753
+
754
+ // Find the height of the tick
755
+ var h = $tick.height();
756
+
757
+ // Set the height of the ticker
758
+ $ticker.css( 'height', h+'px' );
759
+ });
760
+ });
761
+ }
762
+ }
763
+
764
+ // Show the new tick
765
+ function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
766
+
767
+ // Find the dimensions of the tick
768
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
769
+ var h = $tick.height();
770
+
771
+ // Set the initial position of the width & make sure it's visible
772
+ $tick.css( 'left', '-'+parseFloat(w+offset)+'px' );
773
+ $tick.show();
774
+
775
+ // Resize the ticker
776
+ $ticker.stop().animate( {
777
+ height: h+'px'
778
+ }, rotate_speed, ease, function() {
779
+ });
780
+
781
+ // Slide the tick in
782
+ $tick.stop().animate( {
783
+ left: '0'
784
+ }, rotate_speed, ease, function() {
785
+ });
786
+ }
787
+
788
+ // Hide the old tick
789
+ function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
790
+
791
+ // Find the dimensions of the tick
792
+ var w = $tick.parents('.mtphr-dnt-rotate').width();
793
+ var h = $tick.height();
794
+
795
+ // Slide the tick in
796
+ $tick.stop().animate( {
797
+ left: parseFloat(w+offset)+'px'
798
+ }, rotate_speed, ease, function() {
799
+ // Hide the tick
800
+ $tick.hide();
801
+ });
802
+ }
803
+
804
+
805
+
806
+
807
+ /**
808
+ * Rotator slide down scripts
809
+ *
810
+ * @since 1.0.0
811
+ */
812
+ function mtphr_dnt_rotator_slide_down_init( $ticker, ticks, rotate_speed, ease ) {
813
+
814
+ // Get the first tick
815
+ $tick = ticks[0];
816
+
817
+ // Find the height of the tick
818
+ var h = $tick.height();
819
+
820
+ // Set the height of the ticker
821
+ $ticker.css( 'height', h+'px' );
822
+
823
+ // Set the initial position of the width & make sure it's visible
824
+ $tick.css( 'top', 0 );
825
+ $tick.show();
826
+
827
+ // If there are any images, reset height after loading
828
+ if( $tick.find('img').length > 0 ) {
829
+
830
+ $tick.find('img').each( function(index) {
831
+
832
+ jQuery(this).load( function() {
833
+
834
+ // Find the height of the tick
835
+ var h = $tick.height();
836
+
837
+ // Set the height of the ticker
838
+ $ticker.css( 'height', h+'px' );
839
+ });
840
+ });
841
+ }
842
+ }
843
+
844
+ // Show the new tick
845
+ function mtphr_dnt_rotator_slide_down_in( $ticker, $tick, $prev, rotate_speed, ease ) {
846
+
847
+ // Find the height of the tick
848
+ var h = $tick.height();
849
+
850
+ // Set the initial position of the width & make sure it's visible
851
+ $tick.css( 'top', '-'+parseFloat(h+offset)+'px' );
852
+ $tick.show();
853
+
854
+ // Resize the ticker
855
+ $ticker.stop().animate( {
856
+ height: h+'px'
857
+ }, rotate_speed, ease, function() {
858
+ });
859
+
860
+ // Slide the tick in
861
+ $tick.stop().animate( {
862
+ top: '0'
863
+ }, rotate_speed, ease, function() {
864
+ });
865
+ }
866
+
867
+ // Hide the old tick
868
+ function mtphr_dnt_rotator_slide_down_out( $ticker, $tick, $next, rotate_speed, ease ) {
869
+
870
+ // Find the height of the next tick
871
+ var h = $next.height();
872
+
873
+ // Slide the tick in
874
+ $tick.stop().animate( {
875
+ top: parseFloat(h+offset)+'px'
876
+ }, rotate_speed, ease, function() {
877
+ // Hide the tick
878
+ $tick.hide();
879
+ });
880
+ }
881
 
882
 
883
 
884
+
885
+ /**
886
+ * Rotator slide up scripts
887
+ *
888
+ * @since 1.0.0
889
+ */
890
+ function mtphr_dnt_rotator_slide_up_init( $ticker, ticks, rotate_speed, ease ) {
891
+
892
+ // Get the first tick
893
+ $tick = ticks[0];
894
+
895
+ // Find the height of the tick
896
+ var h = $tick.height();
897
+
898
+ // Set the height of the ticker
899
+ $ticker.css( 'height', h+'px' );
900
+
901
+ // Set the initial position of the width & make sure it's visible
902
+ $tick.css( 'top', 0 );
903
+ $tick.show();
904
+
905
+ // If there are any images, reset height after loading
906
+ if( $tick.find('img').length > 0 ) {
907
+
908
+ $tick.find('img').each( function(index) {
909
+
910
+ jQuery(this).load( function() {
911
+
912
+ // Find the height of the tick
913
+ var h = $tick.height();
914
+
915
+ // Set the height of the ticker
916
+ $ticker.css( 'height', h+'px' );
917
+ });
918
+ });
919
+ }
920
+ }
921
+
922
+ // Show the new tick
923
+ function mtphr_dnt_rotator_slide_up_in( $ticker, $tick, $prev, rotate_speed, ease ) {
924
+
925
+ // Find the height of the tick
926
+ var h = $tick.height();
927
+
928
+ // Set the initial position of the width & make sure it's visible
929
+ $tick.css( 'top', parseFloat($prev.height()+offset)+'px' );
930
+ $tick.show();
931
+
932
+ // Resize the ticker
933
+ $ticker.stop().animate( {
934
+ height: h+'px'
935
+ }, rotate_speed, ease, function() {
936
+ });
937
+
938
+ // Slide the tick in
939
+ $tick.stop().animate( {
940
+ top: '0'
941
+ }, rotate_speed, ease, function() {
942
+ });
943
+ }
944
+
945
+ // Hide the old tick
946
+ function mtphr_dnt_rotator_slide_up_out( $ticker, $tick, $next, rotate_speed, ease ) {
947
+
948
+ // Find the height of the next tick
949
+ var h = $tick.height();
950
+
951
+ // Slide the tick in
952
+ $tick.stop().animate( {
953
+ top: '-'+parseFloat(h+offset)+'px'
954
+ }, rotate_speed, ease, function() {
955
+ // Hide the tick
956
+ $tick.hide();
957
+ });
958
+ }
959
+
960
+
961
+
962
 
963
  /**
964
  * Navigation clicks
1042
  mtphr_dnt_rotator_update( new_tick );
1043
  });
1044
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1045
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1046
 
1047
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1048
 
1049
  /**
1050
  * Resize listener
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.1
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.0.0
46
  */
47
  if ( WP_DEBUG ) {
48
- define ( 'MTPHR_DNT_VERSION', '1.1.1-'.time() );
49
  } else {
50
- define ( 'MTPHR_DNT_VERSION', '1.1.1' );
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.1.2
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
9
  License: GPL2
45
  * @since 1.0.0
46
  */
47
  if ( WP_DEBUG ) {
48
+ define ( 'MTPHR_DNT_VERSION', '1.1.2-'.time() );
49
  } else {
50
+ define ( 'MTPHR_DNT_VERSION', '1.1.2' );
51
  }
52
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
53
  define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
includes/functions.php CHANGED
@@ -22,7 +22,7 @@ function ditty_news_ticker( $id='', $class='', $atts=false ) {
22
  /**
23
  * Return the ticker
24
  *
25
- * @since 1.1.1
26
  */
27
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
28
 
@@ -100,7 +100,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
100
  }
101
 
102
  echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
103
- echo '<div class="mtphr-dnt-wrapper clearfix">';
104
 
105
  // Display the title
106
  if( isset($_mtphr_dnt_title) ) {
@@ -163,7 +163,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
163
  $tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
164
 
165
  do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
166
- echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('clearfix').'>';
167
  do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
168
 
169
  echo $tick;
22
  /**
23
  * Return the ticker
24
  *
25
+ * @since 1.1.2
26
  */
27
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
28
 
100
  }
101
 
102
  echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
103
+ echo '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
104
 
105
  // Display the title
106
  if( isset($_mtphr_dnt_title) ) {
163
  $tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
164
 
165
  do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
166
+ echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-clearfix').'>';
167
  do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
168
 
169
  echo $tick;
includes/scripts.php CHANGED
@@ -74,7 +74,7 @@ add_action( 'mtphr_dnt_after', 'mtphr_dnt_ticker_scripts', 10, 2 );
74
  /**
75
  * Add the class scripts
76
  *
77
- * @since 1.0.8
78
  */
79
  function mtphr_dnt_ticker_scripts( $id, $meta_data ) {
80
 
@@ -109,7 +109,7 @@ function mtphr_dnt_ticker_scripts( $id, $meta_data ) {
109
  });
110
  </script>
111
  <?php // Echo the compressed scripts
112
- echo mtphr_dnt_compress_script( ob_get_clean() );
113
 
114
  } elseif( $_mtphr_dnt_mode == 'rotate' ) {
115
  $rotate = 0; $pause = 0; $nav_autohide = 0; $nav_reverse = 0;
@@ -148,42 +148,7 @@ function mtphr_dnt_ticker_scripts( $id, $meta_data ) {
148
  });
149
  </script>
150
  <?php // Echo the compressed scripts
151
- echo mtphr_dnt_compress_script( ob_get_clean() );
152
-
153
- // Add the rotation in/out scripts to the footer
154
- if( function_exists('mtphr_dnt_rotate_'.$_mtphr_dnt_rotate_type.'_scripts') ) {
155
- add_action( 'wp_footer', 'mtphr_dnt_rotate_'.$_mtphr_dnt_rotate_type.'_scripts' );
156
- }
157
-
158
- if( $nav_reverse) {
159
-
160
- switch( $_mtphr_dnt_rotate_type ) {
161
-
162
- case 'slide_left':
163
- if( function_exists('mtphr_dnt_rotate_slide_right_scripts') ) {
164
- add_action( 'wp_footer', 'mtphr_dnt_rotate_slide_right_scripts' );
165
- }
166
- break;
167
-
168
- case 'slide_right':
169
- if( function_exists('mtphr_dnt_rotate_slide_left_scripts') ) {
170
- add_action( 'wp_footer', 'mtphr_dnt_rotate_slide_left_scripts' );
171
- }
172
- break;
173
-
174
- case 'slide_up':
175
- if( function_exists('mtphr_dnt_rotate_slide_down_scripts') ) {
176
- add_action( 'wp_footer', 'mtphr_dnt_rotate_slide_down_scripts' );
177
- }
178
- break;
179
-
180
- case 'slide_down':
181
- if( function_exists('mtphr_dnt_rotate_slide_up_scripts') ) {
182
- add_action( 'wp_footer', 'mtphr_dnt_rotate_slide_up_scripts' );
183
- }
184
- break;
185
- }
186
- }
187
  }
188
  }
189
 
@@ -208,398 +173,3 @@ function mtphr_dnt_custom_css() {
208
  }
209
  }
210
 
211
-
212
-
213
-
214
- /**
215
- * Add the rotate fade scripts
216
- *
217
- * @since 1.0.0
218
- */
219
- function mtphr_dnt_rotate_fade_scripts() {
220
- ob_start(); ?>
221
- <script>
222
-
223
- // Initialize the ticks and ticker
224
- function mtphr_dnt_rotator_fade_init( $ticker, ticks, rotate_speed, ease ) {
225
-
226
- // Get the first tick
227
- $tick = ticks[0];
228
-
229
- // Find the width of the tick
230
- var w = $tick.parents('.mtphr-dnt-rotate').width();
231
- var h = $tick.height();
232
-
233
- // Set the height of the ticker
234
- $ticker.css( 'height', h+'px' );
235
-
236
- // Set the initial position of the width & make sure it's visible
237
- $tick.show();
238
- }
239
-
240
- // Show the new tick
241
- function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
242
- $tick.fadeIn( rotate_speed );
243
-
244
- var h = $tick.height();
245
-
246
- // Resize the ticker
247
- $ticker.stop().animate( {
248
- height: h+'px'
249
- }, rotate_speed, ease, function() {
250
- });
251
- }
252
-
253
- // Hide the old tick
254
- function mtphr_dnt_rotator_fade_out( $ticker, $tick, $next, rotate_speed, ease ) {
255
- $tick.fadeOut( rotate_speed );
256
- }
257
- </script>
258
- <?php // Echo the compressed scripts
259
- echo mtphr_dnt_compress_script( ob_get_clean() );
260
- }
261
-
262
- /**
263
- * Add the rotate slide left scripts
264
- *
265
- * @since 1.0.0
266
- */
267
- function mtphr_dnt_rotate_slide_left_scripts() {
268
- ob_start(); ?>
269
- <script>
270
-
271
- // Initialize the ticks and ticker
272
- function mtphr_dnt_rotator_slide_left_init( $ticker, ticks, rotate_speed, ease ) {
273
-
274
- // Get the first tick
275
- $tick = ticks[0];
276
-
277
- // Find the dimensions of the tick
278
- var w = $tick.parents('.mtphr-dnt-rotate').width();
279
- var h = $tick.height();
280
-
281
- // Set the height of the ticker
282
- $ticker.css( 'height', h+'px' );
283
-
284
- // Set the initial position of the width & make sure it's visible
285
- $tick.css( 'left', 0 );
286
- $tick.show();
287
-
288
- // If there are any images, reset height after loading
289
- if( $tick.find('img').length > 0 ) {
290
-
291
- $tick.find('img').each( function(index) {
292
-
293
- jQuery(this).load( function() {
294
-
295
- // Find the height of the tick
296
- var h = $tick.height();
297
-
298
- // Set the height of the ticker
299
- $ticker.css( 'height', h+'px' );
300
- });
301
- });
302
- }
303
- }
304
-
305
- // Show the new tick
306
- function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
307
-
308
- // Find the dimensions of the tick
309
- var w = $tick.parents('.mtphr-dnt-rotate').width();
310
- var h = $tick.height();
311
-
312
- // Set the initial position of the width & make sure it's visible
313
- $tick.css( 'left', w+'px' );
314
- $tick.show();
315
-
316
- // Resize the ticker
317
- $ticker.stop().animate( {
318
- height: h+'px'
319
- }, rotate_speed, ease, function() {
320
- });
321
-
322
- // Slide the tick in
323
- $tick.stop().animate( {
324
- left: '0'
325
- }, rotate_speed, ease, function() {
326
- });
327
- }
328
-
329
- // Hide the old tick
330
- function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
331
-
332
- // Find the dimensions of the tick
333
- var w = $tick.parents('.mtphr-dnt-rotate').width();
334
- var h = $tick.height();
335
-
336
- // Slide the tick in
337
- $tick.stop().animate( {
338
- left: '-'+w+'px'
339
- }, rotate_speed, ease, function() {
340
- // Hide the tick
341
- $tick.hide();
342
- });
343
- }
344
- </script>
345
- <?php // Echo the compressed scripts
346
- echo mtphr_dnt_compress_script( ob_get_clean() );
347
- }
348
-
349
- /**
350
- * Add the rotate slide right scripts
351
- *
352
- * @since 1.0.0
353
- */
354
- function mtphr_dnt_rotate_slide_right_scripts() {
355
- ob_start(); ?>
356
- <script>
357
-
358
- // Initialize the ticks and ticker
359
- function mtphr_dnt_rotator_slide_right_init( $ticker, ticks, rotate_speed, ease ) {
360
-
361
- // Get the first tick
362
- $tick = ticks[0];
363
-
364
- // Find the dimensions of the tick
365
- var w = $tick.parents('.mtphr-dnt-rotate').width();
366
- var h = $tick.height();
367
-
368
- // Set the height of the ticker
369
- $ticker.css( 'height', h+'px' );
370
-
371
- // Set the initial position of the width & make sure it's visible
372
- $tick.css( 'left', 0 );
373
- $tick.show();
374
-
375
- // If there are any images, reset height after loading
376
- if( $tick.find('img').length > 0 ) {
377
-
378
- $tick.find('img').each( function(index) {
379
-
380
- jQuery(this).load( function() {
381
-
382
- // Find the height of the tick
383
- var h = $tick.height();
384
-
385
- // Set the height of the ticker
386
- $ticker.css( 'height', h+'px' );
387
- });
388
- });
389
- }
390
- }
391
-
392
- // Show the new tick
393
- function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
394
-
395
- // Find the dimensions of the tick
396
- var w = $tick.parents('.mtphr-dnt-rotate').width();
397
- var h = $tick.height();
398
-
399
- // Set the initial position of the width & make sure it's visible
400
- $tick.css( 'left', '-'+w+'px' );
401
- $tick.show();
402
-
403
- // Resize the ticker
404
- $ticker.stop().animate( {
405
- height: h+'px'
406
- }, rotate_speed, ease, function() {
407
- });
408
-
409
- // Slide the tick in
410
- $tick.stop().animate( {
411
- left: '0'
412
- }, rotate_speed, ease, function() {
413
- });
414
- }
415
-
416
- // Hide the old tick
417
- function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
418
-
419
- // Find the dimensions of the tick
420
- var w = $tick.parents('.mtphr-dnt-rotate').width();
421
- var h = $tick.height();
422
-
423
- // Slide the tick in
424
- $tick.stop().animate( {
425
- left: w+'px'
426
- }, rotate_speed, ease, function() {
427
- // Hide the tick
428
- $tick.hide();
429
- });
430
- }
431
- </script>
432
- <?php // Echo the compressed scripts
433
- echo mtphr_dnt_compress_script( ob_get_clean() );
434
- }
435
-
436
- /**
437
- * Add the rotate slide down scripts
438
- *
439
- * @since 1.0.0
440
- */
441
- function mtphr_dnt_rotate_slide_down_scripts() {
442
- ob_start(); ?>
443
- <script>
444
-
445
- // Initialize the ticks and ticker
446
- function mtphr_dnt_rotator_slide_down_init( $ticker, ticks, rotate_speed, ease ) {
447
-
448
- // Get the first tick
449
- $tick = ticks[0];
450
-
451
- // Find the height of the tick
452
- var h = $tick.height();
453
-
454
- // Set the height of the ticker
455
- $ticker.css( 'height', h+'px' );
456
-
457
- // Set the initial position of the width & make sure it's visible
458
- $tick.css( 'top', 0 );
459
- $tick.show();
460
-
461
- // If there are any images, reset height after loading
462
- if( $tick.find('img').length > 0 ) {
463
-
464
- $tick.find('img').each( function(index) {
465
-
466
- jQuery(this).load( function() {
467
-
468
- // Find the height of the tick
469
- var h = $tick.height();
470
-
471
- // Set the height of the ticker
472
- $ticker.css( 'height', h+'px' );
473
- });
474
- });
475
- }
476
- }
477
-
478
- // Show the new tick
479
- function mtphr_dnt_rotator_slide_down_in( $ticker, $tick, $prev, rotate_speed, ease ) {
480
-
481
- // Find the height of the tick
482
- var h = $tick.height();
483
-
484
- // Set the initial position of the width & make sure it's visible
485
- $tick.css( 'top', '-'+h+'px' );
486
- $tick.show();
487
-
488
- // Resize the ticker
489
- $ticker.stop().animate( {
490
- height: h+'px'
491
- }, rotate_speed, ease, function() {
492
- });
493
-
494
- // Slide the tick in
495
- $tick.stop().animate( {
496
- top: '0'
497
- }, rotate_speed, ease, function() {
498
- });
499
- }
500
-
501
- // Hide the old tick
502
- function mtphr_dnt_rotator_slide_down_out( $ticker, $tick, $next, rotate_speed, ease ) {
503
-
504
- // Find the height of the next tick
505
- var h = $next.height();
506
-
507
- // Slide the tick in
508
- $tick.stop().animate( {
509
- top: h+'px'
510
- }, rotate_speed, ease, function() {
511
- // Hide the tick
512
- $tick.hide();
513
- });
514
- }
515
- </script>
516
- <?php // Echo the compressed scripts
517
- echo mtphr_dnt_compress_script( ob_get_clean() );
518
- }
519
-
520
- /**
521
- * Add the rotate slide up scripts
522
- *
523
- * @since 1.0.2
524
- */
525
- function mtphr_dnt_rotate_slide_up_scripts() {
526
- ob_start(); ?>
527
- <script>
528
-
529
- // Initialize the ticks and ticker
530
- function mtphr_dnt_rotator_slide_up_init( $ticker, ticks, rotate_speed, ease ) {
531
-
532
- // Get the first tick
533
- $tick = ticks[0];
534
-
535
- // Find the height of the tick
536
- var h = $tick.height();
537
-
538
- // Set the height of the ticker
539
- $ticker.css( 'height', h+'px' );
540
-
541
- // Set the initial position of the width & make sure it's visible
542
- $tick.css( 'top', 0 );
543
- $tick.show();
544
-
545
- // If there are any images, reset height after loading
546
- if( $tick.find('img').length > 0 ) {
547
-
548
- $tick.find('img').each( function(index) {
549
-
550
- jQuery(this).load( function() {
551
-
552
- // Find the height of the tick
553
- var h = $tick.height();
554
-
555
- // Set the height of the ticker
556
- $ticker.css( 'height', h+'px' );
557
- });
558
- });
559
- }
560
- }
561
-
562
- // Show the new tick
563
- function mtphr_dnt_rotator_slide_up_in( $ticker, $tick, $prev, rotate_speed, ease ) {
564
-
565
- // Find the height of the tick
566
- var h = $tick.height();
567
-
568
- // Set the initial position of the width & make sure it's visible
569
- $tick.css( 'top', $prev.height()+'px' );
570
- $tick.show();
571
-
572
- // Resize the ticker
573
- $ticker.stop().animate( {
574
- height: h+'px'
575
- }, rotate_speed, ease, function() {
576
- });
577
-
578
- // Slide the tick in
579
- $tick.stop().animate( {
580
- top: '0'
581
- }, rotate_speed, ease, function() {
582
- });
583
- }
584
-
585
- // Hide the old tick
586
- function mtphr_dnt_rotator_slide_up_out( $ticker, $tick, $next, rotate_speed, ease ) {
587
-
588
- // Find the height of the next tick
589
- var h = $tick.height();
590
-
591
- // Slide the tick in
592
- $tick.stop().animate( {
593
- top: '-'+h+'px'
594
- }, rotate_speed, ease, function() {
595
- // Hide the tick
596
- $tick.hide();
597
- });
598
- }
599
- </script>
600
- <?php // Echo the compressed scripts
601
- echo mtphr_dnt_compress_script( ob_get_clean() );
602
- }
603
-
604
-
605
-
74
  /**
75
  * Add the class scripts
76
  *
77
+ * @since 1.1.2
78
  */
79
  function mtphr_dnt_ticker_scripts( $id, $meta_data ) {
80
 
109
  });
110
  </script>
111
  <?php // Echo the compressed scripts
112
+ echo ob_get_clean();
113
 
114
  } elseif( $_mtphr_dnt_mode == 'rotate' ) {
115
  $rotate = 0; $pause = 0; $nav_autohide = 0; $nav_reverse = 0;
148
  });
149
  </script>
150
  <?php // Echo the compressed scripts
151
+ echo ob_get_clean();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
153
  }
154
 
173
  }
174
  }
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/ditty-news-ticker-en_US.mo CHANGED
Binary file
languages/ditty-news-ticker-en_US.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Ditty News Ticker v1.0.5\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2013-02-26 01:54:01+0000\n"
7
  "Last-Translator: admin <joe@metaphorcreations.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -31,7 +31,7 @@ msgid "Mode"
31
  msgstr "Mode"
32
 
33
  #: includes/edit-columns.php:25
34
- #: includes/meta-boxes.php:496
35
  #@ ditty-news-ticker
36
  msgid "Shortcode"
37
  msgstr "Shortcode"
@@ -41,22 +41,22 @@ msgstr "Shortcode"
41
  msgid "Direct Function"
42
  msgstr "Direct Function"
43
 
44
- #: includes/functions.php:342
45
  #@ ditty-news-ticker
46
  msgid "Default"
47
  msgstr "Default"
48
 
49
- #: includes/functions.php:362
50
  #@ ditty-news-ticker
51
  msgid "Scroll"
52
  msgstr "Scroll"
53
 
54
- #: includes/functions.php:366
55
  #@ ditty-news-ticker
56
  msgid "Rotate"
57
  msgstr "Rotate"
58
 
59
- #: includes/functions.php:370
60
  #@ ditty-news-ticker
61
  msgid "List"
62
  msgstr "List"
@@ -137,329 +137,329 @@ msgstr "Link"
137
  msgid "Target"
138
  msgstr "Target"
139
 
140
- #: includes/meta-boxes.php:87
141
  #@ ditty-news-ticker
142
  msgid "Default Ticker Items"
143
  msgstr "Default Ticker Items"
144
 
145
- #: includes/meta-boxes.php:121
146
  #@ ditty-news-ticker
147
  msgid "Ticker Mode"
148
  msgstr "Ticker Mode"
149
 
150
- #: includes/meta-boxes.php:148
151
  #@ ditty-news-ticker
152
  msgid "Scroll direction"
153
  msgstr "Scroll direction"
154
 
155
- #: includes/meta-boxes.php:150
156
  #@ ditty-news-ticker
157
  msgid "Left"
158
  msgstr "Left"
159
 
160
- #: includes/meta-boxes.php:151
161
  #@ ditty-news-ticker
162
  msgid "Right"
163
  msgstr "Right"
164
 
165
- #: includes/meta-boxes.php:152
166
  #@ ditty-news-ticker
167
  msgid "Up"
168
  msgstr "Up"
169
 
170
- #: includes/meta-boxes.php:153
171
  #@ ditty-news-ticker
172
  msgid "Down"
173
  msgstr "Down"
174
 
175
- #: includes/meta-boxes.php:156
176
  #@ ditty-news-ticker
177
  msgid "Set the scroll direction of the ticker."
178
  msgstr "Set the scroll direction of the ticker."
179
 
180
- #: includes/meta-boxes.php:164
181
- #: includes/meta-boxes.php:272
182
  #@ ditty-news-ticker
183
  msgid "Tick dimensions"
184
  msgstr "Tick dimensions"
185
 
186
- #: includes/meta-boxes.php:166
187
  #@ ditty-news-ticker
188
  msgid "Width"
189
  msgstr "Width"
190
 
191
- #: includes/meta-boxes.php:167
192
- #: includes/meta-boxes.php:275
193
  #@ ditty-news-ticker
194
  msgid "Override the auto dimensions with specific values."
195
  msgstr "Override the auto dimensions with specific values."
196
 
197
- #: includes/meta-boxes.php:172
198
- #: includes/meta-boxes.php:274
199
  #@ ditty-news-ticker
200
  msgid "Height"
201
  msgstr "Height"
202
 
203
- #: includes/meta-boxes.php:181
204
  #@ ditty-news-ticker
205
  msgid "Scroller padding"
206
  msgstr "Scroller padding"
207
 
208
- #: includes/meta-boxes.php:183
209
- #: includes/meta-boxes.php:284
210
- #: includes/meta-boxes.php:398
211
  #@ ditty-news-ticker
212
  msgid "Vertical padding"
213
  msgstr "Vertical padding"
214
 
215
- #: includes/meta-boxes.php:184
216
  #@ ditty-news-ticker
217
  msgid "Set the vertical spacing of the scrolling data."
218
  msgstr "Set the vertical spacing of the scrolling data."
219
 
220
- #: includes/meta-boxes.php:189
221
- #: includes/meta-boxes.php:290
222
- #: includes/meta-boxes.php:404
223
  #@ ditty-news-ticker
224
  msgid "Vertical margin"
225
  msgstr "Vertical margin"
226
 
227
- #: includes/meta-boxes.php:198
228
  #@ ditty-news-ticker
229
  msgid "Scroll speed"
230
  msgstr "Scroll speed"
231
 
232
- #: includes/meta-boxes.php:200
233
  #@ ditty-news-ticker
234
  msgid "Set the speed of the scrolling data."
235
  msgstr "Set the speed of the scrolling data."
236
 
237
- #: includes/meta-boxes.php:204
238
- #: includes/meta-boxes.php:310
239
  #@ ditty-news-ticker
240
  msgid "Pause on mouse over"
241
  msgstr "Pause on mouse over"
242
 
243
- #: includes/meta-boxes.php:213
244
- #: includes/meta-boxes.php:413
245
  #@ ditty-news-ticker
246
  msgid "Tick spacing"
247
  msgstr "Tick spacing"
248
 
249
- #: includes/meta-boxes.php:215
250
- #: includes/meta-boxes.php:415
251
  #@ ditty-news-ticker
252
  msgid "Pixels"
253
  msgstr "Pixels"
254
 
255
- #: includes/meta-boxes.php:216
256
  #@ ditty-news-ticker
257
  msgid "Set the spacing between scrolling data."
258
  msgstr "Set the spacing between scrolling data."
259
 
260
- #: includes/meta-boxes.php:222
261
  #@ ditty-news-ticker
262
  msgid "Scroll Settings"
263
  msgstr "Scroll Settings"
264
 
265
- #: includes/meta-boxes.php:249
266
  #@ ditty-news-ticker
267
  msgid "Rotation type"
268
  msgstr "Rotation type"
269
 
270
- #: includes/meta-boxes.php:251
271
  #@ ditty-news-ticker
272
  msgid "Fade"
273
  msgstr "Fade"
274
 
275
- #: includes/meta-boxes.php:252
276
  #@ ditty-news-ticker
277
  msgid "Slide left"
278
  msgstr "Slide left"
279
 
280
- #: includes/meta-boxes.php:253
281
  #@ ditty-news-ticker
282
  msgid "Slide right"
283
  msgstr "Slide right"
284
 
285
- #: includes/meta-boxes.php:254
286
  #@ ditty-news-ticker
287
  msgid "Slide up"
288
  msgstr "Slide up"
289
 
290
- #: includes/meta-boxes.php:255
291
  #@ ditty-news-ticker
292
  msgid "Slide down"
293
  msgstr "Slide down"
294
 
295
- #: includes/meta-boxes.php:258
296
  #@ ditty-news-ticker
297
  msgid "Set the type of rotation for the ticker."
298
  msgstr "Set the type of rotation for the ticker."
299
 
300
- #: includes/meta-boxes.php:263
301
  #@ ditty-news-ticker
302
  msgid "Dynamic slide direction"
303
  msgstr "Dynamic slide direction"
304
 
305
- #: includes/meta-boxes.php:282
306
  #@ ditty-news-ticker
307
  msgid "Rotator padding"
308
  msgstr "Rotator padding"
309
 
310
- #: includes/meta-boxes.php:285
311
  #@ ditty-news-ticker
312
  msgid "Set the vertical spacing of the rotating data."
313
  msgstr "Set the vertical spacing of the rotating data."
314
 
315
- #: includes/meta-boxes.php:299
316
  #@ ditty-news-ticker
317
  msgid "Auto rotate"
318
  msgstr "Auto rotate"
319
 
320
- #: includes/meta-boxes.php:300
321
- #: includes/meta-boxes.php:336
322
- #: includes/meta-boxes.php:351
323
  #@ ditty-news-ticker
324
  msgid "Enable"
325
  msgstr "Enable"
326
 
327
- #: includes/meta-boxes.php:301
328
  #@ ditty-news-ticker
329
  msgid "Set the delay between rotations."
330
  msgstr "Set the delay between rotations."
331
 
332
- #: includes/meta-boxes.php:306
333
  #@ ditty-news-ticker
334
  msgid "Seconds delay"
335
  msgstr "Seconds delay"
336
 
337
- #: includes/meta-boxes.php:319
338
  #@ ditty-news-ticker
339
  msgid "Rotate speed"
340
  msgstr "Rotate speed"
341
 
342
- #: includes/meta-boxes.php:321
343
  #@ ditty-news-ticker
344
  msgid "Tenths of a second"
345
  msgstr "Tenths of a second"
346
 
347
- #: includes/meta-boxes.php:322
348
  #@ ditty-news-ticker
349
  msgid "Set the speed & easing of the rotation."
350
  msgstr "Set the speed & easing of the rotation."
351
 
352
- #: includes/meta-boxes.php:335
353
  #@ ditty-news-ticker
354
  msgid "Directional navigation"
355
  msgstr "Directional navigation"
356
 
357
- #: includes/meta-boxes.php:337
358
  #@ ditty-news-ticker
359
  msgid "Set the directional navigation options."
360
  msgstr "Set the directional navigation options."
361
 
362
- #: includes/meta-boxes.php:341
363
  #@ ditty-news-ticker
364
  msgid "Autohide navigation"
365
  msgstr "Autohide navigation"
366
 
367
- #: includes/meta-boxes.php:350
368
  #@ ditty-news-ticker
369
  msgid "Control navigation"
370
  msgstr "Control navigation"
371
 
372
- #: includes/meta-boxes.php:352
373
  #@ ditty-news-ticker
374
  msgid "Set the control navigation options."
375
  msgstr "Set the control navigation options."
376
 
377
- #: includes/meta-boxes.php:357
378
  #@ ditty-news-ticker
379
  msgid "Numbers"
380
  msgstr "Numbers"
381
 
382
- #: includes/meta-boxes.php:358
383
  #@ ditty-news-ticker
384
  msgid "Buttons"
385
  msgstr "Buttons"
386
 
387
- #: includes/meta-boxes.php:369
388
  #@ ditty-news-ticker
389
  msgid "Rotate Settings"
390
  msgstr "Rotate Settings"
391
 
392
- #: includes/meta-boxes.php:396
393
  #@ ditty-news-ticker
394
  msgid "List padding"
395
  msgstr "List padding"
396
 
397
- #: includes/meta-boxes.php:399
398
  #@ ditty-news-ticker
399
  msgid "Set the vertical spacing of the list container."
400
  msgstr "Set the vertical spacing of the list container."
401
 
402
- #: includes/meta-boxes.php:416
403
  #@ ditty-news-ticker
404
  msgid "Set the spacing between ticks."
405
  msgstr "Set the spacing between ticks."
406
 
407
- #: includes/meta-boxes.php:422
408
  #@ ditty-news-ticker
409
  msgid "List Settings"
410
  msgstr "List Settings"
411
 
412
- #: includes/meta-boxes.php:449
413
  #@ ditty-news-ticker
414
  msgid "Display title"
415
  msgstr "Display title"
416
 
417
- #: includes/meta-boxes.php:453
418
  #@ ditty-news-ticker
419
  msgid "Inline title"
420
  msgstr "Inline title"
421
 
422
- #: includes/meta-boxes.php:461
423
  #@ ditty-news-ticker
424
  msgid "Ticker width <em>(optional)</em>"
425
  msgstr "Ticker width <em>(optional)</em>"
426
 
427
- #: includes/meta-boxes.php:463
428
  #@ ditty-news-ticker
429
  msgid "Override the auto width a with specific value."
430
  msgstr "Override the auto width a with specific value."
431
 
432
- #: includes/meta-boxes.php:469
433
  #@ ditty-news-ticker
434
  msgid "Global Settings"
435
  msgstr "Global Settings"
436
 
437
- #: includes/meta-boxes.php:497
438
  #@ ditty-news-ticker
439
  msgid "Select Shortcode"
440
  msgstr "Select Shortcode"
441
 
442
- #: includes/meta-boxes.php:498
443
  #@ ditty-news-ticker
444
  msgid "Use this shortcode to insert the ticker into a post/page."
445
  msgstr "Use this shortcode to insert the ticker into a post/page."
446
 
447
- #: includes/meta-boxes.php:505
448
  #@ ditty-news-ticker
449
  msgid "Direct function"
450
  msgstr "Direct function"
451
 
452
- #: includes/meta-boxes.php:506
453
  #@ ditty-news-ticker
454
  msgid "Select Function"
455
  msgstr "Select Function"
456
 
457
- #: includes/meta-boxes.php:507
458
  #@ ditty-news-ticker
459
  msgid "Place this code directly into your theme to display the ticker."
460
  msgstr "Place this code directly into your theme to display the ticker."
461
 
462
- #: includes/meta-boxes.php:513
463
  #@ ditty-news-ticker
464
  msgid "Ticker Display"
465
  msgstr "Ticker Display"
@@ -541,93 +541,11 @@ msgstr "Custom CSS"
541
  msgid "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
542
  msgstr "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
543
 
544
- #: includes/settings.php:58
545
- #: includes/settings.php:95
546
- #@ ditty-news-ticker
547
- msgid "&nbsp;"
548
- msgstr "&nbsp;"
549
-
550
- #: includes/settings.php:130
551
  #@ ditty-news-ticker
552
  msgid "Ditty News Ticker Settings"
553
  msgstr "Ditty News Ticker Settings"
554
 
555
- #: includes/settings.php:144
556
- #@ ditty-news-ticker
557
- msgid "General"
558
- msgstr "General"
559
-
560
- #: includes/settings.php:145
561
- #@ ditty-news-ticker
562
- msgid "Extension Licenses"
563
- msgstr "Extension Licenses"
564
-
565
- #: includes/settings.php:178
566
- #@ ditty-news-ticker
567
- msgid "Add global settings to your news tickers."
568
- msgstr "Add global settings to your news tickers."
569
-
570
- #: includes/settings.php:179
571
- #@ ditty-news-ticker
572
- msgid "Use the Custom CSS textarea to set global or individual styles to each of your tickers."
573
- msgstr "Use the Custom CSS textarea to set global or individual styles to each of your tickers."
574
-
575
- #: includes/settings.php:188
576
- #@ ditty-news-ticker
577
- msgid "Add the licenses for each of your extensions."
578
- msgstr "Add the licenses for each of your extensions."
579
-
580
- #: includes/taxonomies.php:21
581
- #: includes/taxonomies.php:31
582
- #@ ditty-news-ticker
583
- msgid "Categories"
584
- msgstr "Categories"
585
-
586
- #: includes/taxonomies.php:22
587
- #@ ditty-news-ticker
588
- msgid "Category"
589
- msgstr "Category"
590
-
591
- #: includes/taxonomies.php:23
592
- #@ ditty-news-ticker
593
- msgid "Search Categories"
594
- msgstr "Search Categories"
595
-
596
- #: includes/taxonomies.php:24
597
- #@ ditty-news-ticker
598
- msgid "All Categories"
599
- msgstr "All Categories"
600
-
601
- #: includes/taxonomies.php:25
602
- #@ ditty-news-ticker
603
- msgid "Parent"
604
- msgstr "Parent"
605
-
606
- #: includes/taxonomies.php:26
607
- #@ ditty-news-ticker
608
- msgid "Parent:"
609
- msgstr "Parent:"
610
-
611
- #: includes/taxonomies.php:27
612
- #@ ditty-news-ticker
613
- msgid "Edit Category"
614
- msgstr "Edit Category"
615
-
616
- #: includes/taxonomies.php:28
617
- #@ ditty-news-ticker
618
- msgid "Update Category"
619
- msgstr "Update Category"
620
-
621
- #: includes/taxonomies.php:29
622
- #@ ditty-news-ticker
623
- msgid "Add New Category"
624
- msgstr "Add New Category"
625
-
626
- #: includes/taxonomies.php:30
627
- #@ ditty-news-ticker
628
- msgid "New Category"
629
- msgstr "New Category"
630
-
631
  #: includes/widget.php:42
632
  #@ ditty-news-ticker
633
  msgid "Displays a Ditty News Ticker."
@@ -653,3 +571,13 @@ msgstr "Display Ticker Title?"
653
  msgid "View DNT extensions"
654
  msgstr "View DNT extensions"
655
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Ditty News Ticker v1.1.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-03-17 12:37:15+0000\n"
7
  "Last-Translator: admin <joe@metaphorcreations.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
31
  msgstr "Mode"
32
 
33
  #: includes/edit-columns.php:25
34
+ #: includes/meta-boxes.php:500
35
  #@ ditty-news-ticker
36
  msgid "Shortcode"
37
  msgstr "Shortcode"
41
  msgid "Direct Function"
42
  msgstr "Direct Function"
43
 
44
+ #: includes/functions.php:348
45
  #@ ditty-news-ticker
46
  msgid "Default"
47
  msgstr "Default"
48
 
49
+ #: includes/functions.php:368
50
  #@ ditty-news-ticker
51
  msgid "Scroll"
52
  msgstr "Scroll"
53
 
54
+ #: includes/functions.php:372
55
  #@ ditty-news-ticker
56
  msgid "Rotate"
57
  msgstr "Rotate"
58
 
59
+ #: includes/functions.php:376
60
  #@ ditty-news-ticker
61
  msgid "List"
62
  msgstr "List"
137
  msgid "Target"
138
  msgstr "Target"
139
 
140
+ #: includes/meta-boxes.php:91
141
  #@ ditty-news-ticker
142
  msgid "Default Ticker Items"
143
  msgstr "Default Ticker Items"
144
 
145
+ #: includes/meta-boxes.php:125
146
  #@ ditty-news-ticker
147
  msgid "Ticker Mode"
148
  msgstr "Ticker Mode"
149
 
150
+ #: includes/meta-boxes.php:152
151
  #@ ditty-news-ticker
152
  msgid "Scroll direction"
153
  msgstr "Scroll direction"
154
 
155
+ #: includes/meta-boxes.php:154
156
  #@ ditty-news-ticker
157
  msgid "Left"
158
  msgstr "Left"
159
 
160
+ #: includes/meta-boxes.php:155
161
  #@ ditty-news-ticker
162
  msgid "Right"
163
  msgstr "Right"
164
 
165
+ #: includes/meta-boxes.php:156
166
  #@ ditty-news-ticker
167
  msgid "Up"
168
  msgstr "Up"
169
 
170
+ #: includes/meta-boxes.php:157
171
  #@ ditty-news-ticker
172
  msgid "Down"
173
  msgstr "Down"
174
 
175
+ #: includes/meta-boxes.php:160
176
  #@ ditty-news-ticker
177
  msgid "Set the scroll direction of the ticker."
178
  msgstr "Set the scroll direction of the ticker."
179
 
180
+ #: includes/meta-boxes.php:168
181
+ #: includes/meta-boxes.php:276
182
  #@ ditty-news-ticker
183
  msgid "Tick dimensions"
184
  msgstr "Tick dimensions"
185
 
186
+ #: includes/meta-boxes.php:170
187
  #@ ditty-news-ticker
188
  msgid "Width"
189
  msgstr "Width"
190
 
191
+ #: includes/meta-boxes.php:171
192
+ #: includes/meta-boxes.php:279
193
  #@ ditty-news-ticker
194
  msgid "Override the auto dimensions with specific values."
195
  msgstr "Override the auto dimensions with specific values."
196
 
197
+ #: includes/meta-boxes.php:176
198
+ #: includes/meta-boxes.php:278
199
  #@ ditty-news-ticker
200
  msgid "Height"
201
  msgstr "Height"
202
 
203
+ #: includes/meta-boxes.php:185
204
  #@ ditty-news-ticker
205
  msgid "Scroller padding"
206
  msgstr "Scroller padding"
207
 
208
+ #: includes/meta-boxes.php:187
209
+ #: includes/meta-boxes.php:288
210
+ #: includes/meta-boxes.php:402
211
  #@ ditty-news-ticker
212
  msgid "Vertical padding"
213
  msgstr "Vertical padding"
214
 
215
+ #: includes/meta-boxes.php:188
216
  #@ ditty-news-ticker
217
  msgid "Set the vertical spacing of the scrolling data."
218
  msgstr "Set the vertical spacing of the scrolling data."
219
 
220
+ #: includes/meta-boxes.php:193
221
+ #: includes/meta-boxes.php:294
222
+ #: includes/meta-boxes.php:408
223
  #@ ditty-news-ticker
224
  msgid "Vertical margin"
225
  msgstr "Vertical margin"
226
 
227
+ #: includes/meta-boxes.php:202
228
  #@ ditty-news-ticker
229
  msgid "Scroll speed"
230
  msgstr "Scroll speed"
231
 
232
+ #: includes/meta-boxes.php:204
233
  #@ ditty-news-ticker
234
  msgid "Set the speed of the scrolling data."
235
  msgstr "Set the speed of the scrolling data."
236
 
237
+ #: includes/meta-boxes.php:208
238
+ #: includes/meta-boxes.php:314
239
  #@ ditty-news-ticker
240
  msgid "Pause on mouse over"
241
  msgstr "Pause on mouse over"
242
 
243
+ #: includes/meta-boxes.php:217
244
+ #: includes/meta-boxes.php:417
245
  #@ ditty-news-ticker
246
  msgid "Tick spacing"
247
  msgstr "Tick spacing"
248
 
249
+ #: includes/meta-boxes.php:219
250
+ #: includes/meta-boxes.php:419
251
  #@ ditty-news-ticker
252
  msgid "Pixels"
253
  msgstr "Pixels"
254
 
255
+ #: includes/meta-boxes.php:220
256
  #@ ditty-news-ticker
257
  msgid "Set the spacing between scrolling data."
258
  msgstr "Set the spacing between scrolling data."
259
 
260
+ #: includes/meta-boxes.php:226
261
  #@ ditty-news-ticker
262
  msgid "Scroll Settings"
263
  msgstr "Scroll Settings"
264
 
265
+ #: includes/meta-boxes.php:253
266
  #@ ditty-news-ticker
267
  msgid "Rotation type"
268
  msgstr "Rotation type"
269
 
270
+ #: includes/meta-boxes.php:255
271
  #@ ditty-news-ticker
272
  msgid "Fade"
273
  msgstr "Fade"
274
 
275
+ #: includes/meta-boxes.php:256
276
  #@ ditty-news-ticker
277
  msgid "Slide left"
278
  msgstr "Slide left"
279
 
280
+ #: includes/meta-boxes.php:257
281
  #@ ditty-news-ticker
282
  msgid "Slide right"
283
  msgstr "Slide right"
284
 
285
+ #: includes/meta-boxes.php:258
286
  #@ ditty-news-ticker
287
  msgid "Slide up"
288
  msgstr "Slide up"
289
 
290
+ #: includes/meta-boxes.php:259
291
  #@ ditty-news-ticker
292
  msgid "Slide down"
293
  msgstr "Slide down"
294
 
295
+ #: includes/meta-boxes.php:262
296
  #@ ditty-news-ticker
297
  msgid "Set the type of rotation for the ticker."
298
  msgstr "Set the type of rotation for the ticker."
299
 
300
+ #: includes/meta-boxes.php:267
301
  #@ ditty-news-ticker
302
  msgid "Dynamic slide direction"
303
  msgstr "Dynamic slide direction"
304
 
305
+ #: includes/meta-boxes.php:286
306
  #@ ditty-news-ticker
307
  msgid "Rotator padding"
308
  msgstr "Rotator padding"
309
 
310
+ #: includes/meta-boxes.php:289
311
  #@ ditty-news-ticker
312
  msgid "Set the vertical spacing of the rotating data."
313
  msgstr "Set the vertical spacing of the rotating data."
314
 
315
+ #: includes/meta-boxes.php:303
316
  #@ ditty-news-ticker
317
  msgid "Auto rotate"
318
  msgstr "Auto rotate"
319
 
320
+ #: includes/meta-boxes.php:304
321
+ #: includes/meta-boxes.php:340
322
+ #: includes/meta-boxes.php:355
323
  #@ ditty-news-ticker
324
  msgid "Enable"
325
  msgstr "Enable"
326
 
327
+ #: includes/meta-boxes.php:305
328
  #@ ditty-news-ticker
329
  msgid "Set the delay between rotations."
330
  msgstr "Set the delay between rotations."
331
 
332
+ #: includes/meta-boxes.php:310
333
  #@ ditty-news-ticker
334
  msgid "Seconds delay"
335
  msgstr "Seconds delay"
336
 
337
+ #: includes/meta-boxes.php:323
338
  #@ ditty-news-ticker
339
  msgid "Rotate speed"
340
  msgstr "Rotate speed"
341
 
342
+ #: includes/meta-boxes.php:325
343
  #@ ditty-news-ticker
344
  msgid "Tenths of a second"
345
  msgstr "Tenths of a second"
346
 
347
+ #: includes/meta-boxes.php:326
348
  #@ ditty-news-ticker
349
  msgid "Set the speed & easing of the rotation."
350
  msgstr "Set the speed & easing of the rotation."
351
 
352
+ #: includes/meta-boxes.php:339
353
  #@ ditty-news-ticker
354
  msgid "Directional navigation"
355
  msgstr "Directional navigation"
356
 
357
+ #: includes/meta-boxes.php:341
358
  #@ ditty-news-ticker
359
  msgid "Set the directional navigation options."
360
  msgstr "Set the directional navigation options."
361
 
362
+ #: includes/meta-boxes.php:345
363
  #@ ditty-news-ticker
364
  msgid "Autohide navigation"
365
  msgstr "Autohide navigation"
366
 
367
+ #: includes/meta-boxes.php:354
368
  #@ ditty-news-ticker
369
  msgid "Control navigation"
370
  msgstr "Control navigation"
371
 
372
+ #: includes/meta-boxes.php:356
373
  #@ ditty-news-ticker
374
  msgid "Set the control navigation options."
375
  msgstr "Set the control navigation options."
376
 
377
+ #: includes/meta-boxes.php:361
378
  #@ ditty-news-ticker
379
  msgid "Numbers"
380
  msgstr "Numbers"
381
 
382
+ #: includes/meta-boxes.php:362
383
  #@ ditty-news-ticker
384
  msgid "Buttons"
385
  msgstr "Buttons"
386
 
387
+ #: includes/meta-boxes.php:373
388
  #@ ditty-news-ticker
389
  msgid "Rotate Settings"
390
  msgstr "Rotate Settings"
391
 
392
+ #: includes/meta-boxes.php:400
393
  #@ ditty-news-ticker
394
  msgid "List padding"
395
  msgstr "List padding"
396
 
397
+ #: includes/meta-boxes.php:403
398
  #@ ditty-news-ticker
399
  msgid "Set the vertical spacing of the list container."
400
  msgstr "Set the vertical spacing of the list container."
401
 
402
+ #: includes/meta-boxes.php:420
403
  #@ ditty-news-ticker
404
  msgid "Set the spacing between ticks."
405
  msgstr "Set the spacing between ticks."
406
 
407
+ #: includes/meta-boxes.php:426
408
  #@ ditty-news-ticker
409
  msgid "List Settings"
410
  msgstr "List Settings"
411
 
412
+ #: includes/meta-boxes.php:453
413
  #@ ditty-news-ticker
414
  msgid "Display title"
415
  msgstr "Display title"
416
 
417
+ #: includes/meta-boxes.php:457
418
  #@ ditty-news-ticker
419
  msgid "Inline title"
420
  msgstr "Inline title"
421
 
422
+ #: includes/meta-boxes.php:465
423
  #@ ditty-news-ticker
424
  msgid "Ticker width <em>(optional)</em>"
425
  msgstr "Ticker width <em>(optional)</em>"
426
 
427
+ #: includes/meta-boxes.php:467
428
  #@ ditty-news-ticker
429
  msgid "Override the auto width a with specific value."
430
  msgstr "Override the auto width a with specific value."
431
 
432
+ #: includes/meta-boxes.php:473
433
  #@ ditty-news-ticker
434
  msgid "Global Settings"
435
  msgstr "Global Settings"
436
 
437
+ #: includes/meta-boxes.php:501
438
  #@ ditty-news-ticker
439
  msgid "Select Shortcode"
440
  msgstr "Select Shortcode"
441
 
442
+ #: includes/meta-boxes.php:502
443
  #@ ditty-news-ticker
444
  msgid "Use this shortcode to insert the ticker into a post/page."
445
  msgstr "Use this shortcode to insert the ticker into a post/page."
446
 
447
+ #: includes/meta-boxes.php:509
448
  #@ ditty-news-ticker
449
  msgid "Direct function"
450
  msgstr "Direct function"
451
 
452
+ #: includes/meta-boxes.php:510
453
  #@ ditty-news-ticker
454
  msgid "Select Function"
455
  msgstr "Select Function"
456
 
457
+ #: includes/meta-boxes.php:511
458
  #@ ditty-news-ticker
459
  msgid "Place this code directly into your theme to display the ticker."
460
  msgstr "Place this code directly into your theme to display the ticker."
461
 
462
+ #: includes/meta-boxes.php:517
463
  #@ ditty-news-ticker
464
  msgid "Ticker Display"
465
  msgstr "Ticker Display"
541
  msgid "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
542
  msgstr "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
543
 
544
+ #: includes/settings.php:90
 
 
 
 
 
 
545
  #@ ditty-news-ticker
546
  msgid "Ditty News Ticker Settings"
547
  msgstr "Ditty News Ticker Settings"
548
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
549
  #: includes/widget.php:42
550
  #@ ditty-news-ticker
551
  msgid "Displays a Ditty News Ticker."
571
  msgid "View DNT extensions"
572
  msgstr "View DNT extensions"
573
 
574
+ #: includes/meta-boxes.php:73
575
+ #@ ditty-news-ticker
576
+ msgid "NF"
577
+ msgstr "NF"
578
+
579
+ #: includes/settings.php:136
580
+ #@ ditty-news-ticker
581
+ msgid "The global settings to your news tickers."
582
+ msgstr "The global settings to your news tickers."
583
+
readme.txt CHANGED
@@ -52,6 +52,13 @@ Each individual Ticker post has multiple settings to customize.
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
 
55
  = 1.1.1 =
56
  * Minor fix.
57
 
@@ -109,6 +116,9 @@ Each individual Ticker post has multiple settings to customize.
109
 
110
  == Upgrade Notice ==
111
 
 
 
 
112
  = 1.1.1 =
113
  Minor fix.
114
 
52
 
53
  == Changelog ==
54
 
55
+ = 1.1.2 =
56
+ * Reworked scroll mode to function better in IE.
57
+ * Added a global offset to scrolling and rotating ticks to are hidden.
58
+ * Moved rotating tick code into .js file.
59
+ * Added css for max-image: 100%.
60
+ * Converted .clearfix class to custom .mtrph-dnt-clearfix to avoid conflicts.
61
+
62
  = 1.1.1 =
63
  * Minor fix.
64
 
116
 
117
  == Upgrade Notice ==
118
 
119
+ = 1.1.2 =
120
+ Reworked scroll mode to function better in IE. Added a global offset to scrolling and rotating ticks to are hidden. Moved rotating tick code into .js file. Added css for max-image: 100%. Converted .clearfix class to custom .mtrph-dnt-clearfix to avoid conflicts.
121
+
122
  = 1.1.1 =
123
  Minor fix.
124