first commit
This commit is contained in:
1050
wp-content/plugins/copy-delete-posts/menu/configuration.php
Normal file
1050
wp-content/plugins/copy-delete-posts/menu/configuration.php
Normal file
File diff suppressed because it is too large
Load Diff
253
wp-content/plugins/copy-delete-posts/menu/modal.php
Normal file
253
wp-content/plugins/copy-delete-posts/menu/modal.php
Normal file
@@ -0,0 +1,253 @@
|
||||
<?php
|
||||
/**
|
||||
* Copy & Delete Posts – default menu.
|
||||
*
|
||||
* @package CDP
|
||||
* @subpackage CopyModal
|
||||
* @author CopyDeletePosts
|
||||
* @since 1.0.0
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
// Exit if accessed directly.
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/** –– **\
|
||||
* There is constant modal html form using thickbox.
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function cdp_modal($screen = '', $profiles = array()) {
|
||||
if (!function_exists('is_plugin_active')) require_once(ABSPATH.'wp-admin/includes/plugin.php');
|
||||
|
||||
$isYoast = false; $isUSM = false; $isWoo = false;
|
||||
if (is_plugin_active('woocommerce/woocommerce.php')) $isWoo = true;
|
||||
if (is_plugin_active('wordpress-seo/wp-seo.php') || is_plugin_active('wordpress-seo-premium/wp-seo-premium.php')) $isYoast = true;
|
||||
if (
|
||||
is_plugin_active('USM-Premium/usm_premium_icons.php') ||
|
||||
is_plugin_active('Ultimate-Social-Media-Plus/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('Ultimate-Social-Media-Icons/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php') ||
|
||||
is_plugin_active('ultimate-social-media-icons/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('ultimate-social-media-plus/ultimate-social-media-plus.php') ||
|
||||
is_plugin_active('ultimate-social-media-plus/ultimate_social_media_plus.php')
|
||||
) $isUSM = true;
|
||||
|
||||
$isMulti = is_multisite() != true ? ' disabled="disabled"' : '';
|
||||
|
||||
// Ask for pro features
|
||||
$areWePro = areWePro();
|
||||
$globals = get_option('_cdp_globals');
|
||||
?>
|
||||
<div id="cdp-copy-modal-global" class="cdp-modal cdp-copy-modal" style="display:none;">
|
||||
|
||||
<div class="cdp-modal-content" style="padding-bottom: 15px; max-height: 90vh;">
|
||||
|
||||
<div class="cdp-modal-times"></div>
|
||||
|
||||
<div class="cdp-cf cdp-cp-pad" style="margin-top: 50px; padding-top: 0; padding-bottom: 10px;">
|
||||
<div class="cdp-left">
|
||||
<h2 class="cdp-f-s-16 cdp-f-w-semi-bold" style="margin: 0; line-height: 40px;"><?php _e('Elements to copy:', 'copy-delete-posts'); ?></h2>
|
||||
</div>
|
||||
<div class="cdp-right" style="width: calc(100% - 200px) !important; text-align: right !important;">
|
||||
<div class="cdp-cf cdp-inline" style="line-height: 40px">
|
||||
<div class="cdp-left cdp-f-s-16"><?php _e('Use as basis settings', 'copy-delete-posts'); ?></div>
|
||||
<?php $gepres = get_option('_cdp_preselections', array()); if (array_key_exists(get_current_user_id(), $gepres)) $preSelProf = $gepres[get_current_user_id()]; else $preSelProf = 0; ?>
|
||||
<select class="cdp-left cdp-modal-select cdp-ow-border cdp-input-dynamic cdp-modal-input-profiles-r cdp-select cdp-m-l-9-d" name="tooltip-which-profile-second-modal">
|
||||
<option value="custom"<?php echo (array_key_exists($preSelProf, $profiles) && !$profiles[$preSelProf])?' selected':''?> disabled><?php _e('–– Select ––', 'copy-delete-posts'); ?></option>
|
||||
<option value="alloptions"><?php _e('Select all', 'copy-delete-posts'); ?></option>
|
||||
<option value="clear"><?php _e('Clean slate', 'copy-delete-posts'); ?></option>
|
||||
<optgroup label="<?php _e('–– Profiles ––', 'copy-delete-posts'); ?>"></optgroup>
|
||||
<option value="custom_named" disabled><?php _e('Custom', 'copy-delete-posts'); ?></option>
|
||||
<?php
|
||||
if ($profiles != false && $areWePro) {
|
||||
foreach ($profiles as $profile => $vals):
|
||||
$isSel = ($preSelProf == $profile);
|
||||
?>
|
||||
<option value="<?php echo htmlspecialchars($profile); ?>"<?php echo ($isSel)?' selected':''?>><?php echo ucfirst(htmlspecialchars($vals['names']['display'])); ?></option>
|
||||
<?php endforeach; } else { ?>
|
||||
<option value="default"><?php _e('Default', 'copy-delete-posts'); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-cp-pad">
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="title">
|
||||
<span><?php _e('Title', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="date">
|
||||
<span><?php _e('Date', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="status">
|
||||
<span><?php _e('Status', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="slug">
|
||||
<span><?php _e('Slug', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="excerpt">
|
||||
<span><?php _e('Excerpt', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="content">
|
||||
<span><?php _e('Content', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="f_image">
|
||||
<span><?php _e('Feat. image', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="template">
|
||||
<span><?php _e('Template', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="format">
|
||||
<span><?php _e('Format', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="author">
|
||||
<span><?php _e('Author', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="password">
|
||||
<span><?php _e('Password', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="children">
|
||||
<span><?php _e('Children', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="comments">
|
||||
<span><?php _e('Comments', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="menu_order">
|
||||
<span><?php _e('Menu order', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="attachments">
|
||||
<span><?php _e('Attachments', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="category">
|
||||
<span><?php _e('Categories', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="post_tag">
|
||||
<span><?php _e('Tags', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="cdp_taxonomy">
|
||||
<span><?php _e('Taxonomies', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="nav_menu">
|
||||
<span><?php _e('Navigation Menus', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="link_category">
|
||||
<span><?php _e('Link categories', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php if ($isYoast || $isUSM || $isWoo || true): ?>
|
||||
<div class="cdp-modal-checkboxes cdp-checkboxes cdp-modal-checkboxes-three">
|
||||
<label class="cdp-relative"><span class="cdp-premium-icon" style="margin-left: 0"></span><b style="padding-left: 21px;" class="cdp-f-s-15 cdp-f-w-medium"><?php _e('Plugin options:', 'copy-delete-posts'); ?></b></label>
|
||||
<br>
|
||||
<?php if ($isWoo): ?>
|
||||
<label class="cdp-woo">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="woo">
|
||||
<span><?php _e('Woo Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($isYoast): ?>
|
||||
<label class="cdp-yoast">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="yoast">
|
||||
<span><?php _e('Yoast Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($isUSM): ?>
|
||||
<label>
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="usmplugin">
|
||||
<span><?php _e('USM Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<label>
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-modal-option-r cdp-input-dynamic" type="checkbox" name="all_metadata">
|
||||
<span><?php _e('All post meta', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="cdp-modal-copy-times cdp-f-s-15">
|
||||
<div class="cdp-modal-copy-times-content">
|
||||
<?php if ($areWePro && function_exists('cdpp_change_post_type')) cdpp_change_post_type(); ?>
|
||||
<div class="cdp-cf cdp-inline">
|
||||
<div class="cdp-left" style="line-height: 40px;"><?php _e('Copy', 'copy-delete-posts'); ?> </div>
|
||||
<div class="cdp-left" style="line-height: 40px;">
|
||||
<input class="cdp-modal-input-times cdp-input-border" style="border-width: 1px !important;" placeholder="1" type="number" value="1">
|
||||
</div>
|
||||
<div class="cdp-left" style="line-height: 40px;">
|
||||
<?php _e('time(s)', 'copy-delete-posts'); ?>
|
||||
</div>
|
||||
<div class="cdp-left" style="line-height: 40px;"> to</div>
|
||||
<div class="cdp-left">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc-2 <?php echo (($isMulti != '')?' cdp-tooltip-premium-spc-3':' cdp-tooltip-premium-spc-4'); ?>">
|
||||
<select class="cdp-input-dynamic cdp-modal-select cdp-modal-select-2 cdp-ow-border cdp-modal-input-site cdp-select cdp-m-l-9-d" name="tooltip-which-site-second-modal" <?php echo $isMulti; ?>>
|
||||
<option value="-1"><?php _e('this site', 'copy-delete-posts'); ?></option>
|
||||
<?php if ($areWePro && function_exists('cdpp_get_sites')) echo cdpp_get_sites(true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (is_multisite()) { ?>
|
||||
<div class="cdp-center cdp-multiple-sites-selector">
|
||||
(<?php _e('click here to select multiple sites', 'copy-delete-posts'); ?>)
|
||||
</div>
|
||||
<div class="cdp-center cdp-multi-site-at-once-selector" style="display: none;">
|
||||
<select multiple>
|
||||
<option value="-1" selected><?php _e('this site', 'copy-delete-posts'); ?></option>
|
||||
<?php if ($areWePro && function_exists('cdpp_get_sites')) echo cdpp_get_sites(true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-center">
|
||||
<span class="cdp-error-span-tooltip"><?php _e('Making more than 50 copies will take some time. – depending on your server.', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
|
||||
<div class="cdp-center cdp-p-25-h">
|
||||
<button class="cdp-button cdp-copy-modal-button cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
||||
<?php if (isset($globals) && is_array($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
||||
<button class="cdp-button cdp-copy-modal-button cdp-p-right-h cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
/** –– **/
|
||||
102
wp-content/plugins/copy-delete-posts/menu/notifications.php
Normal file
102
wp-content/plugins/copy-delete-posts/menu/notifications.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* Copy & Delete Posts – default menu.
|
||||
*
|
||||
* @package CDP
|
||||
* @subpackage Notifications
|
||||
* @author CopyDeletePosts
|
||||
* @since 1.0.0
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
// Exit if accessed directly.
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/** –– **\
|
||||
* There is dynamic html for notifications.
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function cdp_notifications_menu() {
|
||||
|
||||
$current = current_time('timestamp');
|
||||
$cdp_cron = get_option('_cdp_crons', array());
|
||||
$sorts = array('done' => array(), 'undone' => array());
|
||||
$to_show = 0;
|
||||
|
||||
if (sizeof($cdp_cron) > 0) {
|
||||
foreach ($cdp_cron as $cron => $val) {
|
||||
$entry = array('t' => $cron, 's' => $val['shown'], 'f' => $val['f'], 'st' => $val['start']);
|
||||
if (isset($val['data'])) $entry['data'] = $val['data'];
|
||||
|
||||
if ($val['done'] == false) array_push($sorts['undone'], $entry);
|
||||
else if ($val['done'] == true) array_push($sorts['done'], $entry);
|
||||
|
||||
if ($val['shown'] == false) $to_show++;
|
||||
}
|
||||
}
|
||||
|
||||
$html = '<span class="cdp-admin-bar-icon-noti"></span>';
|
||||
$html .= __('Copy & Delete', 'copy-delete-posts') . ' [<span class="cdp-notis-counter">' . $to_show . '</span>]';
|
||||
$html .= '<div class="ab-sub-wrapper cdp-ab-sub">
|
||||
<ul class="ab-submenu cdp-dropdown-submenu">';
|
||||
|
||||
$html .= '<li class="cdp-undone-notis"' . ((sizeof($sorts['undone']) <= 0)?' style="display: none;"':'') . '>
|
||||
<a class="ab-item cdp-dropdown-menu">
|
||||
<div style="display: block;">
|
||||
<div class="cdp-dropdown-left-header">'. __('In progress:', 'copy-delete-posts').'</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="cdp-dd-undone-list">';
|
||||
|
||||
foreach ($sorts['undone'] as $index => $val) {
|
||||
$red = (($current - $val['st']) >= 86400) ? true : false;
|
||||
$html .= '<a class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-ud' . (($val['s'] == false)?' cdp-bnew-notis':'') . '" data-token="' . $val['t'] . '">
|
||||
<div style="display: block; width: calc(100% - 3px);">
|
||||
<div class="cdp-dropdown-left' . (($red)?' cdp-red':'') . '">' . (($val['f'] == 'delete')? __('Deleting Posts', 'copy-delete-posts'):__('Auto Cleaning-up', 'copy-delete-posts')) . '</div>
|
||||
<div class="cdp-dropdown-right cdp-noti-kill-btn">' . __('Kill', 'copy-delete-posts') . '</div>
|
||||
</div>
|
||||
</a>';
|
||||
}
|
||||
|
||||
$html .= '</li>
|
||||
<hr class="cdp-dropdown-hr cdp-undone-hr"'. ((sizeof($sorts['undone']) <= 0)?' style="display: none;"':'') .'>';
|
||||
|
||||
|
||||
$html .= '<li class="cdp-done-notis"' . ((sizeof($sorts['done']) <= 0)?' style="display: none;"':'') . '>
|
||||
<a class="ab-item cdp-dropdown-menu">
|
||||
<div style="display: block;">
|
||||
<div class="cdp-dropdown-left-header">' . __('Done:', 'copy-delete-posts') . '</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="cdp-dd-done-list">';
|
||||
|
||||
foreach ($sorts['done'] as $index => $val) {
|
||||
$format = ''; $ftext = '';
|
||||
if (isset($val['data'])) {
|
||||
if (array_key_exists('formated-date', $val['data'])) $format = $val['data']['formated-date'];
|
||||
if (array_key_exists('text', $val['data'])) $ftext = $val['data']['text'];
|
||||
|
||||
if ($ftext != '') $ftext = 'data-ftext="' . $ftext . '" ';
|
||||
if ($format != '') $format = 'data-fdate="Completed at ' . $format . '" ';
|
||||
}
|
||||
|
||||
$html .= '<a ' . $ftext . $format . 'class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-d' . (($val['s'] == false)?' cdp-bnew-notis':'') . '" data-token="' . $val['t'] . '">
|
||||
<div style="display: block; width: calc(100% - 3px);">
|
||||
<div class="cdp-dropdown-left">' . (($val['f'] == 'delete')?__('Deleted Posts', 'copy-delete-posts'):__('Auto Cleaned-up', 'copy-delete-posts')) . '</div>
|
||||
<div class="cdp-dropdown-right cdp-noti-hide-btn">' . __('Hide', 'copy-delete-posts') . '</div>
|
||||
</div>
|
||||
</a>';
|
||||
}
|
||||
|
||||
$html .= '</li>
|
||||
<hr class="cdp-dropdown-hr cdp-done-hr"'. ((sizeof($sorts['done']) <= 0)?' style="display: none;"':'') .'>';
|
||||
|
||||
$html .= '<li><a class="ab-item cdp-dropdown-clear-all-notis" href="#">' . __('Clear notifiactions', 'copy-delete-posts'). '</a></li>
|
||||
</ul>
|
||||
</div>';
|
||||
|
||||
return array('html' => $html, 'in_list' => (sizeof($sorts['done']) + sizeof($sorts['undone'])));
|
||||
|
||||
}
|
||||
/** –– **/
|
||||
305
wp-content/plugins/copy-delete-posts/menu/tooltips.php
Normal file
305
wp-content/plugins/copy-delete-posts/menu/tooltips.php
Normal file
@@ -0,0 +1,305 @@
|
||||
<?php
|
||||
/**
|
||||
* Copy & Delete Posts – default menu.
|
||||
*
|
||||
* @package CDP
|
||||
* @subpackage TooltipsPrepare
|
||||
* @author CopyDeletePosts
|
||||
* @since 1.0.0
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
// Exit if accessed directly.
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/** –– **\
|
||||
* There is constant tooltip content for dynamic load.
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function cdp_tooltip_content($profiles = array()) {
|
||||
|
||||
$isYoast = false; $isUSM = false; $isWoo = false;
|
||||
if (is_plugin_active('woocommerce/woocommerce.php')) $isWoo = true;
|
||||
if (is_plugin_active('wordpress-seo/wp-seo.php') || is_plugin_active('wordpress-seo-premium/wp-seo-premium.php')) $isYoast = true;
|
||||
if (
|
||||
is_plugin_active('USM-Premium/usm_premium_icons.php') ||
|
||||
is_plugin_active('Ultimate-Social-Media-Plus/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('Ultimate-Social-Media-Icons/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php') ||
|
||||
is_plugin_active('ultimate-social-media-icons/ultimate_social_media_icons.php') ||
|
||||
is_plugin_active('ultimate-social-media-plus/ultimate-social-media-plus.php') ||
|
||||
is_plugin_active('ultimate-social-media-plus/ultimate_social_media_plus.php')
|
||||
) $isUSM = true;
|
||||
|
||||
$globals = get_option('_cdp_globals');
|
||||
|
||||
$isMulti = is_multisite() != true ? ' disabled="disabled"' : '';
|
||||
|
||||
// Ask for pro features
|
||||
$areWePro = areWePro();
|
||||
|
||||
?>
|
||||
<div class="cdp-tooltip-content">
|
||||
|
||||
<div class="cdp-tooltip-before-options cdp-checkboxes">
|
||||
<div class="cdp-tooltip-before">
|
||||
|
||||
<div class="cdp-button cdp-tooltip-btn-copy cdp-low-round cdp-copy-now-btn-tooltip cdp-center" data-cdp-btn="copy-quick"><?php _e('Copy now!', 'copy-delete-posts'); ?></div>
|
||||
|
||||
<div class="cdp-modal-copy-times-tooltip">
|
||||
<div class="cdp-modal-copy-times-content-tooltip">
|
||||
|
||||
<div class="cdp-cf" style="line-height: 32px; margin-top: 13px; margin-bottom: 12px;">
|
||||
|
||||
<div class="cdp-left">
|
||||
<input class="cdp-input-border cdp-input-dynamic cdp-number-field-styled cdp-modal-input-times-tooltip" style="width: 42px !important; padding: 0 1px;" value="1" placeholder="1" min="1" max="10000" type="number" name="tooltip-times-first">
|
||||
</div>
|
||||
|
||||
<div class="cdp-left"> <?php _e('time(s)', 'copy-delete-posts'); ?></div>
|
||||
|
||||
<div class="cdp-left"> to </div>
|
||||
<div class="cdp-left" style="max-height: 32px;">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc-2 <?php echo (($isMulti != '')?' cdp-tooltip-premium-spc-3':' cdp-tooltip-premium-spc-4'); ?>">
|
||||
<select<?php echo $isMulti; ?> class="cdp-input-dynamic cdp-tooltip-top cdp-premiu cdp-tooltip-select cdp-select cdp-sel-separat cdp-m-l-9-d" style="max-width: 98px !important" name="tooltip-which-site-first">
|
||||
<option value="-1"><?php _e('this site', 'copy-delete-posts'); ?></option>
|
||||
<?php if ($areWePro && function_exists('cdpp_get_sites')) echo cdpp_get_sites(true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cdp-cf" style="line-height: 32px; margin-top: 3px; margin-bottom: 5px;">
|
||||
<div class="cdp-left"><?php _e('Settings:', 'copy-delete-posts'); ?> </div>
|
||||
|
||||
<div class="cdp-left" style="line-height: 10px;">
|
||||
<select class="cdp-input-dynamic cdp-select cdp-tooltip-select cdp-sel-separat cdp-m-l-9-d cdp-sizes-profile-tooltip" name="tooltip-which-profile-first">
|
||||
<?php $gepres = get_option('_cdp_preselections', array()); if (array_key_exists(get_current_user_id(), $gepres)) $preSelProf = $gepres[get_current_user_id()]; else $preSelProf = 0; ?>
|
||||
<option value="custom"<?php echo (array_key_exists($preSelProf, $profiles) && !$profiles[$preSelProf])?' selected':''?> disabled><?php _e('–– Select ––', 'copy-delete-posts'); ?></option>
|
||||
<?php
|
||||
if ($profiles != false && $areWePro) {
|
||||
foreach ($profiles as $profile => $vals):
|
||||
$isSel = ($preSelProf == $profile);
|
||||
?>
|
||||
<option value="<?php echo htmlspecialchars($profile); ?>"<?php echo ($isSel)?' selected':''?>><?php echo ucfirst(htmlspecialchars($vals['names']['display'])); ?></option>
|
||||
<?php endforeach; } else { ?>
|
||||
<option value="default"><?php _e('Default', 'copy-delete-posts'); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cdp-left cdp-relative">
|
||||
<span class="cdp-info-icon cdp-tooltip-info-intt" style="top: calc(50% + 8px); margin-left: 9px;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-center cdp-f-s-12 cdp-padding-5-h">
|
||||
Or <span class="cdp-green cdp-pointer cdp-clickable cdp-tooltip-before-button"><?php _e('define it for this case', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
<div class="cdp-center cdp-below-tooltip-before">
|
||||
<!-- Define the possible settings <span class="cdp-green">on the plugin page</span>.<br /> -->
|
||||
<span class="cdp-error-span-tooltip"><?php _e('Making more than 50 copies will take some time. – depending on your server.', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-tooltip-full-options cdp-checkboxes" style="display: none; min-height: 360px; min-width: 602px; padding: 10px;">
|
||||
<div class="cdp-cf">
|
||||
<div class="cdp-left">
|
||||
<h2 class="cdp-f-s-16 cdp-f-w-semi-bold" style="margin: 0; line-height: 40px;"><?php _e('Elements to copy:', 'copy-delete-posts'); ?></h2>
|
||||
</div>
|
||||
<div class="cdp-right" style="width: calc(100% - 200px); text-align: right;">
|
||||
<div class="cdp-cf cdp-inline" style="line-height: 40px">
|
||||
<div class="cdp-left cdp-f-s-16"><?php _e('Use as basis settings', 'copy-delete-posts'); ?></div>
|
||||
<select class="cdp-left cdp-modal-select cdp-ow-border cdp-input-dynamic cdp-modal-input-profiles-r cdp-select cdp-m-l-9-d" name="tooltip-which-profile-second">
|
||||
<option value="custom" selected disabled><?php _e('–– Select ––', 'copy-delete-posts'); ?></option>
|
||||
<option value="alloptions"><?php _e('Select all', 'copy-delete-posts'); ?></option>
|
||||
<option value="clear"><?php _e('Clean slate', 'copy-delete-posts'); ?></option>
|
||||
<optgroup label="<?php _e('–– Profiles ––', 'copy-delete-posts'); ?>"></optgroup>
|
||||
<option value="custom_named" disabled><?php _e('Custom', 'copy-delete-posts'); ?></option>
|
||||
<?php
|
||||
if ($profiles != false && $areWePro) {
|
||||
foreach ($profiles as $profile => $vals):
|
||||
$isSel = ($preSelProf == $profile);
|
||||
?>
|
||||
<option value="<?php echo htmlspecialchars($profile); ?>"<?php echo ($isSel)?' selected':''?>><?php echo ucfirst(htmlspecialchars($vals['names']['display'])); ?></option>
|
||||
<?php endforeach; } else { ?>
|
||||
<option value="default"><?php _e('Default', 'copy-delete-posts'); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-modal-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="title">
|
||||
<span><?php _e('Title', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="date">
|
||||
<span><?php _e('Date', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="status">
|
||||
<span><?php _e('Status', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="slug">
|
||||
<span><?php _e('Slug', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="excerpt">
|
||||
<span><?php _e('Excerpt', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="content">
|
||||
<span><?php _e('Content', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="f_image">
|
||||
<span><?php _e('Feat. image', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="template">
|
||||
<span><?php _e('Template', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="format">
|
||||
<span><?php _e('Format', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="author">
|
||||
<span><?php _e('Author', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="password">
|
||||
<span><?php _e('Password', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="children">
|
||||
<span><?php _e('Children', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="comments">
|
||||
<span><?php _e('Comments', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="menu_order">
|
||||
<span><?php _e('Menu order', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="attachments">
|
||||
<span><?php _e('Attachments', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="category">
|
||||
<span><?php _e('Categories', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="cdp-modal-checkboxes">
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="post_tag">
|
||||
<span><?php _e('Tags', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="cdp_taxonomy">
|
||||
<span><?php _e('Taxonomies', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="nav_menu">
|
||||
<span><?php _e('Nav Menus', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
<label>
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="link_category">
|
||||
<span><?php _e('Link cats', 'copy-delete-posts'); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php if ($isYoast || $isUSM || $isWoo || true): ?>
|
||||
<div class="cdp-modal-checkboxes cdp-modal-checkboxes-three">
|
||||
<label class="cdp-relative"><span class="cdp-premium-icon" style="margin-left: 0"></span><b style="padding-left: 21px;" class="cdp-f-s-15 cdp-f-w-medium"><?php _e('Plugin options:', 'copy-delete-posts'); ?></b></label>
|
||||
<br>
|
||||
<?php if ($isWoo): ?>
|
||||
<label class="cdp-woo">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="woo">
|
||||
<span><?php _e('Woo Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($isYoast): ?>
|
||||
<label class="cdp-yoast">
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="yoast">
|
||||
<span><?php _e('Yoast Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($isUSM): ?>
|
||||
<label>
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="usmplugin">
|
||||
<span><?php _e('USM Settings', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<label>
|
||||
<div class="cdp-inline cdp-tooltip-premium-spc">
|
||||
<input class="cdp-input-dynamic" type="checkbox" name="all_metadata">
|
||||
<span><?php _e('All post meta', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="cdp-relative">
|
||||
<div class="cdp-modal-copy-times cdp-tooltip-c-t cdp-f-s-15">
|
||||
<div class="cdp-modal-copy-times-content">
|
||||
<?php if ($areWePro && function_exists('cdpp_change_post_type')) cdpp_change_post_type(); ?>
|
||||
<div class="cdp-cf cdp-inline">
|
||||
<div class="cdp-left" style="line-height: 40px;"><?php _e('Copy', 'copy-delete-posts'); ?> </div>
|
||||
<div class="cdp-left" style="line-height: 40px;">
|
||||
<input class="cdp-modal-input-times cdp-input-border" name="tooltip-which-times-second" style="border-width: 1px !important;" placeholder="1" type="number" value="1">
|
||||
</div>
|
||||
<div class="cdp-left" style="line-height: 40px;">
|
||||
<?php _e('time(s)', 'copy-delete-posts'); ?>
|
||||
</div>
|
||||
<div class="cdp-left" style="line-height: 40px;"> <?php _e('to', 'copy-delete-posts'); ?></div>
|
||||
<div class="cdp-left">
|
||||
<div class="cdp-tooltip-premium-spc-2 cdp-inline<?php echo (($isMulti != '')?' cdp-tooltip-premium-spc-3':' cdp-tooltip-premium-spc-4'); ?>">
|
||||
<select<?php echo $isMulti; ?> class="cdp-input-dynamic cdp-modal-select cdp-modal-select-2 cdp-ow-border cdp-modal-input-site cdp-select cdp-m-l-9-d" name="tooltip-which-site-second">
|
||||
<option value="-1"><?php _e('this site', 'copy-delete-posts'); ?></option>
|
||||
<?php if ($areWePro && function_exists('cdpp_get_sites')) echo cdpp_get_sites(true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-center">
|
||||
<span class="cdp-error-span-tooltip"><?php _e('Making more than 50 copies will take some time. – depending on your server.', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
|
||||
<div class="cdp-center cdp-padding" style="min-width: 420px; padding-bottom: 10px;">
|
||||
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;border-radius: 3px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
||||
<?php if (isset($globals) && is_array($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
||||
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;border-radius: 3px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
/** –– **/
|
||||
165
wp-content/plugins/copy-delete-posts/menu/variables.php
Normal file
165
wp-content/plugins/copy-delete-posts/menu/variables.php
Normal file
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
/**
|
||||
* Copy & Delete Posts – default menu.
|
||||
*
|
||||
* @package CDP
|
||||
* @subpackage SendingVariables
|
||||
* @author CopyDeletePosts
|
||||
* @since 1.0.0
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
// Exit if accessed directly.
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/** –– **\
|
||||
* Adding assets.
|
||||
* @since 1.2.2
|
||||
*/
|
||||
add_action('cdp_notices_special', function() {
|
||||
|
||||
return; // Temporary disabled.
|
||||
|
||||
if (cdp_check_permissions(wp_get_current_user()) == false) return;
|
||||
if (!get_option('cdp_dismiss_perf_notice', false) && get_option('cdp_latest_slow_performance', false)) {
|
||||
|
||||
cdp_render_performance_notice();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
/** –– **/
|
||||
|
||||
/** –– **\
|
||||
* Notice about performance.
|
||||
* @since 1.2.2
|
||||
*/
|
||||
function cdp_render_performance_notice() {
|
||||
|
||||
global $wp_version;
|
||||
global $wpdb;
|
||||
global $cdp_plug_url;
|
||||
|
||||
$mysqlVersion = $wpdb->db_version();
|
||||
|
||||
$cdp_notice2 = __('%b_start%Please%b_end% copy below logs %a_start%into the forum%a_end% so that we can make the plugin even better (for free)!', 'copy-delete-posts');
|
||||
$cdp_notice2 = str_replace('%a_start%', '<a target="_blank" href="https://wordpress.org/support/plugin/copy-delete-posts/#new-topic-0">', $cdp_notice2);
|
||||
$cdp_notice2 = str_replace('%a_end%', '</a>', $cdp_notice2);
|
||||
$cdp_notice2 = str_replace('%b_start%', '<b class="cdp-please-big">', $cdp_notice2);
|
||||
$cdp_notice2 = str_replace('%b_end%', '</b>', $cdp_notice2);
|
||||
|
||||
$logs = get_option('cdp_copy_logs_times', array());
|
||||
|
||||
$theLog = '';
|
||||
|
||||
$theLog .= 'The OS: ' . PHP_OS . "\n";
|
||||
$theLog .= 'PHP Version: ' . PHP_VERSION . "\n";
|
||||
$theLog .= 'WP Version: ' . $wp_version . "\n";
|
||||
$theLog .= 'MySQL Version: ' . $mysqlVersion . "\n";
|
||||
$theLog .= 'Directory Separator: ' . DIRECTORY_SEPARATOR . "\n\n";
|
||||
|
||||
$theLog .= 'Copy logs:' . "\n";
|
||||
|
||||
foreach ($logs as $key => $value) {
|
||||
$amount = isset($value['amount']) ? $value['amount'] : 1;
|
||||
$time = $value['time'];
|
||||
$perOne = $value['perOne'];
|
||||
$data = date('d-m-Y H:i:s', $value['data']);
|
||||
$memory = cdp_human_readable_bytes(intval($value['memory']));
|
||||
$peak = cdp_human_readable_bytes(intval($value['peak']));
|
||||
|
||||
$theLog .= $data . ' - ' . $amount . 'x, [total: ' . $time . ', avg: ' . $perOne . '] (mem: ' . $memory . ' - ' . $value['memory'] . ', peak: ' . $peak . ' - ' . $value['peak'] . ')' . "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="cdp_notice_error_modal" style="display: none; opacity: 0;">
|
||||
|
||||
<div class="cdp_notice_content" style="opacity: 0; top: 45%;">
|
||||
|
||||
<div class="cdp_notice_heading">
|
||||
<div class="cdp_notice_image">
|
||||
<img src="<?php echo $cdp_plug_url; ?>/assets/imgs/smile.svg" class="" alt="happy face">
|
||||
</div>
|
||||
<div class="cdp_notice_heading_text">
|
||||
<?php _e('Copy worked!', 'copy-delete-posts'); ?>
|
||||
</div>
|
||||
<div class="cdp-modal-times"></div>
|
||||
</div>
|
||||
|
||||
<div class="cdp_notice_the_text">
|
||||
<div><?php _e('However, we noticed some optimization potential on your server.', 'copy-delete-posts'); ?></div>
|
||||
<div><?php echo $cdp_notice2; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="cdp-relative">
|
||||
<textarea readonly class="cdp_notice_logs"><?php echo $theLog ?></textarea>
|
||||
<div class="cdp-copy-notice-logs"><?php _e('Copy logs', 'copy-delete-posts'); ?></div>
|
||||
</div>
|
||||
|
||||
<a href="https://wordpress.org/support/plugin/copy-delete-posts/#new-topic-0" class="cdp-nodec" style="text-decoration: none;" target="_blank">
|
||||
<div class="cdp_notice_goto_forum">
|
||||
<?php _e('Go to forum', 'copy-delete-posts'); ?>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<div class="cdp-notice-troubles">
|
||||
<?php _e('Trouble logging in there?', 'copy-delete-posts'); ?>
|
||||
<span class="cdp-info-icon cdp-tooltip-top" title="<?php _e('Your account on Wordpress.org (where you open a new support thread) is different to the one you login to your WordPress dashboard (where you are now). If you don\'t have a WordPress.org account yet, please sign up at the top right on here. It only takes a minute :) Thank you!', 'copy-delete-posts'); ?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="cdp-cf">
|
||||
<div class="cdp-left cdp-notice-nope cdp_notice_perf_close">
|
||||
<span><?php _e('No, I don\'t want to help you to improve the plugin.', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
<div class="cdp-left cdp-notice-yeah cdp_notice_perf_close">
|
||||
<?php _e('Ok, done!', 'copy-delete-posts'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
/** –– **/
|
||||
|
||||
/** –– **\
|
||||
* There are constant (but dynamic per blog) variables.
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function cdp_vars($hideTT = false, $cdp_plug_url = 'x', $post_id = false, $parent = false, $notify = false) {
|
||||
?>
|
||||
|
||||
<script>
|
||||
if (typeof ajaxurl === 'undefined') ajaxurl = '<?php echo esc_url(admin_url('admin-ajax.php')); ?>';
|
||||
</script>
|
||||
<div class="cdp-copy-alert-success" style="top: -28px; opacity: 0; display: none;">
|
||||
<img src="<?php echo $cdp_plug_url ?>/assets/imgs/copy.png" alt="<?php _e('Successfull copy image', 'copy-delete-posts'); ?>">
|
||||
</div>
|
||||
<?php do_action('cdp_notices_special'); ?>
|
||||
<div class="cdp-copy-loader-overlay" style="opacity: 0">
|
||||
<div class="cdp-text-overlay">
|
||||
<h1 style="color: white; font-size: 25px;"><?php _e('Please wait, copying in progress...', 'copy-delete-posts'); ?></h1>
|
||||
<p>
|
||||
<?php _e('If you’re making a lot of copies it can take a while
|
||||
<br>(up to 5 minutes if you’re on a slow server).', 'copy-delete-posts'); ?>
|
||||
</p>
|
||||
<span><?php _e('Average time is 8 copies per second.', 'copy-delete-posts'); ?></span>
|
||||
</div>
|
||||
<div class="cdp-spinner"></div>
|
||||
</div>
|
||||
<input type="text" hidden id="cdp-purl" style="display: none; visibility: hidden;" value="<?php echo $cdp_plug_url ?>">
|
||||
<?php if ($hideTT == true): ?>
|
||||
<input type="text" hidden id="cdp-hideTT" style="display: none; visibility: hidden;" value="true">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($post_id != false): ?>
|
||||
<input type="text" hidden id="cdp-current-post-id" style="display: none; visibility: hidden;" value="<?php echo $post_id ?>">
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($parent != false): ?>
|
||||
<input type="text" hidden id="cdp-original-post" style="display: none; visibility: hidden;" data-cdp-parent="<?php echo $parent['title'] ?>" data-cdp-parent-url="<?php echo $parent['link'] ?>">
|
||||
<?php endif;?>
|
||||
|
||||
<?php
|
||||
}
|
||||
/** –– **/
|
||||
Reference in New Issue
Block a user