Ditty News Ticker - Version 1.4.2

Version Description

  • Added WPML Support
  • Fixed jquery script issue for multiple same tickers with unique ids
Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.2

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.4.1
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
9
  License: GPL2
@@ -31,12 +31,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
  /**
32
  * Define constants
33
  *
34
- * @since 1.4.0
35
  */
36
  if ( WP_DEBUG ) {
37
- define ( 'MTPHR_DNT_VERSION', '1.4.1-'.time() );
38
  } else {
39
- define ( 'MTPHR_DNT_VERSION', '1.4.1' );
40
  }
41
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
42
  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.4.2
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
9
  License: GPL2
31
  /**
32
  * Define constants
33
  *
34
+ * @since 1.4.2
35
  */
36
  if ( WP_DEBUG ) {
37
+ define ( 'MTPHR_DNT_VERSION', '1.4.2-'.time() );
38
  } else {
39
+ define ( 'MTPHR_DNT_VERSION', '1.4.2' );
40
  }
41
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
42
  define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
includes/filters.php CHANGED
@@ -186,7 +186,7 @@ add_action( 'mtphr_dnt_after', 'mtphr_dnt_pagination', 10, 3 );
186
 
187
 
188
  /* --------------------------------------------------------- */
189
- /* !Add tickers to the global - 1.4.0 */
190
  /* --------------------------------------------------------- */
191
 
192
  function mtphr_dnt_add_to_global( $id, $meta_data ) {
@@ -199,14 +199,16 @@ function mtphr_dnt_add_to_global( $id, $meta_data ) {
199
 
200
  global $mtphr_dnt_ticker_scripts;
201
 
202
- $ticker = '#mtphr-dnt-'.$id;
203
 
204
  // Add a unique id class, if there is one
205
  if( isset($_mtphr_dnt_unique_id) ) {
206
  if( $_mtphr_dnt_unique_id != '' ) {
207
- $ticker = '#mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
208
  }
209
  }
 
 
210
 
211
  $scroll_pause = 0; $scroll_init = 0;
212
  if( isset($_mtphr_dnt_scroll_pause) ) {
186
 
187
 
188
  /* --------------------------------------------------------- */
189
+ /* !Add tickers to the global - 1.4.2 */
190
  /* --------------------------------------------------------- */
191
 
192
  function mtphr_dnt_add_to_global( $id, $meta_data ) {
199
 
200
  global $mtphr_dnt_ticker_scripts;
201
 
202
+
203
 
204
  // Add a unique id class, if there is one
205
  if( isset($_mtphr_dnt_unique_id) ) {
206
  if( $_mtphr_dnt_unique_id != '' ) {
207
+ $id = $id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
208
  }
209
  }
210
+
211
+ $ticker = '#mtphr-dnt-'.$id;
212
 
213
  $scroll_pause = 0; $scroll_init = 0;
214
  if( isset($_mtphr_dnt_scroll_pause) ) {
includes/functions.php CHANGED
@@ -22,9 +22,15 @@ function ditty_news_ticker( $id='', $class='', $atts=false ) {
22
  /**
23
  * Return the ticker
24
  *
25
- * @since 1.4.0
26
  */
27
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
 
 
 
 
 
 
28
 
29
  // Get the post
30
  $ticker = get_post( $id );
22
  /**
23
  * Return the ticker
24
  *
25
+ * @since 1.4.2
26
  */
27
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
28
+
29
+ // Switch the post based on the selected language
30
+ if( function_exists('icl_object_id') ) {
31
+ $id = icl_object_id( $id, 'ditty_news_ticker', true );
32
+ }
33
+
34
 
35
  // Get the post
36
  $ticker = get_post( $id );
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.4.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2014-01-16 19:38:05+0000\n"
7
  "Last-Translator: admin <joe@metaphorcreations.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -664,13 +664,13 @@ msgid "Set the control navigation options"
664
  msgstr ""
665
 
666
  #: includes/meta-boxes.php:624
667
- #: includes/meta-boxes.php:924
668
  #@ ditty-news-ticker
669
  msgid "« Previous"
670
  msgstr ""
671
 
672
  #: includes/meta-boxes.php:625
673
- #: includes/meta-boxes.php:925
674
  #@ ditty-news-ticker
675
  msgid "Next »"
676
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Ditty News Ticker v1.4.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-02-20 19:29:15+0000\n"
7
  "Last-Translator: admin <joe@metaphorcreations.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
664
  msgstr ""
665
 
666
  #: includes/meta-boxes.php:624
667
+ #: includes/meta-boxes.php:928
668
  #@ ditty-news-ticker
669
  msgid "« Previous"
670
  msgstr ""
671
 
672
  #: includes/meta-boxes.php:625
673
+ #: includes/meta-boxes.php:929
674
  #@ ditty-news-ticker
675
  msgid "Next »"
676
  msgstr ""
readme.txt CHANGED
@@ -25,6 +25,8 @@ Ditty News Ticker is a multi-functional data display plugin. Easily add custom n
25
  Ditty News Ticker is built to easily be extended to add extra Ticker Types and extra Ticker Modes.
26
  To see a list of all extensions, visit the [**extensions page**](http://dittynewsticker.com/extensions/).
27
 
 
 
28
  == Installation ==
29
 
30
  1. Upload `ditty-news-ticker` directory to the `/wp-content/plugins/` directory
@@ -52,6 +54,10 @@ Each individual Ticker post has multiple settings to customize.
52
 
53
  == Changelog ==
54
 
 
 
 
 
55
  = 1.4.1 =
56
  * Added additional jQuery triggers and listeners
57
  * Fixed force line break issue
@@ -202,4 +208,4 @@ Each individual Ticker post has multiple settings to customize.
202
 
203
  == Upgrade Notice ==
204
 
205
- Added additional jQuery triggers and listeners. Fixed force line break issue
25
  Ditty News Ticker is built to easily be extended to add extra Ticker Types and extra Ticker Modes.
26
  To see a list of all extensions, visit the [**extensions page**](http://dittynewsticker.com/extensions/).
27
 
28
+ <img src="http://metaphorcreations.com/data/wpml-ready-badge.png" />
29
+
30
  == Installation ==
31
 
32
  1. Upload `ditty-news-ticker` directory to the `/wp-content/plugins/` directory
54
 
55
  == Changelog ==
56
 
57
+ = 1.4.2 =
58
+ * Added WPML Support
59
+ * Fixed jquery script issue for multiple same tickers with unique ids
60
+
61
  = 1.4.1 =
62
  * Added additional jQuery triggers and listeners
63
  * Fixed force line break issue
208
 
209
  == Upgrade Notice ==
210
 
211
+ Added WPML Support. Fixed jquery script issue for multiple same tickers with unique ids
wpml-config.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <wpml-config>
2
+ <custom-fields>
3
+ <custom-field action="translate">_mtphr_dnt_ticks</custom-field>
4
+ <custom-field action="ignore">_mtphr_dnt_line_breaks</custom-field>
5
+ <custom-field action="ignore">_mtphr_dnt_type</custom-field>
6
+ <custom-field action="ignore">_mtphr_dnt_mode</custom-field>
7
+ <custom-field action="ignore">_mtphr_dnt_scroll_direction</custom-field>
8
+ <custom-field action="ignore">_mtphr_dnt_scroll_width</custom-field>
9
+ <custom-field action="ignore">_mtphr_dnt_scroll_height</custom-field>
10
+ <custom-field action="ignore">_mtphr_dnt_scroll_padding</custom-field>
11
+ <custom-field action="ignore">_mtphr_dnt_scroll_margin</custom-field>
12
+ <custom-field action="ignore">_mtphr_dnt_scroll_speed</custom-field>
13
+ <custom-field action="ignore">_mtphr_dnt_scroll_pause</custom-field>
14
+ <custom-field action="ignore">_mtphr_dnt_scroll_tick_spacing</custom-field>
15
+ <custom-field action="ignore">_mtphr_dnt_scroll_init</custom-field>
16
+ <custom-field action="ignore">_mtphr_dnt_rotate_type</custom-field>
17
+ <custom-field action="ignore">_mtphr_dnt_rotate_directional_nav_reverse</custom-field>
18
+ <custom-field action="ignore">_mtphr_dnt_rotate_height</custom-field>
19
+ <custom-field action="ignore">_mtphr_dnt_rotate_padding</custom-field>
20
+ <custom-field action="ignore">_mtphr_dnt_rotate_margin</custom-field>
21
+ <custom-field action="ignore">_mtphr_dnt_auto_rotate</custom-field>
22
+ <custom-field action="ignore">_mtphr_dnt_rotate_delay</custom-field>
23
+ <custom-field action="ignore">_mtphr_dnt_rotate_pause</custom-field>
24
+ <custom-field action="ignore">_mtphr_dnt_rotate_speed</custom-field>
25
+ <custom-field action="ignore">_mtphr_dnt_rotate_ease</custom-field>
26
+ <custom-field action="ignore">_mtphr_dnt_rotate_directional_nav</custom-field>
27
+ <custom-field action="ignore">_mtphr_dnt_rotate_directional_nav_hide</custom-field>
28
+ <custom-field action="ignore">_mtphr_dnt_rotate_control_nav</custom-field>
29
+ <custom-field action="ignore">_mtphr_dnt_rotate_control_nav_type</custom-field>
30
+ <custom-field action="ignore">_mtphr_dnt_list_padding</custom-field>
31
+ <custom-field action="ignore">_mtphr_dnt_list_margin</custom-field>
32
+ <custom-field action="ignore">_mtphr_dnt_list_tick_spacing</custom-field>
33
+ <custom-field action="ignore">_mtphr_dnt_title</custom-field>
34
+ <custom-field action="ignore">_mtphr_dnt_inline_title</custom-field>
35
+ <custom-field action="ignore">_mtphr_dnt_shuffle</custom-field>
36
+ <custom-field action="ignore">_mtphr_dnt_ticker_width</custom-field>
37
+ <custom-field action="ignore">_mtphr_dnt_offset</custom-field>
38
+ </custom-fields>
39
+ <custom-types>
40
+ <custom-type translate="1">ditty_news_ticker</custom-type>
41
+ </custom-types>
42
+ </wpml-config>
43
+
44
+