Plugin Directory

Changeset 3141307


Ignore:
Timestamp:
08/25/2024 06:34:36 PM (17 months ago)
Author:
Hakik
Message:

v1.1.6: Feature added Link Color and Link Hover Color, Addded iwllc_loaded class for login body tag

Location:
ideal-wp-login-logo-changer
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • ideal-wp-login-logo-changer/trunk/admin/backend.js

    r3096344 r3141307  
    3232        // Initialize color picker
    3333        $('.iwllc_wp_bg_color').wpColorPicker();
     34        $('.iwllc_wp_link_color').wpColorPicker();
     35        $('.iwllc_wp_link_hover_color').wpColorPicker();
    3436
    3537        // Image Popup Function
  • ideal-wp-login-logo-changer/trunk/ideal-wp-login-logo-changer.php

    r3126800 r3141307  
    33Plugin Name: Custom Login Logo
    44description: Change the default WordPress logo by uploading your site logo for the login page.
    5 Version: 1.1.5
     5Version: 1.1.6
    66Author: Hakik Zaman
    77Author URI: https://github.com/hakikz
     
    2323
    2424/*Defining Constant*/
    25 define("IWLLC_VERSION", '1.1.5');
     25define("IWLLC_VERSION", '1.1.6');
    2626
    2727/*Add body class for options page*/
     
    7474   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_bg_img_url');
    7575   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_logo_link');
     76   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_link_color');
     77   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_link_hover_color');
    7678   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_logo_width');
    7779   register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_logo_height');
     
    125127                <!-- Choose Background Type Section -->
    126128                <tr valign="top">
    127                     <th scope="row"><?php echo esc_html__( 'Set Background Type', 'ideal-wp-login-logo-changer' ); ?></th>
     129                    <th scope="row"><?php echo esc_html__( 'Background Type', 'ideal-wp-login-logo-changer' ); ?></th>
    128130                    <td>
    129131                        <select class="iwllc_wp_bg_select" name="iwllc_wp_set_bg">
     
    137139                <!-- Background Color Section -->
    138140                <tr class="type_color" valign="top">
    139                     <th scope="row"><?php echo esc_html__( 'Set Background Color', 'ideal-wp-login-logo-changer' ); ?> </th>
     141                    <th scope="row"><?php echo esc_html__( 'Background Color', 'ideal-wp-login-logo-changer' ); ?> </th>
    140142                    <td>
    141143                        <input type="text" class="iwllc_wp_bg_color" id="iwllc_wp_bg_color" name="iwllc_wp_bg_color" value="<?php echo esc_attr( get_option('iwllc_wp_bg_color', '#f0f0f1') ); ?>" data-default-color="#f0f0f1" />
     
    157159
    158160                <tr class="type_image" valign="top">
    159                     <th scope="row"><?php echo esc_html__( 'Set Background Image', 'ideal-wp-login-logo-changer' ); ?> </th>
     161                    <th scope="row"><?php echo esc_html__( 'Background Image', 'ideal-wp-login-logo-changer' ); ?> </th>
    160162                    <td>
    161163                        <input type="text" id="iwllc_wp_bg_img_url" name="iwllc_wp_bg_img_url" value="<?php echo esc_attr( get_option('iwllc_wp_bg_img_url') ); ?>" />
     
    167169                <!-- Logo Custom Link Section -->
    168170                <tr valign="top">
    169                     <th scope="row"><?php echo esc_html__( 'Set Your Logo Link', 'ideal-wp-login-logo-changer' ); ?> </th>
     171                    <th scope="row"><?php echo esc_html__( 'Your Logo Link', 'ideal-wp-login-logo-changer' ); ?> </th>
    170172                    <td>
    171173                        <input type="url" id="iwllc_wp_logo_link" name="iwllc_wp_logo_link" value="<?php echo esc_attr( get_option('iwllc_wp_logo_link') ); ?>" />
    172174                        <p class="description"><i><?php echo esc_html__( 'Set your desired link, to redirect after clicking on your logo', 'ideal-wp-login-logo-changer' ) ?></i></p>
     175                    </td>
     176                </tr>
     177
     178                <!-- Link Color Section -->
     179                <tr valign="top">
     180                    <th scope="row"><?php echo esc_html__( 'Link Color', 'ideal-wp-login-logo-changer' ); ?> </th>
     181                    <td>
     182                        <input type="text" class="iwllc_wp_link_color" id="iwllc_wp_link_color" name="iwllc_wp_link_color" value="<?php echo esc_attr( get_option('iwllc_wp_link_color', '#50575e') ); ?>" data-default-color="#50575e" />
     183                        <p class="description"><i><?php echo esc_html__( 'Set your desired color, to change the login page link color', 'ideal-wp-login-logo-changer' ) ?></i></p>
     184                    </td>
     185                </tr>
     186
     187                <!-- Link Hover Color Section -->
     188                <tr valign="top">
     189                    <th scope="row"><?php echo esc_html__( 'Link Hover Color', 'ideal-wp-login-logo-changer' ); ?> </th>
     190                    <td>
     191                        <input type="text" class="iwllc_wp_link_hover_color" id="iwllc_wp_link_hover_color" name="iwllc_wp_link_hover_color" value="<?php echo esc_attr( get_option('iwllc_wp_link_hover_color', '#135e96') ); ?>" data-default-color="#135e96" />
     192                        <p class="description"><i><?php echo esc_html__( 'Set your desired color, to change the login page link hover color', 'ideal-wp-login-logo-changer' ) ?></i></p>
    173193                    </td>
    174194                </tr>
     
    244264    $bg_color=get_option('iwllc_wp_bg_color', '#f0f0f1');
    245265
     266    $link_color=get_option('iwllc_wp_link_color', '#50575e');
     267
     268    $link_hover_color=get_option('iwllc_wp_link_hover_color', '#135e96');
     269
    246270    $bg_img_url=get_option('iwllc_wp_bg_img_url');
    247271
     
    293317
    294318            }';
     319
     320        // Link Color CSS
     321        $style .= 'body.iwllc_loaded p#nav a, body.iwllc_loaded p#backtoblog a{
     322
     323                color: '.$link_color.';
     324
     325            }
     326        ';
     327
     328        // Link Hover Color CSS
     329        $style .= 'body.iwllc_loaded p#nav a:hover, body.iwllc_loaded p#backtoblog a:hover{
     330
     331                color: '.$link_hover_color.';
     332
     333            }
     334        ';
    295335
    296336    $style .= '</style>';
     
    333373                delete_option('iwllc_wp_bg_img_url');
    334374                delete_option('iwllc_wp_logo_link');
     375                delete_option('iwllc_wp_link_color');
     376                delete_option('iwllc_wp_link_hover_color');
    335377                delete_option('iwllc_wp_logo_width');
    336378                delete_option('iwllc_wp_logo_height');
     
    343385add_action( 'iwllc_settings_start', 'iwllc_reset_settings' );
    344386
     387
     388function iwllc_add_class_login_page( $classes ) {
     389    $classes[] = "iwllc_loaded";
     390    return $classes;
     391}
     392
     393add_filter( 'login_body_class', 'iwllc_add_class_login_page' );
     394
    345395?>
  • ideal-wp-login-logo-changer/trunk/readme.txt

    r3126800 r3141307  
    55Tested up to: 6.6
    66Requires PHP: 5.2.4
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2424👉 You can redirect anywhere after clicking on your site logo (if you set a link).
    2525👉 You can check current logo right after saving your settings on plugin setting page.
     26👉 Change the link color under the login button.
     27👉 Link hover color can also be changed from the settings page.
    2628
    2729== How does the Custom Login Logo For WordPress work: ==
     
    6163
    6264== Changelog ==
     65
     66= 1.1.6 [26-08-2024] =
     67* Add: Added a class `iwllc_loaded` for login page body tag.
     68* Feature: Added option to change link color.
     69* Feature: Link hover color option also available now.
    6370
    6471= 1.1.5 [28-07-2024] =
Note: See TracChangeset for help on using the changeset viewer.