Changeset 3273277
- Timestamp:
- 04/15/2025 09:54:46 AM (11 months ago)
- Location:
- osom-login-page-customizer
- Files:
-
- 17 added
- 3 edited
-
tags/1.1.6 (added)
-
tags/1.1.6/README.txt (added)
-
tags/1.1.6/assets (added)
-
tags/1.1.6/assets/css (added)
-
tags/1.1.6/assets/css/osom-login-customizer.css (added)
-
tags/1.1.6/assets/img (added)
-
tags/1.1.6/assets/img/icon.png (added)
-
tags/1.1.6/assets/js (added)
-
tags/1.1.6/assets/js/iris-init.js (added)
-
tags/1.1.6/inc (added)
-
tags/1.1.6/inc/osom-admin.php (added)
-
tags/1.1.6/languages (added)
-
tags/1.1.6/languages/osom-lc-es_ES.mo (added)
-
tags/1.1.6/languages/osom-lc-es_ES.po (added)
-
tags/1.1.6/languages/osom-lc.pot (added)
-
tags/1.1.6/osom-login-customizer.php (added)
-
tags/1.1.6/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/inc/osom-admin.php (modified) (10 diffs)
-
trunk/osom-login-customizer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
osom-login-page-customizer/trunk/README.txt
r3202176 r3273277 4 4 Tags: Login, admin login, custom login, wordpress login, wp login, customize WordPress login page 5 5 Requires at least: 4.9 6 Tested up to: 6. 77 Stable tag: 1.1. 56 Tested up to: 6.8 7 Stable tag: 1.1.6 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 83 83 == Changelog == 84 84 85 = 1.1.6 = 86 * Fix PHP notice. 87 85 88 = 1.1.5 = 86 89 * Improve how handles the site logo. -
osom-login-page-customizer/trunk/inc/osom-admin.php
r2993829 r3273277 7 7 8 8 // If this file is called directly, abort. 9 if ( ! defined( 'WPINC' ) ) {9 if ( !defined( 'WPINC' ) ) { 10 10 die; 11 11 } … … 33 33 34 34 // Create new item in the admin menu 35 if ( ! function_exists( __NAMESPACE__ . '\osom_lc_parent_page' ) ) {35 if ( !function_exists( __NAMESPACE__ . '\osom_lc_parent_page' ) ) { 36 36 37 37 function osom_lc_parent_page() { 38 38 39 if ( ! osom_lc_menu_exists( 'osom' ) ) {39 if ( !osom_lc_menu_exists( 'osom' ) ) { 40 40 add_menu_page( 41 41 'Osom', … … 52 52 add_action( 'admin_menu', __NAMESPACE__ . '\osom_lc_parent_page' ); 53 53 } 54 if ( ! function_exists( __NAMESPACE__ . '\osom_lc_add_submenu' ) ) { 54 55 if ( !function_exists( __NAMESPACE__ . '\osom_lc_add_submenu' ) ) { 55 56 function osom_lc_add_submenu() { 56 57 add_submenu_page( … … 85 86 do_settings_sections( 'osom_lc_main_menu' ); 86 87 submit_button(); 87 88 88 } 89 89 … … 96 96 add_settings_section( 'osom_lc_section', '', __NAMESPACE__ . '\osom_lc_section_callback', 'osom_lc_main_menu' ); 97 97 98 $settings = get_option( 'osom_lc_settings' ); 99 100 if ( ! isset( $settings['lostpassword'] ) ) { 98 $settings = get_option( 'osom_lc_settings', array() ); 99 100 if ( !is_array( $settings ) ) { 101 $settings = array(); 102 } 103 104 if ( !isset( $settings['lostpassword'] ) ) { 101 105 $settings['lostpassword'] = 0; 102 106 } 103 if ( ! isset( $settings['remember'] ) ) {107 if ( !isset( $settings['remember'] ) ) { 104 108 $settings['remember'] = 0; 105 109 } 106 if ( ! isset( $settings['lostpassword'] ) ) {110 if ( !isset( $settings['lostpassword'] ) ) { 107 111 $settings['lostpassword'] = 0; 108 112 } 109 if ( ! isset( $settings['backtoblog'] ) ) {113 if ( !isset( $settings['backtoblog'] ) ) { 110 114 $settings['backtoblog'] = ''; 111 115 } 112 if ( ! isset( $settings['langswitcher'] ) ) {116 if ( !isset( $settings['langswitcher'] ) ) { 113 117 $settings['langswitcher'] = ''; 114 118 } 115 if ( ! isset( $settings['backgroundcolor'] ) ) {119 if ( !isset( $settings['backgroundcolor'] ) ) { 116 120 $settings['backgroundcolor'] = ''; 117 121 } 118 if ( ! isset( $settings['formcolor'] ) ) {122 if ( !isset( $settings['formcolor'] ) ) { 119 123 $settings['formcolor'] = ''; 120 124 } 121 if ( ! isset( $settings['bordercolor'] ) ) {125 if ( !isset( $settings['bordercolor'] ) ) { 122 126 $settings['bordercolor'] = ''; 123 127 } 124 if ( ! isset( $settings['buttoncolor'] ) ) {128 if ( !isset( $settings['buttoncolor'] ) ) { 125 129 $settings['buttoncolor'] = ''; 126 130 } 127 if ( ! isset( $settings['loginurl'] ) ) {131 if ( !isset( $settings['loginurl'] ) ) { 128 132 $settings['loginurl'] = ''; 129 133 } … … 170 174 ); 171 175 172 if ( $wp_version >= 5.9 ) {176 if ( $wp_version >= 5.9 ) { 173 177 add_settings_field( 174 178 'osom_lc_field_lang_switcher', … … 262 266 ) 263 267 ); 264 265 268 } 266 269 … … 291 294 function osom_lc_fields_callback( $args ) { 292 295 293 if ( ! isset( $args['placeholder'] ) ) {296 if ( !isset( $args['placeholder'] ) ) { 294 297 $args['placeholder'] = ''; 295 298 } … … 301 304 <input type="checkbox" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( $args['value'], 1 ); ?> value="1"> 302 305 <?php 303 break;306 break; 304 307 305 308 case 'color': … … 307 310 <input type="text" class="color-picker" name="<?php echo esc_attr( $args['name'] ); ?>" id='color-picker-<?php echo esc_attr( $args['idcolor'] ); ?>' value="<?php echo esc_attr( $args['value'] ); ?>" /> 308 311 <?php 309 break;312 break; 310 313 311 314 default: 312 echo '<input type="text" name="' . esc_attr( $args['name'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" size="60">';313 break;314 endswitch;315 316 } 317 318 if ( ! function_exists( 'osom_lc_menu_exists' ) ) {315 echo '<input type="text" name="' . esc_attr( $args['name'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" size="60">'; 316 break; 317 endswitch; 318 319 } 320 321 if ( !function_exists( 'osom_lc_menu_exists' ) ) { 319 322 function osom_lc_menu_exists( $handle, $sub = false ) { 320 if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {323 if ( !is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 321 324 return false; 322 325 } -
osom-login-page-customizer/trunk/osom-login-customizer.php
r3202176 r3273277 6 6 * Plugin URI: https://osompress.com 7 7 * Description: Osom Login Page Customizer lets you to easily customize the layout of the WordPress login page. 8 * Version: 1.1. 58 * Version: 1.1.6 9 9 * Author: OsomPress 10 10 * Author URI: https://osompress.com/plugins/osom-login-page-customizer … … 27 27 } 28 28 29 define( 'OSOM_LC_VERSION', '1.1. 5' );29 define( 'OSOM_LC_VERSION', '1.1.6' ); 30 30 31 31 add_action( 'init', __NAMESPACE__ . '\osom_lc_init' );
Note: See TracChangeset
for help on using the changeset viewer.