Changeset 1681727
- Timestamp:
- 06/20/2017 09:22:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shokola-custom-white-label/trunk/shokola-custom-whitelabel.php
r1681723 r1681727 143 143 function plugin_action_links($links) 144 144 { 145 $links[] = '<a href="' . esc_url(get_admin_url(null, 'options-general.php?page=' . $this->plugin_slug . '.php')) . '">' . __('Settings', $this->plugin_slug) . '</a>';145 $links[] = '<a href="' . esc_url(get_admin_url(null, 'options-general.php?page=' . $this->plugin_slug . '.php')) . '">' . __('Settings', 'shokola-custom-whitelabel') . '</a>'; 146 146 147 147 // $links[] = '<a href="https://www.shokola.com/" target="_blank">Shokola</a>'; … … 160 160 if (!current_user_can('manage_options')) 161 161 { 162 wp_die(__('You do not have sufficient permissions to access this page.', $this->plugin_slug));162 wp_die(__('You do not have sufficient permissions to access this page.', 'shokola-custom-whitelabel')); 163 163 } 164 164 … … 167 167 <div class="wrap scwl-wrap"> 168 168 <h2><?php echo esc_html(get_admin_page_title()); ?></h2> 169 <p><?php echo __('Adjust the custom settings of the login page / recovery password page.', $this->plugin_slug); ?></p>169 <p><?php echo __('Adjust the custom settings of the login page / recovery password page.', 'shokola-custom-whitelabel'); ?></p> 170 170 171 171 <?php if ($tabs) : ?> … … 223 223 <button type="button" 224 224 class="button button-secondary button-remove-image" 225 title="<?php echo __('Remove image', $this->plugin_slug); ?>"226 data-input-id="<?php echo $setting['key']; ?>"><?php echo __('Remove', $this->plugin_slug); ?></button>225 title="<?php echo __('Remove image', 'shokola-custom-whitelabel'); ?>" 226 data-input-id="<?php echo $setting['key']; ?>"><?php echo __('Remove', 'shokola-custom-whitelabel'); ?></button> 227 227 <?php endif; ?> 228 228 … … 234 234 <?php if ($setting['type'] == 'file' && function_exists('wp_enqueue_media')) : ?> 235 235 <p class="description" 236 id="<?php echo $setting['key']; ?>_image_preview_description" <?php echo ($option_value == '') ? 'style="display: none;"' : ''; ?>><?php echo __('Image preview', $this->plugin_slug); ?>236 id="<?php echo $setting['key']; ?>_image_preview_description" <?php echo ($option_value == '') ? 'style="display: none;"' : ''; ?>><?php echo __('Image preview', 'shokola-custom-whitelabel'); ?> 237 237 :</p> 238 238 <div class="image-preview"> … … 267 267 $settings = array(); 268 268 269 $settings[] = array('type' => 'file', 'name' => __('Logo - image', $this->plugin_slug),269 $settings[] = array('type' => 'file', 'name' => __('Logo - image', 'shokola-custom-whitelabel'), 270 270 'default_value' => '', 271 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),272 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>320px x 320px max</code>',271 'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'), 272 'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>320px x 320px max</code>', 273 273 'key' => 'shokola_logo_name'); 274 $settings[] = array('type' => 'text', 'name' => __('Logo - link', $this->plugin_slug),275 'default_value' => '#', 'description' => __('Logo link', $this->plugin_slug),274 $settings[] = array('type' => 'text', 'name' => __('Logo - link', 'shokola-custom-whitelabel'), 275 'default_value' => '#', 'description' => __('Logo link', 'shokola-custom-whitelabel'), 276 276 'key' => 'shokola_logo_url'); 277 277 278 $settings[] = array('type' => 'file', 'name' => __('Background - image', $this->plugin_slug),278 $settings[] = array('type' => 'file', 'name' => __('Background - image', 'shokola-custom-whitelabel'), 279 279 'default_value' => '', 280 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),281 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>1920px x 1080px min</code>',280 'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'), 281 'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>1920px x 1080px min</code>', 282 282 'key' => 'shokola_background_name'); 283 283 284 $settings[] = array('type' => 'radio', 'name' => __('Background - position', $this->plugin_slug),285 'values' => array('left top' => __('left top', $this->plugin_slug),286 'center top' => __('center top', $this->plugin_slug),287 'right top' => __('right top', $this->plugin_slug),288 'left center' => __('left center', $this->plugin_slug),289 'center center' => __('center center', $this->plugin_slug),290 'right center' => __('right center', $this->plugin_slug),291 'left bottom' => __('left bottom', $this->plugin_slug),292 'center bottom' => __('center bottom', $this->plugin_slug),293 'right bottom' => __('right bottom', $this->plugin_slug)),284 $settings[] = array('type' => 'radio', 'name' => __('Background - position', 'shokola-custom-whitelabel'), 285 'values' => array('left top' => __('left top', 'shokola-custom-whitelabel'), 286 'center top' => __('center top', 'shokola-custom-whitelabel'), 287 'right top' => __('right top', 'shokola-custom-whitelabel'), 288 'left center' => __('left center', 'shokola-custom-whitelabel'), 289 'center center' => __('center center', 'shokola-custom-whitelabel'), 290 'right center' => __('right center', 'shokola-custom-whitelabel'), 291 'left bottom' => __('left bottom', 'shokola-custom-whitelabel'), 292 'center bottom' => __('center bottom', 'shokola-custom-whitelabel'), 293 'right bottom' => __('right bottom', 'shokola-custom-whitelabel')), 294 294 'default_value' => 'center center', 295 'description' => __('Choose background position', $this->plugin_slug),295 'description' => __('Choose background position', 'shokola-custom-whitelabel'), 296 296 'key' => 'shokola_background_position'); 297 297 298 298 $settings[] = array('type' => 'radio', 299 'values' => array('no-repeat' => __('The background-image will not be repeated', $this->plugin_slug),300 'repeat' => __('The background image will be repeated both vertically and horizontally', $this->plugin_slug),301 'repeat-x' => __('The background image will be repeated only horizontally', $this->plugin_slug),302 'repeat-y' => __('The background image will be repeated only vertically', $this->plugin_slug)),303 'name' => __('Background - repeat', $this->plugin_slug), 'default_value' => 'no-repeat',304 'description' => __('Choose background repetition', $this->plugin_slug),299 'values' => array('no-repeat' => __('The background-image will not be repeated', 'shokola-custom-whitelabel'), 300 'repeat' => __('The background image will be repeated both vertically and horizontally', 'shokola-custom-whitelabel'), 301 'repeat-x' => __('The background image will be repeated only horizontally', 'shokola-custom-whitelabel'), 302 'repeat-y' => __('The background image will be repeated only vertically', 'shokola-custom-whitelabel')), 303 'name' => __('Background - repeat', 'shokola-custom-whitelabel'), 'default_value' => 'no-repeat', 304 'description' => __('Choose background repetition', 'shokola-custom-whitelabel'), 305 305 'key' => 'shokola_background_repeat'); 306 306 307 $settings[] = array('type' => 'radio', 'values' => array(0 => __('No', $this->plugin_slug),308 1 => __('Yes', $this->plugin_slug)),309 'name' => __('Background - cover', $this->plugin_slug), 'default_value' => '0',310 'description' => __('Set background dimension as cover type', $this->plugin_slug),307 $settings[] = array('type' => 'radio', 'values' => array(0 => __('No', 'shokola-custom-whitelabel'), 308 1 => __('Yes', 'shokola-custom-whitelabel')), 309 'name' => __('Background - cover', 'shokola-custom-whitelabel'), 'default_value' => '0', 310 'description' => __('Set background dimension as cover type', 'shokola-custom-whitelabel'), 311 311 'key' => 'shokola_background_cover'); 312 312 313 $settings[] = array('type' => 'file', 'name' => __('Favicon', $this->plugin_slug), 'default_value' => '',314 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),315 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>16px x 16px</code>',313 $settings[] = array('type' => 'file', 'name' => __('Favicon', 'shokola-custom-whitelabel'), 'default_value' => '', 314 'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'), 315 'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>16px x 16px</code>', 316 316 'key' => 'shokola_favico_name'); 317 317 318 $settings[] = array('type' => 'radio', 'values' => array('classic' => __('Classic', $this->plugin_slug),319 'material' => __('Material Design', $this->plugin_slug)),320 'name' => __('Theme - style', $this->plugin_slug), 'default_value' => 'classic',321 'description' => __('The general look of the form (inputs, labels and buttons)', $this->plugin_slug),318 $settings[] = array('type' => 'radio', 'values' => array('classic' => __('Classic', 'shokola-custom-whitelabel'), 319 'material' => __('Material Design', 'shokola-custom-whitelabel')), 320 'name' => __('Theme - style', 'shokola-custom-whitelabel'), 'default_value' => 'classic', 321 'description' => __('The general look of the form (inputs, labels and buttons)', 'shokola-custom-whitelabel'), 322 322 'key' => 'shokola_theme_style'); 323 323 324 $settings[] = array('type' => 'radio', 'values' => array(0 => __('Light', $this->plugin_slug),325 1 => __('Dark', $this->plugin_slug)),326 'name' => __('Theme - ambiance', $this->plugin_slug), 'default_value' => '0',327 'description' => __('Light or dark theme', $this->plugin_slug),324 $settings[] = array('type' => 'radio', 'values' => array(0 => __('Light', 'shokola-custom-whitelabel'), 325 1 => __('Dark', 'shokola-custom-whitelabel')), 326 'name' => __('Theme - ambiance', 'shokola-custom-whitelabel'), 'default_value' => '0', 327 'description' => __('Light or dark theme', 'shokola-custom-whitelabel'), 328 328 'key' => 'shokola_theme_dark'); 329 329 330 $settings[] = array('type' => 'color', 'name' => __('Theme - details', $this->plugin_slug),330 $settings[] = array('type' => 'color', 'name' => __('Theme - details', 'shokola-custom-whitelabel'), 331 331 'default_value' => '#333', 332 'description' => __('Borders and buttons color', $this->plugin_slug),332 'description' => __('Borders and buttons color', 'shokola-custom-whitelabel'), 333 333 'key' => 'shokola_theme_color'); 334 334 335 $settings[] = array('type' => 'color', 'name' => __('Theme - logo background', $this->plugin_slug),335 $settings[] = array('type' => 'color', 'name' => __('Theme - logo background', 'shokola-custom-whitelabel'), 336 336 'default_value' => '#FFF', 337 'description' => __('Background color of the logo (should be <code>#FFFFFF</code> to match Light theme and <code>#333333</code> to match Dark theme', $this->plugin_slug),337 'description' => __('Background color of the logo (should be <code>#FFFFFF</code> to match Light theme and <code>#333333</code> to match Dark theme', 'shokola-custom-whitelabel'), 338 338 'key' => 'shokola_h1_color'); 339 339
Note: See TracChangeset
for help on using the changeset viewer.