Version Description
- Sticky button copy alert after copy
Download this release
Release Info
| Developer | adamskaat |
| Plugin | |
| Version | 2.1.4 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.3 to 2.1.4
- assets/js/Sticky.js +3 -0
- assets/views/main/stickyMainView.php +21 -0
- classes/countdown/StickyCountdown.php +2 -0
- config/config.php +5 -5
- config/optionsConfig.php +1 -0
- countdown-builder.php +1 -1
- readme.txt +5 -2
assets/js/Sticky.js
CHANGED
|
@@ -150,6 +150,9 @@ YcdSticky.prototype.buttonBehavior = function()
|
|
| 150 |
jQuery('#' + textAreaId).select();
|
| 151 |
document.execCommand('copy');
|
| 152 |
jQuery('#' + textAreaId).remove();
|
|
|
|
|
|
|
|
|
|
| 153 |
}
|
| 154 |
});
|
| 155 |
};
|
| 150 |
jQuery('#' + textAreaId).select();
|
| 151 |
document.execCommand('copy');
|
| 152 |
jQuery('#' + textAreaId).remove();
|
| 153 |
+
if (settings['ycd-sticky-copy-alert']) {
|
| 154 |
+
alert(settings['ycd-sticky-alert-text']);
|
| 155 |
+
}
|
| 156 |
}
|
| 157 |
});
|
| 158 |
};
|
assets/views/main/stickyMainView.php
CHANGED
|
@@ -90,6 +90,27 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
|
|
| 90 |
<input type="text" name="ycd-sticky-button-copy" class="form-control" placeholder="<?php echo _e('Copy to clipboard'); ?>" value="<?php echo esc_attr($this->getOptionValue('ycd-sticky-button-copy')); ?>">
|
| 91 |
</div>
|
| 92 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
</div>
|
| 94 |
|
| 95 |
<div class="row form-group">
|
| 90 |
<input type="text" name="ycd-sticky-button-copy" class="form-control" placeholder="<?php echo _e('Copy to clipboard'); ?>" value="<?php echo esc_attr($this->getOptionValue('ycd-sticky-button-copy')); ?>">
|
| 91 |
</div>
|
| 92 |
</div>
|
| 93 |
+
<div class="row form-group">
|
| 94 |
+
<div class="col-md-6">
|
| 95 |
+
<label for="ycd-sticky-button-copy" class="ycd-label-of-switch"><?php _e('Show alert', YCD_TEXT_DOMAIN); ?></label>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="col-md-6">
|
| 98 |
+
<label class="ycd-switch">
|
| 99 |
+
<input type="checkbox" id="ycd-sticky-copy-alert" name="ycd-sticky-copy-alert" class="ycd-accordion-checkbox" <?php echo $typeObj->getOptionValue('ycd-sticky-copy-alert'); ?>>
|
| 100 |
+
<span class="ycd-slider ycd-round"></span>
|
| 101 |
+
</label>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
| 105 |
+
<div class="row form-group">
|
| 106 |
+
<div class="col-md-6">
|
| 107 |
+
<label for="ycd-sticky-alert-text" class="ycd-label-of-input"><?php _e('Text', YCD_TEXT_DOMAIN); ?></label>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="col-md-6">
|
| 110 |
+
<input type="text" placeholder="<?php _e('Alert text'); ?>" class="form-control" id="ycd-sticky-alert-text" name="ycd-sticky-alert-text" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-sticky-alert-text')); ?>">
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
</div>
|
| 115 |
|
| 116 |
<div class="row form-group">
|
classes/countdown/StickyCountdown.php
CHANGED
|
@@ -209,6 +209,8 @@ class StickyCountdown extends Countdown {
|
|
| 209 |
$settings['ycd-sticky-url'] = $this->getOptionValue('ycd-sticky-url');
|
| 210 |
$settings['ycd-sticky-url-new-tab'] = $this->getOptionValue('ycd-sticky-button-redirect-new-tab');
|
| 211 |
$settings['ycd-sticky-button-copy'] = $this->getOptionValue('ycd-sticky-button-copy');
|
|
|
|
|
|
|
| 212 |
$settings += $this->generalOptionsData();
|
| 213 |
|
| 214 |
$settings = json_encode($settings);
|
| 209 |
$settings['ycd-sticky-url'] = $this->getOptionValue('ycd-sticky-url');
|
| 210 |
$settings['ycd-sticky-url-new-tab'] = $this->getOptionValue('ycd-sticky-button-redirect-new-tab');
|
| 211 |
$settings['ycd-sticky-button-copy'] = $this->getOptionValue('ycd-sticky-button-copy');
|
| 212 |
+
$settings['ycd-sticky-copy-alert'] = $this->getOptionValue('ycd-sticky-copy-alert');
|
| 213 |
+
$settings['ycd-sticky-alert-text'] = $this->getOptionValue('ycd-sticky-alert-text');
|
| 214 |
$settings += $this->generalOptionsData();
|
| 215 |
|
| 216 |
$settings = json_encode($settings);
|
config/config.php
CHANGED
|
@@ -75,8 +75,8 @@ class YcdCountdownConfig
|
|
| 75 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
| 76 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
| 77 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
| 78 |
-
self::addDefine('YCD_VERSION_PRO',
|
| 79 |
-
self::addDefine('YCD_VERSION', 2.
|
| 80 |
self::addDefine('YCD_FREE_VERSION', 1);
|
| 81 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
| 82 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
|
@@ -84,12 +84,12 @@ class YcdCountdownConfig
|
|
| 84 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
| 85 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
| 86 |
|
| 87 |
-
$versionText = '2.1.
|
| 88 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
| 89 |
-
$versionText = '
|
| 90 |
}
|
| 91 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
| 92 |
-
self::addDefine('YCD_LAST_UPDATE', 'July
|
| 93 |
self::addDefine('YCD_NEXT_UPDATE', 'July 26');
|
| 94 |
}
|
| 95 |
|
| 75 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
| 76 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
| 77 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
| 78 |
+
self::addDefine('YCD_VERSION_PRO', 2.00);
|
| 79 |
+
self::addDefine('YCD_VERSION', 2.14);
|
| 80 |
self::addDefine('YCD_FREE_VERSION', 1);
|
| 81 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
| 82 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
| 84 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
| 85 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
| 86 |
|
| 87 |
+
$versionText = '2.1.4';
|
| 88 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
| 89 |
+
$versionText = '2.0.0';
|
| 90 |
}
|
| 91 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
| 92 |
+
self::addDefine('YCD_LAST_UPDATE', 'July 7');
|
| 93 |
self::addDefine('YCD_NEXT_UPDATE', 'July 26');
|
| 94 |
}
|
| 95 |
|
config/optionsConfig.php
CHANGED
|
@@ -328,6 +328,7 @@ class YcdCountdownOptionsConfig
|
|
| 328 |
$options[] = array('name' => 'ycd-sticky-close-text', 'type' => 'text', 'defaultValue' => __('Close', YCD_TEXT_DOMAIN));
|
| 329 |
$options[] = array('name' => 'ycd-sticky-expire-behavior', 'type' => 'text', 'defaultValue' => 'redirectToURL');
|
| 330 |
$options[] = array('name' => 'ycd-sticky-button-copy', 'type' => 'text', 'defaultValue' => '');
|
|
|
|
| 331 |
|
| 332 |
// Simple countdown
|
| 333 |
$options[] = array('name' => 'ycd-simple-enable-months', 'type' => 'checkbox', 'defaultValue' => '');
|
| 328 |
$options[] = array('name' => 'ycd-sticky-close-text', 'type' => 'text', 'defaultValue' => __('Close', YCD_TEXT_DOMAIN));
|
| 329 |
$options[] = array('name' => 'ycd-sticky-expire-behavior', 'type' => 'text', 'defaultValue' => 'redirectToURL');
|
| 330 |
$options[] = array('name' => 'ycd-sticky-button-copy', 'type' => 'text', 'defaultValue' => '');
|
| 331 |
+
$options[] = array('name' => 'ycd-sticky-copy-alert', 'type' => 'checkbox', 'defaultValue' => '');
|
| 332 |
|
| 333 |
// Simple countdown
|
| 334 |
$options[] = array('name' => 'ycd-simple-enable-months', 'type' => 'checkbox', 'defaultValue' => '');
|
countdown-builder.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: Countdown builder
|
| 4 |
* Description: The best countdown plugin by Adam skaat
|
| 5 |
-
* Version: 2.1.
|
| 6 |
* Author: Adam Skaat
|
| 7 |
* Author URI: https://edmonsoft.com/countdown
|
| 8 |
* License: GPLv2
|
| 2 |
/**
|
| 3 |
* Plugin Name: Countdown builder
|
| 4 |
* Description: The best countdown plugin by Adam skaat
|
| 5 |
+
* Version: 2.1.4
|
| 6 |
* Author: Adam Skaat
|
| 7 |
* Author URI: https://edmonsoft.com/countdown
|
| 8 |
* License: GPLv2
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: adamskaat
|
| 3 |
Tags: countdown, timer, countdown timer
|
| 4 |
Requires at least: 3.8
|
| 5 |
-
Tested up to: 5.
|
| 6 |
-
Stable tag: 2.1.
|
| 7 |
Requires PHP: 5.3
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
@@ -67,6 +67,9 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
| 67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
| 68 |
|
| 69 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 70 |
= 2.1.3 =
|
| 71 |
* Added possibility via Sticky countdown button copy text
|
| 72 |
|
| 2 |
Contributors: adamskaat
|
| 3 |
Tags: countdown, timer, countdown timer
|
| 4 |
Requires at least: 3.8
|
| 5 |
+
Tested up to: 5.8
|
| 6 |
+
Stable tag: 2.1.4
|
| 7 |
Requires PHP: 5.3
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
| 68 |
|
| 69 |
== Changelog ==
|
| 70 |
+
= 2.1.4 =
|
| 71 |
+
* Sticky button copy alert after copy
|
| 72 |
+
|
| 73 |
= 2.1.3 =
|
| 74 |
* Added possibility via Sticky countdown button copy text
|
| 75 |
|
