Ditty News Ticker - Version 2.1.22

Version Description

  • Modified how scripts are enqueued
Download this release

Release Info

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

Code changes from version 2.1.21 to 2.1.22

Files changed (3) hide show
  1. ditty-news-ticker.php +2 -2
  2. includes/scripts.php +7 -9
  3. readme.txt +4 -1
ditty-news-ticker.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
- Version: 2.1.21
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
 
32
 
33
 
34
- define( 'MTPHR_DNT_VERSION', '2.1.21' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
+ Version: 2.1.22
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
31
 
32
 
33
 
34
+ define( 'MTPHR_DNT_VERSION', '2.1.22' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
includes/scripts.php CHANGED
@@ -7,20 +7,18 @@
7
  function mtphr_dnt_scripts() {
8
 
9
  // Load the icon font css
10
- wp_register_style( 'ditty-news-ticker-font', plugins_url('ditty-news-ticker/assets/fontastic/styles.css'), false, filemtime(MTPHR_DNT_DIR.'assets/fontastic/styles.css') );
11
- wp_enqueue_style( 'ditty-news-ticker-font' );
12
 
13
  // Register touchSwipe
14
- wp_register_script( 'touchSwipe', plugins_url('ditty-news-ticker/assets/js/jquery.touchSwipe.min.js'), array('jquery'), filemtime(MTPHR_DNT_DIR.'assets/js/jquery.touchSwipe.min.js'), true );
15
 
16
  // Register the jQuery easing
17
- wp_register_script( 'jquery-easing', plugins_url('ditty-news-ticker/assets/js/jquery.easing.1.3.js'), array('jquery'), '1.3', true );
18
 
19
  // Register the Ditty News Ticker scripts
20
- wp_register_style( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/css/style.css'), false, filemtime(MTPHR_DNT_DIR.'assets/css/style.css') );
21
- wp_enqueue_style( 'ditty-news-ticker' );
22
- wp_register_script( 'imagesLoaded', plugins_url('ditty-news-ticker/assets/js/imagesloaded.pkgd.min.js'), array('jquery'), '4.1.0', true );
23
- wp_register_script( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/js/ditty-news-ticker.js'), array('jquery', 'imagesLoaded', 'touchSwipe', 'jquery-easing'), filemtime(MTPHR_DNT_DIR.'assets/js/ditty-news-ticker.js'), true );
24
  wp_localize_script( 'ditty-news-ticker', 'mtphr_dnt_vars', array(
25
  'is_rtl' => is_rtl(),
26
  )
@@ -55,7 +53,7 @@ function mtphr_dnt_tickers_init_scripts() {
55
  global $mtphr_dnt_ticker_scripts;
56
 
57
  if( is_array($mtphr_dnt_ticker_scripts) && !empty($mtphr_dnt_ticker_scripts) ) {
58
- wp_print_scripts('ditty-news-ticker');
59
 
60
  $filtered_tickers = array();
61
  $id_array = array();
7
  function mtphr_dnt_scripts() {
8
 
9
  // Load the icon font css
10
+ wp_enqueue_style( 'ditty-news-ticker-font', plugins_url('ditty-news-ticker/assets/fontastic/styles.css'), false, filemtime(MTPHR_DNT_DIR.'assets/fontastic/styles.css') );
 
11
 
12
  // Register touchSwipe
13
+ wp_enqueue_script( 'touchSwipe', plugins_url('ditty-news-ticker/assets/js/jquery.touchSwipe.min.js'), array('jquery'), filemtime(MTPHR_DNT_DIR.'assets/js/jquery.touchSwipe.min.js'), true );
14
 
15
  // Register the jQuery easing
16
+ wp_enqueue_script( 'jquery-easing', plugins_url('ditty-news-ticker/assets/js/jquery.easing.1.3.js'), array('jquery'), '1.3', true );
17
 
18
  // Register the Ditty News Ticker scripts
19
+ wp_enqueue_style( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/css/style.css'), false, filemtime(MTPHR_DNT_DIR.'assets/css/style.css') );
20
+ wp_enqueue_script( 'imagesLoaded', plugins_url('ditty-news-ticker/assets/js/imagesloaded.pkgd.min.js'), array('jquery'), '4.1.0', true );
21
+ wp_enqueue_script( 'ditty-news-ticker', plugins_url('ditty-news-ticker/assets/js/ditty-news-ticker.js'), array('jquery', 'imagesLoaded', 'touchSwipe', 'jquery-easing'), filemtime(MTPHR_DNT_DIR.'assets/js/ditty-news-ticker.js'), true );
 
22
  wp_localize_script( 'ditty-news-ticker', 'mtphr_dnt_vars', array(
23
  'is_rtl' => is_rtl(),
24
  )
53
  global $mtphr_dnt_ticker_scripts;
54
 
55
  if( is_array($mtphr_dnt_ticker_scripts) && !empty($mtphr_dnt_ticker_scripts) ) {
56
+ //wp_print_scripts('ditty-news-ticker');
57
 
58
  $filtered_tickers = array();
59
  $id_array = array();
readme.txt CHANGED
@@ -72,6 +72,9 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.1.21 =
76
  * Fixed browser resize bug
77
 
@@ -470,4 +473,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
470
 
471
  == Upgrade Notice ==
472
 
473
- Fixed browser resize bug
72
 
73
  == Changelog ==
74
 
75
+ = 2.1.22 =
76
+ * Modified how scripts are enqueued
77
+
78
  = 2.1.21 =
79
  * Fixed browser resize bug
80
 
473
 
474
  == Upgrade Notice ==
475
 
476
+ Modified how scripts are enqueued