Plugin Directory

Changeset 1518410


Ignore:
Timestamp:
10/20/2016 09:13:58 AM (9 years ago)
Author:
shokola
Message:

Fix jquery

Location:
shokola-custom-white-label
Files:
19 added
3 edited

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#
    82
    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
    109
    11 == Description ==
     10**Set WordPress as "White Label" and personalize the login page. See `Settings / Custom Shokola` to configure.**
     11
     12##Description##
    1213
    1314Customize the login page with fallowing settings :
     
    2829
    2930Todos :
     31=======
     32##Todos##
    3033
    3134* OK locals / translate
     
    3841
    3942
    40 == Installation ==
     43##Installation##
    4144
    42451. Upload the `shokola-custom-whitelabel` folder to the `/wp-content/plugins/` directory
     
    44473. Configure the plugin by going to the `Shokola Custom` menu that appears in your settings menu
    4548
    46 == Frequently Asked Questions ==
     49##Frequently Asked Questions##
    4750
    4851[Contact us](https://www.shokola.com/contact/)
    4952
    50 == Screenshots ==
     53##Screenshots##
    5154
    52 1. Custom login page example
    53 2. Settings page
     55Custom login page example
     56
     57![screenshot-1.jpg](https://bitbucket.org/repo/4bKo6o/images/1433358168-screenshot-1.jpg)
     58
     59Settings page
     60
     61![screenshot-2.png](https://bitbucket.org/repo/4bKo6o/images/2965708290-screenshot-2.png)
     62
     63= 1.0.7 =
     64
     65Release Date: October 20th, 2016
     66
     67* Fix jquery dependency
    5468
    5569= 1.0.6 =
    5670
    57 Release Date: October 4rd, 2016
     71Release Date: October 4th, 2016
    5872
    5973* Add remove image
     
    6175* Add background logo color customization
    6276
    63 = 1.0.5 =
     77##Changelog##
     78
     79###1.0.5###
    6480
    6581Release Date: October 3rd, 2016
     
    6783* Typos
    6884
    69 = 1.0.4 =
     85###1.0.4###
    7086
    7187Release Date: October 3rd, 2016
     
    7591* Add localization
    7692
    77 = 1.0.3 =
     93###1.0.3###
    7894
    7995Release Date: September 30th, 2016
     
    8197* Add Media file selection
    8298
    83 = 1.0.2 =
     99###1.0.2###
    84100
    85101Release Date: September 30th, 2016
     
    87103* Fixes and typos
    88104
    89 = 1.0.1 =
     105###1.0.1###
    90106
    91107Release Date: September 30th, 2016
     
    93109* Typos
    94110
    95 = 1.0.0 =
     111###1.0.0###
    96112
    97113Release Date: September 29th, 2016
  • shokola-custom-white-label/trunk/readme.txt

    r1508037 r1518410  
    4545== Changelog ==
    4646
     47= 1.0.7 =
     48
     49Release Date: October 20th, 2016
     50
     51* Fix jquery dependency
     52
    4753= 1.0.6 =
    4854
    49 Release Date: October 4rd, 2016
     55Release Date: October 4th, 2016
    5056
    5157* Add remove image
  • shokola-custom-white-label/trunk/shokola-custom-whitelabel.php

    r1508037 r1518410  
    44Plugin URI:  https://wordpress.org/plugins/shokola-custom-white-label/
    55Description: Set WordPress as "White Label" and personalize the login page. See <code>Settings / Custom Shokola</code> to configure.
    6 Version:     1.0.6
     6Version:     1.0.7
    77Author:      Shokola
    88Author URI:  https://www.shokola.com/
     
    2929    {
    3030
    31         private $version = '1.0.6';
     31        private $version = '1.0.7';
    3232        private $plugin_slug = 'shokola-custom-whitelabel';
    3333
     
    8787            wp_enqueue_style('wp-color-picker');
    8888            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);
    9090        }
    9191
     
    172172                                            </legend>
    173173                                            <?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; ?>
    177177                                                </label><?php echo ($setting['key'] != 'shokola_background_position') ? '<br>' : ''; ?>
    178178                                            <?php endforeach; ?>
     
    228228            );
    229229            $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');
    234234
    235235            $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');
    241241
    242242            $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');
    257257
    258258            $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');
    268268
    269269            $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');
    277277
    278278            $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');
    284284
    285285            $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');
    293293
    294294            $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');
    299299
    300300            $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');
    305305
    306306            return $settings;
     
    342342         */
    343343        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);
    345345        }
    346346
Note: See TracChangeset for help on using the changeset viewer.