Plugin Directory

Changeset 3319592


Ignore:
Timestamp:
06/29/2025 09:17:19 PM (9 months ago)
Author:
pattihis
Message:

Version 1.0.3

Location:
simple-custom-login-page
Files:
45 added
10 edited

Legend:

Unmodified
Added
Removed
  • simple-custom-login-page/trunk/admin/class-simple-custom-login-page-admin.php

    r3015871 r3319592  
    99 * @subpackage Simple_Custom_Login_Page/admin
    1010 */
     11
     12// If this file is called directly, abort.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit;
     15}
    1116
    1217/**
  • simple-custom-login-page/trunk/admin/css/simple-custom-login-page-admin.css

    r3015871 r3319592  
    11.settings_page_simple-custom-login-page table {
    2   margin: 32px 0;
    3   background: #fff;
    4   border-radius: 16px;
    5   max-width: 600px;
     2    margin: 32px 0;
     3    background: #fff;
     4    border-radius: 16px;
     5    max-width: 600px;
    66}
    77
    88.settings_page_simple-custom-login-page table th {
    9   width: 150px;
     9    width: 150px;
    1010}
    1111
    1212.settings_page_simple-custom-login-page table th,
    1313.settings_page_simple-custom-login-page table td {
    14   padding: 16px;
     14    padding: 16px;
    1515}
    1616
    1717.settings_page_simple-custom-login-page table input[type="text"] {
    18   width: 100%
     18    width: 100%
    1919}
    2020
    2121.sclp-image-selector img {
    22   display: block;
    23   width: auto;
    24   height: auto;
    25   max-width: 300px;
    26   max-height: 100px;
    27   margin-bottom: 8px;
     22    display: block;
     23    width: auto;
     24    height: auto;
     25    max-width: 300px;
     26    max-height: 100px;
     27    margin-bottom: 8px;
    2828}
    2929
    3030.sclp-heading {
    31   display: flex;
    32   align-items: center;
    33   font-weight: 100;
    34   font-size: 38px;
    35   margin: 16px 0;
    36   padding: 16px;
    37   color: #ffffff;
    38   background: #2271b1;
    39   border-radius: 16px;
    40   max-width: 568px;
    41   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
     31    display: flex;
     32    align-items: center;
     33    font-weight: 100;
     34    font-size: 38px;
     35    margin: 16px 0;
     36    padding: 16px;
     37    color: #ffffff;
     38    background: #2271b1;
     39    border-radius: 16px;
     40    max-width: 568px;
     41    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    4242}
    4343
    4444.sclp-heading::before {
    45   content: "";
    46   display: block;
    47   background-image: url(../images/sclp-logo.svg);
    48   background-repeat: no-repeat;
    49   background-size: 100%;
    50   width: 60px;
    51   height: 60px;
    52   margin-right: 16px;
     45    content: "";
     46    display: block;
     47    background-image: url(../images/sclp-logo.svg);
     48    background-repeat: no-repeat;
     49    background-size: 100%;
     50    width: 60px;
     51    height: 60px;
     52    margin-right: 16px;
    5353}
    5454
    5555.sclp-info {
    56   color: #777;
    57   font-size: 12px;
    58   font-style: italic;
     56    color: #777;
     57    font-size: 12px;
     58    font-style: italic;
    5959}
  • simple-custom-login-page/trunk/admin/js/simple-custom-login-page-admin.js

    r3015871 r3319592  
    1 jQuery(document).ready(function ($) {
    2     let custom_uploader;
    3     $('#upload_image_button').click(function (e) {
    4         e.preventDefault();
     1/**
     2 * Simple Custom Login Page Admin JavaScript
     3 *
     4 * @package Simple_Custom_Login_Page
     5 * @since 1.0.0
     6 */
    57
    6         if (custom_uploader) {
    7             custom_uploader.open();
    8             return;
    9         }
     8jQuery( document ).ready(
     9    function ($) {
     10        let custom_uploader;
     11        $( '#upload_image_button' ).click(
     12            function (e) {
     13                e.preventDefault();
    1014
    11         custom_uploader = wp.media.frames.file_frame = wp.media({
    12             title: 'Choose Image',
    13             button: {
    14                 text: 'Choose Image'
    15             },
    16             multiple: false
    17         });
     15                if (custom_uploader) {
     16                    custom_uploader.open();
     17                    return;
     18                }
    1819
    19         custom_uploader.on('select', function () {
    20             attachment = custom_uploader.state().get('selection').first().toJSON();
    21             $('#simple_custom_login_page_image').val(attachment.url);
    22             $('#upload_image_preview').attr('src', attachment.url);
    23         });
     20                custom_uploader = wp.media.frames.file_frame = wp.media(
     21                    {
     22                        title: 'Choose Image',
     23                        button: {
     24                            text: 'Choose Image'
     25                        },
     26                        multiple: false
     27                    }
     28                );
    2429
    25         custom_uploader.open();
    26     });
     30                custom_uploader.on(
     31                    'select',
     32                    function () {
     33                        attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
     34                        $( '#simple_custom_login_page_image' ).val( attachment.url );
     35                        $( '#upload_image_preview' ).attr( 'src', attachment.url );
     36                    }
     37                );
    2738
    28     $('#reset_image_button').click(function (e) {
    29         e.preventDefault();
    30         $('#simple_custom_login_page_image').val('');
    31         $('#upload_image_preview').attr('src', $('#upload_image_preview').data('default'));
    32     });
     39                custom_uploader.open();
     40            }
     41        );
    3342
    34     $('#simple_custom_login_page_form_bg').wpColorPicker();
    35     $('#simple_custom_login_page_background').wpColorPicker();
    36     $('#simple_custom_login_page_text_color').wpColorPicker();
    37     $('#simple_custom_login_page_link_color').wpColorPicker();
    38 });
     43        $( '#reset_image_button' ).click(
     44            function (e) {
     45                e.preventDefault();
     46                $( '#simple_custom_login_page_image' ).val( '' );
     47                $( '#upload_image_preview' ).attr( 'src', $( '#upload_image_preview' ).data( 'default' ) );
     48            }
     49        );
    3950
    40 
     51        $( '#simple_custom_login_page_form_bg' ).wpColorPicker();
     52        $( '#simple_custom_login_page_background' ).wpColorPicker();
     53        $( '#simple_custom_login_page_text_color' ).wpColorPicker();
     54        $( '#simple_custom_login_page_link_color' ).wpColorPicker();
     55    }
     56);
  • simple-custom-login-page/trunk/includes/class-simple-custom-login-page-activator.php

    r3015871 r3319592  
    99 * @subpackage Simple_Custom_Login_Page/includes
    1010 */
     11
     12// If this file is called directly, abort.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit;
     15}
    1116
    1217/**
     
    2833     */
    2934    public static function activate() {
    30 
    3135    }
    32 
    3336}
  • simple-custom-login-page/trunk/includes/class-simple-custom-login-page-deactivator.php

    r3015871 r3319592  
    99 * @subpackage Simple_Custom_Login_Page/includes
    1010 */
     11
     12// If this file is called directly, abort.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit;
     15}
    1116
    1217/**
  • simple-custom-login-page/trunk/includes/class-simple-custom-login-page-i18n.php

    r3015871 r3319592  
    1212 * @subpackage Simple_Custom_Login_Page/includes
    1313 */
     14
     15// If this file is called directly, abort.
     16if ( ! defined( 'ABSPATH' ) ) {
     17    exit;
     18}
    1419
    1520/**
     
    3843            dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
    3944        );
    40 
    4145    }
    42 
    4346}
  • simple-custom-login-page/trunk/includes/class-simple-custom-login-page-loader.php

    r3015871 r3319592  
    99 * @subpackage Simple_Custom_Login_Page/includes
    1010 */
     11
     12// If this file is called directly, abort.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit;
     15}
    1116
    1217/**
  • simple-custom-login-page/trunk/includes/class-simple-custom-login-page.php

    r3199992 r3319592  
    99 * @subpackage Simple_Custom_Login_Page/includes
    1010 */
     11
     12// If this file is called directly, abort.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit;
     15}
    1116
    1217/**
     
    6570            $this->version = SCLP_VERSION;
    6671        } else {
    67             $this->version = '1.0.2';
     72            $this->version = '1.0.3';
    6873        }
    6974        $this->plugin_name = 'simple-custom-login-page';
     
    95100         * core plugin.
    96101         */
    97         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-custom-login-page-loader.php';
     102        require_once plugin_dir_path( __DIR__ ) . 'includes/class-simple-custom-login-page-loader.php';
    98103
    99104        /**
     
    101106         * of the plugin.
    102107         */
    103         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-custom-login-page-i18n.php';
     108        require_once plugin_dir_path( __DIR__ ) . 'includes/class-simple-custom-login-page-i18n.php';
    104109
    105110        /**
    106111         * The class responsible for defining all actions that occur in the admin area.
    107112         */
    108         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-simple-custom-login-page-admin.php';
     113        require_once plugin_dir_path( __DIR__ ) . 'admin/class-simple-custom-login-page-admin.php';
    109114
    110115        $this->loader = new Simple_Custom_Login_Page_Loader();
  • simple-custom-login-page/trunk/readme.txt

    r3199992 r3319592  
    11=== Simple Custom Login Page ===
    22Contributors: pattihis
    3 Tags: login, logo, login logo, admin, customisation, customization, branding, colors, custom login, wp-login, login page, login brand
     3Tags: login, custom login, branding, colors, wp-login
    44Requires at least: 5.3.0
    5 Tested up to: 6.7.1
     5Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070== Changelog ==
    7171
     72= Version 1.0.3 =
     73* Ensure compatibility with WP 6.8
     74* Reduced tags to the 5 most useful and relevant ones
     75* Ensured full WordPress coding standards compliance (PHPCS)
     76
    7277= Version 1.0.2 =
    7378* Compatible with WP 6.7
  • simple-custom-login-page/trunk/simple-custom-login-page.php

    r3199992 r3319592  
    1414 * Plugin URI:        https://wordpress.org/plugins/simple-custom-login-page/
    1515 * Description:       This plugin allows you to customize the image and the appearance of the WordPress Login Screen.
    16  * Version:           1.0.2
     16 * Version:           1.0.3
    1717 * Requires at least: 5.3.0
    18  * Tested up to:      6.7.1
     18 * Tested up to:      6.8
    1919 * Requires PHP:      7.0
    2020 * Author:            George Pattichis
     
    5353 * @var string The current plugin version.
    5454 */
    55 define( 'SCLP_VERSION', '1.0.2' );
     55define( 'SCLP_VERSION', '1.0.3' );
    5656
    5757/**
Note: See TracChangeset for help on using the changeset viewer.