elements.php
1 year ago
features.php
1 year ago
integration.php
1 year ago
popup-pro.php
1 year ago
sidebar.php
1 year ago
welcome.php
1 year ago
welcome.php
187 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; |
| 4 | } // Exit if accessed directly |
| 5 | |
| 6 | $php_version = phpversion(); |
| 7 | $memory_limit = ini_get( 'memory_limit' ); |
| 8 | $max_execution_time = ini_get( 'max_execution_time' ); |
| 9 | $post_limit = ini_get( 'post_max_size' ); |
| 10 | $uploads = wp_upload_dir(); |
| 11 | $upload_path = $uploads['basedir']; |
| 12 | $check_icon = '<span class="valid"><i class="icon-check"></i></span>'; |
| 13 | $close_icon = '<span class="invalid"><i class="icon-close"></i></span>'; |
| 14 | $environment = spel_get_environment_info(); |
| 15 | ?> |
| 16 | <div id="welcome" class="tab-box active"> |
| 17 | |
| 18 | <div class="dashboard_banner text-center"> |
| 19 | <img src="<?php echo esc_url( SPEL_IMG . '/dashboard/logo.png' ) ?>" alt="<?php esc_attr_e( 'Dashboard Banner', 'spider-elements' ); ?>"> |
| 20 | </div> |
| 21 | |
| 22 | <div class="ezd-grid ezd-grid-cols-12"> |
| 23 | <div class="ezd-lg-col-12"> |
| 24 | <div class="support_item"> |
| 25 | <h2 class="dashboard_title"><?php esc_html_e( 'System Requirement', 'spider-elements' ); ?></h2> |
| 26 | <div class="ezd-grid ezd-grid-cols-12"> |
| 27 | |
| 28 | <ul class="list-unstyled requirement_list ezd-lg-col-6"> |
| 29 | <li> |
| 30 | <strong><?php esc_html_e( 'PHP Version:', 'spider-elements' ); ?></strong> |
| 31 | <?php |
| 32 | if ( version_compare( $php_version, '7.4', '<' ) ) { |
| 33 | echo '<span title="' . esc_attr__( 'Minimum: 7.4 Recommended', 'spider-elements' ) . '">' |
| 34 | . $close_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $php_version ) . '</span>'; |
| 35 | } else { |
| 36 | echo '<span>' . $check_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $php_version ) . '</span>'; |
| 37 | } |
| 38 | ?> |
| 39 | </li> |
| 40 | <li> |
| 41 | <strong><?php esc_html_e( 'Memory Limit:', 'spider-elements' ); ?></strong> |
| 42 | <?php |
| 43 | if ( intval( $memory_limit ) < 512 ) { |
| 44 | echo '<span title="' . esc_attr__( 'Minimum 512M Recommended', 'spider-elements' ) . '">' |
| 45 | . $close_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $memory_limit ) . '</span>'; |
| 46 | } else { |
| 47 | echo '<span>' . $check_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $memory_limit ) . '</span>'; |
| 48 | } |
| 49 | ?> |
| 50 | </li> |
| 51 | <li> |
| 52 | <strong><?php esc_html_e( 'Uploads Folder Writable:', 'spider-elements' ); ?></strong> |
| 53 | <?php |
| 54 | if ( ! is_writable( $upload_path ) ) { |
| 55 | echo $close_icon; |
| 56 | } else { |
| 57 | echo $check_icon; |
| 58 | } |
| 59 | ?> |
| 60 | </li> |
| 61 | <li> |
| 62 | <strong><?php esc_html_e( 'GZip Enabled:', 'spider-elements' ); ?></strong> |
| 63 | <?php |
| 64 | if ( $environment['gzip_enabled'] ) { |
| 65 | echo $check_icon; |
| 66 | } else { |
| 67 | echo $close_icon; |
| 68 | } |
| 69 | ?> |
| 70 | </li> |
| 71 | </ul> |
| 72 | |
| 73 | <ul class="list-unstyled requirement_list ezd-lg-col-6"> |
| 74 | <li> |
| 75 | <strong><?php esc_html_e( 'Max Execution Time:', 'spider-elements' ); ?></strong> |
| 76 | <?php |
| 77 | if ( intval( $max_execution_time ) < 90 ) { |
| 78 | echo '<span title="' . esc_attr__( 'Minimum 90 Recommended', 'spider-elements' ) . '">' |
| 79 | . $close_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $max_execution_time ) . '</span>'; |
| 80 | } else { |
| 81 | echo '<span>' . $check_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $max_execution_time ) . '</span>'; |
| 82 | } |
| 83 | ?> |
| 84 | </li> |
| 85 | <li> |
| 86 | <strong><?php esc_html_e( 'Max Post Limit:', 'spider-elements' ); ?></strong> |
| 87 | <?php |
| 88 | if ( intval( $post_limit ) < 32 ) { |
| 89 | echo '<span title="' . esc_attr__( 'Minimum 32M Recommended', 'spider-elements' ) . '">' |
| 90 | . $close_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $post_limit ) . '</span>'; |
| 91 | } else { |
| 92 | echo '<span>' . $check_icon . esc_html__( 'Currently:', 'spider-elements' ) . ' ' . esc_html( $post_limit ) . '</span>'; |
| 93 | } |
| 94 | ?> |
| 95 | </li> |
| 96 | <li> |
| 97 | <strong><?php esc_html_e( 'Multisite:', 'spider-elements' ); ?></strong> |
| 98 | <?php |
| 99 | if ( $environment['wp_multisite'] ) { |
| 100 | echo '<span>' . $check_icon . esc_html__( 'Multisite', 'spider-elements' ) . '</span>'; |
| 101 | } else { |
| 102 | echo '<span>' . $close_icon . esc_html__( 'No Multisite', 'spider-elements' ) . '</span>'; |
| 103 | } |
| 104 | ?> |
| 105 | </li> |
| 106 | <li> |
| 107 | <strong><?php esc_html_e( 'Debug Mode:', 'spider-elements' ); ?></strong> |
| 108 | <?php |
| 109 | if ( $environment['wp_debug_mode'] ) { |
| 110 | echo '<span>' . $check_icon . esc_html__( 'Currently Turned On', 'spider-elements' ) . '</span>'; |
| 111 | } else { |
| 112 | echo '<span>' . $close_icon . esc_html__( 'Currently Turned Off', 'spider-elements' ) . '</span>'; |
| 113 | } |
| 114 | ?> |
| 115 | </li> |
| 116 | </ul> |
| 117 | |
| 118 | </div> |
| 119 | |
| 120 | <div class="note"> |
| 121 | <p> |
| 122 | <?php |
| 123 | printf( |
| 124 | /* translators: %1$s and %2$s are opening and closing strong HTML tags. */ |
| 125 | esc_html__( |
| 126 | 'Note: If you have multiple addons like %1$s Spider Elements %2$s, you may need more resources. Ensure you allocate more memory for other addons as well.', 'spider-elements' |
| 127 | ), |
| 128 | '<strong>', |
| 129 | '</strong>' |
| 130 | ); |
| 131 | ?> |
| 132 | </p> |
| 133 | </div> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | |
| 138 | <div class="ezd-grid ezd-grid-cols-12"> |
| 139 | <div class="ezd-lg-col-6"> |
| 140 | <div class="support_item"> |
| 141 | <span class="icon icon-documentation"></span> |
| 142 | <h2 class="dashboard_title"><?php esc_html_e( 'Documentation', 'spider-elements' ); ?></h2> |
| 143 | <p><?php esc_html_e( 'Get detailed and guided instruction to level up your website with the necessary set up.', 'spider-elements' ); ?></p> |
| 144 | <a href="https://helpdesk.spider-themes.net/docs/spider-elements" class="dashboard_btn" target="_blank"> |
| 145 | <?php esc_html_e( 'Read Documentation', 'spider-elements' ); ?> |
| 146 | </a> |
| 147 | </div> |
| 148 | </div> |
| 149 | <div class="ezd-lg-col-6"> |
| 150 | <div class="support_item"> |
| 151 | <span class="icon icon-help"></span> |
| 152 | <h2 class="dashboard_title"><?php esc_html_e( 'Need Help', 'spider-elements' ); ?></h2> |
| 153 | <p><?php esc_html_e( 'If you are stuck at anything while using our product, reach out to us immediately', 'spider-elements' ); ?> |
| 154 | </p> |
| 155 | <a href="https://wordpress.org/support/plugin/spider-elements/" class="dashboard_btn" target="_blank"> |
| 156 | <?php esc_html_e( 'Support Ticket', 'spider-elements' ); ?> |
| 157 | </a> |
| 158 | </div> |
| 159 | </div> |
| 160 | </div> |
| 161 | |
| 162 | |
| 163 | <div class="ezd-grid ezd-grid-cols-12"> |
| 164 | |
| 165 | <div class="ezd-lg-col-6"> |
| 166 | <div class="support_item"> |
| 167 | <span class="icon icon-love"></span> |
| 168 | <h2 class="dashboard_title"><?php esc_html_e( 'Show Your Love', 'spider-elements' ); ?></h2> |
| 169 | <p><?php echo esc_html__( 'Leave your feedback to help us out if you liked our product and customer service.', 'spider-elements' ); ?></p> |
| 170 | <a href="https://wordpress.org/support/plugin/spider-elements/reviews/#new-post" class="dashboard_btn" target="_blank"> |
| 171 | <?php esc_html_e( 'Leave a Review', 'spider-elements' ); ?> |
| 172 | </a> |
| 173 | </div> |
| 174 | </div> |
| 175 | <div class="ezd-lg-col-6"> |
| 176 | <div class="support_item"> |
| 177 | <span class="icon icon-debug"></span> |
| 178 | <h2 class="dashboard_title"> <?php esc_html_e( 'Facing an issues?', 'spider-elements' ); ?> </h2> |
| 179 | <p> <?php echo esc_html__( "Think you've spotted a bug? Please let us know! Your feedback helps us make improvements.", "spider-elements" ); ?> </p> |
| 180 | <a href="https://github.com/spider-themes/spider-elements/issues/new" class="dashboard_btn" target="_blank"> |
| 181 | <?php esc_html_e( 'Get Help Now', 'spider-elements' ); ?> |
| 182 | </a> |
| 183 | </div> |
| 184 | </div> |
| 185 | </div> |
| 186 | |
| 187 | </div> |