PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.4.2
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.4.2
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / settings / settings-trackback-and-comments.php

settings-trackback-and-comments.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.4.2, at templates/settings/settings-trackback-and-comments.php

72 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
2 <?php
3 $trackback_action_arr = $options->get_option('trackbacks_action', array());
4 $comments_action_arr = $options->get_option('comments_action', array());
5 ?>
6 <h3><?php esc_html_e('Trackback/comments actions', 'wp-optimize'); ?></h3>
7 <div class="wpo-fieldgroup">
8 <div class="wpo-fieldgroup__subgroup">
9 <h3 class="wpo-first-child"><?php esc_html_e('Trackbacks', 'wp-optimize'); ?></h3>
10
11 <div id="trackbacks_notice"></div>
12
13 <p>
14 <small><?php esc_html_e('Use these buttons to enable or disable any future trackbacks on all your previously published posts.', 'wp-optimize'); ?></small>
15 </p>
16
17 <p>
18 <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>
19
20 <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>
21 <img id="trackbacks_spinner" class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); ?>" alt="...">
22 <span id="trackbacks_actionmsg">
23 <?php
24 if (!empty($trackback_action_arr)) {
25
26 $trackback_action_timestamp = WP_Optimize()->format_date_time($trackback_action_arr['timestamp']);
27 if ($trackback_action_arr['action']) {
28 printf(esc_html__('All trackbacks on existing posts were enabled on the %s.', 'wp-optimize'), esc_html($trackback_action_timestamp));
29 } else {
30 printf(esc_html__('All trackbacks on existing posts were disabled on the %s.', 'wp-optimize'), esc_html($trackback_action_timestamp));
31 }
32
33 }
34 ?>
35 </span>
36 </p>
37
38 </div>
39
40 <div class="wpo-fieldgroup__subgroup">
41
42 <h3><?php esc_html_e('Comments', 'wp-optimize'); ?></h3>
43
44 <div id="comments_notice"></div>
45
46 <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>
47
48 <p>
49 <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>
50
51 <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>
52
53 <img id="comments_spinner" class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); ?>" alt="...">
54 <span id="comments_actionmsg">
55 <?php
56 if (!empty($comments_action_arr)) {
57
58 $comments_action_timestamp = WP_Optimize()->format_date_time($comments_action_arr['timestamp']);
59 if ($comments_action_arr['action']) {
60 printf(esc_html__('All comments on existing posts were enabled on the %s.', 'wp-optimize'), esc_html($comments_action_timestamp));
61 } else {
62 printf(esc_html__('All comments on existing posts were disabled on the %s.', 'wp-optimize'), esc_html($comments_action_timestamp));
63 }
64
65 }
66 ?>
67 </span>
68 </p>
69
70 </div>
71 </div>
72