Ditty News Ticker - Version 1.1.4

Version Description

  • Added nofollow to navigational links.
Download this release

Release Info

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

Code changes from version 1.1.3 to 1.1.4

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.3
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.3-'.time() );
49
  } else {
50
- define ( 'MTPHR_DNT_VERSION', '1.1.3' );
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.4
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.4-'.time() );
49
  } else {
50
+ define ( 'MTPHR_DNT_VERSION', '1.1.4' );
51
  }
52
  define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
53
  define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
includes/functions.php CHANGED
@@ -182,8 +182,8 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
182
  if( isset($_mtphr_dnt_rotate_directional_nav_hide) ) {
183
  $hide = $_mtphr_dnt_rotate_directional_nav_hide ? ' mtphr-dnt-nav-hide' : '';
184
  }
185
- echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '' ).'</a>';
186
- echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#">'.apply_filters( 'mtphr_dnt_direction_nav_next', '' ).'</a>';
187
  }
188
  }
189
  }
@@ -201,7 +201,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
201
 
202
  echo '<div class="mtphr-dnt-control-links">';
203
  foreach( $dnt_ticks as $i => $tick ) {
204
- echo '<a class="mtphr-dnt-control mtphr-dnt-control-'.$_mtphr_dnt_rotate_control_nav_type.'" href="'.$i.'">'.apply_filters( 'mtphr_dnt_control_nav', intval($i+1) ).'</a>';
205
  }
206
  echo '</div>';
207
  }
182
  if( isset($_mtphr_dnt_rotate_directional_nav_hide) ) {
183
  $hide = $_mtphr_dnt_rotate_directional_nav_hide ? ' mtphr-dnt-nav-hide' : '';
184
  }
185
+ echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '' ).'</a>';
186
+ echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_next', '' ).'</a>';
187
  }
188
  }
189
  }
201
 
202
  echo '<div class="mtphr-dnt-control-links">';
203
  foreach( $dnt_ticks as $i => $tick ) {
204
+ echo '<a class="mtphr-dnt-control mtphr-dnt-control-'.$_mtphr_dnt_rotate_control_nav_type.'" href="'.$i.'" rel="nofollow">'.apply_filters( 'mtphr_dnt_control_nav', intval($i+1) ).'</a>';
205
  }
206
  echo '</div>';
207
  }
includes/meta-boxes.php CHANGED
@@ -48,14 +48,14 @@ add_action( 'admin_init', 'mtphr_dnt_metabox_type_default' );
48
  /**
49
  * Create the default type metabox.
50
  *
51
- * @since 1.1.3
52
  */
53
  function mtphr_dnt_metabox_type_default() {
54
 
55
  $tick_type = 'textarea';
56
  $settings = get_option( 'mtphr_dnt_general_settings' );
57
  if( $settings && isset($settings['wysiwyg']) ) {
58
- $tick_type = 'wysiwyg';
59
  }
60
 
61
  // Create an array to store the default item structure
48
  /**
49
  * Create the default type metabox.
50
  *
51
+ * @since 1.1.4
52
  */
53
  function mtphr_dnt_metabox_type_default() {
54
 
55
  $tick_type = 'textarea';
56
  $settings = get_option( 'mtphr_dnt_general_settings' );
57
  if( $settings && isset($settings['wysiwyg']) ) {
58
+ //$tick_type = 'wysiwyg';
59
  }
60
 
61
  // Create an array to store the default item structure
includes/settings.php CHANGED
@@ -33,7 +33,7 @@ add_action( 'admin_init', 'mtphr_dnt_initialize_settings' );
33
  /**
34
  * Setup the custom options for the settings page
35
  *
36
- * @since 1.1.3
37
  */
38
  function mtphr_dnt_initialize_settings() {
39
 
@@ -42,12 +42,14 @@ function mtphr_dnt_initialize_settings() {
42
  */
43
  $settings = array();
44
 
45
- $settings['wysiwyg'] = array(
 
46
  'title' => __( 'Visual Editor', 'ditty-news-ticker' ),
47
  'type' => 'checkbox',
48
  'label' => __( 'Use the visual editor for ticks', 'ditty-news-ticker' ),
49
  'description' => __( '*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker.', 'ditty-news-ticker' )
50
  );
 
51
 
52
  $settings['css'] = array(
53
  'title' => __( 'Custom CSS', 'ditty-news-ticker' ),
33
  /**
34
  * Setup the custom options for the settings page
35
  *
36
+ * @since 1.1.4
37
  */
38
  function mtphr_dnt_initialize_settings() {
39
 
42
  */
43
  $settings = array();
44
 
45
+ /*
46
+ $settings['wysiwyg'] = array(
47
  'title' => __( 'Visual Editor', 'ditty-news-ticker' ),
48
  'type' => 'checkbox',
49
  'label' => __( 'Use the visual editor for ticks', 'ditty-news-ticker' ),
50
  'description' => __( '*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker.', 'ditty-news-ticker' )
51
  );
52
+ */
53
 
54
  $settings['css'] = array(
55
  'title' => __( 'Custom CSS', 'ditty-news-ticker' ),
readme.txt CHANGED
@@ -52,6 +52,9 @@ Each individual Ticker post has multiple settings to customize.
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 1.1.3 =
56
  * Added option to use visual editors for tick content (on settings page).
57
  * Adjusted DNT jQuery class. Converted height() & width() to outerHeight() & outerWidth()
@@ -120,6 +123,9 @@ Each individual Ticker post has multiple settings to customize.
120
 
121
  == Upgrade Notice ==
122
 
 
 
 
123
  = 1.1.3 =
124
  Added option to use visual editors for tick content (on settings page). Adjusted DNT jQuery class. Converted height() & width() to outerHeight() & outerWidth().
125
 
52
 
53
  == Changelog ==
54
 
55
+ = 1.1.4 =
56
+ * Added nofollow to navigational links.
57
+
58
  = 1.1.3 =
59
  * Added option to use visual editors for tick content (on settings page).
60
  * Adjusted DNT jQuery class. Converted height() & width() to outerHeight() & outerWidth()
123
 
124
  == Upgrade Notice ==
125
 
126
+ = 1.1.4 =
127
+ Added nofollow to navigational links.
128
+
129
  = 1.1.3 =
130
  Added option to use visual editors for tick content (on settings page). Adjusted DNT jQuery class. Converted height() & width() to outerHeight() & outerWidth().
131