| 1 |
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> |
| 2 |
|
| 3 |
<h3><?php esc_html_e('Trackback/comments actions', 'wp-optimize'); ?></h3> |
| 4 |
<div class="wpo-fieldgroup"> |
| 5 |
<div class="wpo-fieldgroup__subgroup"> |
| 6 |
<h3 class="wpo-first-child"><?php esc_html_e('Trackbacks', 'wp-optimize'); ?></h3> |
| 7 |
|
| 8 |
<div id="trackbacks_notice"></div> |
| 9 |
|
| 10 |
<p> |
| 11 |
<small><?php esc_html_e('Use these buttons to enable or disable any future trackbacks on all your previously published posts.', 'wp-optimize'); ?></small> |
| 12 |
</p> |
| 13 |
|
| 14 |
<p> |
| 15 |
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-trackbacks-enable" name="wp-optimize-disable-enable-trackbacks-enable"><?php esc_html_e('Enable', 'wp-optimize'); ?></button> |
| 16 |
|
| 17 |
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-trackbacks-disable" name="wp-optimize-disable-enable-trackbacks-disable"><?php esc_html_e('Disable', 'wp-optimize'); ?></button> |
| 18 |
<img id="trackbacks_spinner" class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> |
| 19 |
<span id="trackbacks_actionmsg"> |
| 20 |
<?php |
| 21 |
if (!$settings_trackback_data['empty']) { |
| 22 |
|
| 23 |
if ($settings_trackback_data['enabled']) { |
| 24 |
// translators: %s is a date and time |
| 25 |
printf(esc_html__('All trackbacks on existing posts were enabled on the %s.', 'wp-optimize'), esc_html($settings_trackback_data['last_action_timestamp'])); |
| 26 |
} else { |
| 27 |
// translators: %s is a date and time |
| 28 |
printf(esc_html__('All trackbacks on existing posts were disabled on the %s.', 'wp-optimize'), esc_html($settings_trackback_data['last_action_timestamp'])); |
| 29 |
} |
| 30 |
} |
| 31 |
?> |
| 32 |
</span> |
| 33 |
</p> |
| 34 |
|
| 35 |
</div> |
| 36 |
|
| 37 |
<div class="wpo-fieldgroup__subgroup"> |
| 38 |
|
| 39 |
<h3><?php esc_html_e('Comments', 'wp-optimize'); ?></h3> |
| 40 |
|
| 41 |
<div id="comments_notice"></div> |
| 42 |
|
| 43 |
<p><small><?php esc_html_e('Use these buttons to enable or disable any future comments on all your previously published posts.', 'wp-optimize'); ?></small></p> |
| 44 |
|
| 45 |
<p> |
| 46 |
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-comments-enable" name="wp-optimize-disable-enable-comments-enable"><?php esc_html_e('Enable', 'wp-optimize'); ?></button> |
| 47 |
|
| 48 |
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-comments-disable" name="wp-optimize-disable-enable-comments-disable"><?php esc_html_e('Disable', 'wp-optimize'); ?></button> |
| 49 |
|
| 50 |
<img id="comments_spinner" class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> |
| 51 |
<span id="comments_actionmsg"> |
| 52 |
<?php |
| 53 |
if (!$settings_comments_data['empty']) { |
| 54 |
|
| 55 |
if ($settings_comments_data['enabled']) { |
| 56 |
// translators: %s is a date and time |
| 57 |
printf(esc_html__('All comments on existing posts were enabled on the %s.', 'wp-optimize'), esc_html($settings_comments_data['last_action_timestamp'])); |
| 58 |
} else { |
| 59 |
// translators: %s is a date and time |
| 60 |
printf(esc_html__('All comments on existing posts were disabled on the %s.', 'wp-optimize'), esc_html($settings_comments_data['last_action_timestamp'])); |
| 61 |
} |
| 62 |
} |
| 63 |
?> |
| 64 |
</span> |
| 65 |
</p> |
| 66 |
|
| 67 |
</div> |
| 68 |
</div> |