Changeset 3141307
- Timestamp:
- 08/25/2024 06:34:36 PM (17 months ago)
- Location:
- ideal-wp-login-logo-changer
- Files:
-
- 5 added
- 3 edited
-
tags/1.1.6 (added)
-
tags/1.1.6/admin (added)
-
tags/1.1.6/admin/backend.js (added)
-
tags/1.1.6/ideal-wp-login-logo-changer.php (added)
-
tags/1.1.6/readme.txt (added)
-
trunk/admin/backend.js (modified) (1 diff)
-
trunk/ideal-wp-login-logo-changer.php (modified) (11 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ideal-wp-login-logo-changer/trunk/admin/backend.js
r3096344 r3141307 32 32 // Initialize color picker 33 33 $('.iwllc_wp_bg_color').wpColorPicker(); 34 $('.iwllc_wp_link_color').wpColorPicker(); 35 $('.iwllc_wp_link_hover_color').wpColorPicker(); 34 36 35 37 // Image Popup Function -
ideal-wp-login-logo-changer/trunk/ideal-wp-login-logo-changer.php
r3126800 r3141307 3 3 Plugin Name: Custom Login Logo 4 4 description: Change the default WordPress logo by uploading your site logo for the login page. 5 Version: 1.1. 55 Version: 1.1.6 6 6 Author: Hakik Zaman 7 7 Author URI: https://github.com/hakikz … … 23 23 24 24 /*Defining Constant*/ 25 define("IWLLC_VERSION", '1.1. 5');25 define("IWLLC_VERSION", '1.1.6'); 26 26 27 27 /*Add body class for options page*/ … … 74 74 register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_bg_img_url'); 75 75 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'); 76 78 register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_logo_width'); 77 79 register_setting( 'iwllc_change_login_options_group', 'iwllc_wp_logo_height'); … … 125 127 <!-- Choose Background Type Section --> 126 128 <tr valign="top"> 127 <th scope="row"><?php echo esc_html__( ' SetBackground Type', 'ideal-wp-login-logo-changer' ); ?></th>129 <th scope="row"><?php echo esc_html__( 'Background Type', 'ideal-wp-login-logo-changer' ); ?></th> 128 130 <td> 129 131 <select class="iwllc_wp_bg_select" name="iwllc_wp_set_bg"> … … 137 139 <!-- Background Color Section --> 138 140 <tr class="type_color" valign="top"> 139 <th scope="row"><?php echo esc_html__( ' SetBackground Color', 'ideal-wp-login-logo-changer' ); ?> </th>141 <th scope="row"><?php echo esc_html__( 'Background Color', 'ideal-wp-login-logo-changer' ); ?> </th> 140 142 <td> 141 143 <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" /> … … 157 159 158 160 <tr class="type_image" valign="top"> 159 <th scope="row"><?php echo esc_html__( ' SetBackground Image', 'ideal-wp-login-logo-changer' ); ?> </th>161 <th scope="row"><?php echo esc_html__( 'Background Image', 'ideal-wp-login-logo-changer' ); ?> </th> 160 162 <td> 161 163 <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') ); ?>" /> … … 167 169 <!-- Logo Custom Link Section --> 168 170 <tr valign="top"> 169 <th scope="row"><?php echo esc_html__( ' SetYour 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> 170 172 <td> 171 173 <input type="url" id="iwllc_wp_logo_link" name="iwllc_wp_logo_link" value="<?php echo esc_attr( get_option('iwllc_wp_logo_link') ); ?>" /> 172 174 <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> 173 193 </td> 174 194 </tr> … … 244 264 $bg_color=get_option('iwllc_wp_bg_color', '#f0f0f1'); 245 265 266 $link_color=get_option('iwllc_wp_link_color', '#50575e'); 267 268 $link_hover_color=get_option('iwllc_wp_link_hover_color', '#135e96'); 269 246 270 $bg_img_url=get_option('iwllc_wp_bg_img_url'); 247 271 … … 293 317 294 318 }'; 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 '; 295 335 296 336 $style .= '</style>'; … … 333 373 delete_option('iwllc_wp_bg_img_url'); 334 374 delete_option('iwllc_wp_logo_link'); 375 delete_option('iwllc_wp_link_color'); 376 delete_option('iwllc_wp_link_hover_color'); 335 377 delete_option('iwllc_wp_logo_width'); 336 378 delete_option('iwllc_wp_logo_height'); … … 343 385 add_action( 'iwllc_settings_start', 'iwllc_reset_settings' ); 344 386 387 388 function iwllc_add_class_login_page( $classes ) { 389 $classes[] = "iwllc_loaded"; 390 return $classes; 391 } 392 393 add_filter( 'login_body_class', 'iwllc_add_class_login_page' ); 394 345 395 ?> -
ideal-wp-login-logo-changer/trunk/readme.txt
r3126800 r3141307 5 5 Tested up to: 6.6 6 6 Requires PHP: 5.2.4 7 Stable tag: 1.1. 57 Stable tag: 1.1.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 24 24 👉 You can redirect anywhere after clicking on your site logo (if you set a link). 25 25 👉 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. 26 28 27 29 == How does the Custom Login Logo For WordPress work: == … … 61 63 62 64 == 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. 63 70 64 71 = 1.1.5 [28-07-2024] =
Note: See TracChangeset
for help on using the changeset viewer.