PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / trunk
Search Atlas SEO – OTTO AI SEO Automation for WordPress vtrunk
2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.5.23 All 138 releases
metasync / code-minification / views / admin-page.php

admin-page.php in Search Atlas SEO – OTTO AI SEO Automation for WordPress trunk, at code-minification/views/admin-page.php

88 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Code Minification Admin Page View - Tab Container
4 *
5 * @package Search Atlas SEO
6 * @copyright Copyright (C) 2021-2025, Search Atlas Group - support@searchatlas.com
7 * @since 2.5.23
8 *
9 * Variables expected from page callback:
10 * @var bool $save_success
11 * @var string $current_tab
12 */
13
14 if (!defined('WPINC')) {
15 die;
16 }
17
18 $settings = Metasync_Minification_Settings::get_settings();
19 $conflicts = Metasync_Compatibility_Guard::get_active_conflicts();
20 ?>
21 <div class="metasync-code-minification-page">
22
23 <?php if ($save_success): ?>
24 <div class="metasync-notice metasync-notice-success">
25 <span class="dashicons dashicons-yes-alt"></span>
26 <?php esc_html_e('Code minification settings saved successfully.', 'metasync'); ?>
27 </div>
28 <?php endif; ?>
29
30 <?php if (!empty($conflicts)): ?>
31 <div class="metasync-notice metasync-notice-warning">
32 <span class="dashicons dashicons-warning"></span>
33 <div>
34 <strong><?php esc_html_e('Compatibility Notice:', 'metasync'); ?></strong>
35 <ul style="margin: 5px 0 0 20px;">
36 <?php if (isset($conflicts['css_minify'])): ?>
37 <li><?php printf(
38 esc_html__('CSS Minification is disabled because %s CSS minification is active.', 'metasync'),
39 '<strong>' . esc_html($conflicts['css_minify']) . '</strong>'
40 ); ?></li>
41 <?php endif; ?>
42 <?php if (isset($conflicts['js_minify'])): ?>
43 <li><?php printf(
44 esc_html__('JS Minification is disabled because %s JS minification is active.', 'metasync'),
45 '<strong>' . esc_html($conflicts['js_minify']) . '</strong>'
46 ); ?></li>
47 <?php endif; ?>
48 <?php if (isset($conflicts['js_defer'])): ?>
49 <li><?php printf(
50 esc_html__('JS Defer/Delay is disabled because %s JS defer is active.', 'metasync'),
51 '<strong>' . esc_html($conflicts['js_defer']) . '</strong>'
52 ); ?></li>
53 <?php endif; ?>
54 </ul>
55 </div>
56 </div>
57 <?php endif; ?>
58
59 <!-- Tab Navigation -->
60 <div class="metasync-tabs">
61 <ul class="metasync-tab-nav">
62 <li>
63 <a href="#" data-tab="settings" class="<?php echo $current_tab === 'settings' ? 'active' : ''; ?>">
64 <span class="dashicons dashicons-admin-generic"></span>
65 <?php esc_html_e('Settings', 'metasync'); ?>
66 </a>
67 </li>
68 <li>
69 <a href="#" data-tab="cache" class="<?php echo $current_tab === 'cache' ? 'active' : ''; ?>">
70 <span class="dashicons dashicons-database"></span>
71 <?php esc_html_e('Cache', 'metasync'); ?>
72 </a>
73 </li>
74 </ul>
75 </div>
76
77 <!-- Settings Tab -->
78 <div id="settings-content" class="metasync-tab-content <?php echo $current_tab === 'settings' ? 'active' : ''; ?>">
79 <?php require_once __DIR__ . '/settings-tab.php'; ?>
80 </div>
81
82 <!-- Cache Tab -->
83 <div id="cache-content" class="metasync-tab-content <?php echo $current_tab === 'cache' ? 'active' : ''; ?>">
84 <?php require_once __DIR__ . '/cache-tab.php'; ?>
85 </div>
86
87 </div>
88