Changeset 1518410
- Timestamp:
- 10/20/2016 09:13:58 AM (9 years ago)
- Location:
- shokola-custom-white-label
- Files:
-
- 19 added
- 3 edited
-
tags/1.0.7 (added)
-
tags/1.0.7/admin (added)
-
tags/1.0.7/admin/css (added)
-
tags/1.0.7/admin/css/admin_style.css (added)
-
tags/1.0.7/admin/js (added)
-
tags/1.0.7/admin/js/admin_script.js (added)
-
tags/1.0.7/index.html (added)
-
tags/1.0.7/languages (added)
-
tags/1.0.7/languages/shokola-custom-whitelabel-fr_FR.mo (added)
-
tags/1.0.7/languages/shokola-custom-whitelabel-fr_FR.po (added)
-
tags/1.0.7/languages/shokola-custom-whitelabel.mo (added)
-
tags/1.0.7/languages/shokola-custom-whitelabel.po (added)
-
tags/1.0.7/languages/shokola-custom-whitelabel.pot (added)
-
tags/1.0.7/public (added)
-
tags/1.0.7/public/js (added)
-
tags/1.0.7/public/js/script.js (added)
-
tags/1.0.7/readme.txt (added)
-
tags/1.0.7/shokola-custom-whitelabel.php (added)
-
tags/1.0.7/uninstall.php (added)
-
trunk/README.md (modified) (10 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shokola-custom-whitelabel.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shokola-custom-white-label/trunk/README.md
r1508037 r1518410 1 === Shokola Custom and White Label === 2 Contributors: shokola 3 License: GPL2 4 License URI: https://www.gnu.org/licenses/gpl-2.0.html 5 Tags: custom,white,label,login 6 Requires at least: 4.4 7 Tested up to: 4.6 1 # Shokola Custom and White Label# 8 2 9 Set WordPress as "White Label" and personalize the login page. See <code>Settings / Custom Shokola</code> to configure. 3 * Contributors: shokola 4 * License: GPL2 5 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 6 * Tags: custom,white,label,login 7 * Requires at least: 4.4 8 * Tested up to: 4.6 10 9 11 == Description == 10 **Set WordPress as "White Label" and personalize the login page. See `Settings / Custom Shokola` to configure.** 11 12 ##Description## 12 13 13 14 Customize the login page with fallowing settings : … … 28 29 29 30 Todos : 31 ======= 32 ##Todos## 30 33 31 34 * OK locals / translate … … 38 41 39 42 40 == Installation == 43 ##Installation## 41 44 42 45 1. Upload the `shokola-custom-whitelabel` folder to the `/wp-content/plugins/` directory … … 44 47 3. Configure the plugin by going to the `Shokola Custom` menu that appears in your settings menu 45 48 46 == Frequently Asked Questions == 49 ##Frequently Asked Questions## 47 50 48 51 [Contact us](https://www.shokola.com/contact/) 49 52 50 == Screenshots == 53 ##Screenshots## 51 54 52 1. Custom login page example 53 2. Settings page 55 Custom login page example 56 57  58 59 Settings page 60 61  62 63 = 1.0.7 = 64 65 Release Date: October 20th, 2016 66 67 * Fix jquery dependency 54 68 55 69 = 1.0.6 = 56 70 57 Release Date: October 4 rd, 201671 Release Date: October 4th, 2016 58 72 59 73 * Add remove image … … 61 75 * Add background logo color customization 62 76 63 = 1.0.5 = 77 ##Changelog## 78 79 ###1.0.5### 64 80 65 81 Release Date: October 3rd, 2016 … … 67 83 * Typos 68 84 69 = 1.0.4 = 85 ###1.0.4### 70 86 71 87 Release Date: October 3rd, 2016 … … 75 91 * Add localization 76 92 77 = 1.0.3 = 93 ###1.0.3### 78 94 79 95 Release Date: September 30th, 2016 … … 81 97 * Add Media file selection 82 98 83 = 1.0.2 = 99 ###1.0.2### 84 100 85 101 Release Date: September 30th, 2016 … … 87 103 * Fixes and typos 88 104 89 = 1.0.1 = 105 ###1.0.1### 90 106 91 107 Release Date: September 30th, 2016 … … 93 109 * Typos 94 110 95 = 1.0.0 = 111 ###1.0.0### 96 112 97 113 Release Date: September 29th, 2016 -
shokola-custom-white-label/trunk/readme.txt
r1508037 r1518410 45 45 == Changelog == 46 46 47 = 1.0.7 = 48 49 Release Date: October 20th, 2016 50 51 * Fix jquery dependency 52 47 53 = 1.0.6 = 48 54 49 Release Date: October 4 rd, 201655 Release Date: October 4th, 2016 50 56 51 57 * Add remove image -
shokola-custom-white-label/trunk/shokola-custom-whitelabel.php
r1508037 r1518410 4 4 Plugin URI: https://wordpress.org/plugins/shokola-custom-white-label/ 5 5 Description: Set WordPress as "White Label" and personalize the login page. See <code>Settings / Custom Shokola</code> to configure. 6 Version: 1.0. 66 Version: 1.0.7 7 7 Author: Shokola 8 8 Author URI: https://www.shokola.com/ … … 29 29 { 30 30 31 private $version = '1.0. 6';31 private $version = '1.0.7'; 32 32 private $plugin_slug = 'shokola-custom-whitelabel'; 33 33 … … 87 87 wp_enqueue_style('wp-color-picker'); 88 88 wp_enqueue_style('shokola_admin_style', plugin_dir_url(__FILE__) . 'admin/css/admin_style.css', array(), time()); 89 wp_enqueue_script('shokola_admin_script', plugin_dir_url(__FILE__) . 'admin/js/admin_script.js', array(' wp-color-picker'), time(), true);89 wp_enqueue_script('shokola_admin_script', plugin_dir_url(__FILE__) . 'admin/js/admin_script.js', array('jquery', 'wp-color-picker'), time(), true); 90 90 } 91 91 … … 172 172 </legend> 173 173 <?php foreach ($setting['values'] as $sub_key => $sub_value) : ?> 174 <label class="label_<?php echo $setting['key']; ?> label_<?php echo $setting['key']; ?>_<?php echo $sub_key; ?>"><input type="radio" name="<?php echo $setting['key']; ?>"175 id="<?php echo $setting['key']; ?>_<?php echo $sub_key; ?>"176 value="<?php echo $sub_key; ?>" <?php echo ($option_value == $sub_key) ? 'checked="checked"' : ''; ?>><?php echo $sub_value; ?>174 <label class="label_<?php echo $setting['key']; ?> label_<?php echo $setting['key']; ?>_<?php echo $sub_key; ?>"><input type="radio" name="<?php echo $setting['key']; ?>" 175 id="<?php echo $setting['key']; ?>_<?php echo $sub_key; ?>" 176 value="<?php echo $sub_key; ?>" <?php echo ($option_value == $sub_key) ? 'checked="checked"' : ''; ?>><?php echo $sub_value; ?> 177 177 </label><?php echo ($setting['key'] != 'shokola_background_position') ? '<br>' : ''; ?> 178 178 <?php endforeach; ?> … … 228 228 ); 229 229 $settings[] = array('type' => 'text', 230 'name' => __('Logo - link', $this->plugin_slug),231 'default_value' => '#',232 'description' => __('Logo link', $this->plugin_slug),233 'key' => 'shokola_logo_url');230 'name' => __('Logo - link', $this->plugin_slug), 231 'default_value' => '#', 232 'description' => __('Logo link', $this->plugin_slug), 233 'key' => 'shokola_logo_url'); 234 234 235 235 $settings[] = array('type' => 'file', 236 'name' => __('Background - image', $this->plugin_slug),237 'default_value' => '',238 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),239 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug).' <code>1920px x 1080px min</code>',240 'key' => 'shokola_background_name');236 'name' => __('Background - image', $this->plugin_slug), 237 'default_value' => '', 238 'placeholder' => __('Click here to choose an image...', $this->plugin_slug), 239 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug).' <code>1920px x 1080px min</code>', 240 'key' => 'shokola_background_name'); 241 241 242 242 $settings[] = array('type' => 'radio', 243 'name' => __('Background - position', $this->plugin_slug),244 'values' => array(245 'left top' => __('left top', $this->plugin_slug),246 'center top' => __('center top', $this->plugin_slug),247 'right top' => __('right top', $this->plugin_slug),248 'left center' => __('left center', $this->plugin_slug),249 'center center' => __('center center', $this->plugin_slug),250 'right center' => __('right center', $this->plugin_slug),251 'left bottom' => __('left bottom', $this->plugin_slug),252 'center bottom' => __('center bottom', $this->plugin_slug),253 'right bottom' => __('right bottom', $this->plugin_slug)),254 'default_value' => 'center center',255 'description' => __('Choose background position', $this->plugin_slug),256 'key' => 'shokola_background_position');243 'name' => __('Background - position', $this->plugin_slug), 244 'values' => array( 245 'left top' => __('left top', $this->plugin_slug), 246 'center top' => __('center top', $this->plugin_slug), 247 'right top' => __('right top', $this->plugin_slug), 248 'left center' => __('left center', $this->plugin_slug), 249 'center center' => __('center center', $this->plugin_slug), 250 'right center' => __('right center', $this->plugin_slug), 251 'left bottom' => __('left bottom', $this->plugin_slug), 252 'center bottom' => __('center bottom', $this->plugin_slug), 253 'right bottom' => __('right bottom', $this->plugin_slug)), 254 'default_value' => 'center center', 255 'description' => __('Choose background position', $this->plugin_slug), 256 'key' => 'shokola_background_position'); 257 257 258 258 $settings[] = array('type' => 'radio', 259 'values' => array(260 'no-repeat' => __('The background-image will not be repeated', $this->plugin_slug),261 'repeat' => __('The background image will be repeated both vertically and horizontally', $this->plugin_slug),262 'repeat-x' => __('The background image will be repeated only horizontally', $this->plugin_slug),263 'repeat-y' => __('The background image will be repeated only vertically', $this->plugin_slug)),264 'name' => __('Fond - repeat', $this->plugin_slug),265 'default_value' => 'no-repeat',266 'description' => __('Choose background repetition', $this->plugin_slug),267 'key' => 'shokola_background_repeat');259 'values' => array( 260 'no-repeat' => __('The background-image will not be repeated', $this->plugin_slug), 261 'repeat' => __('The background image will be repeated both vertically and horizontally', $this->plugin_slug), 262 'repeat-x' => __('The background image will be repeated only horizontally', $this->plugin_slug), 263 'repeat-y' => __('The background image will be repeated only vertically', $this->plugin_slug)), 264 'name' => __('Fond - repeat', $this->plugin_slug), 265 'default_value' => 'no-repeat', 266 'description' => __('Choose background repetition', $this->plugin_slug), 267 'key' => 'shokola_background_repeat'); 268 268 269 269 $settings[] = array('type' => 'radio', 270 'values' => array(271 0 => __('No', $this->plugin_slug),272 1 => __('Yes', $this->plugin_slug)),273 'name' => __('Background - cover', $this->plugin_slug),274 'default_value' => '0',275 'description' => __('Set background dimension as cover type', $this->plugin_slug),276 'key' => 'shokola_background_cover');270 'values' => array( 271 0 => __('No', $this->plugin_slug), 272 1 => __('Yes', $this->plugin_slug)), 273 'name' => __('Background - cover', $this->plugin_slug), 274 'default_value' => '0', 275 'description' => __('Set background dimension as cover type', $this->plugin_slug), 276 'key' => 'shokola_background_cover'); 277 277 278 278 $settings[] = array('type' => 'file', 279 'name' => __('Favicon', $this->plugin_slug),280 'default_value' => '',281 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),282 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug).' <code>16px x 16px</code>',283 'key' => 'shokola_favico_name');279 'name' => __('Favicon', $this->plugin_slug), 280 'default_value' => '', 281 'placeholder' => __('Click here to choose an image...', $this->plugin_slug), 282 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug).' <code>16px x 16px</code>', 283 'key' => 'shokola_favico_name'); 284 284 285 285 $settings[] = array('type' => 'radio', 286 'values' => array(287 0 => __('Light', $this->plugin_slug),288 1 => __('Dark', $this->plugin_slug)),289 'name' => __('Theme - ambiance', $this->plugin_slug),290 'default_value' => '0',291 'description' => __('Light or dark theme', $this->plugin_slug),292 'key' => 'shokola_theme_dark');286 'values' => array( 287 0 => __('Light', $this->plugin_slug), 288 1 => __('Dark', $this->plugin_slug)), 289 'name' => __('Theme - ambiance', $this->plugin_slug), 290 'default_value' => '0', 291 'description' => __('Light or dark theme', $this->plugin_slug), 292 'key' => 'shokola_theme_dark'); 293 293 294 294 $settings[] = array('type' => 'color', 295 'name' => __('Theme - details', $this->plugin_slug),296 'default_value' => '#333',297 'description' => __('Borders and buttons color', $this->plugin_slug),298 'key' => 'shokola_theme_color');295 'name' => __('Theme - details', $this->plugin_slug), 296 'default_value' => '#333', 297 'description' => __('Borders and buttons color', $this->plugin_slug), 298 'key' => 'shokola_theme_color'); 299 299 300 300 $settings[] = array('type' => 'color', 301 'name' => __('Theme - logo background', $this->plugin_slug),302 'default_value' => '#FFF',303 'description' => __('Background color of the logo', $this->plugin_slug),304 'key' => 'shokola_h1_color');301 'name' => __('Theme - logo background', $this->plugin_slug), 302 'default_value' => '#FFF', 303 'description' => __('Background color of the logo', $this->plugin_slug), 304 'key' => 'shokola_h1_color'); 305 305 306 306 return $settings; … … 342 342 */ 343 343 public function login_scripts() { 344 wp_enqueue_script('shokola_login_script', plugin_dir_url(__FILE__) . 'public/js/script.js', array( ), time(), true);344 wp_enqueue_script('shokola_login_script', plugin_dir_url(__FILE__) . 'public/js/script.js', array('jquery'), time(), true); 345 345 } 346 346
Note: See TracChangeset
for help on using the changeset viewer.