├── includes ├── index.php ├── class-colorlib-login-customizer-autoloader.php ├── lib │ ├── controls │ │ ├── class-colorlib-login-customizer-background-control.php │ │ ├── class-colorlib-login-customizer-control-color-picker.php │ │ ├── class-colorlib-login-customizer-column-width.php │ │ ├── class-colorlib-login-customizer-range-slider-control.php │ │ ├── class-colorlib-login-customizer-control-toggle.php │ │ ├── class-colorlib-login-customizer-button-group-control.php │ │ └── class-colorlib-login-customizer-template-control.php │ └── class-colorlib-login-customizer-settings.php ├── class-colorlib-login-customizer-backwards-compatibility.php ├── class-colorlib-login-customizer-review.php ├── login-template.php └── class-colorlib-login-customizer.php ├── .jshintignore ├── .jscsrc ├── assets ├── img │ ├── default.jpg │ ├── tpl-03 │ │ ├── bg.jpg │ │ └── screen.jpg │ ├── background-1.jpg │ ├── background.jpg │ ├── four-column.png │ ├── one-column.png │ ├── template-01.jpg │ ├── template-02.jpg │ ├── three-column.png │ ├── two-column.png │ ├── form-align-top.jpg │ ├── tpl-04 │ │ └── screen.jpg │ ├── form-align-bottom.jpg │ ├── form-align-left.jpg │ ├── form-align-right.jpg │ ├── form-vertical-align-top.png │ ├── form-horizontal-align-left.png │ ├── form-horizontal-align-right.png │ ├── form-vertical-align-bottom.png │ ├── form-vertical-align-middle.png │ └── minicolors │ │ └── jquery.minicolors.png ├── css │ ├── clc-customizer-previewer.css │ ├── jquery.minicolors.css │ └── clc-customizer.css └── js │ ├── clc-preview.js │ ├── jquery.minicolors.min.js │ └── clc-customizer.js ├── .gitignore ├── uninstall.php ├── .jshintrc ├── package.json ├── phpcs.ruleset.xml ├── set_tags.sh ├── colorlib-login-customizer.php ├── .travis.yml ├── Gruntfile.js ├── readme.txt ├── languages └── colorlib-login-customizer.po └── LICENSE.txt /includes/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | A custom set of code standard rules to check for WordPress themes and plugins. 8 | 9 | 10 | 11 | 12 | */node_modules/* 13 | */woocommerce/* 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /set_tags.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | BRANCH="master" 3 | 4 | # Are we on the right branch? 5 | if [ "$TRAVIS_BRANCH" = "$BRANCH" ]; then 6 | 7 | # Is this not a Pull Request? 8 | if [ "$TRAVIS_PULL_REQUEST" = false ]; then 9 | 10 | # Is this not a build which was triggered by setting a new tag? 11 | if [ -z "$TRAVIS_TAG" ]; then 12 | echo -e "Starting to tag commit.\n" 13 | PACKAGE_VERSION=$(node -p -e "require('./package.json').version") 14 | 15 | git config --global user.email "travis@travis-ci.org" 16 | git config --global user.name "Travis" 17 | 18 | # Add tag and push to master. 19 | git tag -a v${PACKAGE_VERSION} -m "Travis build $PACKAGE_VERSION pushed a tag." 20 | git push origin --tags 21 | git fetch origin 22 | 23 | echo -e "Done magic with tags.\n" 24 | fi 25 | fi 26 | fi -------------------------------------------------------------------------------- /assets/css/clc-customizer-previewer.css: -------------------------------------------------------------------------------- 1 | .clc-general-actions { 2 | position: absolute; 3 | top: 10px; 4 | left: 10px; 5 | z-index: 99; 6 | } 7 | 8 | .clc-preview-event { 9 | cursor: pointer; 10 | background-color: #008ec2; 11 | border-radius: 100%; 12 | color: #fff; 13 | width: 30px; 14 | height: 30px; 15 | text-align: center; 16 | border: 2px solid #fff; 17 | box-shadow: 0 2px 1px rgba(46,68,83,.15); 18 | } 19 | .clc-preview-event > span { 20 | margin-top: 5px; 21 | } 22 | 23 | .clc-general-actions > .clc-preview-event { 24 | display: inline-block; 25 | } 26 | .login h1 a { 27 | text-indent: initial; 28 | position: relative; 29 | overflow: visible; 30 | } 31 | .login h1 a .clc-preview-event { 32 | position: absolute; 33 | left: -15px; 34 | top: -15px; 35 | } 36 | .login:not(.clc-both-logo) h1 a #logo-text { 37 | display: none; 38 | } 39 | .login.clc-text-logo h1 a #logo-text{ 40 | display: block; 41 | } 42 | -------------------------------------------------------------------------------- /includes/class-colorlib-login-customizer-autoloader.php: -------------------------------------------------------------------------------- 1 | register_control_type( 'Colorlib_Login_Customizer_Background_Control' ); 26 | } 27 | 28 | /** 29 | * Add custom parameters to pass to the JS via JSON. 30 | * 31 | * @since 1.1.0 32 | * @access public 33 | */ 34 | public function json() { 35 | $json = parent::json(); 36 | 37 | $json['id'] = $this->id; 38 | $json['link'] = $this->get_link(); 39 | $json['gallery'] = $this->generate_gallery(); 40 | 41 | return $json; 42 | } 43 | 44 | private function generate_gallery() { 45 | 46 | if ( ! is_array( $this->default_backgrounds ) ) { 47 | return array(); 48 | } 49 | 50 | } 51 | 52 | } -------------------------------------------------------------------------------- /includes/class-colorlib-login-customizer-backwards-compatibility.php: -------------------------------------------------------------------------------- 1 | register_control_type( 'Colorlib_Login_Customizer_Control_Color_Picker' ); 43 | } 44 | 45 | /** 46 | * Add custom parameters to pass to the JS via JSON. 47 | * 48 | * @since 1.2.0 49 | * @access public 50 | */ 51 | public function json() { 52 | $json = parent::json(); 53 | 54 | $json['id'] = $this->id; 55 | $json['link'] = $this->get_link(); 56 | $json['value'] = $this->value(); 57 | $json['default'] = $this->setting->default; 58 | $json['mode'] = '' !== $this->mode ? $this->mode : 'hex'; 59 | $json['lite'] = $this->lite; 60 | 61 | return $json; 62 | } 63 | 64 | /** 65 | * Display the control's content 66 | */ 67 | public function content_template() { 68 | //@formatter:off ?> 69 | 82 | settings)) { 54 | $instance->settings = Colorlib_Login_Customizer_Settings::instance($instance); 55 | } 56 | 57 | return $instance; 58 | } 59 | 60 | function clc_check_for_review() { 61 | 62 | require_once COLORLIB_LOGIN_CUSTOMIZER_BASE . 'includes/class-colorlib-login-customizer-review.php'; 63 | 64 | CLC_Review::get_instance( array( 65 | 'slug' => 'colorlib-login-customizer', 66 | ) ); 67 | } 68 | 69 | add_action( 'admin_init', 'clc_check_for_review' ); 70 | colorlib_login_customizer(); 71 | -------------------------------------------------------------------------------- /includes/lib/controls/class-colorlib-login-customizer-column-width.php: -------------------------------------------------------------------------------- 1 | register_control_type( 'Colorlib_Login_Customizer_Column_Width' ); 31 | } 32 | 33 | /** 34 | * Add custom parameters to pass to the JS via JSON. 35 | * 36 | * @since 1.1.0 37 | * @access public 38 | */ 39 | public function json() { 40 | $json = parent::json(); 41 | $json['id'] = $this->id; 42 | $json['link'] = $this->get_link(); 43 | $json['value'] = $this->get_columns(); 44 | 45 | return $json; 46 | } 47 | 48 | /** 49 | * Set value 50 | */ 51 | public function get_columns() { 52 | $default = array( 53 | 'left' => 6, 54 | 'right' => 6 55 | ); 56 | $current_columns = $this->value(); 57 | $current_columns = is_array( $current_columns ) ? $current_columns : array(); 58 | 59 | return wp_parse_args( $current_columns, $default ); 60 | } 61 | 62 | /** 63 | * Display the control's content 64 | */ 65 | public function content_template() { 66 | //@formatter:off ?> 67 |
68 | 80 |
81 |
82 |
83 | 84 |
85 |
86 | 87 |
88 |
89 |
90 |
91 | register_section_type( 'Colorlib_Login_Customizer_Range_Slider_Control' ); 39 | parent::__construct( $manager, $id, $args ); 40 | if ( isset( $args['default'] ) ) { 41 | $this->default = $args['default']; 42 | } 43 | } 44 | 45 | /** 46 | * Enqueue scripts/styles. 47 | * 48 | * @since 1.0.0 49 | * @access public 50 | * @return void 51 | */ 52 | public function enqueue() { 53 | wp_enqueue_script( 'jquery-ui' ); 54 | wp_enqueue_script( 'jquery-ui-slider' ); 55 | } 56 | 57 | public function get_value() { 58 | $value = $this->value(); 59 | if ( ! $value && isset( $this->default ) ) { 60 | return $this->default; 61 | } 62 | 63 | return $value; 64 | } 65 | 66 | public function to_json() { 67 | 68 | $default_choices = array( 69 | 'min' => 1, 70 | 'max' => 10, 71 | 'step' => 1, 72 | ); 73 | 74 | $this->choices = wp_parse_args( $this->choices, $default_choices ); 75 | 76 | parent::to_json(); 77 | $this->json['value'] = $this->get_value(); 78 | $this->json['id'] = $this->id; 79 | $this->json['link'] = $this->get_link(); 80 | $this->json['choices'] = $this->choices; 81 | } 82 | 83 | /** 84 | * Displays the control content. 85 | * 86 | * @since 1.0.0 87 | * @access public 88 | * @return void 89 | */ 90 | public function render_content() { 91 | } 92 | 93 | public function content_template() { 94 | ?> 95 | 108 |
109 | register_control_type( 'Colorlib_Login_Customizer_Control_Toggle' ); 26 | } 27 | 28 | /** 29 | * Add custom parameters to pass to the JS via JSON. 30 | * 31 | * @since 1.0.0 32 | * @access public 33 | */ 34 | public function json() { 35 | $json = parent::json(); 36 | 37 | $json['id'] = $this->id; 38 | $json['link'] = $this->get_link(); 39 | $json['value'] = $this->value(); 40 | 41 | return $json; 42 | } 43 | 44 | /** 45 | * Empty, as it should. 46 | * 47 | * @since 1.0.0 48 | * @access public 49 | * @return void 50 | */ 51 | public function render_content() {} 52 | 53 | /** 54 | * @since 1.0.0 55 | * @access public 56 | */ 57 | public function content_template() { 58 | //@formatter:off 59 | ?> 60 |
61 | 62 | {{{ data.label }}} 63 | <# if( data.description ){ #> 64 | 65 | 66 | {{{ data.description }}} 67 | 68 | 69 | <# } #> 70 | 71 |
72 | checked="checked" <# } #> > 76 |
77 | 78 | 79 | 83 | 87 |
88 |
89 |
90 | register_control_type( 'Colorlib_Login_Customizer_Button_Group_Control' ); 41 | } 42 | 43 | /** 44 | * Add custom parameters to pass to the JS via JSON. 45 | * 46 | * @since 1.1.0 47 | * @access public 48 | */ 49 | public function json() { 50 | $json = parent::json(); 51 | $json['id'] = $this->id; 52 | $json['link'] = $this->get_link(); 53 | $json['value'] = $this->value(); 54 | $json['default'] = $this->default; 55 | $json['choices'] = $this->choices; 56 | $json['groupType'] = $this->set_group_type(); 57 | 58 | $this->json['inputAttrs'] = ''; 59 | foreach ( $this->input_attrs as $attr => $value ) { 60 | $this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" '; 61 | } 62 | 63 | return $json; 64 | } 65 | 66 | /** 67 | * Set group type 68 | */ 69 | public function set_group_type() { 70 | $arr = array( 71 | 0 => 'none', 72 | 1 => 'one', 73 | 2 => 'two', 74 | 3 => 'three', 75 | 4 => 'four', 76 | ); 77 | 78 | return $arr[ count( $this->choices ) ]; 79 | } 80 | 81 | /** 82 | * Display the control's content 83 | */ 84 | public function content_template() { 85 | //@formatter:off ?> 86 |
87 | 99 |
100 | 113 |
114 |
115 | register_section_type( 'Colorlib_Login_Customizer_Template_Control' ); 37 | parent::__construct( $manager, $id, $args ); 38 | } 39 | 40 | /** 41 | * Add custom parameters to pass to the JS via JSON. 42 | * 43 | * @access public 44 | * @since 1.1.7 45 | * @return void 46 | */ 47 | public function to_json() { 48 | parent::to_json(); 49 | 50 | $arrays = $this->generate_arrays(); 51 | 52 | // The setting value. 53 | $this->json['id'] = $this->id; 54 | $this->json['value'] = $this->value(); 55 | $this->json['link'] = $this->get_link(); 56 | $this->json['choices'] = $arrays['choices']; 57 | $this->json['options'] = $arrays['options']; 58 | 59 | } 60 | 61 | private function generate_name( $id ) { 62 | return 'clc-options[' . $id . ']'; 63 | } 64 | 65 | public function generate_arrays() { 66 | $arrays = array( 67 | 'choices' => array(), 68 | 'options' => array(), 69 | ); 70 | 71 | foreach ( $this->choices as $key => $choice ) { 72 | $arrays['choices'][ $key ] = $choice['url']; 73 | $arrays['options'][ $key ] = array(); 74 | foreach ( $choice['options'] as $option_key => $option_value ) { 75 | $name = $this->generate_name( $option_key ); 76 | $arrays['options'][ $key ][ $option_key ] = array( 77 | 'name' => $name, 78 | 'value' => $option_value 79 | ); 80 | } 81 | } 82 | 83 | return $arrays; 84 | 85 | } 86 | 87 | /** 88 | * Don't render the content via PHP. This control is handled with a JS template. 89 | * 90 | * @access public 91 | * @since 1.0.0 92 | * @return void 93 | */ 94 | public function render_content() {} 95 | 96 | /** 97 | * An Underscore (JS) template for this control's content. 98 | * 99 | * Class variables for this control class are available in the `data` JS object; 100 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. 101 | * 102 | * @see WP_Customize_Control::print_template() 103 | * 104 | * @access protected 105 | * @since 1.1.7 106 | * @return void 107 | */ 108 | protected function content_template() { 109 | ?> 110 | 111 | <# if ( ! data.choices ) { 112 | return; 113 | } #> 114 | 115 | <# if ( data.description ) { #> 116 | {{ data.description }} 117 | <# } #> 118 | 119 |
120 | 121 | <# for ( choice in data.choices ) { #> 122 | 123 | 124 | 125 | 130 | 131 | <# } #> 132 | 133 |
134 | 135 | parent = $parent; 47 | 48 | // Add settings page to menu 49 | add_action( 'admin_menu', array( $this, 'add_menu_item' ) ); 50 | 51 | // Add settings link to plugins page 52 | add_filter( 53 | 'plugin_action_links_' . plugin_basename( $this->parent->file ), array( 54 | $this, 55 | 'add_settings_link', 56 | ) 57 | ); 58 | } 59 | 60 | 61 | /** 62 | * Add settings page to admin menu 63 | * 64 | * @return void 65 | */ 66 | public function add_menu_item() { 67 | $page = add_menu_page( 68 | esc_html__( 'Colorlib Login Customizer', 'colorlib-login-customizer' ), esc_html__( 'Login Customizer', 'colorlib-login-customizer' ), 'manage_options', $this->parent->_token . '_settings', array( 69 | $this, 70 | 'settings_page', 71 | ), 'dashicons-share-alt' 72 | ); 73 | } 74 | 75 | /** 76 | * Add settings link to plugin list table 77 | * 78 | * @param array $links Existing links 79 | * 80 | * @return array Modified links 81 | */ 82 | public function add_settings_link( $links ) { 83 | $settings_link = '' . __( 'Settings', 'colorlib-login-customizer' ) . ''; 84 | array_push( $links, $settings_link ); 85 | 86 | return $links; 87 | } 88 | 89 | /** 90 | * Load settings page content 91 | * 92 | * @return void 93 | */ 94 | public function settings_page() { 95 | 96 | // Build page HTML 97 | $html = '
' . "\n"; 98 | $html .= '

' . esc_html__( 'Colorlib Login Customizer', 'colorlib-login-customizer' ) . '

' . "\n"; 99 | $html .= '

' . esc_html__( 'Login Customizer plugin allows you to easily customize your login page straight from your WordPress Customizer! You can preview your changes before you save them! Awesome, right?', 'colorlib-login-customizer' ) . '

'; 100 | $html .= '' . __( 'Start Customizing!', 'colorlib-login-customizer' ) . ''; 101 | $html .= '
' . "\n"; 102 | 103 | echo $html; 104 | } 105 | 106 | /** 107 | * Main Colorlib_Login_Customizer_Settings Instance 108 | * 109 | * Ensures only one instance of Colorlib_Login_Customizer_Settings is loaded or can be loaded. 110 | * 111 | * @since 1.0.0 112 | * @static 113 | * @see Colorlib_Login_Customizer() 114 | * @return Main Colorlib_Login_Customizer_Settings instance 115 | */ 116 | public static function instance( $parent ) { 117 | if ( is_null( self::$_instance ) ) { 118 | self::$_instance = new self( $parent ); 119 | } 120 | 121 | return self::$_instance; 122 | } // End instance() 123 | 124 | /** 125 | * Cloning is forbidden. 126 | * 127 | * @since 1.0.0 128 | */ 129 | public function __clone() { 130 | _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'colorlib-login-customizer' ), $this->parent->_version ); 131 | } // End __clone() 132 | 133 | /** 134 | * Unserializing instances of this class is forbidden. 135 | * 136 | * @since 1.0.0 137 | */ 138 | public function __wakeup() { 139 | _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'colorlib-login-customizer' ), $this->parent->_version ); 140 | } // End __wakeup() 141 | 142 | } 143 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | // load all tasks 3 | require('load-grunt-tasks')(grunt, {scope: 'devDependencies'}); 4 | 5 | grunt.initConfig({ 6 | pkg: grunt.file.readJSON('package.json'), 7 | checktextdomain: { 8 | standard: { 9 | options:{ 10 | text_domain: [ 'colorlib-login-customizer' ], //Specify allowed domain(s) 11 | create_report_file: "true", 12 | keywords: [ //List keyword specifications 13 | '__:1,2d', 14 | '_e:1,2d', 15 | '_x:1,2c,3d', 16 | 'esc_html__:1,2d', 17 | 'esc_html_e:1,2d', 18 | 'esc_html_x:1,2c,3d', 19 | 'esc_attr__:1,2d', 20 | 'esc_attr_e:1,2d', 21 | 'esc_attr_x:1,2c,3d', 22 | '_ex:1,2c,3d', 23 | '_n:1,2,4d', 24 | '_nx:1,2,4c,5d', 25 | '_n_noop:1,2,3d', 26 | '_nx_noop:1,2,3c,4d' 27 | ] 28 | }, 29 | files: [{ 30 | src: [ 31 | '**/*.php', 32 | '!**/node_modules/**', 33 | ], //all php 34 | expand: true, 35 | }], 36 | } 37 | }, 38 | makepot: { 39 | target: { 40 | options: { 41 | cwd: '', // Directory of files to internationalize. 42 | domainPath: 'languages/', // Where to save the POT file. 43 | exclude: [], // List of files or directories to ignore. 44 | include: [], // List of files or directories to include. 45 | mainFile: 'colorlib-login-customizer.php', // Main project file. 46 | potComments: '', // The copyright at the beginning of the POT file. 47 | potFilename: 'colorlib-login-customizer.po', // Name of the POT file. 48 | potHeaders: { 49 | poedit: true, // Includes common Poedit headers. 50 | 'x-poedit-keywordslist': true // Include a list of all possible gettext functions. 51 | }, // Headers to add to the generated POT file. 52 | processPot: null, // A callback function for manipulating the POT file. 53 | type: 'wp-plugin', // Type of project (wp-plugin or wp-theme). 54 | updateTimestamp: true, // Whether the POT-Creation-Date should be updated without other changes. 55 | updatePoFiles: false // Whether to update PO files in the same directory as the POT file. 56 | } 57 | } 58 | }, 59 | clean: { 60 | init: { 61 | src: ['build/'] 62 | }, 63 | build: { 64 | src: [ 65 | 'build/*', 66 | '!build/<%= pkg.name %>.zip' 67 | ] 68 | } 69 | }, 70 | copy: { 71 | build: { 72 | expand: true, 73 | src: [ 74 | '**', 75 | '!node_modules/**', 76 | '!vendor/**', 77 | '!build/**', 78 | '!readme.md', 79 | '!README.md', 80 | '!phpcs.ruleset.xml', 81 | '!Gruntfile.js', 82 | '!package.json', 83 | '!package-lock.json', 84 | '!composer.json', 85 | '!composer.lock', 86 | '!set_tags.sh', 87 | '!colorlib-login-customizer.zip', 88 | '!nbproject/**' ], 89 | dest: 'build/' 90 | } 91 | }, 92 | compress: { 93 | build: { 94 | options: { 95 | pretty: true, // Pretty print file sizes when logging. 96 | archive: '<%= pkg.name %>.zip' 97 | }, 98 | expand: true, 99 | cwd: 'build/', 100 | src: ['**/*'], 101 | dest: '<%= pkg.name %>/' 102 | } 103 | }, 104 | }); 105 | 106 | grunt.registerTask( 'i18n', ['checktextdomain', 'makepot']); 107 | // Build task 108 | grunt.registerTask( 'build-archive', [ 109 | 'i18n', 110 | 'clean:init', 111 | 'copy', 112 | 'compress:build', 113 | 'clean:init' 114 | ]); 115 | }; -------------------------------------------------------------------------------- /includes/class-colorlib-login-customizer-review.php: -------------------------------------------------------------------------------- 1 | slug = $args['slug']; 17 | } 18 | 19 | $this->value = $this->value(); 20 | 21 | $this->messages = array( 22 | 'notice' => __( "Hey, I noticed you have installed our Colorlib Login Customizer plugin for %s day(s) - that's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress? Just to help us spread the word and boost our motivation.", 'colorlib-login-customizer' ), 23 | 'rate' => __( 'Ok, you deserve it', 'colorlib-login-customizer' ), 24 | 'rated' => __( 'I already did', 'colorlib-login-customizer' ), 25 | 'no_rate' => __( 'No, not good enough', 'colorlib-login-customizer' ), 26 | ); 27 | 28 | if ( isset( $args['messages'] ) ) { 29 | $this->messages = wp_parse_args( $args['messages'], $this->messages ); 30 | } 31 | 32 | $this->init(); 33 | 34 | } 35 | 36 | public static function get_instance( $args ) { 37 | if ( null === static::$instance ) { 38 | static::$instance = new static( $args ); 39 | } 40 | 41 | return static::$instance; 42 | } 43 | 44 | private function init() { 45 | if ( ! is_admin() ) { 46 | return; 47 | } 48 | 49 | add_action( 'wp_ajax_clc_epsilon_review', array( $this, 'ajax' ) ); 50 | 51 | if ( $this->check() ) { 52 | add_action( 'admin_notices', array( $this, 'five_star_wp_rate_notice' ) ); 53 | add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) ); 54 | add_action( 'admin_print_footer_scripts', array( $this, 'ajax_script' ) ); 55 | } 56 | 57 | } 58 | 59 | private function check() { 60 | 61 | $options = get_option( 'clc-options' ); 62 | $option = isset( $options['givemereview'] ) ? $options['givemereview'] : ''; 63 | 64 | if ( 'already-rated' == $option ) { 65 | return false; 66 | } 67 | 68 | if ($this->value == $option && '' != $option) { 69 | return false; 70 | } 71 | 72 | if ( is_array( $this->when ) ) { 73 | foreach ( $this->when as $et ) { 74 | if ( $et == $this->value ) { 75 | return true; 76 | } 77 | 78 | } 79 | } 80 | 81 | } 82 | 83 | private function value() { 84 | 85 | $value = get_transient( 'clc_review' ); 86 | 87 | if ( $value ) { 88 | $current_time = time(); // or your date as well 89 | $trans_date = strtotime($value); 90 | $date_diff = $current_time - $trans_date; 91 | return round($date_diff / (60 * 60 * 24)); 92 | } 93 | 94 | $date = date( 'Y-m-d' ); 95 | set_transient( 'clc_review', $date, 24 * 30 * HOUR_IN_SECONDS ); 96 | 97 | } 98 | 99 | public function five_star_wp_rate_notice() { 100 | 101 | $url = sprintf( $this->link, $this->slug ); 102 | 103 | ?> 104 |
105 |

messages['notice'] ), $this->value ); ?>

106 |

107 | messages['rate'] ); ?> 109 | messages['rated'] ); ?> 111 | messages['no_rate'] ); ?> 113 |

114 |
115 | value; 128 | } 129 | 130 | update_option( 'clc-options', $options ); 131 | 132 | wp_die( 'ok' ); 133 | 134 | } 135 | 136 | public function enqueue() { 137 | wp_enqueue_script( 'jquery' ); 138 | } 139 | 140 | public function ajax_script() { 141 | 142 | $ajax_nonce = wp_create_nonce( "epsilon-review" ); 143 | 144 | ?> 145 | 146 | 195 | 196 | div { 164 | position: absolute; 165 | top: 0; 166 | left: 0; 167 | width: 8px; 168 | height: 8px; 169 | border-radius: 8px; 170 | border: solid 2px white; 171 | box-sizing: content-box; 172 | } 173 | 174 | .minicolors-picker { 175 | position: absolute; 176 | top: 0; 177 | left: 0; 178 | width: 18px; 179 | height: 2px; 180 | background: white; 181 | border: solid 1px black; 182 | margin-top: -2px; 183 | box-sizing: content-box; 184 | } 185 | 186 | /* Swatches */ 187 | .minicolors-swatches, 188 | .minicolors-swatches li { 189 | margin: 5px 0 3px 5px; 190 | padding: 0; 191 | list-style: none; 192 | overflow: hidden; 193 | } 194 | 195 | .minicolors-swatches .minicolors-swatch { 196 | position: relative; 197 | float: left; 198 | cursor: pointer; 199 | margin:0 4px 0 0; 200 | } 201 | 202 | .minicolors-with-opacity .minicolors-swatches .minicolors-swatch { 203 | margin-right: 7px; 204 | } 205 | 206 | .minicolors-swatch.selected { 207 | border-color: #000; 208 | } 209 | 210 | /* Inline controls */ 211 | .minicolors-inline { 212 | display: inline-block; 213 | } 214 | 215 | .minicolors-inline .minicolors-input { 216 | display: none !important; 217 | } 218 | 219 | .minicolors-inline .minicolors-panel { 220 | position: relative; 221 | top: auto; 222 | left: auto; 223 | box-shadow: none; 224 | z-index: auto; 225 | display: inline-block; 226 | } 227 | 228 | /* Default theme */ 229 | .minicolors-theme-default .minicolors-swatch { 230 | top: 5px; 231 | left: 5px; 232 | width: 18px; 233 | height: 18px; 234 | } 235 | .minicolors-theme-default .minicolors-swatches .minicolors-swatch { 236 | margin-bottom: 2px; 237 | top: 0; 238 | left: 0; 239 | width: 18px; 240 | height: 18px; 241 | } 242 | .minicolors-theme-default.minicolors-position-right .minicolors-swatch { 243 | left: auto; 244 | right: 5px; 245 | } 246 | .minicolors-theme-default.minicolors { 247 | width: auto; 248 | display: inline-block; 249 | } 250 | .minicolors-theme-default .minicolors-input { 251 | height: 20px; 252 | width: auto; 253 | display: inline-block; 254 | padding-left: 26px; 255 | } 256 | .minicolors-theme-default.minicolors-position-right .minicolors-input { 257 | padding-right: 26px; 258 | padding-left: inherit; 259 | } 260 | 261 | /* Bootstrap theme */ 262 | .minicolors-theme-bootstrap .minicolors-swatch { 263 | z-index: 2; 264 | top: 3px; 265 | left: 3px; 266 | width: 28px; 267 | height: 28px; 268 | border-radius: 3px; 269 | } 270 | .minicolors-theme-bootstrap .minicolors-swatches .minicolors-swatch { 271 | margin-bottom: 2px; 272 | top: 0; 273 | left: 0; 274 | width: 20px; 275 | height: 20px; 276 | } 277 | .minicolors-theme-bootstrap .minicolors-swatch-color { 278 | border-radius: inherit; 279 | } 280 | .minicolors-theme-bootstrap.minicolors-position-right > .minicolors-swatch { 281 | left: auto; 282 | right: 3px; 283 | } 284 | .minicolors-theme-bootstrap .minicolors-input { 285 | float: none; 286 | padding-left: 44px; 287 | } 288 | .minicolors-theme-bootstrap.minicolors-position-right .minicolors-input { 289 | padding-right: 44px; 290 | padding-left: 12px; 291 | } 292 | .minicolors-theme-bootstrap .minicolors-input.input-lg + .minicolors-swatch { 293 | top: 4px; 294 | left: 4px; 295 | width: 37px; 296 | height: 37px; 297 | border-radius: 5px; 298 | } 299 | .minicolors-theme-bootstrap .minicolors-input.input-sm + .minicolors-swatch { 300 | width: 24px; 301 | height: 24px; 302 | } 303 | .minicolors-theme-bootstrap .minicolors-input.input-xs + .minicolors-swatch { 304 | width: 18px; 305 | height: 18px; 306 | } 307 | .input-group .minicolors-theme-bootstrap:not(:first-child) .minicolors-input { 308 | border-top-left-radius: 0; 309 | border-bottom-left-radius: 0; 310 | } 311 | 312 | /* Semantic Ui theme */ 313 | .minicolors-theme-semanticui .minicolors-swatch { 314 | top: 0; 315 | left: 0; 316 | padding: 18px; 317 | } 318 | .minicolors-theme-semanticui input { 319 | text-indent: 30px; 320 | } 321 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Custom Login Page Customizer by Colorlib === 2 | Contributors: silkalns 3 | Tags: customize login, login, custom login, customize wordpress login, wordpress login 4 | Requires at least: 4.7 5 | Tested up to: 6.9 6 | Stable tag: 1.3.4 7 | License: GPLv2 or later 8 | License URI: http://www.gnu.org/licenses/gpl-3.0.html 9 | 10 | Colorlib Login Customizer by Colorlib is a plugin that helps you personalize your login form directly from the Customizer. 11 | 12 | == Description == 13 | 14 | Custom Login Page Customizer by Colorlib is an awesome and intuitive login page plugin that helps you personalize your login page and login form directly from the Customizer. Custom Login Page Customizer fully supports the Live Customizer feature and you can see all the changes in real time on your login page and edit them. 15 | 16 | All this plugin’s tools and options can be found by going to Appearance > Customize > Custom Login Page Customizer. There you have templates you can use on your login page, custom login page logo, custom login page background options, custom login page form customizations, login form custom width, login form padding and borders, and more all leading to you having a brand new and custom login page. 17 | 18 | Custom Login Page Customizer is without doubt one of the easiest to use WordPress plugins that allows the customization of the login page and login form. It was designed and developed to be powerful and user friendly so it can be enjoyed by both beginner and advanced developers. With Custom Login Page Customizer you can build a custom login page and custom login form in a matter of seconds, unlike some other login customizer plugins. Custom Login Page Customizer marks the end of a boring and bland login page and login form as you will be able to fine tune every aspect of the form to match your style and view and create a unique and custom login page. 19 | 20 | Build and personalize your WordPress login page and login form from start to finish. Custom Login Page Customizer has the following features: 21 | 22 | • Custom login page logo options: you can add a custom login page logo and set up its height and weight. 23 | • Custom login page and login form background options: from here you can upload a background image or change the background’s color. 24 | • Custom login form options: you can change the login form’s width and height, add a background image, change the background color, add padding and borders, and change the login form’s field background color, width, and margin. 25 | • Miscellaneous: in here you will find the options to change the login form button’s background, color, hover state, border, shadow, and the link’s color and hover color. 26 | 27 | Custom Login Page Customizer by Colorlib detailed features: 28 | 29 | - Custom login page templates 30 | - Hide/show login logo from login page 31 | - Show/hide the logo text from login page 32 | - Custom logo on login page 33 | - Change logo width on login page 34 | - Change logo height on login page 35 | - Change number of columns on your login page 36 | - Customize width of the columns on your login page 37 | - Change login form column alignment 38 | - Customize login form vertical alignment 39 | - Customize login form horizontal alignment 40 | - Customize background color on the login page 41 | - Add a custom background image on login page 42 | - Customize login form column background color 43 | - Add a custom background image for login form column 44 | - Customize login form width 45 | - Customize login form width 46 | - Add custom background image for login form 47 | - Customize the background color for login form 48 | - Customize login form border radius 49 | - Customize login form fields’ width 50 | - Customize login form fields’ margin 51 | - Customize login form fields’ border 52 | - Customize login form fields’ border radius 53 | - Customize login form fields’ background color 54 | - Customize login form fields’ text color 55 | - Customize login form fields’ label color 56 | - Customize login form username label 57 | - Customize login form password label 58 | - Show/hide the links on login page under the login form 59 | - Customize login form button background color 60 | - Customize login form button hover background color 61 | - Customize login form button border color 62 | - Customize login form button border color on hover 63 | - Customize login form button shadow 64 | - Customize login form button text shadow 65 | - Customize login form links color 66 | - Customize login form links color on hover 67 | - Hide/Show ‘Remember me?’ option on login form 68 | - Custom CSS option to customize further the login form and login page 69 | 70 | Build and personalize your WordPress login form from start to finish. Colorlib Login Customizer has the following features: 71 | 72 | - Logo options: you can add a custom logo and set up its height and weight. 73 | - Background options: from here you can upload a background image or change the background’s color. 74 | - Form options: you can change the form’s width and height, add a background image, change the background color, add padding and borders, and change the form’s field background color, width, and margin. 75 | - Miscellaneous: in here you will find the options to change the button’s background, color, hover state, border, shadow, and the link’s color and hover color. 76 | 77 | = Further Reading = 78 | 79 | This plugin is developed and maintained by Colorlib. Which is well know for their free WordPress themes. However, now they are looking to extend their presence in plugin development and believe that Colorlib Login Customizer is a great way to start. 80 | 81 | If you are new to WordPress and want to learn more we have got you covered. Colorlib will teach you how to start a blog or create a website and much more. If you are already familiar with WordPress you likely want to learn how to make it faster and more reliable. That's when you want to look into hosting and more specifically WordPress hosting. 82 | 83 | If you enjoy using Colorlib Login Customizer for WordPress please leave a [positive feedback](https://wordpress.org/support/plugin/colorlib-login-customiezr/reviews/?filter=5). We are committed to make it the best Login Customizer plugin for WordPress. 84 | 85 | 86 | == Installation == 87 | 88 | 1. Download the plugin (.zip file) on your hard drive. 89 | 2. Unzip the zip file contents. 90 | 3. Upload the `colorlib-login-customizer` folder to the `/wp-content/plugins/` directory. 91 | 4. Activate the plugin through the 'Plugins' menu in WordPress. 92 | 5. A new sub menu item `Colorlib Login Customizer` will appear in your main Settings menu. 93 | 94 | == Changelog == 95 | 96 | = 1.3.4 - 05.06.2025 = 97 | Fixed: Textdomain fix for wordpress 6.8+ ( [#179](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/179) ) 98 | 99 | = 1.3.3 - 03.02.2025 = 100 | Fixed: Textdomain fix for wordpress 6.7+ ( [#179](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/179) ) 101 | Fixed: Deprecated: Hook login_headertitle ( [#178](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/178) ) 102 | 103 | = 1.3.2 - 27.03.2024 = 104 | Fixed: Php 8 deprecations ( [#169](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/169) ) 105 | Fixed: "Remember me" label not aligned properly for users display( [#166](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/166) ) 106 | Fixed: Form alignment options switched( [#165](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/165) ) 107 | Fixed: The live preview doesn’t show "Register" link ( [#163](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/163) ) 108 | Fixed: Updated deprecated jquery & updated minicolors js library ( [#159](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/159) ) 109 | Fixed: Added plugin name in "Rate us" notice. ( [#149](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/149) ) 110 | Fixed: Show image only on tempalte no.4 does not display the logo image. ( [#135](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/135) ) 111 | Fixed: Background color that will not apply on half page form templates ( [#136](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/136) ) 112 | Fixed: Vertical scrollable login, reset and register forms ( [#131](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/131) ) 113 | Fixed: Bigger logos on mobile/small tablet devices stretching the login page. ( [#43](https://github.com/ColorlibHQ/colorlib-login-customizer/issues/43) ) 114 | 115 | = 1.3.1 - 08.02.2022 = 116 | Fixed: Form placement ( https://wordpress.org/support/topic/the-login-area-doesnt-center-fix-not-working/ ) 117 | 118 | = 1.3.00 - 10.05.2021 = 119 | Added : Background image link ( https://github.com/ColorlibHQ/colorlib-login-customizer/issues/115 ) 120 | 121 | = 1.2.99 - 08.04.2021= 122 | Fixed: An issue where the link color hover pallete would not display properly (https://github.com/ColorlibHQ/colorlib-login-customizer/issues/139) 123 | Fixed: An issue where the logo would be outside of the login box on a selected template ( https://github.com/ColorlibHQ/colorlib-login-customizer/issues/134) 124 | 125 | = 1.2.98 = 126 | * Compatibility with jQuery 3.0 127 | 128 | = 1.2.97 = 129 | * Hide logo settings if hide logo is toggled on 130 | * Add option to use both image logo and text 131 | 132 | = 1.2.96 = 133 | * Compatibility fix with All In One WP Security plugin 134 | * Customizer toggle bug fix 135 | * Review dismiss fix 136 | 137 | = 1.2.95 = 138 | * Review request bug fix 139 | * Review save bug fix 140 | 141 | = 1.2.94 = 142 | * Minor responsive fixes 143 | 144 | = 1.2.93 = 145 | * Removed news dashboard widget 146 | 147 | = 1.2.92 = 148 | * Update for possibility to add links inside certain form texts 149 | 150 | = 1.2.91 = 151 | * Added possibility to add links inside certain form texts 152 | * Updated deprecated filter login_headertitle 153 | * Added option to change login page title 154 | 155 | = 1.2.9 = 156 | * Update toggles design 157 | 158 | = 1.2.8 = 159 | * Responsive view fixes 160 | * Updated plugin headers 161 | 162 | = 1.2.7 = 163 | * Added options to edit register form 164 | * Added options to edit lost password form 165 | 166 | = 1.2.6 = 167 | * Customizer CSS editor full height 168 | * Apply login form settings to registration form 169 | * Removed duplicate control for logo text 170 | 171 | = 1.2.5 = 172 | * Remove uninstall feedback 173 | 174 | = 1.2.4 = 175 | * Fixed https://github.com/ColorlibHQ/colorlib-login-customizer/issues/30 176 | * Fixed https://github.com/ColorlibHQ/colorlib-login-customizer/issues/41 177 | * Added https://github.com/ColorlibHQ/colorlib-login-customizer/issues/27 178 | 179 | = 1.2.3 = 180 | * Fixed `Logo Url` setting 181 | * Added `Logo Title` setting 182 | 183 | = 1.2.2 = 184 | * Added the possibility to change the `Remember Me` and `Log In` texts 185 | 186 | = 1.2.1 = 187 | * Minor tweaks & version bump 188 | 189 | = 1.2.0 = 190 | * Implemented everything from here: https://github.com/puikinsh/colorlib-login-customizer/milestone/1?closed=1 191 | 192 | = 1.1 = 193 | * Changed templates functionality 194 | * Added new layout options 195 | * Fixed live preview editing 196 | * Fixed minor bugs 197 | 198 | = 1.0 = 199 | * Initial release 200 | -------------------------------------------------------------------------------- /includes/login-template.php: -------------------------------------------------------------------------------- 1 | get_defaults(); 12 | $clc_options = get_option( 'clc-options', array() ); 13 | $clc_options = apply_filters( 'clc_backwards_compatibility_front', wp_parse_args( $clc_options, $clc_defaults ) ); 14 | 15 | /** 16 | * Output the login page header. 17 | * 18 | * @param string $title Optional. WordPress login Page title to display in the `` element. 19 | * Default 'Log In'. 20 | * @param string $message Optional. Message to display in header. Default empty. 21 | * @param string $wp_error Optional. The error to pass. Default empty. 22 | */ 23 | function clc_login_header( $title = 'Log In', $message = '', $wp_error = '' ) { 24 | 25 | global $error, $action; 26 | 27 | if ( empty( $wp_error ) ) { 28 | $wp_error = new WP_Error(); 29 | } 30 | 31 | $login_title = get_bloginfo( 'name', 'display' ); 32 | 33 | /* translators: Login screen title. 1: Login screen name, 2: Network or site name */ 34 | $login_title = sprintf( __( '%1$s ‹ %2$s — WordPress', 'colorlib-login-customizer' ), $title, $login_title ); 35 | /** 36 | * Filters the title tag content for login page. 37 | * 38 | * @since 4.9.0 39 | * 40 | * @param string $login_title The page title, with extra context added. 41 | * @param string $title The original page title. 42 | */ 43 | $login_title = apply_filters( 'login_title', $login_title, $title ); 44 | ?><!DOCTYPE html> 45 | <head> 46 | <title><?php echo esc_attr( $login_title ); ?> 47 | 64 | 65 | 66 | 146 | 147 | 148 |
149 |
150 |
151 |
152 |
153 | 161 | 162 |
163 | 164 |

165 | 166 | 167 | 168 | 169 |

170 | 171 | 192 | 193 | 213 | 214 | 229 | 230 | 249 |

250 | 251 | 252 | 255 | 256 | 259 | 260 |

261 |
262 | 263 | 264 |
265 | 268 | 269 | 270 | 271 | -------------------------------------------------------------------------------- /includes/class-colorlib-login-customizer.php: -------------------------------------------------------------------------------- 1 | _version = $version; 115 | $this->_token = 'colorlib-login-customizer'; 116 | $this->base = 'clc_'; 117 | $this->key_name = 'clc-options'; 118 | 119 | // Load plugin environment variables 120 | $this->file = $file; 121 | $this->dir = dirname( $this->file ); 122 | $this->assets_dir = trailingslashit( $this->dir ) . 'assets'; 123 | $this->assets_url = esc_url( trailingslashit( plugins_url( '/assets/', $this->file ) ) ); 124 | 125 | $this->script_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 126 | // Remove this after Grunt 127 | $this->script_suffix = ''; 128 | 129 | register_activation_hook( $this->file, array( $this, 'install' ) ); 130 | 131 | add_action( 'admin_init', array( $this, 'redirect_customizer' ) ); 132 | 133 | // Load customizer settings 134 | add_action( 'customize_register', array( $this, 'load_customizer' ), 10, 1 ); 135 | 136 | add_filter( 'template_include', array( $this, 'change_template_if_necessary' ), 99 ); 137 | 138 | // Handle localisation 139 | add_action( 'init', array( $this, 'load_localisation' ), 0 ); 140 | 141 | // Generate plugins css 142 | add_action( 'init', array( $this, 'load_customizer_css' ) ); 143 | 144 | // Compatibility fix with All In One WP Security 145 | add_action('init', array($this, 'clc_aio_wp_security_comp_fix')); 146 | 147 | } // End __construct () 148 | 149 | /** 150 | * Load the customizer controls 151 | * 152 | * @param $manager 153 | */ 154 | public function load_customizer( $manager ) { 155 | new Colorlib_Login_Customizer_Customizer( $this, $manager ); 156 | } 157 | 158 | public function load_customizer_css() { 159 | new Colorlib_Login_Customizer_CSS_Customization(); 160 | } 161 | 162 | /** 163 | * Hook to redirect the page for the Customizer. 164 | * 165 | * @access public 166 | * @return void 167 | */ 168 | public function redirect_customizer() { 169 | 170 | if ( ! empty( $_GET['page'] ) ) { // Input var okay. 171 | if ( 'colorlib-login-customizer_settings' === $_GET['page'] ) { // Input var okay. 172 | 173 | // Generate the redirect url. 174 | $url = add_query_arg( 175 | array( 176 | 'autofocus[panel]' => 'clc_main_panel', 177 | ), 178 | admin_url( 'customize.php' ) 179 | ); 180 | 181 | wp_safe_redirect( $url ); 182 | 183 | } 184 | } 185 | } 186 | 187 | /** 188 | * Load plugin localisation 189 | * 190 | * @access public 191 | * @since 1.0.0 192 | * @return void 193 | */ 194 | public function load_localisation() { 195 | load_plugin_textdomain( 'colorlib-login-customizer', false, dirname( plugin_basename( $this->file ) ) . '/languages/' ); 196 | } // End load_localisation () 197 | 198 | /** 199 | * Main Colorlib_Login_Customizer Instance 200 | * 201 | * Ensures only one instance of Colorlib_Login_Customizer is loaded or can be loaded. 202 | * 203 | * @since 1.0.0 204 | * @static 205 | * @see Colorlib_Login_Customizer() 206 | * @return Main Colorlib_Login_Customizer instance 207 | */ 208 | public static function instance( $file = '', $version = '1.0.0' ) { 209 | if ( is_null( self::$_instance ) ) { 210 | self::$_instance = new self( $file, $version ); 211 | } 212 | 213 | return self::$_instance; 214 | } // End instance () 215 | 216 | /** 217 | * Cloning is forbidden. 218 | * 219 | * @since 1.0.0 220 | */ 221 | public function __clone() { 222 | _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'colorlib-login-customizer' ), $this->_version ); 223 | } // End __clone () 224 | 225 | /** 226 | * Unserializing instances of this class is forbidden. 227 | * 228 | * @since 1.0.0 229 | */ 230 | public function __wakeup() { 231 | _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'colorlib-login-customizer' ), $this->_version ); 232 | } // End __wakeup () 233 | 234 | /** 235 | * Installation. Runs on activation. 236 | * 237 | * @access public 238 | * @since 1.0.0 239 | * @return void 240 | */ 241 | public function install() { 242 | $this->_log_version_number(); 243 | 244 | // Backward compatibility 245 | $options = get_option( $this->key_name, array() ); 246 | if ( $options ) { 247 | if ( isset( $options['templates'] ) && '01' == $options['templates'] ) { 248 | $options['templates'] = 'default'; 249 | $options['columns'] = 2; 250 | } 251 | 252 | update_option( $this->key_name, $options ); 253 | } 254 | 255 | } // End install () 256 | 257 | /** 258 | * Log the plugin version number. 259 | * 260 | * @access public 261 | * @since 1.0.0 262 | * @return void 263 | */ 264 | private function _log_version_number() { 265 | update_option( $this->_token . '_version', $this->_version ); 266 | } // End _log_version_number () 267 | 268 | 269 | // Let's hack a little bit 270 | public function change_template_if_necessary( $template ) { 271 | 272 | if ( is_customize_preview() && isset( $_REQUEST['colorlib-login-customizer-customization'] ) && is_user_logged_in() ) { 273 | $new_template = plugin_dir_path( __FILE__ ) . 'login-template.php'; 274 | return $new_template; 275 | } 276 | 277 | return $template; 278 | } 279 | 280 | public function get_defaults(){ 281 | return array( 282 | /** 283 | * Templates 284 | */ 285 | 'templates' => 'default', 286 | /** 287 | * Layout 288 | */ 289 | 'columns' => '1', 290 | 'columns-width' => array( 291 | 'left' => 6, 292 | 'right' => 6, 293 | ), 294 | 'form-column-align' => '3', 295 | 'form-vertical-align' => '2', 296 | /** 297 | * Logo section 298 | */ 299 | 'logo-settings' => 'show-image-only', 300 | 'logo-url' => site_url(), 301 | 'custom-logo' => '', 302 | 'logo-text-color' => '#444', 303 | 'logo-text-size' => '20', 304 | 'logo-text-color-hover' => '#00a0d2', 305 | 'logo-width' => '', 306 | 'logo-height' => '', 307 | /** 308 | * Background section 309 | */ 310 | 'custom-background' => '', 311 | 'custom-background-link' => '', 312 | 'custom-background-form' => '', 313 | 'custom-background-color' => '', 314 | 'custom-background-color-form' => '', 315 | /** 316 | * Form section 317 | */ 318 | 'form-width' => '', 319 | 'form-height' => '', 320 | 'form-background-image' => '', 321 | 'form-background-color' => '#fff', 322 | 'form-padding' => '', 323 | 'form-border' => '', 324 | 'form-border-radius' => '', 325 | 'form-shadow' => '', 326 | 'form-field-width' => '', 327 | 'form-field-margin' => '', 328 | 'form-field-border-radius' => 'unset', 329 | 'form-field-border' => '1px solid #ddd', 330 | 'form-field-background' => '', 331 | 'form-field-color' => '', 332 | 'username-label' => 'Username or Email Address', 333 | 'password-label' => 'Password', 334 | 'rememberme-label' => 'Remember Me', 335 | 'lost-password-text' => 'Lost your password?', 336 | 'back-to-text' => '← Back to %s', 337 | 'register-link-label' => 'Register', 338 | 339 | 'login-label' => 'Log In', 340 | 'form-label-color' => '', 341 | 'hide-extra-links' => false, 342 | /** 343 | * Registration section 344 | */ 345 | 'register-username-label' => 'Username', 346 | 'register-email-label' => 'Email', 347 | 'register-button-label' => 'Register', 348 | 'register-confirmation-email' => 'Registration confirmation will be emailed to you.', 349 | 'login-link-label' => 'Log in', 350 | /** 351 | * Lost Password 352 | */ 353 | 'lostpassword-username-label' => 'Username or Email Address', 354 | 'lostpassword-button-label' => 'Get New Password', 355 | /** 356 | * Others section ( misc ) 357 | */ 358 | 'button-background' => '', 359 | 'button-background-hover' => '', 360 | 'button-border-color' => '', 361 | 'button-border-color-hover' => '', 362 | 'button-shadow' => '', 363 | 'button-text-shadow' => '', 364 | 'button-color' => '', 365 | 'link-color' => '', 366 | 'link-color-hover' => '', 367 | 'hide-rememberme' => false, 368 | /** 369 | * Custom CSS 370 | */ 371 | 'custom-css' => '', 372 | /** 373 | * Reset value is not dynamic 374 | */ 375 | 'initial' => 'initial', 376 | ); 377 | } 378 | 379 | /** 380 | * All In One WP Security customizer fix 381 | * 382 | * @since 1.2.96 383 | */ 384 | public function clc_aio_wp_security_comp_fix() { 385 | 386 | if ( ! is_customize_preview() ){ 387 | return; 388 | } 389 | 390 | if ( ! class_exists( 'AIO_WP_Security' ) ){ 391 | return; 392 | } 393 | 394 | global $aio_wp_security; 395 | 396 | if( ! is_a( $aio_wp_security, 'AIO_WP_Security' ) ) { 397 | return; 398 | } 399 | 400 | if( remove_action( 'wp_loaded', array( $aio_wp_security, 'aiowps_wp_loaded_handler' ) ) ) { 401 | add_filter( 'option_aio_wp_security_configs', array( $this, 'clc_aio_wp_security_filter_options' ) ); 402 | } 403 | } 404 | 405 | /** 406 | * Filter options aio_wp_security_configs. 407 | * 408 | * @since 1.2.96 409 | */ 410 | public function clc_aio_wp_security_filter_options( $option ) { 411 | unset( $option['aiowps_enable_rename_login_page'] ); 412 | return $option; 413 | } 414 | } 415 | -------------------------------------------------------------------------------- /assets/js/clc-preview.js: -------------------------------------------------------------------------------- 1 | ( function( $ ) { 2 | 3 | var clcCustomCSS = { 4 | selectors: {}, 5 | settings: {}, 6 | style: '', 7 | init: function( settings, selectors ) { 8 | this.selectors = selectors; 9 | this.settings = settings; 10 | 11 | this.style = $( '#clc-style' ); 12 | this._binds(); 13 | }, 14 | _binds: function() { 15 | var self = this; 16 | $.each( self.settings, function( index, setting ) { 17 | wp.customize( setting.name, function( value ) { 18 | value.bind( function( to ) { 19 | self.settings[ index ].value = to; 20 | self.createCSSLines(); 21 | } ); 22 | } ); 23 | }); 24 | }, 25 | createCSSLines: function() { 26 | var style = '', 27 | self = this; 28 | $.each( self.selectors, function( index, selector ) { 29 | var cssLine = index + '{'; 30 | $.each( selector, function( index, option ) { 31 | cssLine = cssLine + self.generateCSSLine( option ); 32 | }); 33 | style = style + cssLine + '}'; 34 | }); 35 | 36 | self.style.html( style ); 37 | 38 | }, 39 | generateCSSLine: function( option ) { 40 | 41 | var line = this.settings[ option ].attribute + ':'; 42 | 43 | if ( '' === this.settings[ option ].value && 'custom-logo' !== option ) { 44 | return ''; 45 | } 46 | if ( undefined === this.settings[ option ].attribute || undefined === this.settings[ option ].value ) { 47 | return ''; 48 | } 49 | 50 | if ( $.inArray( this.settings[ option ].attribute, [ 'width', 'min-width', 'max-width', 'background-size', 'height', 'min-height', 'max-height', 'font-size' ] ) >= 0 ) { 51 | line += this.settings[ option ].value + 'px'; 52 | 53 | } else if ( 'background-image' === this.settings[option].attribute ) { 54 | if ( this.settings[option].value.length ) { 55 | line += 'url(' + this.settings[option].value + ') !important;'; 56 | } else { 57 | line += 'url(wp-admin/images/wordpress-logo.svg) !important;'; 58 | } 59 | } else if ( 'display' === this.settings[option].attribute ) { 60 | // We replaced toggle with select so we need to make sure 61 | // h1 displays correctly 62 | if ( 'clc-options[logo-settings]' != this.settings[option].name ) { 63 | if ( this.settings[option].value ) { 64 | line += 'none'; 65 | } else { 66 | line += 'block'; 67 | } 68 | } else { 69 | if ( 'hide-logo' === this.settings[option].value ) { 70 | line += 'none'; 71 | } else { 72 | line += 'block'; 73 | } 74 | } 75 | } else { 76 | line += this.settings[ option ].value; 77 | } 78 | line += ';'; 79 | 80 | return line; 81 | } 82 | }; 83 | 84 | clcCustomCSS.init( CLC.settings, CLC.selectors ); 85 | 86 | // Live edits 87 | /* Columns */ 88 | wp.customize( 'clc-options[columns]', function( value ) { 89 | value.bind( function( to ) { 90 | if ( '2' === to ) { 91 | $( 'body' ).addClass( 'ml-half-screen' ); 92 | } else { 93 | $( 'body' ).removeClass( 'ml-half-screen' ); 94 | } 95 | } ); 96 | } ); 97 | 98 | // Change classes base on what logo settings are enabled 99 | wp.customize( 'clc-options[logo-settings]', function ( settings ) { 100 | settings.bind( function ( value ) { 101 | if ( 'show-text-only' === value ) { 102 | $( 'body' ).removeClass( 'clc-both-logo' ).addClass( 'clc-text-logo' ); 103 | } else if ( 'use-both' === value ) { 104 | $( 'body' ).removeClass( 'clc-text-logo' ).addClass( 'clc-both-logo' ); 105 | } else { 106 | $( 'body' ).removeClass( 'clc-text-logo clc-both-logo'); 107 | } 108 | } ); 109 | } ); 110 | 111 | 112 | wp.customize( 'clc-options[logo-title]', function( value ) { 113 | value.bind( function( to ) { 114 | $( '#logo-text' ).text( to ); 115 | } ); 116 | } ); 117 | 118 | // logo title 119 | wp.customize( 'clc-options[logo-title]', function( value ) { 120 | value.bind( function( to ) { 121 | $( '#clc-logo-link' ).attr( 'title', to ); 122 | } ); 123 | } ); 124 | 125 | /* Column Align */ 126 | wp.customize( 'clc-options[form-column-align]', function( value ) { 127 | value.bind( function( to ) { 128 | $( 'body' ).removeClass( 'ml-login-align-1 ml-login-align-2 ml-login-align-3 ml-login-align-4' ).addClass( 'ml-login-align-' + to ); 129 | } ); 130 | } ); 131 | 132 | /* Column Vertical Align */ 133 | wp.customize( 'clc-options[form-vertical-align]', function( value ) { 134 | value.bind( function( to ) { 135 | $( 'body' ).removeClass( 'ml-login-vertical-align-1 ml-login-vertical-align-2 ml-login-vertical-align-3' ).addClass( 'ml-login-vertical-align-' + to ); 136 | } ); 137 | } ); 138 | 139 | /* Column Horizontal Align */ 140 | wp.customize( 'clc-options[form-horizontal-align]', function( value ) { 141 | value.bind( function( to ) { 142 | $( 'body' ).removeClass( 'ml-login-horizontal-align-1 ml-login-horizontal-align-2 ml-login-horizontal-align-3' ).addClass( 'ml-login-horizontal-align-' + to ); 143 | } ); 144 | } ); 145 | 146 | // Custom CSS 147 | wp.customize( 'clc-options[custom-css]', function( value ) { 148 | value.bind( function( to ) { 149 | $( '#clc-custom-css' ).text( to ); 150 | } ); 151 | } ); 152 | 153 | // Username label 154 | wp.customize( 'clc-options[username-label]', function( value ) { 155 | value.bind( function( to ) { 156 | $( '#clc-username-label' ).html( to ); 157 | } ); 158 | } ); 159 | 160 | // Password label 161 | wp.customize( 'clc-options[password-label]', function( value ) { 162 | value.bind( function( to ) { 163 | $( '#clc-password-label' ).text( to ); 164 | } ); 165 | } ); 166 | 167 | // Remember Me label 168 | wp.customize( 'clc-options[rememberme-label]', function( value ) { 169 | value.bind( function( to ) { 170 | $( '#clc-rememberme-label' ).text( to ); 171 | } ); 172 | } ); 173 | 174 | // Logo url 175 | wp.customize( 'clc-options[logo-url]', function( value ) { 176 | value.bind( function( to ) { 177 | $( 'a#clc-logo-link' ).attr('href', to ); 178 | } ); 179 | } ); 180 | 181 | // Lost password text 182 | wp.customize( 'clc-options[lost-password-text]', function( value ) { 183 | value.bind( function( to ) { 184 | $( '#clc-lost-password-text' ).text( to ); 185 | } ); 186 | } ); 187 | 188 | // Back to site text 189 | wp.customize( 'clc-options[back-to-text]', function( value ) { 190 | value.bind( function( to ) { 191 | $( '#clc-back-to-text' ).html( '← ' + to ); 192 | } ); 193 | } ); 194 | 195 | // Login label 196 | wp.customize( 'clc-options[login-label]', function( value ) { 197 | value.bind( function( to ) { 198 | if( ! to ) { 199 | return; 200 | } 201 | $( '#loginform input[name="wp-submit"]' ).val( to ); 202 | } ); 203 | } ); 204 | 205 | // Register username label 206 | wp.customize( 'clc-options[register-username-label]', function( value ) { 207 | value.bind( function( to ) { 208 | $( '#clc-register-sername-label' ).html( to ); 209 | } ); 210 | } ); 211 | 212 | // Register email label 213 | wp.customize( 'clc-options[register-email-label]', function( value ) { 214 | value.bind( function( to ) { 215 | $( '#clc-register-email-label' ).html( to ); 216 | } ); 217 | } ); 218 | 219 | // Register confirmation text 220 | wp.customize( 'clc-options[register-confirmation-email]', function( value ) { 221 | value.bind( function( to ) { 222 | $( '#reg_passmail' ).html( to ); 223 | } ); 224 | } ); 225 | 226 | 227 | // Register button text 228 | wp.customize( 'clc-options[register-button-label]', function( value ) { 229 | value.bind( function( to ) { 230 | if( ! to ) { 231 | return; 232 | } 233 | $( '#registerform input[name="wp-submit"]' ).val( to ); 234 | } ); 235 | } ); 236 | 237 | // Register link text 238 | wp.customize( 'clc-options[register-link-label]', function( value ) { 239 | value.bind( function( to ) { 240 | if( ! to ) { 241 | return; 242 | } 243 | $( '#register-link-label' ).text( to ); 244 | } ); 245 | } ); 246 | 247 | // Login link text 248 | wp.customize( 'clc-options[login-link-label]', function( value ) { 249 | value.bind( function( to ) { 250 | if( ! to ) { 251 | return; 252 | } 253 | $( '#login-link-label' ).text( to ); 254 | } ); 255 | } ); 256 | 257 | // Logo width 258 | wp.customize( 'clc-options[logo-width]', function ( value ) { 259 | 260 | value.bind( function ( to ) { 261 | if ( !to ) { 262 | return; 263 | } 264 | 265 | 266 | var h_size = wp.customize( 'clc-options[logo-height]' )._value + 'px '; 267 | var pad_t = ( 30 + parseInt(wp.customize( 'clc-options[logo-height]' )._value) ) + 'px '; 268 | var mar_top = ( 0 - (30 + parseInt(wp.customize( 'clc-options[logo-height]' )._value) )) + 'px '; 269 | var w_size = to + 'px '; 270 | 271 | $( '.login.clc-both-logo h1 a' ).css( { 272 | 'margin-top': mar_top, 273 | 'background-size': w_size + h_size, 274 | 'padding-top': pad_t 275 | } ); 276 | } ); 277 | } ); 278 | 279 | // Logo height 280 | wp.customize( 'clc-options[logo-height]', function ( value ) { 281 | 282 | value.bind( function ( to ) { 283 | if ( !to ) { 284 | return; 285 | } 286 | 287 | var w_size = wp.customize( 'clc-options[logo-width]' )._value + 'px '; 288 | var h_size = to + 'px'; 289 | 290 | $( '.login.clc-both-logo h1 a' ).css( { 291 | 'margin-top': ( 0 - (30 + parseInt(to)) ) + 'px', 292 | 'background-size': w_size + h_size, 293 | 'padding-top': ( 30 + parseInt(to) ) + 'px' 294 | } ); 295 | } ); 296 | } ); 297 | 298 | // Lost password button text 299 | wp.customize( 'clc-options[lostpassword-button-label]', function( value ) { 300 | value.bind( function( to ) { 301 | if( ! to ) { 302 | return; 303 | } 304 | $( '#lostpasswordform input[name="wp-submit"]' ).val( to ); 305 | } ); 306 | } ); 307 | 308 | // Username label 309 | wp.customize( 'clc-options[lostpassword-username-label]', function( value ) { 310 | value.bind( function( to ) { 311 | $( '#lostpasswordform label span' ).html( to ); 312 | } ); 313 | } ); 314 | 315 | 316 | // Columns width 317 | wp.customize( 'clc-options[columns-width]', function( value ) { 318 | value.bind( function( to ) { 319 | var customCSS = '', 320 | leftWidth, 321 | rightWidth; 322 | if ( '' !== to && undefined !== to.left && undefined !== to.right ) { 323 | leftWidth = ( 100 / 12 )*parseInt( to.left, 10 ); 324 | rightWidth = ( 100 / 12 )*parseInt( to.right, 10 ); 325 | customCSS = '.ml-half-screen.ml-login-align-3 .ml-container .ml-extra-div,.ml-half-screen.ml-login-align-1 .ml-container .ml-form-container{ width:' + leftWidth + '%; }'; 326 | customCSS += '.ml-half-screen.ml-login-align-4 .ml-container .ml-extra-div,.ml-half-screen.ml-login-align-2 .ml-container .ml-form-container{ flex-basis:' + leftWidth + '%; }'; 327 | 328 | customCSS += '.ml-half-screen.ml-login-align-3 .ml-container .ml-form-container,.ml-half-screen.ml-login-align-1 .ml-container .ml-extra-div{ width:' + rightWidth + '%; }'; 329 | customCSS += '.ml-half-screen.ml-login-align-4 .ml-container .ml-form-container,.ml-half-screen.ml-login-align-2 .ml-container .ml-extra-div{ flex-basis:' + rightWidth + '%; }'; 330 | 331 | $( '#clc-columns-style' ).text( customCSS ); 332 | 333 | } 334 | } ); 335 | } ); 336 | 337 | $( '.clc-preview-event' ).on( 'click', function() { 338 | wp.customize.preview.send( 'clc-focus-section', $( this ).data( 'section' ) ); 339 | } ); 340 | 341 | wp.customize.bind( 'preview-ready', function() { 342 | wp.customize.preview.bind( 'change-form', function( form ) { 343 | if ( 'register' == form ) { 344 | $('.show-only_login').hide(); 345 | $('.show-only_lostpassword').hide(); 346 | $('.show-only_register').show(); 347 | }else if( 'lostpassword' == form ){ 348 | $('.show-only_login').hide(); 349 | $('.show-only_register').hide(); 350 | $('.show-only_lostpassword').show(); 351 | }else{ 352 | $('.show-only_register').hide(); 353 | $('.show-only_lostpassword').hide(); 354 | $('.show-only_login').show(); 355 | } 356 | } ); 357 | } ); 358 | 359 | })( jQuery ); 360 | -------------------------------------------------------------------------------- /assets/js/jquery.minicolors.min.js: -------------------------------------------------------------------------------- 1 | // 2 | // jQuery MiniColors: A tiny color picker built on jQuery 3 | // 4 | // Developed by Cory LaViska for A Beautiful Site, LLC 5 | // 6 | // Licensed under the MIT license: http://opensource.org/licenses/MIT 7 | // 8 | !function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(C){"use strict";function o(i){var t=i.parent();i.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),t.before(i).remove()}function s(i){var t=i.parent(),o=t.find(".minicolors-panel"),s=i.data("minicolors-settings");!i.data("minicolors-initialized")||i.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(a(),t.addClass("minicolors-focus"),o.animate?o.stop(!0,!0).fadeIn(s.showSpeed,function(){s.show&&s.show.call(i.get(0))}):(o.show(),s.show&&s.show.call(i.get(0))))}function a(){C(".minicolors-focus").each(function(){var i=C(this),t=i.find(".minicolors-input"),o=i.find(".minicolors-panel"),s=t.data("minicolors-settings");o.animate?o.fadeOut(s.hideSpeed,function(){s.hide&&s.hide.call(t.get(0)),i.removeClass("minicolors-focus")}):(o.hide(),s.hide&&s.hide.call(t.get(0)),i.removeClass("minicolors-focus"))})}function n(i,t,o){var s,a,n,r,e,c=i.parents(".minicolors").find(".minicolors-input"),l=c.data("minicolors-settings"),h=i.find("[class$=-picker]"),d=i.offset().left,p=i.offset().top,u=Math.round(t.pageX-d),g=Math.round(t.pageY-p),m=o?l.animationSpeed:0;t.originalEvent.changedTouches&&(u=t.originalEvent.changedTouches[0].pageX-d,g=t.originalEvent.changedTouches[0].pageY-p),u<0&&(u=0),g<0&&(g=0),u>i.width()&&(u=i.width()),g>i.height()&&(g=i.height()),i.parent().is(".minicolors-slider-wheel")&&h.parent().is(".minicolors-grid")&&(s=75-u,a=75-g,n=Math.sqrt(s*s+a*a),(r=Math.atan2(a,s))<0&&(r+=2*Math.PI),75>16,g:(65280&i)>>8,b:255&i}}C.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom",show:null,showSpeed:100,theme:"default",swatches:[]}},C.extend(C.fn,{minicolors:function(i,t){switch(i){case"destroy":return C(this).each(function(){o(C(this))}),C(this);case"hide":return a(),C(this);case"opacity":return void 0===t?C(this).attr("data-opacity"):(C(this).each(function(){d(C(this).attr("data-opacity",t))}),C(this));case"rgbObject":return function(i){var t,o=C(i).attr("data-opacity");{var s;t=T(C(i).val())?I(C(i).val(),!0):(s=M(C(i).val(),!0),L(s))}if(!t)return null;void 0!==o&&C.extend(t,{a:parseFloat(o)});return t}(C(this));case"rgbString":case"rgbaString":return function(i,t){var o,s=C(i).attr("data-opacity");{var a;o=T(C(i).val())?I(C(i).val(),!0):(a=M(C(i).val(),!0),L(a))}if(!o)return null;void 0===s&&(s=1);return t?"rgba("+o.r+", "+o.g+", "+o.b+", "+parseFloat(s)+")":"rgb("+o.r+", "+o.g+", "+o.b+")"}(C(this),"rgbaString"===i);case"settings":return void 0===t?C(this).data("minicolors-settings"):(C(this).each(function(){var i=C(this).data("minicolors-settings")||{};o(C(this)),C(this).minicolors(C.extend(!0,i,t))}),C(this));case"show":return s(C(this).eq(0)),C(this);case"value":return void 0===t?C(this).val():(C(this).each(function(){"object"==typeof t&&null!==t?(void 0!==t.opacity&&C(this).attr("data-opacity",F(t.opacity,0,1)),t.color&&C(this).val(t.color)):C(this).val(t),d(C(this))}),C(this));default:return"create"!==i&&(t=i),C(this).each(function(){!function(t,i){var o,s,a,n,r,e,c,l=C('
'),h=C.minicolors.defaults;if(t.data("minicolors-initialized"))return;i=C.extend(!0,{},h,i),l.addClass("minicolors-theme-"+i.theme).toggleClass("minicolors-with-opacity",i.opacity),void 0!==i.position&&C.each(i.position.split(" "),function(){l.addClass("minicolors-position-"+this)});s="rgb"===i.format?i.opacity?"25":"20":i.keywords?"11":"7";t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",i).prop("size",s).wrap(l).after('
'),i.inline||(t.after(''),t.next(".minicolors-input-swatch").on("click",function(i){i.preventDefault(),t.trigger("focus")}));if((e=t.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),i.swatches&&0!==i.swatches.length)for(e.addClass("minicolors-with-swatches"),a=C('
    ').appendTo(e),c=0;c').appendTo(a).data("swatch-color",r).find(".minicolors-swatch-color").css({backgroundColor:p(n),opacity:String(n.a)}),i.swatches[c]=n;i.inline&&t.parent().addClass("minicolors-inline");d(t,!1),t.data("minicolors-initialized",!0)}(C(this),t)}),C(this)}}}),C([document]).on("mousedown.minicolors touchstart.minicolors",function(i){C(i.target).parents().add(i.target).hasClass("minicolors")||a()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(i){var t=C(this);i.preventDefault(),C(i.delegateTarget).data("minicolors-target",t),n(t,i,!0)}).on("mousemove.minicolors touchmove.minicolors",function(i){var t=C(i.delegateTarget).data("minicolors-target");t&&n(t,i)}).on("mouseup.minicolors touchend.minicolors",function(){C(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(i){i.preventDefault();var t=C(this),o=t.parents(".minicolors").find(".minicolors-input"),s=t.data("swatch-color");x(o,s,D(s)),d(o)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(i){var t=C(this).parent().find(".minicolors-input");i.preventDefault(),s(t)}).on("focus.minicolors",".minicolors-input",function(){var i=C(this);i.data("minicolors-initialized")&&s(i)}).on("blur.minicolors",".minicolors-input",function(){var i,t,o,s,a,n=C(this),r=n.data("minicolors-settings");n.data("minicolors-initialized")&&(i=r.keywords?C.map(r.keywords.split(","),function(i){return C.trim(i.toLowerCase())}):[],a=""!==n.val()&&-1 span").css("opacity",String(s)),n.val(a),""===n.val()&&n.val(z(r.defaultValue,!0)),n.val(k(n.val(),r.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(i){var t=C(this);if(t.data("minicolors-initialized"))switch(i.which){case 9:a();break;case 13:case 27:a(),t.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var i=C(this);i.data("minicolors-initialized")&&d(i,!0)}).on("paste.minicolors",".minicolors-input",function(){var i=C(this);i.data("minicolors-initialized")&&setTimeout(function(){d(i,!0)},1)})}); -------------------------------------------------------------------------------- /assets/css/clc-customizer.css: -------------------------------------------------------------------------------- 1 | #sub-accordion-section-clc_logo select { 2 | max-width:100%; 3 | } 4 | 5 | .customize-control-clc-range-slider input[type="text"] { 6 | border: none; 7 | text-align: center; 8 | padding: 2px; 9 | margin: 0; 10 | font-size: 12px; 11 | color: #333; 12 | border-radius: 10px; 13 | background-color: rgb(248, 248, 248); 14 | -webkit-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1); 15 | -moz-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1); 16 | box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1); 17 | width: 42px; 18 | height: 22px; 19 | } 20 | 21 | .customize-control-clc-range-slider .ui-slider { 22 | position: relative; 23 | text-align: left; 24 | height: 2px; 25 | border-radius: 3px; 26 | border: none; 27 | margin-top: 10px; 28 | margin-left: 10px; 29 | display: inline-block; 30 | width: 202px; 31 | background: #d6d6d6; 32 | } 33 | 34 | .customize-control-clc-range-slider .ui-slider .ui-slider-handle { 35 | position: absolute; 36 | z-index: 2; 37 | top: -10px; 38 | cursor: default; 39 | -ms-touch-action: none; 40 | touch-action: none; 41 | width: 18px; 42 | height: 18px; 43 | -webkit-border-radius: 9px; 44 | -moz-border-radius: 9px; 45 | border-radius: 9px; 46 | background-color: #fff; 47 | -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .1); 48 | -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .1); 49 | box-shadow: 0 1px 1px rgba(0, 0, 0, .1); 50 | border: solid 1px #d7d7d7; 51 | transform: translateX(-50%); 52 | } 53 | 54 | .customize-control-clc-range-slider .ui-slider .ui-slider-range { 55 | position: absolute; 56 | z-index: 1; 57 | font-size: 0.7em; 58 | display: block; 59 | border: 0; 60 | background-position: 0 0; 61 | background: #E04D43; 62 | top: 0; 63 | bottom: 0; 64 | } 65 | 66 | .clc-tooltip { 67 | width: 150px; 68 | position: absolute; 69 | background: #55AAD3; 70 | color: #EEE; 71 | font-size: 12px; 72 | min-height: 50px; 73 | border-radius: 5px; 74 | left: -75px; /* half of its width */ 75 | bottom: 25px; 76 | z-index: 10; 77 | display: none; 78 | padding: 12px; 79 | line-height: 1.5; 80 | font-family: 'Arial', sans-serif; 81 | } 82 | 83 | .accordion-section-content > li:nth-of-type(2) .clc-tooltip { 84 | bottom: initial; 85 | top: 25px; 86 | } 87 | 88 | .dashicons.dashicons-editor-help { 89 | cursor: pointer; 90 | color: #55AAD3; 91 | } 92 | 93 | .dashicons.dashicons-editor-help:hover > .clc-tooltip { 94 | display: block; 95 | } 96 | 97 | .predefined-color-schemes-container { 98 | padding: 10px; 99 | } 100 | 101 | .predefined-color-schemes-container .ml-color-schemes-list { 102 | list-style-type: none; 103 | display: inline-block; 104 | text-align: center; 105 | } 106 | 107 | .predefined-color-schemes-container .ml-color-schemes-list li { 108 | display: inline-block; 109 | text-align: center; 110 | } 111 | 112 | .predefined-color-schemes-container .ml-color-schemes-list a img { 113 | width: 50px; 114 | } 115 | 116 | .customize-control-clc-templates { 117 | margin-bottom: 0; 118 | margin-top: -6px; 119 | position: relative; 120 | } 121 | .customize-control-clc-templates .colorlib-login-customizer-templates { 122 | margin-left: -3px; 123 | overflow-y: scroll; 124 | padding-left: 3px; 125 | padding-right: 3px; 126 | padding-top: 3px; 127 | width: calc(100% + 1px); 128 | } 129 | .customize-control-clc-templates .colorlib-login-customizer-templates__input { 130 | display: none !important; 131 | } 132 | .customize-control-clc-templates .colorlib-login-customizer-templates__input:checked + label { 133 | box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.7); 134 | } 135 | .customize-control-clc-templates .colorlib-login-customizer-templates__label { 136 | border-radius: 1px; 137 | border: 1px solid transparent; 138 | box-shadow: 0 0 0 0 #5b9dd9, 0 0 0 0 rgba(30, 140, 190, 0.8); 139 | cursor: pointer; 140 | display: block; 141 | margin: 0 0 8px; 142 | transition: border-color 100ms, box-shadow 100ms cubic-bezier(0.455, 0.03, 0.515, 0.955), transform 200ms cubic-bezier(0.4, 0, 0.2, 1); 143 | } 144 | .customize-control-clc-templates .colorlib-login-customizer-templates__label:hover { 145 | box-shadow: 0 0 0 1px #5b9dd9, 0 0 3px rgba(0, 115, 170, 0.8); 146 | } 147 | .customize-control-clc-templates .colorlib-login-customizer-templates__label:active { 148 | transform: scale(0.985); 149 | } 150 | .customize-control-clc-templates .colorlib-login-customizer-templates__screenshot { 151 | background-position: center center; 152 | background-repeat: no-repeat; 153 | background-size: contain; 154 | border: 2px solid #eee; 155 | border-radius: 3px; 156 | bottom: 0; 157 | left: 0; 158 | position: absolute; 159 | right: 0; 160 | top: 0; 161 | } 162 | .customize-control-clc-templates .colorlib-login-customizer-templates__intrinsic { 163 | line-height: 0; 164 | margin-bottom: 0; 165 | overflow: hidden; 166 | position: relative; 167 | } 168 | .customize-control-clc-templates .colorlib-login-customizer-templates__intrinsic:after { 169 | content: ""; 170 | display: block; 171 | padding-top: 70.4%; 172 | } 173 | 174 | /* Group Button */ 175 | .colorlib-login-customizer-control-group { 176 | width: 100%; 177 | height: 33px; 178 | background: #FEFEFE; 179 | border-radius: 3px; 180 | line-height: 35px; 181 | cursor: pointer; 182 | box-sizing: border-box; 183 | border: solid 1px rgba(219, 219, 219, 0.9); 184 | -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.06); 185 | -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.06); 186 | box-shadow: 0 0 4px rgba(0, 0, 0, 0.06); 187 | height: 35px; 188 | } 189 | 190 | .colorlib-login-customizer-control-group a { 191 | float: left; 192 | height: 33px; 193 | background: rgba(150, 180, 150, 0); 194 | text-align: center; 195 | text-decoration: none; 196 | } 197 | .colorlib-login-customizer-control-group.colorlib-login-customizer-group-four a { 198 | width: 25%; 199 | } 200 | 201 | .colorlib-login-customizer-control-group.colorlib-login-customizer-group-three a { 202 | width: 33.333333%; 203 | } 204 | 205 | .colorlib-login-customizer-control-group.colorlib-login-customizer-group-two a { 206 | width: 50%; 207 | } 208 | .colorlib-login-customizer-control-group a.active { 209 | background-color: #fefefe; 210 | -webkit-box-shadow: inset 0 3px 0px #57a7c9, inset 2px 0px 5px 0px rgba(0, 0, 0, 0.05), inset -2px 0px 5px 0px rgba(0, 0, 0, 0.05); 211 | -moz-box-shadow: inset 0 3px 0px #57a7c9, inset 2px 0px 5px 0px rgba(0, 0, 0, 0.05), inset -2px 0px 5px 0px rgba(0, 0, 0, 0.05); 212 | box-shadow: inset 0 3px 0px #57a7c9, inset 2px 0px 5px 0px rgba(0, 0, 0, 0.05), inset -2px 0px 5px 0px rgba(0, 0, 0, 0.05); } 213 | 214 | /* Toggle */ 215 | .customize-control-title.onoffswitch_label { 216 | display: block ; 217 | float: left; 218 | margin: 0; 219 | height: 22px; 220 | line-height: 22px; } 221 | 222 | .onoffswitch_label { 223 | display: block ; } 224 | 225 | .epsilon-toggle { 226 | position: relative; 227 | float: right; 228 | user-select: none; 229 | } 230 | 231 | .epsilon-toggle > input + .epsilon-toggle__items { 232 | box-sizing: border-box; 233 | } 234 | 235 | .epsilon-toggle > input + .epsilon-toggle__items > * { 236 | box-sizing: inherit; 237 | } 238 | 239 | .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] { 240 | border-radius: 2px; 241 | border: 2px solid #6c7781; 242 | margin-right: 12px; 243 | transition: none; 244 | height: 100%; 245 | left: 0; 246 | top: 0; 247 | margin: 0; 248 | padding: 0; 249 | opacity: 0; 250 | position: absolute; 251 | width: 100%; 252 | z-index: 1; 253 | } 254 | 255 | .epsilon-toggle > input + div > .epsilon-toggle__track { 256 | background-color: #fff; 257 | border: 2px solid #6c7781; 258 | border-radius: 9px; 259 | display: inline-block; 260 | height: 18px; 261 | width: 36px; 262 | vertical-align: top; 263 | transition: background .2s ease; 264 | } 265 | 266 | .epsilon-toggle > input + div > .epsilon-toggle__thumb { 267 | background-color: #6c7781; 268 | border: 5px solid #6c7781; 269 | border-radius: 50%; 270 | display: block; 271 | height: 10px; 272 | width: 10px; 273 | position: absolute; 274 | left: 4px; 275 | top: 4px; 276 | transition: transform .2s ease; 277 | } 278 | 279 | .epsilon-toggle > input + div > .epsilon-toggle__off { 280 | position: absolute; 281 | right: 6px; 282 | top: 6px; 283 | color: #6c7781; 284 | fill: currentColor; 285 | } 286 | 287 | 288 | .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__track { 289 | background-color: #11a0d2; 290 | border: 9px solid transparent; 291 | } 292 | 293 | .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__thumb { 294 | background-color: #fff; 295 | border-width: 0; 296 | transform: translateX(18px); 297 | } 298 | 299 | .epsilon-toggle .epsilon-toggle__items svg { 300 | display:none; 301 | } 302 | 303 | .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] + div.epsilon-toggle__items > .epsilon-toggle__on { 304 | position: absolute; 305 | top: 6px; 306 | left: 8px; 307 | border: 1px solid #fff; 308 | outline: 1px solid transparent; 309 | outline-offset: -1px; 310 | display: none; 311 | } 312 | 313 | .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] + .epsilon-toggle__items svg { 314 | display:block; 315 | } 316 | 317 | body .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__off { 318 | display: none; 319 | } 320 | 321 | body .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__on { 322 | display: inline-block; 323 | } 324 | 325 | 326 | 327 | 328 | /* Color Picker */ 329 | .clc-color-picker-title { 330 | margin-left: 42px; 331 | margin-bottom: 0 !important; 332 | line-height: 24px !important; 333 | } 334 | .clc-color-picker-title .clc-color-picker-description { 335 | font-size: 13px; 336 | line-height: 16px; 337 | font-weight: initial; 338 | color: #959696; 339 | display: block; } 340 | .clc-color-picker-title .clc-color-picker-default { 341 | font-style: italic; 342 | font-weight: 300; 343 | color: #959696; 344 | cursor: pointer; } 345 | .clc-color-picker-title .clc-color-picker-default:hover, .clc-color-picker-title .clc-color-picker-default:focus { 346 | color: #55AAD3; } 347 | 348 | .customize-control-clc-color-picker .minicolors-position-bottom .minicolors-panel { 349 | top:15px; 350 | } 351 | 352 | .customize-control-clc-color-picker .minicolors-panel { 353 | position:relative; 354 | } 355 | 356 | .minicolors-theme-default { 357 | /*display: block !important;*/ } 358 | .minicolors-theme-default .clc-color-picker { 359 | z-index: 100; 360 | position: absolute; 361 | top: -20px; 362 | left: 50px; 363 | opacity: 0; 364 | visibility: hidden; 365 | width: 153px !important; 366 | padding: 5px; 367 | transition: all .1s ease-in; } 368 | .minicolors-theme-default.minicolors-focus .clc-color-picker { 369 | opacity: 1; 370 | visibility: visible; } 371 | .minicolors-theme-default .minicolors-input-swatch { 372 | width: 30px; 373 | height: 22px; 374 | -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); 375 | -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); 376 | box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); 377 | cursor: pointer; } 378 | 379 | .lite { 380 | opacity: 0; 381 | visibility: hidden; } 382 | 383 | .minicolors-position-left .minicolors-panel { 384 | left: 50px; } 385 | .customize-control-clc-color-picker { 386 | padding: 18px 0 6px 0; } 387 | 388 | /* Layout Columns */ 389 | .clc-layouts-container-advanced .clc-layouts-setup { 390 | display: inline-block; 391 | width: 100%; 392 | } 393 | .clc-layouts-container-advanced .clc-column { 394 | border-right: 4px solid #f4f4f4; 395 | float: left; 396 | position: relative; 397 | box-sizing: border-box; 398 | height: 40px; 399 | background-color: #cacaca; 400 | -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.15); 401 | -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.15); 402 | box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.15); 403 | text-align: center; 404 | } 405 | .clc-layouts-container-advanced .clc-column.col12 { 406 | width: 100%; 407 | } 408 | .clc-layouts-container-advanced .clc-column.col11 { 409 | width: 91.66666667%; 410 | } 411 | .clc-layouts-container-advanced .clc-column.col10 { 412 | width: 83.33333333%; 413 | } 414 | .clc-layouts-container-advanced .clc-column.col9 { 415 | width: 75%; 416 | } 417 | .clc-layouts-container-advanced .clc-column.col8 { 418 | width: 66.66666667%; 419 | } 420 | .clc-layouts-container-advanced .clc-column.col7 { 421 | width: 58.33333333%; 422 | } 423 | .clc-layouts-container-advanced .clc-column.col6 { 424 | width: 50%; } 425 | .clc-layouts-container-advanced .clc-column.col5 { 426 | width: 41.66666667%; 427 | } 428 | .clc-layouts-container-advanced .clc-column.col4 { 429 | width: 33.33333333%; 430 | } 431 | .clc-layouts-container-advanced .clc-column.col3 { 432 | width: 25%; 433 | } 434 | .clc-layouts-container-advanced .clc-column.col2 { 435 | width: 16.66666667%; 436 | } 437 | .clc-layouts-container-advanced .clc-column.col1 { 438 | width: 8.33333333%; 439 | } 440 | .clc-layouts-container-advanced .clc-column a { 441 | opacity: .2; 442 | width: 17px; 443 | height: 17px; 444 | -webkit-border-radius: 3px; 445 | -moz-border-radius: 3px; 446 | border-radius: 3px; 447 | background-color: #e14d43; 448 | color: #fff; 449 | position: absolute; 450 | top: 50%; 451 | left: 2%; 452 | -webkit-transform: translate(0%, -50%); 453 | -ms-transform: translate(0%, -50%); 454 | -o-transform: translate(0%, -50%); 455 | transform: translate(0%, -50%); 456 | -webkit-transition: opacity .2s; 457 | transition: opacity .2s; 458 | } 459 | .clc-layouts-container-advanced .clc-column a .dashicons { 460 | font-size: 12px; 461 | line-height: 17px; 462 | width: initial; 463 | height: initial; 464 | } 465 | .clc-layouts-container-advanced .clc-column.clc-column-left a { 466 | left: auto; 467 | right: 2%; 468 | } 469 | .clc-layouts-container-advanced .clc-column:hover > a, 470 | .clc-layouts-container-advanced .clc-column:focus > a { 471 | opacity: 1; 472 | -webkit-transition: opacity .2s; 473 | transition: opacity .2s; 474 | } 475 | 476 | li#customize-control-clc-options-custom-css > .CodeMirror-wrap { 477 | height:calc(100vh - 230px); 478 | } -------------------------------------------------------------------------------- /assets/js/clc-customizer.js: -------------------------------------------------------------------------------- 1 | ( function ( $ ) { 2 | 'use strict'; 3 | 4 | if ( 'undefined' !== typeof ( wp ) && 'undefined' !== typeof ( wp.customize ) ) { 5 | 6 | // Detect when the templates section is expanded (or closed) so we can hide the templates shortcut when it's open. 7 | wp.customize.panel( 'clc_main_panel', function ( section ) { 8 | section.expanded.bind( function ( isExpanding ) { 9 | var loginURL = CLCUrls.siteurl + '?colorlib-login-customizer-customization=true'; 10 | 11 | // Value of isExpanding will = true if you're entering the section, false if you're leaving it. 12 | if ( isExpanding ) { 13 | wp.customize.previewer.previewUrl.set( loginURL ); 14 | } else { 15 | wp.customize.previewer.previewUrl.set( CLCUrls.siteurl ); 16 | } 17 | } ); 18 | } ); 19 | 20 | wp.customize.section( 'clc_logo', function ( section ) { 21 | section.expanded.bind( function ( isExpanding ) { 22 | // Value of isExpanding will = true if you're entering the section, false if you're leaving it. 23 | if ( isExpanding ) { 24 | var logoTextColor = wp.customize.control( 'clc-options[logo-text-color]' ), 25 | logoTextColorHover = wp.customize.control( 'clc-options[logo-text-color-hover]' ), 26 | logoTextSize = wp.customize.control( 'clc-options[logo-text-size]' ), 27 | logoImage = wp.customize.control( 'clc-options[custom-logo]' ), 28 | logoWidth = wp.customize.control( 'clc-options[logo-width]' ), 29 | logoHeight = wp.customize.control( 'clc-options[logo-height]' ), 30 | logoTitle = wp.customize.control( 'clc-options[logo-title]' ), 31 | logoURL = wp.customize.control( 'clc-options[logo-url]' ), 32 | logo_type = wp.customize.control( 'clc-options[logo-settings]' ); 33 | 34 | if ( 'hide-logo' === logo_type.settings.default._value ) { 35 | logoTextColor.toggle( false ); 36 | logoTextColorHover.toggle( false ); 37 | logoTextSize.toggle( false ); 38 | logoImage.toggle( false ); 39 | logoWidth.toggle( false ); 40 | logoHeight.toggle( false ); 41 | logoURL.toggle( false ); 42 | logoTitle.toggle( false ); 43 | 44 | return; 45 | 46 | } else { 47 | logoTitle.toggle( true ); 48 | } 49 | 50 | if ( 'show-text-only' === logo_type.settings.default._value ) { 51 | logoTextColor.toggle( true ); 52 | logoTextColorHover.toggle( true ); 53 | logoTextSize.toggle( true ); 54 | logoURL.toggle( true ); 55 | 56 | logoImage.toggle( false ); 57 | logoWidth.toggle( false ); 58 | logoHeight.toggle( false ); 59 | } else if ( 'show-image-ony' === logo_type.settings.default._value ) { 60 | logoTextColor.toggle( false ); 61 | logoTextColorHover.toggle( false ); 62 | logoTextSize.toggle( false ); 63 | 64 | logoURL.toggle( true ); 65 | logoImage.toggle( true ); 66 | logoWidth.toggle( true ); 67 | logoHeight.toggle( true ); 68 | } else { 69 | logoTextColor.toggle( true ); 70 | logoTextColorHover.toggle( true ); 71 | logoTextSize.toggle( true ); 72 | logoImage.toggle( true ); 73 | logoWidth.toggle( true ); 74 | logoHeight.toggle( true ); 75 | logoURL.toggle( true ); 76 | } 77 | } else { 78 | 79 | } 80 | } ); 81 | } ); 82 | 83 | wp.customize.section( 'clc_register-form', function ( section ) { 84 | section.expanded.bind( function ( isExpanding ) { 85 | // Value of isExpanding will = true if you're entering the section, false if you're leaving it. 86 | if ( isExpanding ) { 87 | wp.customize.previewer.send( 'change-form', 'register' ); 88 | } else { 89 | wp.customize.previewer.send( 'change-form', 'login' ); 90 | } 91 | } ); 92 | } ); 93 | 94 | wp.customize.section( 'clc_lostpassword-form', function ( section ) { 95 | section.expanded.bind( function ( isExpanding ) { 96 | // Value of isExpanding will = true if you're entering the section, false if you're leaving it. 97 | if ( isExpanding ) { 98 | wp.customize.previewer.send( 'change-form', 'lostpassword' ); 99 | } else { 100 | wp.customize.previewer.send( 'change-form', 'login' ); 101 | } 102 | } ); 103 | } ); 104 | 105 | wp.customize.controlConstructor['clc-templates'] = wp.customize.Control.extend( { 106 | ready: function () { 107 | var control = this; 108 | 109 | this.container.on( 'change', 'input:radio', function () { 110 | var template = $( this ).val(); 111 | 112 | control.loadTemplate( 'default' ); 113 | 114 | if ( 'default' !== template ) { 115 | control.loadTemplate( template ); 116 | } 117 | 118 | } ); 119 | }, 120 | loadTemplate: function ( optionName ) { 121 | var control = this, 122 | options = control.params.options[optionName]; 123 | 124 | $.each( options, function ( index, option ) { 125 | var currentControl = wp.customize.control( option.name ); 126 | 127 | if ( 'default' === optionName ) { 128 | currentControl.setting( option.value ); 129 | } else { 130 | currentControl.setting( option.value ); 131 | } 132 | 133 | } ); 134 | } 135 | } ); 136 | 137 | wp.customize.controlConstructor['clc-range-slider'] = wp.customize.Control.extend( { 138 | ready: function () { 139 | var control = this, 140 | controlField = control.container.find( 'input.clc-slider' ), 141 | controlSlider = control.container.find( 'div.clc-slider' ), 142 | controlSliderData = control.params.choices, 143 | updating = false; 144 | 145 | controlSlider.slider( { 146 | range: 'min', 147 | min: controlSliderData.min, 148 | max: controlSliderData.max, 149 | step: controlSliderData.step, 150 | value: controlField.val(), 151 | slide: function ( event, ui ) { 152 | controlField.val( ui.value ).keyup(); 153 | }, 154 | stop: function ( event, ui ) { 155 | controlField.val( ui.value ); 156 | updating = true; 157 | control.setting.set( ui.value ); 158 | updating = false; 159 | } 160 | } ); 161 | 162 | // Whenever the setting's value changes, refresh the preview. 163 | control.setting.bind( function ( value ) { 164 | 165 | // Bail if the update came from the control itself. 166 | if ( updating ) { 167 | return; 168 | } 169 | 170 | controlField.val( value ); 171 | controlSlider.slider( 'value', value ); 172 | 173 | } ); 174 | 175 | } 176 | } ); 177 | 178 | wp.customize.controlConstructor['clc-button-group'] = wp.customize.Control.extend( { 179 | ready: function () { 180 | var control = this, 181 | updating = false; 182 | control.container.on( 'click', '.colorlib-login-customizer-control-group > a', function () { 183 | var value = $( this ).attr( 'data-value' ); 184 | $( this ).siblings().removeClass( 'active' ); 185 | $( this ).addClass( 'active' ); 186 | 187 | updating = true; 188 | control.setting.set( value ); 189 | updating = false; 190 | } ); 191 | 192 | // Whenever the setting's value changes, refresh the preview. 193 | control.setting.bind( function ( value ) { 194 | 195 | var options = control.container.find( '.colorlib-login-customizer-control-group > a' ); 196 | 197 | // Bail if the update came from the control itself. 198 | if ( updating ) { 199 | return; 200 | } 201 | 202 | options.removeClass( 'active' ); 203 | options.filter( '[data-value=' + value + ']' ).addClass( 'active' ); 204 | 205 | } ); 206 | 207 | } 208 | } ); 209 | 210 | wp.customize.controlConstructor['clc-column-width'] = wp.customize.Control.extend( { 211 | ready: function () { 212 | var control = this, 213 | updating = false; 214 | 215 | control.values = control.params.value; 216 | 217 | control.container.on( 'click', '.clc-layouts-setup .clc-column > a', function () { 218 | var currentAction = $( this ).data( 'action' ); 219 | 220 | updating = true; 221 | control.updateColumns( currentAction ); 222 | updating = false; 223 | 224 | } ); 225 | 226 | // Whenever the setting's value changes, refresh the preview. 227 | control.setting.bind( function ( value ) { 228 | 229 | // Bail if the update came from the control itself. 230 | if ( updating ) { 231 | return; 232 | } 233 | 234 | control.values = value; 235 | control.rederColumns(); 236 | 237 | } ); 238 | 239 | }, 240 | 241 | updateColumns: function ( increment ) { 242 | var incrementElement, 243 | decrementElement, 244 | control = this; 245 | 246 | if ( 11 === control.values[increment] ) { 247 | return; 248 | } 249 | 250 | if ( 'left' == increment ) { 251 | incrementElement = control.container.find( '.clc-column-left' ); 252 | decrementElement = control.container.find( '.clc-column-right' ); 253 | 254 | control.values['left'] += 1; 255 | control.values['right'] -= 1; 256 | 257 | } else { 258 | incrementElement = control.container.find( '.clc-column-right' ); 259 | decrementElement = control.container.find( '.clc-column-left' ); 260 | 261 | control.values['right'] += 1; 262 | control.values['left'] -= 1; 263 | 264 | } 265 | 266 | // Update control values 267 | control.setting( '' ); 268 | control.setting( control.values ); 269 | 270 | control.rederColumns(); 271 | 272 | }, 273 | 274 | rederColumns: function () { 275 | var control = this, 276 | leftColumn = control.container.find( '.clc-column-left' ), 277 | rightColumn = control.container.find( '.clc-column-right' ), 278 | classes = 'col12 col11 col10 col9 col8 col7 col6 col5 col4 col3 col2 col1'; 279 | 280 | leftColumn.removeClass( classes ).addClass( 'col' + control.values['left'] ); 281 | rightColumn.removeClass( classes ).addClass( 'col' + control.values['right'] ); 282 | 283 | } 284 | 285 | 286 | } ); 287 | 288 | wp.customize.controlConstructor['clc-color-picker'] = wp.customize.Control.extend( { 289 | ready: function () { 290 | var control = this, 291 | updating = false, 292 | clear = control.container.find( 'a.clc-color-picker-default' ), 293 | input = $( control.container ).find( '.clc-color-picker' ); 294 | 295 | input.minicolors( { 296 | format: 'hex', 297 | opacity: true, 298 | keywords: 'transparent, initial, inherit', 299 | change: function ( value, opacity ) { 300 | updating = true; 301 | control.setting.set( input.minicolors( 'rgbaString' ) ); 302 | updating = false; 303 | } 304 | } ); 305 | 306 | if ( clear.length > 0 ) { 307 | clear.on( 'click', function ( e ) { 308 | var defaultValue = $( this ).attr( 'data-default' ); 309 | e.preventDefault(); 310 | 311 | input.minicolors( 'value', defaultValue ); 312 | updating = true; 313 | control.setting.set( defaultValue ); 314 | updating = false; 315 | } ); 316 | } 317 | 318 | // Whenever the setting's value changes, refresh the preview. 319 | control.setting.bind( function ( value ) { 320 | 321 | // Bail if the update came from the control itself. 322 | if ( updating ) { 323 | return; 324 | } 325 | input.minicolors( 'value', value ); 326 | 327 | } ); 328 | } 329 | } ); 330 | 331 | // Listen for previewer events 332 | wp.customize.bind( 'ready', function () { 333 | 334 | wp.customize.previewer.bind( 'clc-focus-section', function ( sectionName ) { 335 | var section = wp.customize.section( sectionName ); 336 | 337 | if ( undefined !== section ) { 338 | section.focus(); 339 | } 340 | } ); 341 | 342 | wp.customize( 'clc-options[columns]', function ( value ) { 343 | 344 | value.bind( function ( to ) { 345 | var alignControl = wp.customize.control( 'clc-options[form-column-align]' ), 346 | backgroundControl = wp.customize.control( 'clc-options[custom-background-form]' ), 347 | columnsWidthControl = wp.customize.control( 'clc-options[columns-width]' ), 348 | backgroundColorControl = wp.customize.control( 'clc-options[custom-background-color-form]' ); 349 | 350 | if ( '2' === to ) { 351 | alignControl.toggle( true ); 352 | backgroundControl.toggle( true ); 353 | backgroundColorControl.toggle( true ); 354 | columnsWidthControl.toggle( true ); 355 | } else { 356 | alignControl.toggle( false ); 357 | backgroundControl.toggle( false ); 358 | backgroundColorControl.toggle( false ); 359 | columnsWidthControl.toggle( false ); 360 | } 361 | } ); 362 | } ); 363 | 364 | // validation for the login-level setting 365 | wp.customize( 'clc-options[login-label]', function ( setting ) { 366 | setting.validate = function ( value ) { 367 | var code, notification; 368 | 369 | code = 'required'; 370 | if ( !value ) { 371 | notification = new wp.customize.Notification( code, { message: 'value is empty' } ); 372 | setting.notifications.add( code, notification ); 373 | } else { 374 | setting.notifications.remove( code ); 375 | } 376 | 377 | return value; 378 | }; 379 | } ); 380 | 381 | wp.customize( 'clc-options[logo-settings]', function ( setting ) { 382 | 383 | setting.bind( function ( value ) { 384 | 385 | var logoTextColor = wp.customize.control( 'clc-options[logo-text-color]' ), 386 | logoTextColorHover = wp.customize.control( 'clc-options[logo-text-color-hover]' ), 387 | logoTextSize = wp.customize.control( 'clc-options[logo-text-size]' ), 388 | logoImage = wp.customize.control( 'clc-options[custom-logo]' ), 389 | logoWidth = wp.customize.control( 'clc-options[logo-width]' ), 390 | logoHeight = wp.customize.control( 'clc-options[logo-height]' ), 391 | logoTitle = wp.customize.control( 'clc-options[logo-title]' ), 392 | logoURL = wp.customize.control( 'clc-options[logo-url]' ); 393 | 394 | if ( 'hide-logo' === value ) { 395 | logoTextColor.toggle( false ); 396 | logoTextColorHover.toggle( false ); 397 | logoTextSize.toggle( false ); 398 | logoImage.toggle( false ); 399 | logoWidth.toggle( false ); 400 | logoHeight.toggle( false ); 401 | logoURL.toggle( false ); 402 | logoTitle.toggle( false ); 403 | 404 | return; 405 | 406 | } else { 407 | logoTitle.toggle( true ); 408 | } 409 | 410 | if ( 'show-text-only' === value ) { 411 | logoTextColor.toggle( true ); 412 | logoTextColorHover.toggle( true ); 413 | logoTextSize.toggle( true ); 414 | logoURL.toggle( true ); 415 | 416 | logoImage.toggle( false ); 417 | logoWidth.toggle( false ); 418 | logoHeight.toggle( false ); 419 | } else if ( 'show-image-ony' === value ) { 420 | logoTextColor.toggle( false ); 421 | logoTextColorHover.toggle( false ); 422 | logoTextSize.toggle( false ); 423 | 424 | logoURL.toggle( true ); 425 | logoImage.toggle( true ); 426 | logoWidth.toggle( true ); 427 | logoHeight.toggle( true ); 428 | } else { 429 | logoTextColor.toggle( true ); 430 | logoTextColorHover.toggle( true ); 431 | logoTextSize.toggle( true ); 432 | logoImage.toggle( true ); 433 | logoWidth.toggle( true ); 434 | logoHeight.toggle( true ); 435 | logoURL.toggle( true ); 436 | } 437 | } ); 438 | } ); 439 | } ); 440 | } 441 | } )( jQuery ); 442 | -------------------------------------------------------------------------------- /languages/colorlib-login-customizer.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2025 Colorlib 2 | # This file is distributed under the GPLv3 or later. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: Colorlib Login Customizer 1.3.4\n" 6 | "Report-Msgid-Bugs-To: " 7 | "https://wordpress.org/support/plugin/colorlib-login-customizer\n" 8 | "POT-Creation-Date: 2025-06-05 06:25:57+00:00\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=utf-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: en\n" 16 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 17 | "X-Poedit-Country: United States\n" 18 | "X-Poedit-SourceCharset: UTF-8\n" 19 | "X-Poedit-KeywordsList: " 20 | "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" 21 | "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" 22 | "X-Poedit-Basepath: ../\n" 23 | "X-Poedit-SearchPath-0: .\n" 24 | "X-Poedit-Bookmarks: \n" 25 | "X-Textdomain-Support: yes\n" 26 | "X-Generator: grunt-wp-i18n 1.0.3\n" 27 | 28 | #: includes/class-colorlib-login-customizer-review.php:22 29 | msgid "" 30 | "Hey, I noticed you have installed our Colorlib Login Customizer plugin for " 31 | "%s day(s) - that's awesome! Could you please do me a BIG favor and give it " 32 | "a 5-star rating on WordPress? Just to help us spread the word and boost our " 33 | "motivation." 34 | msgstr "" 35 | 36 | #: includes/class-colorlib-login-customizer-review.php:23 37 | msgid "Ok, you deserve it" 38 | msgstr "" 39 | 40 | #: includes/class-colorlib-login-customizer-review.php:24 41 | msgid "I already did" 42 | msgstr "" 43 | 44 | #: includes/class-colorlib-login-customizer-review.php:25 45 | msgid "No, not good enough" 46 | msgstr "" 47 | 48 | #: includes/class-colorlib-login-customizer.php:222 49 | #: includes/class-colorlib-login-customizer.php:231 50 | #: includes/lib/class-colorlib-login-customizer-settings.php:130 51 | #: includes/lib/class-colorlib-login-customizer-settings.php:139 52 | msgid "Cheatin’ huh?" 53 | msgstr "" 54 | 55 | #: includes/lib/class-colorlib-login-customizer-customizer.php:62 56 | msgid "Templates" 57 | msgstr "" 58 | 59 | #: includes/lib/class-colorlib-login-customizer-customizer.php:67 60 | msgid "Temapltes" 61 | msgstr "" 62 | 63 | #: includes/lib/class-colorlib-login-customizer-customizer.php:249 64 | msgid "Logo options" 65 | msgstr "" 66 | 67 | #: includes/lib/class-colorlib-login-customizer-customizer.php:254 68 | msgid "Logo settings" 69 | msgstr "" 70 | 71 | #: includes/lib/class-colorlib-login-customizer-customizer.php:255 72 | msgid "Select how the logo should be displayed" 73 | msgstr "" 74 | 75 | #: includes/lib/class-colorlib-login-customizer-customizer.php:258 76 | msgid "Hide logo" 77 | msgstr "" 78 | 79 | #: includes/lib/class-colorlib-login-customizer-customizer.php:259 80 | msgid "Show image only" 81 | msgstr "" 82 | 83 | #: includes/lib/class-colorlib-login-customizer-customizer.php:260 84 | msgid "Show text only" 85 | msgstr "" 86 | 87 | #: includes/lib/class-colorlib-login-customizer-customizer.php:261 88 | msgid "Show both" 89 | msgstr "" 90 | 91 | #: includes/lib/class-colorlib-login-customizer-customizer.php:267 92 | msgid "Logo URL" 93 | msgstr "" 94 | 95 | #: includes/lib/class-colorlib-login-customizer-customizer.php:268 96 | msgid "This is where the logo will link to." 97 | msgstr "" 98 | 99 | #: includes/lib/class-colorlib-login-customizer-customizer.php:274 100 | msgid "Logo Title" 101 | msgstr "" 102 | 103 | #: includes/lib/class-colorlib-login-customizer-customizer.php:275 104 | msgid "" 105 | "The tooltip that will be displayed when hovering over the logo. Also this " 106 | "is used as Logo text when you select \"Use Text Logo\"" 107 | msgstr "" 108 | 109 | #: includes/lib/class-colorlib-login-customizer-customizer.php:281 110 | msgid "Login Page Title" 111 | msgstr "" 112 | 113 | #: includes/lib/class-colorlib-login-customizer-customizer.php:282 114 | msgid "Login page title that is shown when you access the admin login page." 115 | msgstr "" 116 | 117 | #: includes/lib/class-colorlib-login-customizer-customizer.php:288 118 | msgid "Logo text color" 119 | msgstr "" 120 | 121 | #: includes/lib/class-colorlib-login-customizer-customizer.php:289 122 | msgid "This will change the color text property." 123 | msgstr "" 124 | 125 | #: includes/lib/class-colorlib-login-customizer-customizer.php:296 126 | msgid "Logo text color hover" 127 | msgstr "" 128 | 129 | #: includes/lib/class-colorlib-login-customizer-customizer.php:297 130 | msgid "This will change the color text property on hover." 131 | msgstr "" 132 | 133 | #: includes/lib/class-colorlib-login-customizer-customizer.php:304 134 | msgid "Logo text size" 135 | msgstr "" 136 | 137 | #: includes/lib/class-colorlib-login-customizer-customizer.php:305 138 | msgid "This will change the text size of logo." 139 | msgstr "" 140 | 141 | #: includes/lib/class-colorlib-login-customizer-customizer.php:317 142 | msgid "Custom logo" 143 | msgstr "" 144 | 145 | #: includes/lib/class-colorlib-login-customizer-customizer.php:318 146 | #: includes/lib/class-colorlib-login-customizer-customizer.php:465 147 | #: includes/lib/class-colorlib-login-customizer-customizer.php:487 148 | msgid "" 149 | "This will upload an image to your media library and store the attachment ID " 150 | "in the option field. Once you have uploaded an imge the thumbnail will " 151 | "display above these buttons." 152 | msgstr "" 153 | 154 | #: includes/lib/class-colorlib-login-customizer-customizer.php:325 155 | msgid "Logo Width" 156 | msgstr "" 157 | 158 | #: includes/lib/class-colorlib-login-customizer-customizer.php:326 159 | msgid "Make sure you set the logo width to match your image." 160 | msgstr "" 161 | 162 | #: includes/lib/class-colorlib-login-customizer-customizer.php:338 163 | msgid "Logo Height" 164 | msgstr "" 165 | 166 | #: includes/lib/class-colorlib-login-customizer-customizer.php:339 167 | msgid "Make sure you set the logo height to match your image." 168 | msgstr "" 169 | 170 | #: includes/lib/class-colorlib-login-customizer-customizer.php:353 171 | msgid "Layout options" 172 | msgstr "" 173 | 174 | #: includes/lib/class-colorlib-login-customizer-customizer.php:358 175 | msgid "Columns" 176 | msgstr "" 177 | 178 | #: includes/lib/class-colorlib-login-customizer-customizer.php:375 179 | msgid "Columns Width" 180 | msgstr "" 181 | 182 | #: includes/lib/class-colorlib-login-customizer-customizer.php:382 183 | msgid "Form Column Alignment" 184 | msgstr "" 185 | 186 | #: includes/lib/class-colorlib-login-customizer-customizer.php:408 187 | msgid "Form Vertical Alignment" 188 | msgstr "" 189 | 190 | #: includes/lib/class-colorlib-login-customizer-customizer.php:429 191 | msgid "Form Horizontal Alignment" 192 | msgstr "" 193 | 194 | #: includes/lib/class-colorlib-login-customizer-customizer.php:452 195 | msgid "Background options" 196 | msgstr "" 197 | 198 | #: includes/lib/class-colorlib-login-customizer-customizer.php:457 199 | msgid "Custom background color" 200 | msgstr "" 201 | 202 | #: includes/lib/class-colorlib-login-customizer-customizer.php:458 203 | #: includes/lib/class-colorlib-login-customizer-customizer.php:479 204 | #: includes/lib/class-colorlib-login-customizer-customizer.php:533 205 | #: includes/lib/class-colorlib-login-customizer-customizer.php:596 206 | msgid "This will change the background color property." 207 | msgstr "" 208 | 209 | #: includes/lib/class-colorlib-login-customizer-customizer.php:464 210 | msgid "Custom background" 211 | msgstr "" 212 | 213 | #: includes/lib/class-colorlib-login-customizer-customizer.php:471 214 | msgid "Background Image Link" 215 | msgstr "" 216 | 217 | #: includes/lib/class-colorlib-login-customizer-customizer.php:472 218 | msgid "This will add a link on the background image." 219 | msgstr "" 220 | 221 | #: includes/lib/class-colorlib-login-customizer-customizer.php:478 222 | msgid "Form Column background color" 223 | msgstr "" 224 | 225 | #: includes/lib/class-colorlib-login-customizer-customizer.php:486 226 | msgid "Form Column background" 227 | msgstr "" 228 | 229 | #: includes/lib/class-colorlib-login-customizer-customizer.php:496 230 | msgid "General Form options" 231 | msgstr "" 232 | 233 | #: includes/lib/class-colorlib-login-customizer-customizer.php:501 234 | msgid "Form Width" 235 | msgstr "" 236 | 237 | #: includes/lib/class-colorlib-login-customizer-customizer.php:502 238 | msgid "Please input the desired width for the login form in pixels. Example: 20" 239 | msgstr "" 240 | 241 | #: includes/lib/class-colorlib-login-customizer-customizer.php:513 242 | msgid "Form Height" 243 | msgstr "" 244 | 245 | #: includes/lib/class-colorlib-login-customizer-customizer.php:514 246 | msgid "Please input the desired height for the login form in pixels. Example: 20" 247 | msgstr "" 248 | 249 | #: includes/lib/class-colorlib-login-customizer-customizer.php:525 250 | msgid "Form background image" 251 | msgstr "" 252 | 253 | #: includes/lib/class-colorlib-login-customizer-customizer.php:526 254 | msgid "This will change the background image property of login form." 255 | msgstr "" 256 | 257 | #: includes/lib/class-colorlib-login-customizer-customizer.php:532 258 | msgid "Form background color" 259 | msgstr "" 260 | 261 | #: includes/lib/class-colorlib-login-customizer-customizer.php:539 262 | msgid "Form padding" 263 | msgstr "" 264 | 265 | #: includes/lib/class-colorlib-login-customizer-customizer.php:540 266 | msgid "This will change the padding property. Example: 26px 24px 46px 30px" 267 | msgstr "" 268 | 269 | #: includes/lib/class-colorlib-login-customizer-customizer.php:546 270 | msgid "Form border" 271 | msgstr "" 272 | 273 | #: includes/lib/class-colorlib-login-customizer-customizer.php:547 274 | msgid "This will change the border property. Example: 2px dotted black" 275 | msgstr "" 276 | 277 | #: includes/lib/class-colorlib-login-customizer-customizer.php:553 278 | msgid "Form border radius" 279 | msgstr "" 280 | 281 | #: includes/lib/class-colorlib-login-customizer-customizer.php:554 282 | msgid "This will change the border radius property. Example: 2px 2px 2px 2px" 283 | msgstr "" 284 | 285 | #: includes/lib/class-colorlib-login-customizer-customizer.php:560 286 | msgid "Form shadow" 287 | msgstr "" 288 | 289 | #: includes/lib/class-colorlib-login-customizer-customizer.php:561 290 | msgid "This will change the form's shadow property. Example: 0 1px 0 #006799" 291 | msgstr "" 292 | 293 | #: includes/lib/class-colorlib-login-customizer-customizer.php:567 294 | msgid "Form field width" 295 | msgstr "" 296 | 297 | #: includes/lib/class-colorlib-login-customizer-customizer.php:568 298 | msgid "Please input the desired width for the form field in pixels. Example: 20" 299 | msgstr "" 300 | 301 | #: includes/lib/class-colorlib-login-customizer-customizer.php:574 302 | msgid "Form field margin" 303 | msgstr "" 304 | 305 | #: includes/lib/class-colorlib-login-customizer-customizer.php:575 306 | msgid "This will change the margin property. Example: 26px 24px 46px 30px" 307 | msgstr "" 308 | 309 | #: includes/lib/class-colorlib-login-customizer-customizer.php:581 310 | msgid "Form field border" 311 | msgstr "" 312 | 313 | #: includes/lib/class-colorlib-login-customizer-customizer.php:582 314 | msgid "" 315 | "Please input the desired border for the form field. Example: 2px dotted " 316 | "black" 317 | msgstr "" 318 | 319 | #: includes/lib/class-colorlib-login-customizer-customizer.php:588 320 | msgid "Form field border radius" 321 | msgstr "" 322 | 323 | #: includes/lib/class-colorlib-login-customizer-customizer.php:589 324 | msgid "" 325 | "Please input the desired border radiuse for the form field. Example: 5px " 326 | "5px 5px 5px" 327 | msgstr "" 328 | 329 | #: includes/lib/class-colorlib-login-customizer-customizer.php:595 330 | msgid "Form field background" 331 | msgstr "" 332 | 333 | #: includes/lib/class-colorlib-login-customizer-customizer.php:602 334 | msgid "Form field color" 335 | msgstr "" 336 | 337 | #: includes/lib/class-colorlib-login-customizer-customizer.php:603 338 | msgid "This will change the text color property." 339 | msgstr "" 340 | 341 | #: includes/lib/class-colorlib-login-customizer-customizer.php:609 342 | msgid "Form label color" 343 | msgstr "" 344 | 345 | #: includes/lib/class-colorlib-login-customizer-customizer.php:610 346 | msgid "This will change the label text color property." 347 | msgstr "" 348 | 349 | #: includes/lib/class-colorlib-login-customizer-customizer.php:616 350 | msgid "Lost Password Text" 351 | msgstr "" 352 | 353 | #: includes/lib/class-colorlib-login-customizer-customizer.php:617 354 | msgid "You can change the default text for \"Lost your password\" " 355 | msgstr "" 356 | 357 | #: includes/lib/class-colorlib-login-customizer-customizer.php:623 358 | msgid "Back to site text" 359 | msgstr "" 360 | 361 | #: includes/lib/class-colorlib-login-customizer-customizer.php:624 362 | msgid "You can change the default text for \"Back to\" site " 363 | msgstr "" 364 | 365 | #: includes/lib/class-colorlib-login-customizer-customizer.php:630 366 | msgid "Hide Extra Links" 367 | msgstr "" 368 | 369 | #: includes/lib/class-colorlib-login-customizer-customizer.php:631 370 | msgid "Show/Hide the links under the login form" 371 | msgstr "" 372 | 373 | #: includes/lib/class-colorlib-login-customizer-customizer.php:639 374 | msgid "Login Form Texts" 375 | msgstr "" 376 | 377 | #: includes/lib/class-colorlib-login-customizer-customizer.php:644 378 | #: includes/lib/class-colorlib-login-customizer-customizer.php:687 379 | #: includes/lib/class-colorlib-login-customizer-customizer.php:734 380 | msgid "Username label" 381 | msgstr "" 382 | 383 | #: includes/lib/class-colorlib-login-customizer-customizer.php:645 384 | #: includes/lib/class-colorlib-login-customizer-customizer.php:688 385 | #: includes/lib/class-colorlib-login-customizer-customizer.php:735 386 | msgid "You can change the default text for username label or just delete it." 387 | msgstr "" 388 | 389 | #: includes/lib/class-colorlib-login-customizer-customizer.php:651 390 | msgid "Password label" 391 | msgstr "" 392 | 393 | #: includes/lib/class-colorlib-login-customizer-customizer.php:652 394 | msgid "You can change the default text for password label or just delete it." 395 | msgstr "" 396 | 397 | #: includes/lib/class-colorlib-login-customizer-customizer.php:658 398 | msgid "Remember Me label" 399 | msgstr "" 400 | 401 | #: includes/lib/class-colorlib-login-customizer-customizer.php:659 402 | msgid "You can change the default remember me text." 403 | msgstr "" 404 | 405 | #: includes/lib/class-colorlib-login-customizer-customizer.php:665 406 | msgid "Login label" 407 | msgstr "" 408 | 409 | #: includes/lib/class-colorlib-login-customizer-customizer.php:666 410 | msgid "You can change the default text for the log in button." 411 | msgstr "" 412 | 413 | #: includes/lib/class-colorlib-login-customizer-customizer.php:672 414 | msgid "Register link" 415 | msgstr "" 416 | 417 | #: includes/lib/class-colorlib-login-customizer-customizer.php:673 418 | msgid "" 419 | "You can change the default text for the register link at the end of the " 420 | "form." 421 | msgstr "" 422 | 423 | #: includes/lib/class-colorlib-login-customizer-customizer.php:682 424 | msgid "Register Form Texts" 425 | msgstr "" 426 | 427 | #: includes/lib/class-colorlib-login-customizer-customizer.php:695 428 | msgid "Email label" 429 | msgstr "" 430 | 431 | #: includes/lib/class-colorlib-login-customizer-customizer.php:696 432 | msgid "You can change the default text for email label or just delete it." 433 | msgstr "" 434 | 435 | #: includes/lib/class-colorlib-login-customizer-customizer.php:703 436 | msgid "Registration confirmation text" 437 | msgstr "" 438 | 439 | #: includes/lib/class-colorlib-login-customizer-customizer.php:704 440 | msgid "You can change the default registration confirmation text." 441 | msgstr "" 442 | 443 | #: includes/lib/class-colorlib-login-customizer-customizer.php:711 444 | #: includes/lib/class-colorlib-login-customizer-customizer.php:741 445 | msgid "Button label" 446 | msgstr "" 447 | 448 | #: includes/lib/class-colorlib-login-customizer-customizer.php:712 449 | msgid "You can change the default text for the register button." 450 | msgstr "" 451 | 452 | #: includes/lib/class-colorlib-login-customizer-customizer.php:719 453 | msgid "Login link" 454 | msgstr "" 455 | 456 | #: includes/lib/class-colorlib-login-customizer-customizer.php:720 457 | msgid "You can change the default text for the login link at the end of the form." 458 | msgstr "" 459 | 460 | #: includes/lib/class-colorlib-login-customizer-customizer.php:729 461 | msgid "Lost Password Form Texts" 462 | msgstr "" 463 | 464 | #: includes/lib/class-colorlib-login-customizer-customizer.php:742 465 | msgid "You can change the default text for the lost password button." 466 | msgstr "" 467 | 468 | #: includes/lib/class-colorlib-login-customizer-customizer.php:751 469 | msgid "Form Button & Links" 470 | msgstr "" 471 | 472 | #: includes/lib/class-colorlib-login-customizer-customizer.php:756 473 | msgid "Button background" 474 | msgstr "" 475 | 476 | #: includes/lib/class-colorlib-login-customizer-customizer.php:757 477 | msgid "This will change the submit button's background property" 478 | msgstr "" 479 | 480 | #: includes/lib/class-colorlib-login-customizer-customizer.php:763 481 | msgid "Button background hover state" 482 | msgstr "" 483 | 484 | #: includes/lib/class-colorlib-login-customizer-customizer.php:764 485 | msgid "This will change the submit button's background property on hover" 486 | msgstr "" 487 | 488 | #: includes/lib/class-colorlib-login-customizer-customizer.php:770 489 | msgid "Button border color" 490 | msgstr "" 491 | 492 | #: includes/lib/class-colorlib-login-customizer-customizer.php:771 493 | msgid "This will change the submit button's border color property" 494 | msgstr "" 495 | 496 | #: includes/lib/class-colorlib-login-customizer-customizer.php:777 497 | msgid "Button border hover state" 498 | msgstr "" 499 | 500 | #: includes/lib/class-colorlib-login-customizer-customizer.php:778 501 | msgid "This will change the submit button's border property on hover" 502 | msgstr "" 503 | 504 | #: includes/lib/class-colorlib-login-customizer-customizer.php:784 505 | msgid "Button shadow" 506 | msgstr "" 507 | 508 | #: includes/lib/class-colorlib-login-customizer-customizer.php:785 509 | msgid "" 510 | "This will change the submit button's shadow property. Example: 0 1px 0 " 511 | "#006799" 512 | msgstr "" 513 | 514 | #: includes/lib/class-colorlib-login-customizer-customizer.php:791 515 | msgid "Button text shadow" 516 | msgstr "" 517 | 518 | #: includes/lib/class-colorlib-login-customizer-customizer.php:792 519 | msgid "" 520 | "This will change the submit button text's shadow property. Example: 0 -1px " 521 | "1px #006799" 522 | msgstr "" 523 | 524 | #: includes/lib/class-colorlib-login-customizer-customizer.php:798 525 | msgid "Button color" 526 | msgstr "" 527 | 528 | #: includes/lib/class-colorlib-login-customizer-customizer.php:799 529 | msgid "This will change the submit button's text color property" 530 | msgstr "" 531 | 532 | #: includes/lib/class-colorlib-login-customizer-customizer.php:805 533 | msgid "Link color" 534 | msgstr "" 535 | 536 | #: includes/lib/class-colorlib-login-customizer-customizer.php:806 537 | msgid "This will change the text color of links that are underneath the login form" 538 | msgstr "" 539 | 540 | #: includes/lib/class-colorlib-login-customizer-customizer.php:812 541 | msgid "Link color hover" 542 | msgstr "" 543 | 544 | #: includes/lib/class-colorlib-login-customizer-customizer.php:813 545 | msgid "" 546 | "This will change the text color of links, that are underneath the login " 547 | "form, on hover" 548 | msgstr "" 549 | 550 | #: includes/lib/class-colorlib-login-customizer-customizer.php:819 551 | msgid "Hide \"Remember Me\"" 552 | msgstr "" 553 | 554 | #: includes/lib/class-colorlib-login-customizer-customizer.php:820 555 | msgid "Show/Hide the \"Remember Me\" checkbox" 556 | msgstr "" 557 | 558 | #: includes/lib/class-colorlib-login-customizer-customizer.php:828 559 | msgid "Custom CSS" 560 | msgstr "" 561 | 562 | #: includes/lib/class-colorlib-login-customizer-customizer.php:833 563 | msgid "CSS code" 564 | msgstr "" 565 | 566 | #. Plugin Name of the plugin/theme 567 | msgid "Colorlib Login Customizer" 568 | msgstr "" 569 | 570 | #: includes/lib/class-colorlib-login-customizer-settings.php:68 571 | msgid "Login Customizer" 572 | msgstr "" 573 | 574 | #: includes/lib/class-colorlib-login-customizer-settings.php:83 575 | msgid "Settings" 576 | msgstr "" 577 | 578 | #: includes/lib/class-colorlib-login-customizer-settings.php:99 579 | msgid "" 580 | "Login Customizer plugin allows you to easily customize your login page " 581 | "straight from your WordPress Customizer! You can preview your changes " 582 | "before you save them! Awesome, right?" 583 | msgstr "" 584 | 585 | #: includes/lib/class-colorlib-login-customizer-settings.php:100 586 | msgid "Start Customizing!" 587 | msgstr "" 588 | 589 | #: includes/lib/controls/class-colorlib-login-customizer-control-color-picker.php:74 590 | msgid "(clear)" 591 | msgstr "" 592 | 593 | #: includes/login-template.php:34 594 | #. translators: Login screen title. 1: Login screen name, 2: Network or site 595 | #. name 596 | msgid "%1$s ‹ %2$s — WordPress" 597 | msgstr "" 598 | 599 | #: includes/login-template.php:101 includes/login-template.php:190 600 | msgid "Log In" 601 | msgstr "" 602 | 603 | #: includes/login-template.php:103 604 | msgid "https://wordpress.org/" 605 | msgstr "" 606 | 607 | #: includes/login-template.php:104 608 | msgid "Powered by WordPress" 609 | msgstr "" 610 | 611 | #: includes/login-template.php:174 includes/login-template.php:216 612 | msgid "Username or Email Address" 613 | msgstr "" 614 | 615 | #: includes/login-template.php:178 616 | msgid "Password" 617 | msgstr "" 618 | 619 | #: includes/login-template.php:189 620 | msgid "Remember Me" 621 | msgstr "" 622 | 623 | #: includes/login-template.php:195 624 | msgid "Username" 625 | msgstr "" 626 | 627 | #: includes/login-template.php:199 628 | msgid "Email" 629 | msgstr "" 630 | 631 | #: includes/login-template.php:210 632 | msgid "Registration confirmation will be emailed to you." 633 | msgstr "" 634 | 635 | #: includes/login-template.php:211 636 | msgid "Register" 637 | msgstr "" 638 | 639 | #: includes/login-template.php:227 640 | msgid "Get New Password" 641 | msgstr "" 642 | 643 | #: includes/login-template.php:247 644 | msgid "Lost your password?" 645 | msgstr "" 646 | 647 | #: includes/login-template.php:253 648 | msgid "Back to" 649 | msgstr "" 650 | 651 | #. Description of the plugin/theme 652 | msgid "" 653 | "Colorlib Login Customizer is an awesome and intuitive plugin that helps you " 654 | "personalize your login form directly from the Customizer. The plugin fully " 655 | "supports the Live Customizer feature and you can see all the changes in " 656 | "real time and edit them." 657 | msgstr "" 658 | 659 | #. Author of the plugin/theme 660 | msgid "Colorlib" 661 | msgstr "" 662 | 663 | #. Author URI of the plugin/theme 664 | msgid "https://colorlib.com/" 665 | msgstr "" -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------