api-settings.php
2 years ago
dashboard.php
2 years ago
elements.php
2 years ago
features.php
2 years ago
features_bkp.php
2 years ago
go-premium.php
2 years ago
integration.php
2 years ago
sidebar.php
2 years ago
dashboard.php
253 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 3 | |
| 4 | $php_version = phpversion(); |
| 5 | $memory_limit = ini_get('memory_limit'); |
| 6 | $max_execution_time = ini_get('max_execution_time'); |
| 7 | $post_limit = ini_get('post_max_size'); |
| 8 | $uploads = wp_upload_dir(); |
| 9 | $upload_path = $uploads['basedir']; |
| 10 | $check_icon = '<span class="valid"><i class="icon-check"></i></span>'; |
| 11 | $close_icon = '<span class="invalid"><i class="icon-close"></i></span>'; |
| 12 | $environment = spel_get_environment_info(); |
| 13 | ?> |
| 14 | <div id="dashboard" class="spe-tab-box active"> |
| 15 | <div class="spe_dashboard_banner"> |
| 16 | <img src="<?php echo esc_url(SPEL_IMG . '/dashboard-img/spe-log.png') ?>" |
| 17 | alt="<?php esc_attr_e('Dashboard Banner', 'spider-elements'); ?>"> |
| 18 | </div> |
| 19 | <div class="ezd-grid ezd-grid-cols-12"> |
| 20 | <div class="ezd-lg-col-3"> |
| 21 | <div class="spe_widget_progress_item ezd-text-center"> |
| 22 | <h3><?php esc_html_e('All Widgets', 'spider-elements'); ?></h3> |
| 23 | <div class="circle_progress"> |
| 24 | <svg class="radial-progress" data-percentage="85" viewBox="0 0 80 80"> |
| 25 | <circle class="incomplete" cx="40" cy="40" r="35"></circle> |
| 26 | <circle class="complete" cx="40" cy="40" r="35"></circle> |
| 27 | </svg> |
| 28 | <text class="percentage">85%</text> |
| 29 | </div> |
| 30 | <ul class="ezd-list-unstyled progress_info_list"> |
| 31 | <li>Total : 250</li> |
| 32 | <li>Used : 155</li> |
| 33 | <li>Unused : 95</li> |
| 34 | </ul> |
| 35 | </div> |
| 36 | </div> |
| 37 | <div class="ezd-lg-col-3"> |
| 38 | <div class="spe_widget_progress_item ezd-text-center"> |
| 39 | <h3><?php esc_html_e('Core', 'spider-elements'); ?></h3> |
| 40 | <div class="circle_progress"> |
| 41 | <svg class="radial-progress" data-percentage="65" viewBox="0 0 80 80"> |
| 42 | <circle class="incomplete" cx="40" cy="40" r="35"></circle> |
| 43 | <circle class="complete" cx="40" cy="40" r="35"></circle> |
| 44 | </svg> |
| 45 | <text class="percentage">65%</text> |
| 46 | </div> |
| 47 | <ul class="ezd-list-unstyled progress_info_list"> |
| 48 | <li>Total : 250</li> |
| 49 | <li>Used : 155</li> |
| 50 | <li>Unused : 95</li> |
| 51 | </ul> |
| 52 | </div> |
| 53 | </div> |
| 54 | <div class="ezd-lg-col-3"> |
| 55 | <div class="spe_widget_progress_item ezd-text-center"> |
| 56 | <h3>3rd Party</h3> |
| 57 | <div class="circle_progress"> |
| 58 | <svg class="radial-progress" data-percentage="62" viewBox="0 0 80 80"> |
| 59 | <circle class="incomplete" cx="40" cy="40" r="35"></circle> |
| 60 | <circle class="complete" cx="40" cy="40" r="35"></circle> |
| 61 | |
| 62 | </svg> |
| 63 | <text class="percentage">62%</text> |
| 64 | </div> |
| 65 | <ul class="ezd-list-unstyled progress_info_list"> |
| 66 | <li>Total : 250</li> |
| 67 | <li>Used : 155</li> |
| 68 | <li>Unused : 95</li> |
| 69 | </ul> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="ezd-lg-col-3"> |
| 73 | <div class="spe_widget_progress_item ezd-text-center"> |
| 74 | <h3><?php esc_html_e('Active', 'spider-elements'); ?></h3> |
| 75 | <div class="circle_progress"> |
| 76 | <svg class="radial-progress" data-percentage="65" viewBox="0 0 80 80"> |
| 77 | <circle class="incomplete" cx="40" cy="40" r="35"></circle> |
| 78 | <circle class="complete" cx="40" cy="40" r="35"></circle> |
| 79 | </svg> |
| 80 | <text class="percentage">65%</text> |
| 81 | </div> |
| 82 | <ul class="ezd-list-unstyled progress_info_list"> |
| 83 | <li>Total : 250</li> |
| 84 | <li>Used : 155</li> |
| 85 | <li>Unused : 95</li> |
| 86 | </ul> |
| 87 | </div> |
| 88 | </div> |
| 89 | </div> |
| 90 | <div class="ezd-grid ezd-grid-cols-12"> |
| 91 | <div class="ezd-lg-col-6"> |
| 92 | <div class="spe_support_item"> |
| 93 | <span class="spe_icon icon-documentation"></span> |
| 94 | <h2 class="spe_dashboard_title"><?php esc_html_e('Documentation', 'spider-elements'); ?></h2> |
| 95 | <p><?php esc_html_e('Get detailed and guided instruction to level up your website with the necessary set up.', 'spider-elements'); ?></p> |
| 96 | <a href="javascript:void(0)" class="spe_dashboard_btn"> |
| 97 | <?php esc_html_e('Check Documentation', 'spider-elements'); ?> |
| 98 | </a> |
| 99 | </div> |
| 100 | </div> |
| 101 | <div class="ezd-lg-col-6"> |
| 102 | <div class="spe_support_item"> |
| 103 | <span class="spe_icon icon-help"></span> |
| 104 | <h2 class="spe_dashboard_title"><?php esc_html_e('Need Help', 'spider-elements'); ?></h2> |
| 105 | <p><?php esc_html_e('If you are stuck at anything while using our product, reach out to us immediately', 'spider-elements'); ?> |
| 106 | </p> |
| 107 | <a href="javascript:void(0)" class="spe_dashboard_btn"> |
| 108 | <?php esc_html_e('Support Ticket', 'spider-elements'); ?> |
| 109 | </a> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | |
| 114 | <div class="ezd-grid ezd-grid-cols-12"> |
| 115 | <div class="ezd-lg-col-12"> |
| 116 | <div class="spe_support_item"> |
| 117 | <h2 class="spe_dashboard_title"><?php esc_html_e('System Requirement', 'spider-elements'); ?></h2> |
| 118 | <div class="ezd-grid ezd-grid-cols-12"> |
| 119 | |
| 120 | <ul class="spe-list-unstyled spe_requirment_list ezd-lg-col-6"> |
| 121 | |
| 122 | <li> |
| 123 | <strong><?php esc_html_e('PHP Version:', 'spider-elements'); ?></strong> |
| 124 | <?php |
| 125 | if ( version_compare($php_version, '7.4', '<' ) ) { |
| 126 | echo '<span title="Minimum: 7.4 Recommended">'.$close_icon.'Currently ' . $php_version . '</span>'; |
| 127 | } else { |
| 128 | echo '<span>'.$check_icon.'Currently ' . $php_version . '</span>'; |
| 129 | } |
| 130 | ?> |
| 131 | </li> |
| 132 | <li><strong><?php esc_html_e('Memory Limit:', 'spider-elements'); ?></strong> |
| 133 | <?php |
| 134 | if ( intval($memory_limit) < 512 ) { |
| 135 | echo '<span title="Minimum 512M Recommended">'.$close_icon.'Currently ' . $memory_limit . '</span>'; |
| 136 | } else { |
| 137 | echo '<span>'.$check_icon.'Currently ' . $memory_limit . '</span>'; |
| 138 | } |
| 139 | ?> |
| 140 | </li> |
| 141 | <li><strong><?php esc_html_e('Uploads Folder Writable:', 'spider-elements'); ?></strong> |
| 142 | <?php |
| 143 | if (!is_writable($upload_path)) { |
| 144 | echo $close_icon; |
| 145 | } else { |
| 146 | echo $check_icon; |
| 147 | } |
| 148 | ?> |
| 149 | </li> |
| 150 | <li><strong><?php esc_html_e('GZip Enabled:', 'spider-elements'); ?></strong> |
| 151 | <?php |
| 152 | if ($environment[ 'gzip_enabled' ]) { |
| 153 | echo $check_icon; |
| 154 | } else { |
| 155 | echo $close_icon; |
| 156 | } |
| 157 | ?> |
| 158 | </li> |
| 159 | </ul> |
| 160 | |
| 161 | <ul class="spe-list-unstyled spe_requirment_list ezd-lg-col-6"> |
| 162 | <li> |
| 163 | <strong><?php esc_html_e('Max Execution Time:', 'spider-elements'); ?></strong> |
| 164 | <?php |
| 165 | if ( intval($max_execution_time) < 90 ) { |
| 166 | echo '<span title="Minimum 90 Recommended">'.$close_icon.'Currently ' . $max_execution_time . '</span>'; |
| 167 | } else { |
| 168 | echo '<span>'.$check_icon.'Currently ' . $max_execution_time . '</span>'; |
| 169 | } |
| 170 | ?> |
| 171 | </li> |
| 172 | <li><strong><?php esc_html_e('Max Post Limit:', 'spider-elements'); ?></strong> |
| 173 | <?php |
| 174 | if ( intval($post_limit) < 32 ) { |
| 175 | echo '<span title="Minimum 32M Recommended">'.$close_icon.'Currently ' . $post_limit . '</span>'; |
| 176 | } else { |
| 177 | echo '<span>'.$check_icon .'Currently ' . $post_limit . '</span>'; |
| 178 | } |
| 179 | ?> |
| 180 | </li> |
| 181 | <li> |
| 182 | <strong><?php esc_html_e('Multisite:', 'spider-elements'); ?></strong> |
| 183 | <?php |
| 184 | if ( $environment['wp_multisite'] ) { |
| 185 | echo '<span>'.$check_icon.'Multisite</span>'; |
| 186 | } else { |
| 187 | echo '<span>'.$close_icon.'No Multisite</span>'; |
| 188 | } |
| 189 | ?> |
| 190 | </li> |
| 191 | <li> |
| 192 | <strong><?php esc_html_e('Debug Mode:', 'spider-elements'); ?></strong> |
| 193 | <?php |
| 194 | if ($environment[ 'wp_debug_mode' ]) { |
| 195 | echo '<span>'.$check_icon.'Currently Turned On</span>'; |
| 196 | } else { |
| 197 | echo '<span>'.$close_icon.'Currently Turned Off</span>'; |
| 198 | } |
| 199 | ?> |
| 200 | </li> |
| 201 | </ul> |
| 202 | </div> |
| 203 | |
| 204 | <div class="note"> |
| 205 | <p><?php _e('Note: If you have multiple addons like <strong>Spider Elements</strong> so you need some more requirement some cases |
| 206 | so make sure you added more memory for others addon too.', 'spider-elements'); ?></p> |
| 207 | </div> |
| 208 | |
| 209 | </div> |
| 210 | </div> |
| 211 | </div> |
| 212 | |
| 213 | |
| 214 | <div class="ezd-grid ezd-grid-cols-12"> |
| 215 | <div class="ezd-lg-col-6"> |
| 216 | <div class="spe_support_item"> |
| 217 | <span class="spe_icon icon-features"></span> |
| 218 | <h2 class="spe_dashboard_title"><?php esc_html_e('Missing Features', 'spider-elements'); ?></h2> |
| 219 | <p><?php _e('Send us a message if you believe the plugin is<br> lacking any features.', 'spider-elements'); ?> |
| 220 | </p> |
| 221 | <a href="javascript:void(0)" class="spe_dashboard_btn"> |
| 222 | <?php esc_html_e('Request Features', 'spider-elements'); ?> |
| 223 | </a> |
| 224 | </div> |
| 225 | </div> |
| 226 | <div class="ezd-lg-col-6"> |
| 227 | <div class="spe_support_item dashboard_img"> |
| 228 | <img src="<?php echo esc_url(SPEL_IMG . '/dashboard-img/table_work.png') ?>" alt="work"> |
| 229 | </div> |
| 230 | </div> |
| 231 | <div class="ezd-lg-col-6"> |
| 232 | <div class="spe_support_item"> |
| 233 | <span class="spe_icon icon-love"></span> |
| 234 | <h2 class="spe_dashboard_title"><?php esc_html_e('Show Your Love', 'spider-elements'); ?></h2> |
| 235 | <p><?php _e('Leave your feedback to help us out if you liked<br> our product and customer service.', 'spider-elements'); ?> |
| 236 | </p> |
| 237 | <a href="javascript:void(0)" class="spe_dashboard_btn"> |
| 238 | <?php esc_html_e('Check Documentation', 'spider-elements'); ?> |
| 239 | </a> |
| 240 | </div> |
| 241 | </div> |
| 242 | <div class="ezd-lg-col-6"> |
| 243 | <div class="spe_support_item"> |
| 244 | <span class="spe_icon icon-debug"></span> |
| 245 | <h2 class="spe_dashboard_title"><?php esc_html_e('Facing an issues?', 'spider-elements'); ?></h2> |
| 246 | <p><?php _e('You think there is a bug in the product? Inform<br> us please!', 'spider-elements'); ?></p> |
| 247 | <a href="javascript:void(0)" class="spe_dashboard_btn"> |
| 248 | <?php esc_html_e('Support Ticket', 'spider-elements'); ?> |
| 249 | </a> |
| 250 | </div> |
| 251 | </div> |
| 252 | </div> |
| 253 | </div> |