PluginProbe
Catch Web Tools / 3.2
Catch Web Tools v3.2
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / admin / modules / dashboard.php

dashboard.php in Catch Web Tools 3.2, at admin/modules/dashboard.php

475 lines 18.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if (! defined('ABSPATH')) exit;
5
6 /**
7 * @package Admin
8 * @sub-package Admin CatchIDs Display
9 */
10 ?>
11 <?php include('header.php'); ?>
12
13 <div id="catch-web-tools" aria-label="Main Content">
14 <div class="content-wrapper">
15 <div class="header">
16 <h3><?php esc_html_e('Dashboard', 'catch-web-tools'); ?></h3>
17 </div> <!-- .header -->
18 <div class="content">
19
20 <div class="module-container">
21 <div class="module-wrap">
22 <div id="module-webmaster-tools" class="catch-modules short-desc">
23
24
25 <div class="module-header">
26 <h3><?php esc_html_e('Webmaster Tools', 'catch-web-tools'); ?></h3>
27 </div> <!-- .module-header -->
28
29 <div class="module-content">
30 <p>
31 <?php esc_html_e('Webmaster Tools gives you an option to add in the Site Verfication Code and Header and Footer Script required to manage your site.', 'catch-web-tools'); ?>
32 </p>
33 <div class="catch-actions">
34 <form method="post" action="options.php">
35 <?php
36 settings_fields('webmaster-tools-group');
37
38 $settings = catchwebtools_get_options('catchwebtools_webmaster');
39
40 if (! empty($settings['status']) && $settings['status']) {
41 echo '<input type="hidden" value="0" name="catchwebtools_webmaster[status]"/>';
42
43 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
44 } else {
45 echo '<input type="hidden" value="1" name="catchwebtools_webmaster[status]"/>';
46
47 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
48 }
49 ?>
50
51 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-webmasters')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
52 </form>
53 </div>
54 </div> <!-- .module-content -->
55 </div><!-- #module-webmaster-tools -->
56 </div><!-- .module-wrap -->
57
58 <?php
59 /**
60 * Do not show Custom CSS option from WordPress 4.7 onwards
61 */
62 if (! function_exists('wp_update_custom_css_post')) {
63 ?>
64
65 <div class="module-wrap">
66
67 <div id="module-customcss" class="catch-modules short-desc">
68
69 <div class="module-header">
70 <h3><?php esc_html_e('Custom CSS', 'catch-web-tools'); ?></h3>
71 </div>
72
73 <div class="module-content">
74 <p>
75 <?php esc_html_e('Custom CSS gives you an option to add in your CSS to your WordPress site without building Child Theme. You can just add your Custom CSS and save, it will show up in the frontend head section. Leave it blank if it is not needed.', 'catch-web-tools'); ?>
76 </p>
77 <div class="catch-actions">
78 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-custom-css')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
79 </div>
80 </div><!-- .module-content -->
81 </div><!-- #module-customcss -->
82 </div><!-- .module-wrap -->
83 <?php } ?>
84
85 <div class="module-wrap">
86
87 <div id="module-catchids" class="catch-modules short-desc">
88
89 <div class="module-header">
90 <h3><?php esc_html_e('Catch IDs', 'catch-web-tools'); ?></h3>
91 </div>
92
93 <div class="module-content">
94
95 <p>
96 <?php esc_html_e('Catch IDs will show Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and UserID in the respective admin section tables.', 'catch-web-tools'); ?>
97 </p>
98
99 <div class="catch-actions">
100 <?php
101 /* Disable Option if Catch IDs plugin is active */
102 if (is_plugin_active('catch-ids/catch-ids.php')) :
103 ?>
104 <p class="notice notice-warning">
105 <?php esc_html_e('This module is currently disabled since Catch IDs standalone plugin is already active on your site.', 'catch-web-tools'); ?>
106 </p>
107 <?php else : ?>
108 <form method="post" action="options.php">
109 <?php
110 settings_fields('catchids-settings-group');
111
112 $settings = catchwebtools_get_options('catchwebtools_catchids');
113
114 if (! empty($settings['status']) && $settings['status']) {
115 echo '<input type="hidden" value="0" name="catchwebtools_catchids[status]"/>';
116
117 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
118 } else {
119 echo '<input type="hidden" value="1" name="catchwebtools_catchids[status]"/>';
120
121 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
122 }
123 ?>
124 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-catch-ids')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
125 </form>
126 <?php endif; ?>
127 </div><!-- .catch-actions -->
128 </div><!-- .catch-content -->
129 </div><!-- #module-catchids -->
130 </div><!-- .module-wrap -->
131
132
133 <div class="module-wrap">
134 <div id="module-socialicons" class="catch-modules long-desc">
135
136 <div class="module-header">
137 <h3><?php esc_html_e('Social Icons', 'catch-web-tools'); ?></h3>
138 </div>
139
140 <div class="module-content">
141 <p>
142 <?php esc_html_e('Social Icons gives you an option to add in your Social Profiles.', 'catch-web-tools'); ?>
143 </p>
144 <p>
145 <?php esc_html_e('You can add Social Icons by adding in Widgets in your Sidebar or by adding in Shortcode in your Page/Post Content or by adding the function in your template files.', 'catch-web-tools'); ?>
146 </p>
147 <div class="catch-actions">
148 <form method="post" action="options.php">
149 <?php
150 settings_fields('social-icons-group');
151
152 $settings = catchwebtools_get_options('catchwebtools_social');
153
154 if (! empty($settings['status']) && $settings['status']) {
155 echo '<input type="hidden" value="0" name="catchwebtools_social[status]"/>';
156
157 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
158 } else {
159 echo '<input type="hidden" value="1" name="catchwebtools_social[status]"/>';
160
161 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
162 }
163 ?>
164
165 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-social-icons')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
166 </form>
167 </div>
168 </div>
169 </div><!-- #module-socialicons -->
170 </div><!-- .module-wrap -->
171
172 <div class="module-wrap">
173 <div id="module-opengraph" class="catch-modules long-desc">
174 <div class="module-header">
175 <h3><?php esc_html_e('Open Graph', 'catch-web-tools'); ?></h3>
176 </div>
177
178 <div class="module-content">
179 <p><?php esc_html_e('The Open Graph protocol enables your site to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.', 'catch-web-tools'); ?>
180 </p>
181 <div class="catch-actions">
182 <form method="post" action="options.php">
183 <?php
184 settings_fields('opengraph-settings-group');
185
186 $settings = catchwebtools_get_options('catchwebtools_opengraph');
187
188 if (! empty($settings['status']) && $settings['status']) {
189 echo '<input type="hidden" value="0" name="catchwebtools_opengraph[status]"/>';
190
191 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
192 } else {
193 echo '<input type="hidden" value="1" name="catchwebtools_opengraph[status]"/>';
194
195 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
196 }
197 ?>
198
199 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-opengraph')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
200 </form>
201 </div>
202 </div>
203 </div><!-- #module-opengraph -->
204 </div><!-- .module-wrap -->
205
206 <div class="module-wrap">
207 <div id="module-seo" class="catch-modules long-desc">
208 <div class="module-header">
209 <h3><?php esc_html_e('SEO ( BETA Version )', 'catch-web-tools'); ?></h3>
210 </div>
211
212 <div class="module-content">
213 <p>
214 <?php esc_html_e('SEO is in beta version. SEO can be used to add SEO meta tags to Homepage, specific Pages or Posts and Categories page. This section adds SEO meta data to site\'s section.', 'catch-web-tools'); ?>
215 </p>
216 <div class="catch-actions">
217 <form method="post" action="options.php">
218 <?php
219 settings_fields('seo-settings-group');
220
221 $settings = catchwebtools_get_options('catchwebtools_seo');
222
223 if (! empty($settings['status']) && $settings['status']) {
224 echo '<input type="hidden" value="0" name="catchwebtools_seo[status]"/>';
225
226 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
227 } else {
228 echo '<input type="hidden" value="1" name="catchwebtools_seo[status]"/>';
229
230 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
231 }
232 ?>
233
234 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-seo')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
235 </form>
236 </div>
237 </div><!-- #module-content -->
238 </div><!-- #module-seo -->
239 </div><!-- .module-wrap -->
240
241 <div class="module-wrap">
242 <div id="module-catchupdater" class="catch-modules short-desc">
243 <div class="module-header">
244 <h3><?php esc_html_e('Catch Updater', 'catch-web-tools'); ?></h3>
245 </div>
246
247 <div class="module-content">
248
249 <p>
250 <?php esc_html_e('Catch Updater is a simple and lightweight WordPress Theme Updater and Plugin Module, which enables you to update your themes and plugins easily using WordPress Admin Panel.', 'catch-web-tools'); ?>
251 </p>
252
253 <div class="catch-actions">
254 <form method="post" action="options.php">
255 <?php
256 settings_fields('catchupdater-settings-group');
257
258 $settings = catchwebtools_get_options('catchwebtools_catch_updater');
259
260 global $wp_version;
261 if (version_compare($wp_version, '5.5', '<')) :
262 if (! empty($settings['status']) && $settings['status']) {
263 echo '<input type="hidden" value="0" name="catchwebtools_catch_updater[status]"/>';
264
265 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
266 echo '&nbsp;';
267
268 echo '<a class="button button-secondary" href="' . esc_url(admin_url('theme-install.php?upload')) . '">' . esc_html__('Upload Theme', 'catch-web-tools') . '</a>';
269 echo '&nbsp;';
270 echo '<a class="button button-secondary" href="' . esc_url(admin_url('plugin-install.php?upload')) . '">' . esc_html__('Upload Plugin', 'catch-web-tools') . '</a>';
271 } else {
272 echo '<input type="hidden" value="1" name="catchwebtools_catch_updater[status]"/>';
273
274 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
275 }
276 else :
277 ?>
278 <p class="notice notice-warning">
279 <?php
280 printf(
281 sprintf(
282 wp_kses_post(
283 // Translators: %1$s opening tag %2$s closing tag with a link.
284 __('This module has been disabled by default since WordPress version 5.5 and above. For further detail, please visit this %1$slink%2$s', 'catch-web-tools')
285 ),
286 '<a target="_blank" href="' . esc_url('https://catchplugins.com/news/catch-updater-notice-wordpress-5-5/')
287 . '">',
288 '</a>'
289 )
290 );
291 ?>
292 </p>
293 <?php
294 endif;
295 ?>
296 </form>
297 </div><!-- .catch-actions -->
298 </div><!-- .catch-content -->
299 </div><!-- #module-catchids -->
300 </div><!-- .module-wrap -->
301
302 <div class="module-wrap">
303 <!--#module-to-top-->
304 <div id="module-to-top" class="catch-modules short-desc">
305 <div class="module-header">
306 <h3><?php esc_html_e('To Top', 'catch-web-tools'); ?></h3>
307 </div>
308
309 <div class="module-content">
310 <p>
311 <?php esc_html_e('To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.', 'catch-web-tools'); ?>
312 </p>
313 <div class="catch-actions">
314 <?php
315 /* Disable Option if Catch IDs plugin is active */
316 if (is_plugin_active('to-top/to-top.php')) :
317 ?>
318 <p class="notice notice-warning">
319 <?php esc_html_e('This module is currently disabled since To Top standalone plugin is already active on your site.', 'catch-web-tools'); ?>
320 </p>
321 <?php else : ?>
322 <form method="post" action="options.php">
323 <?php
324 settings_fields('to-top-settings-group');
325
326 $settings = catchwebtools_get_options('catchwebtools_to_top_options');
327
328 if (! empty($settings['status']) && $settings['status']) {
329 echo '<input type="hidden" value="0" name="catchwebtools_to_top_options[status]"/>';
330
331 submit_button(__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
332 } else {
333 echo '<input type="hidden" value="1" name="catchwebtools_to_top_options[status]"/>';
334
335 submit_button(__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
336 }
337 ?>
338
339 <a class="button button-secondary" href="<?php echo esc_url(admin_url('admin.php?page=catch-web-tools-to-top')); ?>"><?php esc_html_e('Configure', 'catch-web-tools'); ?></a>
340 </form>
341 <?php endif; ?>
342 </div><!-- .module-actions -->
343 </div><!-- .module-content -->
344 </div><!-- #module-to-top -->
345 </div><!-- .module-wrap -->
346
347 <div class="module-wrap">
348 <div id="module-catchupdater" class="catch-modules short-desc">
349 <div class="module-header">
350 <h3><?php esc_html_e('Big Image Size Threshold', 'catch-web-tools'); ?></h3>
351 </div>
352
353 <div class="module-content">
354
355 <p>
356 <?php esc_html_e('This allows you to disable the default Automatic Image Optimization and scaling feature from WordPress.', 'catch-web-tools'); ?>
357 </p>
358
359 <div class="catch-actions">
360 <form method="post" action="options.php">
361 <?php
362 settings_fields('big-image-size-threshold-settings-group');
363
364 $settings = catchwebtools_get_options('catchwebtools_big_image_size_threshold');
365
366 if (! empty($settings['status']) && $settings['status']) {
367 echo '<input type="hidden" value="0" name="catchwebtools_big_image_size_threshold[status]"/>';
368
369 submit_button(esc_html__('Deactivate', 'catch-web-tools'), 'secondary', 'submit', false);
370 echo '&nbsp;';
371 } else {
372 echo '<input type="hidden" value="1" name="catchwebtools_big_image_size_threshold[status]"/>';
373
374 submit_button(esc_html__('Activate', 'catch-web-tools'), 'primary', 'submit', false);
375 }
376 ?>
377 </form>
378 </div><!-- .catch-actions -->
379 </div><!-- .catch-content -->
380 </div><!-- #module-catchids -->
381 </div><!-- .module-wrap -->
382
383 </div><!-- .module-container -->
384 </div><!-- .content -->
385 </div><!-- .content-wrapper -->
386 <div id="ctp-switch" class="content-wrapper col-3 catch-web-tools-main">
387 <div class="header">
388 <h2><?php esc_html_e('Catch Themes & Catch Plugins Tabs', 'catch-web-tools'); ?></h2>
389 </div> <!-- .Header -->
390 <div class="content">
391 <p><?php echo esc_html__('If you want to turn off Catch Themes & Catch Plugins tabs option in Add Themes and Add Plugins page, please uncheck the following option.', 'catch-web-tools'); ?>
392 </p>
393 <table>
394 <tr>
395 <td>
396 <?php echo esc_html__('Turn On Catch Themes & Catch Plugin tabs', 'catch-web-tools'); ?>
397 </td>
398 <td>
399 <?php $ctp_options = ctp_get_options(); ?>
400 <div class="module-header <?php echo $ctp_options['theme_plugin_tabs'] ? 'active' : 'inactive'; ?>">
401 <div class="switch">
402 <input type="hidden" name="ctp_tabs_nonce" id="ctp_tabs_nonce" value="<?php echo esc_attr(wp_create_nonce('ctp_tabs_nonce')); ?>" />
403 <input type="checkbox" id="ctp_options[theme_plugin_tabs]" class="ctp-switch" rel="theme_plugin_tabs" <?php checked(true, $ctp_options['theme_plugin_tabs']); ?>>
404 <label for="ctp_options[theme_plugin_tabs]"></label>
405 </div>
406 <div class="loader"></div>
407 </div>
408 </td>
409 </tr>
410 </table>
411 </div>
412 </div><!-- #ctp-switch -->
413
414 <div class="content-wrapper">
415 <div class="content">
416 <div class="module-container">
417 <div class="module-wrap catch-modules-long">
418 <div id="module-securi-tips" class="catch-modules">
419 <div class="module-header">
420 <h3><?php esc_html_e('Security Tips', 'catch-web-tools'); ?></h3>
421 </div>
422
423 <div class="module-content">
424 <?php
425 if (username_exists('admin')) {
426 echo '<p>' . esc_html__('Caution!!! A user with username: admin exists, need to rename this username or remove it', 'catch-web-tools') . '</p>';
427 } else {
428 echo '<p>' . esc_html__('Congratulations!!! You do not have any users with admin as username', 'catch-web-tools') . '</p>';
429 }
430 ?>
431
432 <?php
433 global $wpdb;
434
435 if ('wp_' == $wpdb->prefix) {
436 echo '<p>' . esc_html__('Caution!!! WordPress Table Prefix is "wp_", need to change this prefix', 'catch-web-tools') . '</p>';
437 } else {
438 echo '<p>' . esc_html__('Congratulations!!! WordPress Table Prefix is not "wp_"', 'catch-web-tools') . '</p>';
439 }
440
441 ?>
442
443 <?php
444 global $wp_version;
445
446 //Get latest WordPress version. More info: wp-admin/includes/updates.php
447 $update = get_core_updates();
448
449 if (version_compare($update[0]->current, $wp_version, '<=')) {
450 echo '<p>' . esc_html__('Congratulations!!! Your WordPress version is the latest.', 'catch-web-tools') . '</p>';
451 } else {
452 echo '<p>' . sprintf(
453 wp_kses_post(
454 // Translators: Information about the newer version. %1$s current version with a %2$s newer version.
455 __('Caution!!! You do not have the current version of WordPress installed. The Current version is %1$s. Your installation version is %2$s Please update it %3$shere%4$s.', 'catch-web-tools')
456 ),
457 esc_html($wp_version),
458 esc_html($update[0]->current),
459 '<a href=' . esc_url(admin_url('update-core.php')) . '>',
460 '</a>'
461 ) . '</p>';
462 }
463
464 //echo print_r( get_core_updates() ) ;
465 ?>
466 </div><!-- .module-content -->
467 </div><!-- #module-securi-tips -->
468 </div><!-- .module-wrap -->
469 </div><!-- .module-container -->
470 </div><!-- .content -->
471 </div><!-- .content-wrapper -->
472
473 </div><!-- #customcss -->
474
475 <?php include('main-footer.php'); ?>