| @@ -12,9 +12,11 @@ | ||
| 12 | 12 | $post_type_names = get_post_types(array( |
| 13 | 13 | 'public' => true, |
| 14 | 14 | // 'exclude_from_search' => false, |
| 15 | 15 | ), 'names'); |
| 16 | + | |
| 16 | 17 | unset($post_type_names['attachment']); |
| 18 | +unset($post_type_names['e-floating-buttons']); | |
| 17 | 19 | |
| 18 | 20 | $taxonomy_names = get_taxonomies([ |
| 19 | 21 | 'public' => true, |
| 20 | 22 | 'publicly_queryable' => true, |
| @@ -31,9 +33,9 @@ | ||
| 31 | 33 | <h2 class="berq-tab-title"><?php esc_html_e('Cache Management', 'searchpro'); ?></h2> |
| 32 | 34 | <div class="berq-info-box"> |
| 33 | 35 | <h3 class="berq-box-title"><?php esc_html_e('Max. Cache Lifespan', 'searchpro'); ?></h3> |
| 34 | 36 | <div class="berq-box-content"> |
| 35 | - <p><?php esc_html_e("Set the maximum cache lifespan to control how long cached pages are stored before being refreshed. Note that {$plugin_name} automatically flushes the page cache when content is updated, so keeping the cache lifespan high is recommended.", 'searchpro'); ?></p> | |
| 37 | + <p><?php printf( /* translators: %s: Plugin name */ esc_html__('Set the maximum cache lifespan to control how long cached pages are stored before being refreshed. Note that %s automatically flushes the page cache when content is updated, so keeping the cache lifespan high is recommended.', 'searchpro'), esc_html($plugin_name) ); ?></p> | |
| 36 | 38 | |
| 37 | 39 | <div class="berqwp-lifespan-options"> |
| 38 | 40 | <label> |
| 39 | 41 | <input type="radio" name="berqwp_cache_lifespan" value="<?php echo MONTH_IN_SECONDS; ?>" <?php echo $cache_lifespan == MONTH_IN_SECONDS ? 'checked' : ''; ?>> |
| @@ -77,9 +79,9 @@ | ||
| 77 | 79 | </div> --> |
| 78 | 80 | <div class="berq-info-box"> |
| 79 | 81 | <h3 class="berq-box-title"><?php esc_html_e('Page Exclusions', 'searchpro'); ?></h3> |
| 80 | 82 | <div class="berq-box-content"> |
| 81 | - <p><?php esc_html_e('Exclude pages from caching. Enter one page URL per line. You can use a wildcard by adding *. For example: https://yoursite.com/campaign/*', 'searchpro'); ?> | |
| 83 | + <p><?php esc_html_e('Exclude pages from cache. Enter one page URL per line. You can use a wildcard by adding *. For example: https://yoursite.com/campaign/*', 'searchpro'); ?> | |
| 82 | 84 | |
| 83 | 85 | <?php if (bwp_show_docs()) { ?> |
| 84 | 86 | <a href="https://berqwp.com/help-center/exclude-pages-from-being-cached/" target="_blank"><?php esc_html_e('Learn more', 'searchpro'); ?></a> |
| 85 | 87 | <?php } ?> |
| @@ -126,9 +128,9 @@ | ||
| 126 | 128 | </div> |
| 127 | 129 | <div class="berq-info-box"> |
| 128 | 130 | <h3 class="berq-box-title"><?php esc_html_e('Exclude Cookies', 'searchpro'); ?></h3> |
| 129 | 131 | <div class="berq-box-content"> |
| 130 | - <p><?php esc_html_e("Prevent cached pages from being served when the following cookies are present. Enter a partial match or keyword from the cookie name to exclude it. Add one cookie ID per line. Example: woocommerce_cart_hash"); ?> | |
| 132 | + <p><?php esc_html_e("Prevent cached pages from being served when the following cookies are present. Enter a partial match or keyword from the cookie name to exclude it. Add one cookie ID per line. Example: woocommerce_cart_hash", 'searchpro'); ?> | |
| 131 | 133 | |
| 132 | 134 | </p> |
| 133 | 135 | <textarea name="berq_exclude_cookies" cols="30" rows="10"><?php echo esc_textarea($excluded_cookies); ?></textarea> |
| 134 | 136 | </div> |
| @@ -135,9 +137,9 @@ | ||
| 135 | 137 | </div> |
| 136 | 138 | <div class="berq-info-box"> |
| 137 | 139 | <h3 class="berq-box-title"><?php esc_html_e('Ignore URL Parameters', 'searchpro'); ?></h3> |
| 138 | 140 | <div class="berq-box-content"> |
| 139 | - <p><?php esc_html_e("Ignore page URL parameters, these parameters will be disregarded and won't be cached separately. Enter one parameter per line."); ?> | |
| 141 | + <p><?php esc_html_e("Ignore page URL parameters, these parameters will be disregarded and won't be cached separately. Enter one parameter per line.", 'searchpro'); ?> | |
| 140 | 142 | |
| 141 | 143 | <?php if (bwp_show_docs()) { ?> |
| 142 | 144 | <a href="https://berqwp.com/help-center/ignore-url-parameters/" target="_blank"><?php esc_html_e('Learn more', 'searchpro'); ?></a> |
| 143 | 145 | <?php } ?> |