| @@ -36,16 +36,16 @@ | ||
| 36 | 36 | ?> |
| 37 | 37 | <div id="dashboard" <?php bwp_is_tab('dashboard'); ?>> |
| 38 | 38 | <h2 class="berq-tab-title">Dashboard</h2> |
| 39 | 39 | |
| 40 | - <?php if (bwp_show_docs()) { ?> | |
| 41 | - <!--<div class="berq-info-box guide"> | |
| 40 | + <?php if (bwp_show_docs() && $berqwp_can_use_cloud) { ?> | |
| 41 | + <div class="berq-info-box guide"> | |
| 42 | 42 | <div class="berq-box-content"> |
| 43 | 43 | <div class="icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-marked-icon lucide-book-marked"><path d="M10 2v8l3-3 3 3V2"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/></svg></div> |
| 44 | 44 | <p><?php esc_html_e('Guide:', 'searchpro'); ?> <a href="https://berqwp.com/help-center/get-started-with-berqwp/" target="_blank"><?php esc_html_e('Get Started With BerqWP', 'searchpro'); ?></a></p> |
| 45 | 45 | </div> |
| 46 | 46 | |
| 47 | - </div>--> | |
| 47 | + </div> | |
| 48 | 48 | <?php } ?> |
| 49 | 49 | |
| 50 | 50 | <?php |
| 51 | 51 | if ($configs['optimization_method'] == 'cloud' && !bwp_is_home_cached()) { |
| @@ -103,8 +103,9 @@ | ||
| 103 | 103 | </div> |
| 104 | 104 | </div> |
| 105 | 105 | |
| 106 | 106 | <div class="berq-triple-boxes"> |
| 107 | + <?php if ($berqwp_can_use_cloud) { ?> | |
| 107 | 108 | <div class="berq-info-box" style="position: relative;"> |
| 108 | 109 | <a class="berq-stat-refresh" href="#" style="display:none;"><svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#29ac20"><path d="M229.08-205.08v-52H310l-13.08-13.84q-42.3-39.62-68.61-92.62-26.31-53-26.31-115.69 0-93.69 55.23-165.96 55.23-72.27 140.77-98.96v54.23q-63.39 25.3-103.69 81.73Q254-551.77 254-479.23q0 49.92 20.27 92.65 20.27 42.73 54.81 73.27l15.38 15.39v-74.54h52v167.38H229.08ZM562-215.85v-54.23q63.39-25.3 103.69-81.73Q706-408.23 706-480.77q0-49.92-20.27-92.65-20.27-42.73-54.81-73.27l-15.38-15.39v74.54h-52v-167.38h167.38v52H650l13.08 13.84q43.46 38.47 69.19 92.04Q758-543.46 758-480.77q0 93.69-55.23 165.96-55.23 72.27-140.77 98.96Z"></path></svg></a> |
| 109 | 110 | <h3 class="berq-box-title"><?php esc_html_e('Pages in Queue', 'searchpro'); ?></h3> |
| 110 | 111 | <div class="berq-box-content"> |
| @@ -121,8 +122,9 @@ | ||
| 121 | 122 | ?> |
| 122 | 123 | </div> |
| 123 | 124 | </div> |
| 124 | 125 | </div> |
| 126 | + <?php } ?> | |
| 125 | 127 | <div class="berq-info-box" style="position: relative;"> |
| 126 | 128 | <a class="berq-stat-refresh" href="#" style="display:none;"><svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#29ac20"><path d="M229.08-205.08v-52H310l-13.08-13.84q-42.3-39.62-68.61-92.62-26.31-53-26.31-115.69 0-93.69 55.23-165.96 55.23-72.27 140.77-98.96v54.23q-63.39 25.3-103.69 81.73Q254-551.77 254-479.23q0 49.92 20.27 92.65 20.27 42.73 54.81 73.27l15.38 15.39v-74.54h52v167.38H229.08ZM562-215.85v-54.23q63.39-25.3 103.69-81.73Q706-408.23 706-480.77q0-49.92-20.27-92.65-20.27-42.73-54.81-73.27l-15.38-15.39v74.54h-52v-167.38h167.38v52H650l13.08 13.84q43.46 38.47 69.19 92.04Q758-543.46 758-480.77q0 93.69-55.23 165.96-55.23 72.27-140.77 98.96Z"></path></svg></a> |
| 127 | 129 | <h3 class="berq-box-title"><?php esc_html_e('Cached Pages', 'searchpro'); ?></h3> |
| 128 | 130 | <div class="berq-box-content"> |
| @@ -189,9 +191,9 @@ | ||
| 189 | 191 | <div class="berq-info-box"> |
| 190 | 192 | <h3 class="berq-box-title"><?php esc_html_e('Sandbox', 'searchpro'); ?></h3> |
| 191 | 193 | <div class="berq-box-content berq-setting-toggle"> |
| 192 | 194 | <div class="berq-option-content"> |
| 193 | - <p><?php esc_html_e("The Sandbox feature allows you to test $plugin_name's optimizations without impacting real visitors. Note that pages will load slower when sandbox mode is enabled.", 'searchpro'); ?> | |
| 195 | + <p><?php printf( /* translators: %s: Plugin name */ esc_html__("The Sandbox feature allows you to test %s's optimizations without impacting real visitors. Note that pages will load slower when sandbox mode is enabled.", 'searchpro'), esc_html($plugin_name) ); ?> | |
| 194 | 196 | |
| 195 | 197 | <?php if (bwp_show_docs()) { ?> |
| 196 | 198 | <a href="https://berqwp.com/help-center/sandbox-mode-and-how-to-use-it/" target="_blank"><?php esc_html_e("Learn more", 'searchpro'); ?></a> |
| 197 | 199 | <?php } ?> |