Plugin Directory

Changeset 2973931


Ignore:
Timestamp:
10/02/2023 03:35:14 PM (2 years ago)
Author:
Hakik
Message:

v1.1.2: Style added for setting page and compatibility with WordPress 6.3

Location:
ideal-wp-login-logo-changer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ideal-wp-login-logo-changer/trunk/ideal-wp-login-logo-changer.php

    r2898156 r2973931  
    11<?php
    22/*
    3 Plugin Name: Custom Login Logo For WordPress
     3Plugin Name: Custom Login Logo
    44description: Change the default WordPress logo by uploading your site logo for the login page.
    5 Version: 1.1.1
     5Version: 1.1.2
    66Author: Hakik Zaman
    77Author URI: https://github.com/hakikz
     
    2222
    2323/*Defining Constant*/
    24 define("IWLLC_VERSION", '1.1.1');
     24define("IWLLC_VERSION", '1.1.2');
     25
     26/*Add body class for options page*/
     27function iwllc_admin_body_class( $classes ) {
     28    global $pagenow;
     29
     30    if ( in_array( $pagenow, array( 'options-general.php' ), true ) &&  $_GET['page'] == 'change_login_logo' ) {
     31        $classes .= ' idllc-option-page';
     32    }
     33
     34    return $classes;
     35}
     36
     37add_filter( 'admin_body_class', 'iwllc_admin_body_class' );
     38
     39/*Adding Styles for the option page*/
     40function iwllc_styles_option_page(){
     41    global $pagenow;
     42
     43    if ( in_array( $pagenow, array( 'options-general.php' ), true ) &&  $_GET['page'] == 'change_login_logo' ) {
     44        ?>
     45            <style type="text/css">
     46                .idllc-option-page table.form-table tbody {
     47                    background-color: #fff;
     48                }
     49
     50                .idllc-option-page table.form-table tbody tr:not(:last-child) {
     51                    border-bottom: 1px solid #eee;
     52                }
     53
     54                .idllc-option-page table.form-table tbody th {
     55                    padding: 15px 10px;
     56                }
     57
     58            </style>
     59        <?php
     60    }
     61}
     62add_action( 'admin_head', 'iwllc_styles_option_page' );
    2563
    2664
  • ideal-wp-login-logo-changer/trunk/readme.txt

    r2898156 r2973931  
    1 === Custom Login Logo For WordPress ===
     1=== Custom Login Logo ===
    22Contributors: hakik, idealwebguru
    33Tags: Change WP default logo, WordPress Logo change, Login Logo, Custom logo, WP admin logo,
    44Requires at least: 5.8
    5 Tested up to: 6.2
     5Tested up to: 6.3
    66Requires PHP: 5.2.4
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6262== Changelog ==
    6363
     64= 1.1.2 [02-10-2023] =
     65* Enhancement: Improved the option page style.
     66* Compatibility: WordPress 6.3.
     67
    6468= 1.1.1 [13-04-2023] =
    6569* Feature: Change the Backgroud of the login page. Can be added color/image for the background of the login page.
Note: See TracChangeset for help on using the changeset viewer.