Ditty News Ticker - Version 3.0.4

Version Description

  • Removed trailing comma in class-ditty-extensions.php file
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

ditty-news-ticker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Ditty (formerly Ditty News Ticker)
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
7
- * Version: 3.0.3
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
- define( 'DITTY_VERSION', '3.0.3' );
24
  }
25
 
26
  // Plugin Folder Path.
4
  * Plugin Name: Ditty (formerly Ditty News Ticker)
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
7
+ * Version: 3.0.4
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
+ define( 'DITTY_VERSION', '3.0.4' );
24
  }
25
 
26
  // Plugin Folder Path.
includes/class-ditty-extensions.php CHANGED
@@ -357,13 +357,15 @@ class Ditty_Extensions {
357
  } else {
358
  $license_message = $this->status_message( $error, $extension );
359
  }
 
 
360
  ?>
361
  <label class="ditty-field__label ditty-extension__license__message"><?php echo $license_message; ?></label>
362
  <div class="ditty-field__input ditty-extension__license__fields">
363
  <input class="ditty-extension__license__input regular-text" name="ditty_licenses[<?php echo $extension; ?>]" type="text" placeholder="<?php _e( 'Add your license key here', 'ditty-news-ticker' ); ?>" value="<?php echo esc_attr( $license_key ); ?>" />
364
- <a class="ditty-extension__license__submit ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $setting['item_id'] ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-pt-title="<?php _e( 'Activate License', 'ditty-news-ticker' ); ?>"><i class="fas fa-check" data-class="fas fa-check"></i></a>
365
- <a class="ditty-extension__license__refresh ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $setting['item_id'] ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-pt-title="<?php _e( 'Refresh License', 'ditty-news-ticker' ); ?>"><i class="fas fa-sync-alt" data-class="fas fa-sync-alt"></i></a>
366
- <a class="ditty-extension__license__deactivate ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $setting['item_id'] ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-pt-title="<?php _e( 'Deactive License', 'ditty-news-ticker' ); ?>"><i class="fas fa-times" data-class="fas fa-times"></i></a>
367
  </div>
368
  </div>
369
  <?php
@@ -374,16 +376,15 @@ class Ditty_Extensions {
374
  ditty_fields( $setting['fields'] );
375
  $update_button = isset( $setting['update_button'] ) ? $setting['update_button'] : 'default';
376
  if ( 'disabled' != $update_button ) {
377
- echo ditty_field(
378
- array(
379
- 'type' => 'button',
380
- 'id' => 'submit',
381
- 'label' => __( 'Update', 'ditty-news-ticker' ),
382
- 'priority' => 'primary',
383
- 'full_width' => true,
384
- 'icon_after' => 'fas fa-check',
385
- ),
386
  );
 
387
  }
388
  }
389
  }
357
  } else {
358
  $license_message = $this->status_message( $error, $extension );
359
  }
360
+ $item_id = isset( $setting['item_id'] ) ? $setting['item_id'] : '';
361
+ $item_name = isset( $setting['item_name'] ) ? $setting['item_name'] : '';
362
  ?>
363
  <label class="ditty-field__label ditty-extension__license__message"><?php echo $license_message; ?></label>
364
  <div class="ditty-field__input ditty-extension__license__fields">
365
  <input class="ditty-extension__license__input regular-text" name="ditty_licenses[<?php echo $extension; ?>]" type="text" placeholder="<?php _e( 'Add your license key here', 'ditty-news-ticker' ); ?>" value="<?php echo esc_attr( $license_key ); ?>" />
366
+ <a class="ditty-extension__license__submit ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $item_id ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-product_name="<?php echo esc_attr( $item_name ); ?>" data-pt-title="<?php _e( 'Activate License', 'ditty-news-ticker' ); ?>"><i class="fas fa-check" data-class="fas fa-check"></i></a>
367
+ <a class="ditty-extension__license__refresh ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $item_id ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-product_name="<?php echo esc_attr( $item_name ); ?>" data-pt-title="<?php _e( 'Refresh License', 'ditty-news-ticker' ); ?>"><i class="fas fa-sync-alt" data-class="fas fa-sync-alt"></i></a>
368
+ <a class="ditty-extension__license__deactivate ditty-button protip" href="#" data-extension="<?php echo esc_attr( $extension ); ?>" data-extension_id="<?php echo esc_attr( $item_id ); ?>" data-extension_name="<?php echo esc_attr( $data['name'] ); ?>" data-product_name="<?php echo esc_attr( $item_name ); ?>" data-pt-title="<?php _e( 'Deactive License', 'ditty-news-ticker' ); ?>"><i class="fas fa-times" data-class="fas fa-times"></i></a>
369
  </div>
370
  </div>
371
  <?php
376
  ditty_fields( $setting['fields'] );
377
  $update_button = isset( $setting['update_button'] ) ? $setting['update_button'] : 'default';
378
  if ( 'disabled' != $update_button ) {
379
+ $field = array(
380
+ 'type' => 'button',
381
+ 'id' => 'submit',
382
+ 'label' => __( 'Update', 'ditty-news-ticker' ),
383
+ 'priority' => 'primary',
384
+ 'full_width' => true,
385
+ 'icon_after' => 'fas fa-check',
 
 
386
  );
387
+ echo ditty_field( $field );
388
  }
389
  }
390
  }
readme.txt CHANGED
@@ -1,17 +1,26 @@
1
  === Ditty (formerly Ditty News Ticker) ===
2
  Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
- Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.5
6
  Tested up to: 5.8.2
7
- Stable tag: 3.0.3
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
11
 
12
  == Description ==
13
 
14
- Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin. Ditty is a multi-functional data display plugin. Easily render custom data feeds to your site through a customizable news ticker, list, or slider.
 
 
 
 
 
 
 
 
 
15
 
16
  #### Paid Extensions
17
  Additional plugins can be purchased to extend Ditty and it's functionality. Add more Item types, Display types, and utilities to enhance your Ditty. View all [**Extensions**](https://www.metaphorcreations.com/ditty/extensions/).
@@ -57,6 +66,9 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 3.0.3 =
61
  * Additional upgrade functionality updates
62
 
@@ -590,4 +602,4 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
590
 
591
  == Upgrade Notice ==
592
 
593
- Additional upgrade functionality updates
1
  === Ditty (formerly Ditty News Ticker) ===
2
  Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
+ Tags: ticker, news, news ticker, rotator, data rotator, lists, data, aggregator, latest posts
5
  Requires at least: 4.5
6
  Tested up to: 5.8.2
7
+ Stable tag: 3.0.4
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
11
 
12
  == Description ==
13
 
14
+ Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin. Easily render custom data feeds to your site through a customizable news ticker, list, or slider.
15
+
16
+ #### Item Types
17
+ * Default - Add custom text to your Ditty.
18
+ * WP Editor - Add custom text to your Ditty using the WP Editor.
19
+ * WP Posts Feed - Add your latest blog posts to your Ditty.
20
+
21
+ #### Display Types
22
+ * Ticker - Create a unique news ticker using the Ticker Display type. Control the direction, spacing, speed, styling and many other options.
23
+ * List - Create paged lists of your combined content. Multiple settings give you full control of the look and feel on your lists.
24
 
25
  #### Paid Extensions
26
  Additional plugins can be purchased to extend Ditty and it's functionality. Add more Item types, Display types, and utilities to enhance your Ditty. View all [**Extensions**](https://www.metaphorcreations.com/ditty/extensions/).
66
 
67
  == Changelog ==
68
 
69
+ = 3.0.4 =
70
+ * Removed trailing comma in class-ditty-extensions.php file
71
+
72
  = 3.0.3 =
73
  * Additional upgrade functionality updates
74
 
602
 
603
  == Upgrade Notice ==
604
 
605
+ Removed trailing comma in class-ditty-extensions.php file