Changeset 2695272
- Timestamp:
- 03/17/2022 08:54:51 AM (4 years ago)
- Location:
- saber-feedback-button
- Files:
-
- 4 edited
- 1 copied
-
tags/2.0.4 (copied) (copied from saber-feedback-button/trunk)
-
tags/2.0.4/README.txt (modified) (2 diffs)
-
tags/2.0.4/saber-feedback-button.php (modified) (20 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/saber-feedback-button.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
saber-feedback-button/tags/2.0.4/README.txt
r2694812 r2695272 3 3 Tags: feedback button, feedback form, feedback tool, feedback widget, saber feedback, bugmuncher 4 4 Tested up to: 5.9 5 Stable tag: 2.0. 35 Stable tag: 2.0.4 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 == Changelog == 67 67 68 = 2.0.4 = 69 * Make all strings ready for translation. 70 68 71 = 2.0.3 = 69 72 * Fix issue when cache is enabled. -
saber-feedback-button/tags/2.0.4/saber-feedback-button.php
r2694815 r2695272 4 4 Plugin URI: https://saberfeedback.com 5 5 Description: Include the Saber Feedback widget in your Wordpress site. 6 Version: 2.0. 36 Version: 2.0.4 7 7 Author: Saber Feedback 8 8 License: GPL2 … … 115 115 */ 116 116 public function add_page() { 117 add_options_page( 'Saber Feedback Configuration', 'Saber Feedback', 'manage_options', 'saber-feedback', array(&$this, 'display_page'));117 add_options_page(__('Saber Feedback Configuration', 'saber-feedback-button'), __('Saber Feedback', 'saber-feedback-button'), 'manage_options', 'saber-feedback', array(&$this, 'display_page')); 118 118 } 119 119 … … 124 124 if(isset($this->options['language'])): ?> 125 125 <div id="legacy_options_warning" class="error notice"> 126 <p><strong> Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.</strong></p>126 <p><strong><?php _e('Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.', 'saber-feedback-button'); ?></strong></p> 127 127 </div> 128 128 <?php endif ?> 129 129 130 130 <div class="wrap"> 131 <h2> Saber Feedback</h2>132 <p> Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don't yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.</p>131 <h2><?php _e('Saber Feedback', 'saber-feedback-button'); ?></h2> 132 <p><?php _e('Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don\'t yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.', 'saber-feedback-button'); ?></p> 133 133 134 134 <form method="post" action="options.php"> … … 136 136 settings_fields('saberfeedback_settings'); 137 137 do_settings_sections('saberfeedback_settings'); 138 submit_button( 'Save');138 submit_button(__('Save', 'saber-feedback-button')); 139 139 ?> 140 140 </form> 141 <h3> Form and Button Configuration</h3>142 <p> You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.</p>141 <h3><?php _e('Form and Button Configuration', 'saber-feedback-button'); ?></h3> 142 <p><?php _e('You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.', 'saber-feedback-button'); ?></p> 143 143 <p> 144 <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"> Go to Saber Feedback Control Panel</a>144 <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"><?php _e('Go to Saber Feedback Control Panel', 'saber-feedback-button'); ?></a> 145 145 </p> 146 146 </div> <!-- /wrap --> … … 153 153 public function register_page_options() { 154 154 // Add Section for option fields 155 add_settings_section('saberfeedback_api_section', 'Saber Feedback Connection', array(&$this, 'display_api_section'), 'saberfeedback_settings');155 add_settings_section('saberfeedback_api_section', __('Saber Feedback Connection', 'saber-feedback-button'), array(&$this, 'display_api_section'), 'saberfeedback_settings'); 156 156 157 157 // Add API key Field 158 158 add_settings_field( 159 159 'saberfeedback_api_key_field', // id 160 'Public API Key',// name160 __('Public API Key', 'saber-feedback-button'), // name 161 161 array(&$this, 'render_api_key_field'), // display method ($this->render_api_key_field) 162 162 'saberfeedback_settings', // page … … 167 167 add_settings_field( 168 168 'saberfeedback_visibility_field', // id 169 'Load Saber Feedback for',// name169 __('Load Saber Feedback for', 'saber-feedback-button'), // name 170 170 array(&$this, 'render_visibility_field'), // display method ($this->render_visibility_field) 171 171 'saberfeedback_settings', // page … … 184 184 if ( $pagenow == 'options-general.php' ) { 185 185 echo '<div class="notice notice-warning is-dismissible"> 186 <p> This notice appears on the settings page.</p>186 <p>' . __('This notice appears on the settings page.', 'saber-feedback-button') . '</p> 187 187 </div>'; 188 188 } … … 198 198 $api_key = strip_tags( stripslashes( trim( $fields['api_key'] ))); 199 199 if($api_key == ''){ 200 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'Public API Key is required to use Saber Feedback', 'error');200 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('Public API Key is required to use Saber Feedback', 'saber-feedback-button'), 'error'); 201 201 } 202 202 elseif(preg_match('/^(?=[a-f0-9]*$)(?:.{20}|.{40})$/i', $api_key ) == 0){ 203 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'API Key is not in the correct format. Please check and try again', 'error');203 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('API Key is not in the correct format. Please check and try again', 'saber-feedback-button'), 'error'); 204 204 } 205 205 … … 215 215 if( function_exists('w3tc_flush_all') ) { 216 216 w3tc_flush_all(); 217 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your W3 Total Cache has been automatically cleared.', 'success');217 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your W3 Total Cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 218 218 $cacheCleared = true; 219 219 } … … 223 223 if( function_exists('WP_Optimize') ) { 224 224 WP_Optimize()->get_page_cache()->purge(); 225 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Optimize cache has been automatically cleared.', 'success');225 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Optimize cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 226 226 $cacheCleared = true; 227 227 } … … 231 231 if( function_exists('rocket_clean_domain') ) { 232 232 rocket_clean_domain(); 233 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Rocket cache has been automatically cleared.', 'success');233 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Rocket cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 234 234 $cacheCleared = true; 235 235 } … … 239 239 if( function_exists('wp_cache_clear_cache')) { 240 240 wp_cache_clear_cache(); 241 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Super Cache has been automatically cleared.', 'success');241 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Super Cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 242 242 $cacheCleared = true; 243 243 } … … 247 247 if( function_exists('sg_cachepress_purge_cache')) { 248 248 sg_cachepress_purge_cache(); 249 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'success');249 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 250 250 $cacheCleared = true; 251 251 } … … 255 255 if (class_exists('autoptimizeCache')) { 256 256 autoptimizeCache::clearall(); 257 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Autoptimize cache has been automatically cleared.', 'success');257 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Autoptimize cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 258 258 $cacheCleared = true; 259 259 } … … 263 263 if (has_action('cache_enabler_clear_complete_cache')) { 264 264 do_action( 'cache_enabler_clear_complete_cache' ); 265 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Cache Enabler cache has been automatically cleared.', 'success');265 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Cache Enabler cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 266 266 $cacheCleared = true; 267 267 } … … 271 271 if (has_action('wphb_clear_page_cache')) { 272 272 do_action( 'wphb_clear_page_cache' ); 273 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Hummingbird cache has been automatically cleared.', 'success');273 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Hummingbird cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 274 274 $cacheCleared = true; 275 275 } … … 277 277 // WP Fastest Cache cannot be cleared automatically, and it's not detected by the condition below, so we need to chec this 278 278 if (class_exists('WpFastestCache')) { 279 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'warning');279 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'saber-feedback-button'), 'warning'); 280 280 $cacheCleared = true; 281 281 } … … 283 283 // For all other plugins, display a warning message 284 284 if ( ! $cacheCleared && defined( 'WP_CACHE' ) && WP_CACHE) { 285 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WordPress cache after updating these settings.', 'warning');285 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WordPress cache after updating these settings.', 'saber-feedback-button'), 'warning'); 286 286 } 287 287 … … 293 293 */ 294 294 public function display_api_section() { 295 echo '<p> Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.</p>';295 echo '<p>' . __('Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.', 'saber-feedback-button') . '</p>'; 296 296 } 297 297 … … 307 307 $html = '<select name="saberfeedback_settings_options[visibility]">'; 308 308 309 $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'> All Visitors</option>';310 $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'> Logged in users only</option>';311 $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'> Guests only</option>';309 $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>' . __('All Visitors', 'saber-feedback-button') . '</option>'; 310 $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>' . __('Logged in users only', 'saber-feedback-button') . '</option>'; 311 $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>' . __('Guests only', 'saber-feedback-button') . '</option>'; 312 312 313 313 $html .= '</select>'; -
saber-feedback-button/trunk/README.txt
r2694812 r2695272 3 3 Tags: feedback button, feedback form, feedback tool, feedback widget, saber feedback, bugmuncher 4 4 Tested up to: 5.9 5 Stable tag: 2.0. 35 Stable tag: 2.0.4 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 == Changelog == 67 67 68 = 2.0.4 = 69 * Make all strings ready for translation. 70 68 71 = 2.0.3 = 69 72 * Fix issue when cache is enabled. -
saber-feedback-button/trunk/saber-feedback-button.php
r2694815 r2695272 4 4 Plugin URI: https://saberfeedback.com 5 5 Description: Include the Saber Feedback widget in your Wordpress site. 6 Version: 2.0. 36 Version: 2.0.4 7 7 Author: Saber Feedback 8 8 License: GPL2 … … 115 115 */ 116 116 public function add_page() { 117 add_options_page( 'Saber Feedback Configuration', 'Saber Feedback', 'manage_options', 'saber-feedback', array(&$this, 'display_page'));117 add_options_page(__('Saber Feedback Configuration', 'saber-feedback-button'), __('Saber Feedback', 'saber-feedback-button'), 'manage_options', 'saber-feedback', array(&$this, 'display_page')); 118 118 } 119 119 … … 124 124 if(isset($this->options['language'])): ?> 125 125 <div id="legacy_options_warning" class="error notice"> 126 <p><strong> Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.</strong></p>126 <p><strong><?php _e('Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.', 'saber-feedback-button'); ?></strong></p> 127 127 </div> 128 128 <?php endif ?> 129 129 130 130 <div class="wrap"> 131 <h2> Saber Feedback</h2>132 <p> Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don't yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.</p>131 <h2><?php _e('Saber Feedback', 'saber-feedback-button'); ?></h2> 132 <p><?php _e('Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don\'t yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.', 'saber-feedback-button'); ?></p> 133 133 134 134 <form method="post" action="options.php"> … … 136 136 settings_fields('saberfeedback_settings'); 137 137 do_settings_sections('saberfeedback_settings'); 138 submit_button( 'Save');138 submit_button(__('Save', 'saber-feedback-button')); 139 139 ?> 140 140 </form> 141 <h3> Form and Button Configuration</h3>142 <p> You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.</p>141 <h3><?php _e('Form and Button Configuration', 'saber-feedback-button'); ?></h3> 142 <p><?php _e('You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.', 'saber-feedback-button'); ?></p> 143 143 <p> 144 <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"> Go to Saber Feedback Control Panel</a>144 <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"><?php _e('Go to Saber Feedback Control Panel', 'saber-feedback-button'); ?></a> 145 145 </p> 146 146 </div> <!-- /wrap --> … … 153 153 public function register_page_options() { 154 154 // Add Section for option fields 155 add_settings_section('saberfeedback_api_section', 'Saber Feedback Connection', array(&$this, 'display_api_section'), 'saberfeedback_settings');155 add_settings_section('saberfeedback_api_section', __('Saber Feedback Connection', 'saber-feedback-button'), array(&$this, 'display_api_section'), 'saberfeedback_settings'); 156 156 157 157 // Add API key Field 158 158 add_settings_field( 159 159 'saberfeedback_api_key_field', // id 160 'Public API Key',// name160 __('Public API Key', 'saber-feedback-button'), // name 161 161 array(&$this, 'render_api_key_field'), // display method ($this->render_api_key_field) 162 162 'saberfeedback_settings', // page … … 167 167 add_settings_field( 168 168 'saberfeedback_visibility_field', // id 169 'Load Saber Feedback for',// name169 __('Load Saber Feedback for', 'saber-feedback-button'), // name 170 170 array(&$this, 'render_visibility_field'), // display method ($this->render_visibility_field) 171 171 'saberfeedback_settings', // page … … 184 184 if ( $pagenow == 'options-general.php' ) { 185 185 echo '<div class="notice notice-warning is-dismissible"> 186 <p> This notice appears on the settings page.</p>186 <p>' . __('This notice appears on the settings page.', 'saber-feedback-button') . '</p> 187 187 </div>'; 188 188 } … … 198 198 $api_key = strip_tags( stripslashes( trim( $fields['api_key'] ))); 199 199 if($api_key == ''){ 200 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'Public API Key is required to use Saber Feedback', 'error');200 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('Public API Key is required to use Saber Feedback', 'saber-feedback-button'), 'error'); 201 201 } 202 202 elseif(preg_match('/^(?=[a-f0-9]*$)(?:.{20}|.{40})$/i', $api_key ) == 0){ 203 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'API Key is not in the correct format. Please check and try again', 'error');203 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('API Key is not in the correct format. Please check and try again', 'saber-feedback-button'), 'error'); 204 204 } 205 205 … … 215 215 if( function_exists('w3tc_flush_all') ) { 216 216 w3tc_flush_all(); 217 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your W3 Total Cache has been automatically cleared.', 'success');217 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your W3 Total Cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 218 218 $cacheCleared = true; 219 219 } … … 223 223 if( function_exists('WP_Optimize') ) { 224 224 WP_Optimize()->get_page_cache()->purge(); 225 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Optimize cache has been automatically cleared.', 'success');225 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Optimize cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 226 226 $cacheCleared = true; 227 227 } … … 231 231 if( function_exists('rocket_clean_domain') ) { 232 232 rocket_clean_domain(); 233 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Rocket cache has been automatically cleared.', 'success');233 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Rocket cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 234 234 $cacheCleared = true; 235 235 } … … 239 239 if( function_exists('wp_cache_clear_cache')) { 240 240 wp_cache_clear_cache(); 241 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Super Cache has been automatically cleared.', 'success');241 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Super Cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 242 242 $cacheCleared = true; 243 243 } … … 247 247 if( function_exists('sg_cachepress_purge_cache')) { 248 248 sg_cachepress_purge_cache(); 249 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'success');249 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 250 250 $cacheCleared = true; 251 251 } … … 255 255 if (class_exists('autoptimizeCache')) { 256 256 autoptimizeCache::clearall(); 257 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Autoptimize cache has been automatically cleared.', 'success');257 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Autoptimize cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 258 258 $cacheCleared = true; 259 259 } … … 263 263 if (has_action('cache_enabler_clear_complete_cache')) { 264 264 do_action( 'cache_enabler_clear_complete_cache' ); 265 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Cache Enabler cache has been automatically cleared.', 'success');265 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Cache Enabler cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 266 266 $cacheCleared = true; 267 267 } … … 271 271 if (has_action('wphb_clear_page_cache')) { 272 272 do_action( 'wphb_clear_page_cache' ); 273 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Hummingbird cache has been automatically cleared.', 'success');273 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Hummingbird cache has been automatically cleared.', 'saber-feedback-button'), 'success'); 274 274 $cacheCleared = true; 275 275 } … … 277 277 // WP Fastest Cache cannot be cleared automatically, and it's not detected by the condition below, so we need to chec this 278 278 if (class_exists('WpFastestCache')) { 279 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'warning');279 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'saber-feedback-button'), 'warning'); 280 280 $cacheCleared = true; 281 281 } … … 283 283 // For all other plugins, display a warning message 284 284 if ( ! $cacheCleared && defined( 'WP_CACHE' ) && WP_CACHE) { 285 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WordPress cache after updating these settings.', 'warning');285 add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WordPress cache after updating these settings.', 'saber-feedback-button'), 'warning'); 286 286 } 287 287 … … 293 293 */ 294 294 public function display_api_section() { 295 echo '<p> Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.</p>';295 echo '<p>' . __('Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.', 'saber-feedback-button') . '</p>'; 296 296 } 297 297 … … 307 307 $html = '<select name="saberfeedback_settings_options[visibility]">'; 308 308 309 $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'> All Visitors</option>';310 $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'> Logged in users only</option>';311 $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'> Guests only</option>';309 $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>' . __('All Visitors', 'saber-feedback-button') . '</option>'; 310 $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>' . __('Logged in users only', 'saber-feedback-button') . '</option>'; 311 $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>' . __('Guests only', 'saber-feedback-button') . '</option>'; 312 312 313 313 $html .= '</select>';
Note: See TracChangeset
for help on using the changeset viewer.