Plugin Directory

Changeset 3030821


Ignore:
Timestamp:
02/03/2024 08:21:20 AM (13 months ago)
Author:
icelayer
Message:

Update to version 7.2.1 from GitHub

Location:
wp-white-label-login
Files:
30 added
26 deleted
32 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-white-label-login/tags/7.2.1/readme.txt

    r3030343 r3030821  
    1 === White Label Custom WordPress Login Page ===
     1=== Easy White Label ===
     2
    23Contributors: icelayer
    34Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6D6W2KXB88NKE
    4 Tags: custom login page, custom login, wordpress login, white label, login customizer, branding,
     5Tags: custom custom login, wordpress login, white label, login customizer, branding,
    56Requires at least: 3.4
    67Tested up to: 6.4
    7 Stable tag: 7.2.0
     8Stable tag: 7.2.1
    89Requires PHP: 7.4
    910License: GNU Version 2 or Any Later Version
    1011License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1112
    12 White Label Login, Custom Login Page, Registration, and Lost Password Page Activate it and forget it...
     13
     14Enhance login experience with a customized login, registration, and lost password page. Activate and enjoy a seamless branded login area.
    1315
    1416== Description ==
    1517
    16 Custom Login Page with Login Customizer options, Customize WordPress Login Page, Registration, and Lost Password Page.
     18Transform your WordPress login experience with the **Easy White Label** plugin. Tailor your login, registration, and lost password pages to match your brand's style and identity, offering a consistent and professional look across your site.
    1719
    18 Easy to use and very simple after you activate this plugin you can choose to change some settings or leave everything as is the login page has already been white-labeled and customized.
     20After activating the plugin, you can either tweak various settings to suit your branding needs or enjoy the immediate enhancement it brings to your login page. From changing the logo to customizing the background, this plugin offers an array of options to personalize your login area.
    1921
    20 But maybe you want to change the logo or change the login page background, well you can now easily change the default logo and set custom login page background and much more.
     22=  Key Features: =
    2123
    22 = Custom Login Page Customizer detailed feature list: =
    23 * Custom Login page header
    24 * Custom Login page header background-color
    25 * Custom Login page header description text
    26 * Custom Login page header link
    27 * Custom logo Change WordPress login logo
    28 * Custom Login page logo link
    29 * Change login form alignment
    30 * Add a custom background image
    31 * Add a custom background-attachment property set whether background image scrolls with the rest of the page or is fixed
    32 * Add a custom background-size specifies the size of the background images
    33 * Add a custom background-repeat property sets if/how the background image will be repeated.
    34 * Add a custom background-position property set the starting position of a background image.
    35 * Add a custom background-color
    36 * Add Custom Login Page CSS
    37 * Custom WordPress Login Page Footer
     24- **Customizable Login Header:** Modify the login page header, including background color and description text.
     25- **Logo Personalization:** Replace the default WordPress logo with your brand's logo and customize the link it directs to.
     26- **Form Alignment & Style:** Adjust the login form's alignment and inject custom CSS for unique styling.
     27- **Background Customization:** Set a custom background image, size, repeat, position, and color to align with your brand's aesthetic.
     28- **Enhanced Footer:** Personalize the WordPress login page footer for a complete branded experience.
    3829
    39 By far the simplest login white label plugin for any WordPress Website, activate and you are done.
     30Designed for simplicity, the plugin offers intuitive settings and defaults that require no adjustments. However, should you wish to fine-tune your login page, the options are readily available and easy to navigate.
    4031
    41 Easy to use, simple settings options, simplified sensible defaults, you never need to change a single setting the new settings are completely optional.
    42 
    43 The plugin options can be found by going to Appearance > Customize > White Label Login Options.
    44 
    45 If you found a bug or have suggestions head over to the [Support Section](https://wordpress.org/support/plugin/wp-white-label-login/)
     32Access the plugin settings via **Appearance > Customize > White Label Login Options** in your WordPress dashboard.
    4633
    4734== Installation ==
    4835
    49 1. Upload White Label Login to the /wp-content/plugins/ directory.
    50 2. Activate the plugin through the \'Plugins\' menu in WordPress.
    51 3. That’s it!.
     361. Upload the `White Label Login` plugin to your `/wp-content/plugins/` directory.
     372. Activate the plugin through the 'Plugins' menu in WordPress.
     383. You're all set! Optionally, customize the settings via Appearance > Customize > White Label Login Options.
    5239
    5340== Frequently Asked Questions ==
    5441
    55 = Will this work with my current theme =
     42**Q: Will this plugin work with my theme?** 
     43A: Absolutely! This plugin is designed to work seamlessly with any WordPress theme.
    5644
    57 Yes, this plugin will work with any WordPress theme.
    58 
    59 = Where can I find the Admin Settings =
    60 
    61 The plugin options can be found by going to Appearance > Customize > White Label Login Options
    62 
    63 =  =
    64 
    65 
    66 
     45**Q: Where can I find the plugin settings?** 
     46A: Navigate to Appearance > Customize > White Label Login Options in your WordPress dashboard to access and customize the plugin settings.
    6747
    6848== Screenshots ==
    6949
    70 1. Custom login page.
    71 2. Customizer Options
    72 3. Custom login page.
     501. Customized login page showcasing your brand's identity.
     512. Easy-to-navigate customizer options for personalization.
     523. Preview of a fully customized login page.
    7353
    7454== Changelog ==
    7555
     56https://github.com/devuri/wp-white-label-login/releases
    7657
    7758== Upgrade Notice ==
     59
     60*Keep your plugin updated for the latest features and improvements.*
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Admin/OptionSettings.php

    r3030343 r3030821  
    4040
    4141    /**
     42     * Retrieves the option name.
     43     *
     44     * @return string The option name.
     45     */
     46    public function get_opt_name(): string
     47    {
     48        return $this->option_name;
     49    }
     50
     51    /**
    4252     * Retrieves the section ID.
    4353     *
    4454     * @return string The section ID.
    4555     */
    46     public function get_section_id()
     56    public function get_section_id(): string
    4757    {
    4858        return $this->section_id;
     
    148158                'hidden'   => false,
    149159                'disabled' => false,
    150                 'info'     => false,
     160                'info'     => null,
    151161                'width'    => '200',
    152162                'checked'  => null,
     
    156166
    157167        ?>
    158         <div style="padding-bottom: 1em; color:#333333;font-weight:600">
     168        <div style="margin-bottom: 1.4em;" id="input-<?php echo esc_attr( $params['id'] ); ?>">
    159169            <input name="<?php echo esc_attr( $params['name'] ); ?>" type="<?php echo esc_attr( $params['type'] ); ?>" id="<?php echo esc_attr( $params['id'] ); ?>" value="<?php echo esc_attr( $val ); ?>"  <?php echo esc_attr( $params['checked'] ); ?> >
    160             <label for="<?php echo esc_attr( $params['id'] ); ?>"><?php echo esc_html( $fieldname ); ?></label>
     170            <label style="color:#333333;font-weight:600" for="<?php echo esc_attr( $params['id'] ); ?>"><?php echo esc_html( $fieldname ); ?></label>
    161171            <br/>
     172            <?php self::_info( $params['info'] ); ?>
    162173        </div>
    163174        <?php
     
    205216        return str_replace( '-', '_', $field_id );
    206217    }
     218
     219    private static function _info( ?string $description_info = null, string $item_id = 'item-description' ): void
     220    {
     221        if ( ! $description_info ) {
     222            return;
     223        }
     224
     225        ?>
     226        <p class="description" id="<?php echo esc_attr( $item_id ); ?>">
     227            <?php echo wp_kses_post( $description_info ); ?>
     228        </p>
     229        <?php
     230    }
    207231}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Includes/helpers.php

    r3022707 r3030821  
    11<?php
    22
    3 /**
    4  * wpwhitelabel().
    5  *
    6  * @return object
    7  */
    8 function wpwhitelabel()
    9 {
    10     // new up wll object
    11     return EasyWhiteLabel\Plugin::init();
     3if ( ! \function_exists( 'wpwhitelabel' ) ) {
     4    /**
     5     * wpwhitelabel().
     6     *
     7     * @return object
     8     */
     9    function wpwhitelabel()
     10    {
     11        // new up wll object
     12        return EasyWhiteLabel\Plugin::init();
     13    }
    1214}
    1315
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Login/Background.php

    r3022487 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Background
     5class Background extends AbstractSettings
    66{
    77    /**
    8      * Body.
    9      *
    10      * the page body
    11      *
    12      * @return
     8     * Outputs the CSS for the page body background within a style tag.
    139     */
    14     public static function body()
     10    public static function body_css(): void
    1511    {
    16         return self::css();
     12        $css = self::init()->get_css_rules();
     13        echo '<style type="text/css">' . $css . '</style>';
    1714    }
    1815
    1916    /**
    20      * background.
     17     * Generates the CSS for the page body background.
    2118     *
    22      * echo the background for background-image css
    23      *
    24      * @see https://developer.wordpress.org/reference/functions/wp_get_attachment_url/
     19     * @return string The CSS rules for the body background.
    2520     */
    26     protected static function background(): void
     21    protected function generate_css(): ?string
    2722    {
    28         $background_img = wp_get_attachment_url( wpwhitelabel()->option( 'background_image' ) );
    29         echo $background_img;
    30     }
     23        $background_img = wp_get_attachment_url( self::$whitelabel->option( 'background_image' ) );
    3124
    32     /**
    33      * Body.
    34      *
    35      * the page body
    36      *
    37      * @return
    38      */
    39     protected static function css()
    40     {
    41         ?><style type="text/css">
     25        $background_color      = self::$whitelabel->get_setting( 'background_color', '#ffffff' );
     26        $background_image      = esc_url( $background_img );
     27        $background_attachment = self::$whitelabel->get_setting( 'background_attachment' );
     28        $background_size       = self::$whitelabel->get_setting( 'background_size', 'cover' );
     29        $background_repeat     = self::$whitelabel->get_setting( 'background_repeat', 'no-repeat' );
     30        $background_position   = self::$whitelabel->get_setting( 'background_position', 'left' );
     31
     32        return "
    4233            body {
    43                 background-color: <?php echo wpwhitelabel()->setting( 'background_color', '#ffffff' ); ?>;
    44                 background-image: url(<?php self::background(); ?>);
    45                 background-attachment: <?php echo wpwhitelabel()->setting( 'background_attachment' ); ?>;
    46                 background-size: <?php echo wpwhitelabel()->setting( 'background_size', 'cover' ); ?>;
    47                 background-repeat: <?php echo wpwhitelabel()->setting( 'background_repeat', 'no-repeat' ); ?>;
    48                 background-position: <?php echo wpwhitelabel()->setting( 'background_position', 'left' ); ?>;
     34                background-color: {$background_color};
     35                background-image: url({$background_image});
     36                background-attachment: {$background_attachment};
     37                background-size: {$background_size};
     38                background-repeat: {$background_repeat};
     39                background-position: {$background_position};
    4940            }
    50             </style>
    51             <?php
     41        ";
    5242    }
    5343}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Login/Footer.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Footer
     5class Footer extends AbstractSettings
    66{
    77    /**
    8      * show footer navigation.
    9      *
    10      * @var [type]
     8     * Outputs the footer content.
    119     */
    12     private static $nav;
     10    public static function footer(): void
     11    {
     12        $year              = gmdate( 'Y' );
     13        $footer_text_color = esc_attr( self::$whitelabel->get_setting( 'footer_text_color' ) );
     14        $footer_alignment  = esc_attr( self::$whitelabel->get_setting( 'footer_alignment' ) );
     15        $footer_text       = esc_html( self::$whitelabel->get_setting( 'footer_text' ) );
     16        $site_url          = esc_url( get_bloginfo( 'url' ) );
     17        $site_name         = esc_html( get_bloginfo( 'name' ) );
     18        $copyright_text    = esc_html( self::$whitelabel->get_setting( 'copyright_text' ) );
    1319
    14     public static function menu(): void
     20        ob_start();
     21        ?>
     22
     23        <div class="push"></div>
     24        </div><!--wrapper-->
     25            <div  style=" font-size: small; color:<?php echo $footer_text_color; ?>;" id="footer" class="footer footer-copyright" align="<?php echo $footer_alignment; ?>">
     26                <div style="padding:8px; width: 70%; margin-bottom:12px;" class="footer-text">
     27                    <?php echo $footer_text; ?>
     28                </div><!--footer-text-->
     29                    <?php self::footer_nav_menu(); ?>
     30                <div style="padding:8px; width: 60%; margin-bottom:4px; color:<?php echo $footer_text_color; ?>;" class="footer-copyright">
     31                    Copyright © <?php echo $year; ?>
     32                        <a href="<?php echo $site_url; ?>"> <?php echo $site_name; ?> </a>
     33                    <span class="wll-footer-copyright-text">
     34                        <?php echo $copyright_text; ?>
     35                    </span>
     36                </div><!--footer-copyright-->
     37            </div><!--footer-->
     38        <?php
     39        $output = ob_get_clean();
     40        echo $output;
     41    }
     42
     43    private static function footer_nav_menu(): void
    1544    {
    16         self::$nav = wpwhitelabel()->setting( 'footer_nav' );
    17         if ( self::$nav ) { ?>
    18         <div align="<?php echo wpwhitelabel()->setting( 'footer_nav_alignment' ); ?>" style="padding: 12px;
    19           border-top: solid thin <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    20           border-bottom: solid thin <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    21           background-color: <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    22           box-shadow: 0 5px 15px rgba(0,0,0,.08);">
    23             <?php
    24             wp_nav_menu(
    25                 [
    26                     'theme_location'  => 'wll-footer-nav',
    27                     'container_class' => 'footer-navigation navigation clearfix',
    28                 ]
    29             );
     45        if ( self::$whitelabel->get_setting( 'footer_nav' ) ) {
     46            $footer_nav_alignment  = esc_attr( self::$whitelabel->get_setting( 'footer_nav_alignment' ) );
     47            $footer_nav_background = esc_attr( self::$whitelabel->get_setting( 'footer_nav_background' ) );
     48
    3049            ?>
    31             </div>
    32             <?php
     50            <div class="footer-nav" style="text-align:<?php echo $footer_nav_alignment; ?>; background-color:<?php echo $footer_nav_background; ?>;">
     51                <?php
     52                wp_nav_menu(
     53                    [
     54                        'theme_location'  => 'wll-footer-nav',
     55                        'container_class' => 'footer-navigation navigation clearfix',
     56                    ]
     57                );
     58                ?>
     59            </div>
     60            <?php
    3361        }
    3462    }
    35 
    36     /**
    37      * footer.
    38      *
    39      * @return mixed
    40      */
    41     public static function footer()
    42     {
    43         echo self::set_footer();
    44 
    45         return true;
    46     }
    47 
    48     /**
    49      * footer.
    50      *
    51      * add footer section to the login page
    52      *
    53      * @return mixed
    54      */
    55     protected static function set_footer()
    56     {
    57         $year = gmdate( 'Y' );
    58         ?>
    59     <div class="push"></div>
    60     </div><!--wrapper-->
    61     <div  style=" font-size: small; color:<?php echo wpwhitelabel()->setting( 'footer_text_color' ); ?>;" id="footer" class="footer footer-copyright" align="<?php echo wpwhitelabel()->setting( 'footer_alignment' ); ?>">
    62     <div style="padding:8px; width: 70%; margin-bottom:12px;" class="footer-text">
    63         <?php echo wpwhitelabel()->setting( 'footer_text' ); ?>
    64     </div><!--footer-text-->
    65         <?php self::menu(); ?>
    66     <div style="padding:8px; width: 60%; margin-bottom:4px; color:<?php echo wpwhitelabel()->setting( 'footer_text_color' ); ?>;" class="footer-copyright">
    67     Copyright © <?php echo $year; ?>
    68     <a href="<?php echo wpwhitelabel()->site_info( 'url' ); ?>">
    69         <?php echo wpwhitelabel()->site_info( 'name' ); ?>
    70     </a>
    71     <span class="wll-footer-copyright-text">
    72         <?php echo wpwhitelabel()->setting( 'copyright_text' ); ?>
    73     </span>
    74     </div><!--footer-copyright-->
    75     </div><!--footer-->
    76         <?php
    77 
    78         return true;
    79     }
    8063}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Login/Header.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Header
     5class Header extends AbstractSettings
    66{
    7     /**
    8      * [header description].
    9      *
    10      * @return [type] [description]
    11      */
    12     public static function header()
     7    public static function login_header()
     8    {
     9        echo self::_header();
     10    }
     11
     12    private static function _header()
    1313    {
    14         return self::login_header();
    15     }
     14        $style = sprintf(
     15            'background-color: %s; color: %s;',
     16            esc_attr( self::$whitelabel->get_setting( 'header_background_color' ) ),
     17            esc_attr( self::$whitelabel->get_setting( 'header_text_color' ) )
     18        );
    1619
    17     /**
    18      * header.
    19      *
    20      * add a header section to the login page
    21      *
    22      * @return
    23      */
    24     protected static function login_header()
    25     {
    26         $header  = '<div class="wrapper">';
    27         $header .= '<div style="background-color: ' . wpwhitelabel()->setting( 'header_background_color' ) . '; color: ' . wpwhitelabel()->setting( 'header_text_color' ) . ';" id="wll-header" class="wll-header" ';
    28         $header .= 'align="' . wpwhitelabel()->setting( 'header_alignment' ) . '">';
    29         $header .= '<h2 align="' . wpwhitelabel()->setting( 'header_alignment' ) . '">';
    30         $header .= '<a  href="' . get_bloginfo( 'url' ) . '" title="' . wpwhitelabel()->site_info( 'name' ) . '">';
    31         $header .= wpwhitelabel()->setting( 'header_title' );
    32         $header .= '</a>';
    33         $header .= '</h2>';
    34         $header .= '<div class="wll-site-description">';
    35         $header .= wpwhitelabel()->setting( 'header_description' );
    36         $header .= '</div>';
    37         $header .= '</div>';
    38         echo $header;
     20        return sprintf(
     21            '<div class="wrapper">
     22                <div id="wll-header" class="wll-header" style="%s" align="%s">
     23                    <h2 align="%s">
     24                        <a href="%s" title="%s">%s</a>
     25                    </h2>
     26                    <div class="wll-site-description">%s</div>
     27                </div>',
     28            $style,
     29            esc_attr( self::$whitelabel->get_setting( 'header_alignment' ) ),
     30            esc_attr( self::$whitelabel->get_setting( 'header_alignment' ) ),
     31            esc_url( get_bloginfo( 'url' ) ),
     32            esc_html( get_bloginfo( 'name' ) ),
     33            esc_html( self::$whitelabel->get_setting( 'header_title' ) ),
     34            esc_html( self::$whitelabel->get_setting( 'header_description' ) ),
     35        );
    3936    }
    4037}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Login/Logo.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Logo
     5class Logo extends AbstractSettings
    66{
    7     /**
    8      * [logo_text output.
    9      */
    107    public static function logo_text()
    118    {
    12         return self::set_logo_text();
     9        return get_bloginfo( 'name' );
    1310    }
    1411
     
    1815     * @return void
    1916     */
    20     public static function login_logo()
     17    public static function login_logo(): void
    2118    {
    22         return self::get_logo();
     19        $generate_css = self::init()->get_css_rules();
     20        echo '<style type="text/css">' . $generate_css . '</style>';
    2321    }
    2422
    2523    /**
    26      * logo.
     24     * Generates the CSS.
    2725     *
    28      * get the logo
     26     * @return string The CSS rules.
    2927     */
    30     protected static function logo(): void
     28    protected function generate_css(): ?string
    3129    {
    32         echo wp_get_attachment_url( wpwhitelabel()->option( 'logo' ) );
    33     }
     30        $logo_image_url = wp_get_attachment_url( self::$whitelabel->option( 'logo' ) );
     31        $logo_position  = esc_attr( self::$whitelabel->get_setting( 'logo_position' ) );
     32        $logo_display   = esc_attr( self::$whitelabel->get_setting( 'logo_display' ) );
    3433
    35     /**
    36      * login_logo.
    37      *
    38      * set the login screen logo
    39      *
    40      * @return
    41      */
    42     protected static function get_logo()
    43     {
    44         ?><style type="text/css">
     34        return "
    4535            #login h1 a, .login h1 a {
    46                 background-image: url(<?php self::logo(); ?>);
     36                background-image: url({$logo_image_url});
    4737                -webkit-background-size: 120px;
    48                 background-position: <?php echo wpwhitelabel()->setting( 'logo_position' ); ?>;
     38                background-position: {$logo_position};
    4939                background-size: 120px;
    5040                height: 120px;
    5141                width: 100%;
    52                 display: <?php echo wpwhitelabel()->setting( 'logo_display' ); ?>;
     42                display: {$logo_display};
    5343            }
    54             </style>
    55             <?php
    56     }
    57 
    58     /**
    59      * [logo_text description].
    60      *
    61      * @return [type] [description]
    62      * TODO this was Introduced in WordPress 5.2.0  check WordPress version.
    63      *
    64      * @see https://developer.wordpress.org/reference/hooks/login_headertext/
    65      */
    66     protected static function set_logo_text()
    67     {
    68         return get_bloginfo( 'name' );
     44        ";
    6945    }
    7046}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Login/Style.php

    r3023810 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Style
     5class Style extends AbstractSettings
    66{
    77    /**
     
    3737         */
    3838        self::enqueue_style( 'wll-user-styles' );
    39         $user_custom_css = wpwhitelabel()->option( 'custom_css' );
     39        $user_custom_css = self::$whitelabel->option( 'custom_css' );
    4040        wp_add_inline_style( 'wll-user-styles', $user_custom_css );
    4141
     
    4545         * @var [type]
    4646         */
    47         wp_add_inline_style( 'wll-user-styles', self::css() );
     47        wp_add_inline_style( 'wll-user-styles', self::css_output() );
    4848
    4949        // use theme styles (users can turn this on if they want its off by default)
    5050        // wp_enqueue_style('wll-theme-style',get_stylesheet_directory_uri() . '/style.css',array(),wp_get_theme()->get('Version') );
     51    }
     52
     53    /**
     54     * Output custom CSS to the page.
     55     *
     56     * @return mixed
     57     */
     58    public static function css_output()
     59    {
     60        $custom_css = self::init()->get_css_rules();
     61        echo '<style type="text/css">' . $custom_css . '</style>';
    5162    }
    5263
     
    5970     * @return
    6071     */
    61     protected static function align()
     72    protected static function align(): ?string
    6273    {
    6374        $align = null;
    6475
    65         switch ( wpwhitelabel()->setting( 'form_layout' ) ) {
     76        switch ( self::$whitelabel->get_setting( 'form_layout' ) ) {
    6677            case 'left':
    6778                $align = self::enqueue_style( 'wll-align-left' );
     
    104115    }
    105116
     117
    106118    /**
    107      * css().
     119     * Generate custom CSS rules based on user-defined settings.
    108120     *
    109      * Load up the user defined css rules
    110      *
    111      * @return [type] [description]
     121     * @return string Custom CSS rules.
    112122     */
    113     protected static function css()
     123    protected function generate_css(): ?string
    114124    {
    115         ?><style type="text/css">
    116             body.login {
    117                 color: <?php echo wpwhitelabel()->setting( 'login_text_color' ); ?>;
    118             }
    119             body a {
    120                 color: <?php echo wpwhitelabel()->setting( 'link_color' ); ?> !important;
    121             }
    122             #login {
    123                 background-color: <?php echo wpwhitelabel()->setting( 'login_container_color' ); ?>;
    124                 background-repeat: repeat-x;
    125                 background-position: left top;
    126                 margin-top: 8%;
    127                 margin-right: auto;
    128                 margin-bottom: 4%;
    129                 padding: 26px;
    130             }
    131             .login form {
    132                 box-shadow: 0 1px 3px #ffffff;
    133                 border: none;
    134                 border: none;
    135                 margin-top: 0px;
    136                 box-shadow: none;
    137                 background-color: <?php echo wpwhitelabel()->setting( 'login_form_color' ); ?> !important;
    138                 background: <?php echo wpwhitelabel()->setting( 'login_form_color' ); ?> !important;
    139                 border-radius: 0px;
    140                 opacity: 0.99;
    141             }
    142             #wp-submit, input[type="submit"] {
    143                 transition: all 0.2s linear 0s;
    144                 margin-top: 20px;
    145                 background-color: <?php echo wpwhitelabel()->setting( 'button_background_color' ); ?>;
    146                 border-radius: 0px;
    147                 color: <?php echo wpwhitelabel()->setting( 'button_text_color' ); ?>;
    148                 font-weight: normal;
    149                 border: solid thin <?php echo wpwhitelabel()->setting( 'button_background_color' ); ?>;
    150             }
    151         </style>
    152         <?php
     125        $login_text_color        = self::$whitelabel->get_setting( 'login_text_color' );
     126        $link_color              = self::$whitelabel->get_setting( 'link_color' );
     127        $login_container_color   = self::$whitelabel->get_setting( 'login_container_color' );
     128        $login_form_color        = self::$whitelabel->get_setting( 'login_form_color' );
     129        $button_background_color = self::$whitelabel->get_setting( 'button_background_color' );
     130        $button_text_color       = self::$whitelabel->get_setting( 'button_text_color' );
     131
     132        return "
     133            body.login {
     134                color: {$login_text_color};
     135            }
     136            body a {
     137                color: {$link_color} !important;
     138            }
     139            #login {
     140                background-color: {$login_container_color};
     141                background-repeat: repeat-x;
     142                background-position: left top;
     143                margin-top: 8%;
     144                margin-right: auto;
     145                margin-bottom: 4%;
     146                padding: 26px;
     147            }
     148            .login form {
     149                box-shadow: 0 1px 3px #ffffff;
     150                border: none;
     151                margin-top: 0px;
     152                box-shadow: none;
     153                background-color: {$login_form_color} !important;
     154                background: {$login_form_color} !important;
     155                border-radius: 0px;
     156                opacity: 0.99;
     157            }
     158            #wp-submit, input[type='submit'] {
     159                transition: all 0.2s linear 0s;
     160                margin-top: 20px;
     161                background-color: {$button_background_color};
     162                border-radius: 0px;
     163                color: {$button_text_color};
     164                font-weight: normal;
     165                border: solid thin {$button_background_color};
     166            }
     167        ";
    153168    }
    154169}
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/PageAccess.php

    r3030343 r3030821  
    77class PageAccess
    88{
    9     public const PAGE_ACCESS_OPTION = 'wpwll_page_access';
    10 
    119    protected $input_name;
    1210    protected $setting;
     
    1816    protected $page_ids;
    1917
    20     public function __construct()
     18    public function __construct( OptionSettings $setting )
    2119    {
    22         $this->input_name = self::PAGE_ACCESS_OPTION;
    23         $this->setting    = new OptionSettings( self::PAGE_ACCESS_OPTION, 'selective_page_access', 'wll-page-access' );
     20        $this->setting    = $setting;
     21        $this->input_name = $this->setting->get_opt_name();
    2422        $this->options    = $this->setting->get_option();
    2523        $this->site_pages = get_pages();
     
    4139    }
    4240
    43     public static function init()
     41    public static function init( OptionSettings $setting )
    4442    {
    45         return new self();
     43        return new self( $setting );
    4644    }
    4745
  • wp-white-label-login/tags/7.2.1/src/EasyWhiteLabel/Plugin.php

    r3030343 r3030821  
    1111namespace EasyWhiteLabel;
    1212
     13use EasyWhiteLabel\Admin\OptionSettings;
    1314use EasyWhiteLabel\Admin\WhiteLabelAdmin;
    14 use EasyWhiteLabel\Customize\Customizer;
     15use EasyWhiteLabel\Customize\CustomizerPanel;
    1516use EasyWhiteLabel\Login\Background;
    1617use EasyWhiteLabel\Login\Footer;
     
    2122use EasyWhiteLabel\UsefulPlugins\Installer;
    2223
    23 class Plugin
     24class Plugin implements PluginInterface
    2425{
    2526    use Singleton;
    2627
    27     public $enabled;
    28     public $customizer;
    29 
    30     /**
    31      * Add Shortcode [wpoption opt="myoption"].
     28    public const OPTION = [
     29        'logo'           => 'wpwll_logo',
     30        'background'     => 'wpwll_background',
     31        'logo_url'       => 'wpwll_logo_url',
     32        'background_url' => 'wpwll_background_url',
     33        'align'          => 'wpwll_align',
     34        'custom_css'     => 'wpwll_custom_css',
     35        'copyright'      => 'wpwll_copyright_text',
     36        'options'        => 'wpwll_options',
     37        'page_access'    => 'wpwll_page_access',
     38    ];
     39
     40    protected $settings;
     41    protected $options;
     42
     43    /**
     44     * Add Hooks.
    3245     *
    3346     * @param mixed $enabled
    3447     */
    35     public function hooks( $enabled = true ): void
    36     {
    37         $this->enabled    = $enabled;
    38         $this->customizer = new Customizer();
    39 
    40         if ( is_admin() ) {
    41             $admin_menu = [
    42                 'page_title'  => 'White Label Login Settings ',
    43                 'menu_title'  => 'WP White Label',
    44                 'capability'  => 'manage_options',
    45                 'menu_slug'   => 'white-label-options',
    46                 'function'    => 'wllmenu_callback',
    47                 'icon_url'    => 'dashicons-art',
    48                 'prefix'      => 'wll',
    49                 'admin_views' => WhiteLabelAdmin::admin_views_dir(),
    50             ];
    51             WhiteLabelAdmin::init(
    52                 $admin_menu,
    53                 [
    54                     esc_html__( 'Settings', 'wp-white-label-login' ),
    55                     'background'  => [
    56                         'name' => esc_html__( 'Background', 'wp-white-label-login' ),
    57                         // 'hidden' => true,
    58                         'icon' => 'dashicons-format-image',
    59                     ],
    60                     'css'         => [
    61                         'name' => esc_html__( 'CSS Settings', 'wp-white-label-login' ),
    62                         // 'hidden' => true,
    63                         'icon' => 'dashicons-admin-customizer',
    64                     ],
    65                     'page-access' => [
    66                         'name' => esc_html__( 'Page Access Redirect', 'wp-white-label-login' ),
    67                         'icon' => 'dashicons-lock',
    68                     ],
    69                     'plugins'     => [
    70                         'name' => esc_html__( 'Useful Plugins', 'wp-white-label-login' ),
    71                         // 'hidden' => true,
    72                         'icon' => 'dashicons-plugins-checked',
    73                     ],
    74                 ]
    75             );
    76         }// end if
     48    public function hooks(): void
     49    {
     50        $this->setup_wll_plugin();
    7751
    7852        /**
     
    8155        add_action( 'init', [ Lang::class, 'i18n' ] );
    8256
     57        /**
     58         * Register Customizer panel.
     59         */
     60        add_action( 'customize_register', [ CustomizerPanel::class, 'setup_customizer_panel' ], 10 );
     61
     62        /**
     63         * Footer navigation menu.
     64         */
     65        add_action(
     66            'init',
     67            function (): void {
     68                register_nav_menu( 'wll-footer-nav', __( 'Login Page Footer Navigation' ) );
     69            }
     70        );
     71
    8372        add_action( 'admin_menu', [ $this, 'appearance_submenu' ] );
    84         add_action( 'init', [ $this, 'footer_navigation' ] );
    85         add_action( 'login_enqueue_scripts', [ Style::class, 'login_styles' ] );
     73        // @phpstan-ignore-next-line.
     74        add_filter( 'login_head', [ Background::class, 'body_css' ] );
     75        // @phpstan-ignore-next-line.
     76        add_filter( 'login_footer', [ Footer::class, 'footer' ] );
     77        add_filter( 'login_head', [ Header::class, 'login_header' ] );
    8678        add_action( 'login_enqueue_scripts', [ Logo::class, 'login_logo' ] );
    8779        add_filter( 'login_headertext', [ Logo::class, 'logo_text' ] );
    88         add_filter( 'login_head', [ Header::class, 'header' ] );
    89         add_filter( 'login_head', [ Background::class, 'body' ] );
    90         add_filter( 'login_footer', [ Footer::class, 'footer' ] );
    91         add_filter( 'login_headerurl', [ $this, 'logo_link' ] );
     80        add_action( 'login_enqueue_scripts', [ Style::class, 'login_styles' ] );
     81
     82        // login url.
     83        add_filter(
     84            'login_headerurl',
     85            function () {
     86                return get_bloginfo( 'url' );
     87            }
     88        );
    9289
    9390        // plugins
     
    127124
    128125    /**
    129      * Footer Navigation.
    130      *
    131      * @return void
    132      */
    133     public function footer_navigation(): void
    134     {
    135         register_nav_menu( 'wll-footer-nav', __( 'Login Page Footer Navigation' ) );
    136     }
    137 
    138     /**
    139126     * wp_slug.
    140127     *
     
    146133    {
    147134        return 'wp-white-label-login';
    148     }
    149 
    150     /**
    151      * plugin directory.
    152      *
    153      * WordPress.org repo slug
    154      *
    155      * @return [type] [description]
    156      */
    157     public function dir()
    158     {
    159         return EASYWHITELABEL_DIR;
    160135    }
    161136
     
    256231
    257232    /**
    258      * Options.
    259      *
    260      * setup some the options array
    261      *
    262      * @param string $opt
    263      *
    264      * @return string
    265      */
    266     public function option( $opt = 'logo' )
    267     {
    268         $option = [
    269             'wpwll_options'    => get_option( 'wpwll_options' ),
    270             'background_image' => get_option( 'wpwll_background' ),
    271             'logo'             => get_option( 'wpwll_logo' ),
    272             'custom_css'       => get_option( 'wpwll_custom_css' ),
    273         ];
    274 
    275         return $option[ $opt ];
    276     }
    277 
    278     /**
    279233     * settings.
    280234     *
     
    286240     * @return string
    287241     */
    288     public function setting( $set = 'background', $default = '' )
    289     {
    290         $setting = $this->option( 'wpwll_options' );
    291         if ( isset( $setting[ $set ] ) ) {
    292             return $setting[ $set ];
     242    public function option( $set = 'background', $default = '' )
     243    {
     244        if ( isset( $this->settings[ $set ] ) ) {
     245            return $this->settings[ $set ];
    293246        }
    294247
     
    296249    }
    297250
    298     /**
    299      * site_info.
    300      *
    301      * setup some site specific vars
    302      *
    303      * @param string $info
    304      *
    305      * @return string
    306      */
    307     public function site_info( $info = 'name' )
    308     {
    309         $site_info = [
    310             'name'             => get_bloginfo( 'name' ),
    311             'url'              => get_bloginfo( 'url' ),
    312             'admin_url'        => get_admin_url(),
    313             'background_color' => 'none',
    314             'header_text'      => get_bloginfo( 'description' ),
     251    public function get_setting( string $key = 'background', $default = '' )
     252    {
     253        return $this->settings['options'][ $key ] ?? $default;
     254    }
     255
     256    protected static function admin_menu(): void
     257    {
     258        if ( ! is_admin() ) {
     259            return;
     260        }// end if
     261
     262        // main menu args.
     263        $admin = [
     264            'page_title'  => 'White Label Login Settings ',
     265            'menu_title'  => 'WP White Label',
     266            'capability'  => 'manage_options',
     267            'menu_slug'   => 'white-label-options',
     268            'function'    => 'wllmenu_callback',
     269            'icon_url'    => 'dashicons-art',
     270            'prefix'      => 'wll',
     271            'admin_views' => WhiteLabelAdmin::admin_views_dir(),
    315272        ];
    316273
    317         return $site_info[ $info ];
    318     }
    319 
    320     /**
    321      * logo_link.
    322      *
    323      * change the login link to site url
    324      *
    325      * @return string
    326      */
    327     public function logo_link()
    328     {
    329         return $this->site_info( 'url' );
     274        // init menu
     275        WhiteLabelAdmin::init(
     276            $admin,
     277            [
     278                esc_html__( 'Settings', 'wp-white-label-login' ),
     279                'background'  => [
     280                    'name' => esc_html__( 'Background', 'wp-white-label-login' ),
     281                    // 'hidden' => true,
     282                    'icon' => 'dashicons-format-image',
     283                ],
     284                'css'         => [
     285                    'name' => esc_html__( 'CSS Settings', 'wp-white-label-login' ),
     286                    // 'hidden' => true,
     287                    'icon' => 'dashicons-admin-customizer',
     288                ],
     289                'page-access' => [
     290                    'name' => esc_html__( 'Page Access Redirect', 'wp-white-label-login' ),
     291                    'icon' => 'dashicons-lock',
     292                ],
     293                'plugins'     => [
     294                    'name' => esc_html__( 'Useful Plugins', 'wp-white-label-login' ),
     295                    // 'hidden' => true,
     296                    'icon' => 'dashicons-plugins-checked',
     297                ],
     298            ]
     299        );
     300    }
     301
     302    private function setup_wll_plugin(): void
     303    {
     304        $this->settings = [
     305            'logo'             => get_option( self::OPTION['logo'] ),
     306            'background_image' => get_option( self::OPTION['background'] ),
     307            'logo_url'         => get_option( self::OPTION['logo_url'] ),
     308            'background_url'   => get_option( self::OPTION['background_url'] ),
     309            'align'            => get_option( self::OPTION['align'] ),
     310            'custom_css'       => get_option( self::OPTION['custom_css'] ),
     311            'copyright'        => get_option( self::OPTION['copyright'] ),
     312            'options'          => get_option( self::OPTION['options'] ),
     313            'page_access'      => get_option( self::OPTION['page_access'] ),
     314        ];
     315
     316        // add admin menu.
     317        self::admin_menu();
     318
     319        // add page access.
     320        PageAccess::init( new OptionSettings( self::OPTION['page_access'], 'selective_page_access', 'wll-page-access' ) );
    330321    }
    331322}
  • wp-white-label-login/tags/7.2.1/vendor/autoload.php

    r3020008 r3030821  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3::getLoader();
     25return ComposerAutoloaderInit9c99636985841428f174d414af05dd2f::getLoader();
  • wp-white-label-login/tags/7.2.1/vendor/composer/autoload_classmap.php

    r3030343 r3030821  
    2626    'EasyWhiteLabel\\Admin\\Validate' => $baseDir . '/src/EasyWhiteLabel/Admin/Validate.php',
    2727    'EasyWhiteLabel\\Admin\\WhiteLabelAdmin' => $baseDir . '/src/EasyWhiteLabel/Admin/WhiteLabelAdmin.php',
    28     'EasyWhiteLabel\\Customize\\Customizer' => $baseDir . '/src/EasyWhiteLabel/Customize/Customizer.php',
    29     'EasyWhiteLabel\\Customize\\Section' => $baseDir . '/src/EasyWhiteLabel/Customize/Section.php',
     28    'EasyWhiteLabel\\Customize\\CustomizerPanel' => $baseDir . '/src/EasyWhiteLabel/Customize/CustomizerPanel.php',
     29    'EasyWhiteLabel\\Customize\\Settings\\Background' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Background.php',
     30    'EasyWhiteLabel\\Customize\\Settings\\Button' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Button.php',
     31    'EasyWhiteLabel\\Customize\\Settings\\Css' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Css.php',
     32    'EasyWhiteLabel\\Customize\\Settings\\Footer' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Footer.php',
     33    'EasyWhiteLabel\\Customize\\Settings\\Form' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Form.php',
     34    'EasyWhiteLabel\\Customize\\Settings\\Header' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Header.php',
     35    'EasyWhiteLabel\\Customize\\Settings\\Layout' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Layout.php',
     36    'EasyWhiteLabel\\Customize\\Settings\\Links' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Links.php',
     37    'EasyWhiteLabel\\Customize\\Settings\\Login' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Login.php',
     38    'EasyWhiteLabel\\Customize\\Settings\\Logo' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Logo.php',
     39    'EasyWhiteLabel\\Customize\\Settings\\Menu' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Menu.php',
     40    'EasyWhiteLabel\\Customize\\Settings\\SettingInterface' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/SettingInterface.php',
    3041    'EasyWhiteLabel\\DailyTask' => $baseDir . '/src/EasyWhiteLabel/DailyTask.php',
    3142    'EasyWhiteLabel\\Lang' => $baseDir . '/src/EasyWhiteLabel/Lang.php',
    3243    'EasyWhiteLabel\\Lib\\ConnektInstaller' => $baseDir . '/src/EasyWhiteLabel/Lib/ConnektInstaller.php',
     44    'EasyWhiteLabel\\Login\\AbstractSettings' => $baseDir . '/src/EasyWhiteLabel/Login/AbstractSettings.php',
    3345    'EasyWhiteLabel\\Login\\Background' => $baseDir . '/src/EasyWhiteLabel/Login/Background.php',
    3446    'EasyWhiteLabel\\Login\\Footer' => $baseDir . '/src/EasyWhiteLabel/Login/Footer.php',
     
    3850    'EasyWhiteLabel\\PageAccess' => $baseDir . '/src/EasyWhiteLabel/PageAccess.php',
    3951    'EasyWhiteLabel\\Plugin' => $baseDir . '/src/EasyWhiteLabel/Plugin.php',
     52    'EasyWhiteLabel\\PluginInterface' => $baseDir . '/src/EasyWhiteLabel/PluginInterface.php',
    4053    'EasyWhiteLabel\\Traits\\Singleton' => $baseDir . '/src/EasyWhiteLabel/Traits/Singleton.php',
    4154    'EasyWhiteLabel\\Transient' => $baseDir . '/src/EasyWhiteLabel/Transient.php',
  • wp-white-label-login/tags/7.2.1/vendor/composer/autoload_real.php

    r3020008 r3030821  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3
     5class ComposerAutoloaderInit9c99636985841428f174d414af05dd2f
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9c99636985841428f174d414af05dd2f', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9c99636985841428f174d414af05dd2f', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9c99636985841428f174d414af05dd2f::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit9c99636985841428f174d414af05dd2f::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-white-label-login/tags/7.2.1/vendor/composer/autoload_static.php

    r3030343 r3030821  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3
     7class ComposerStaticInit9c99636985841428f174d414af05dd2f
    88{
    99    public static $files = array (
     
    4545        'EasyWhiteLabel\\Admin\\Validate' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Admin/Validate.php',
    4646        'EasyWhiteLabel\\Admin\\WhiteLabelAdmin' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Admin/WhiteLabelAdmin.php',
    47         'EasyWhiteLabel\\Customize\\Customizer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Customizer.php',
    48         'EasyWhiteLabel\\Customize\\Section' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Section.php',
     47        'EasyWhiteLabel\\Customize\\CustomizerPanel' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/CustomizerPanel.php',
     48        'EasyWhiteLabel\\Customize\\Settings\\Background' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Background.php',
     49        'EasyWhiteLabel\\Customize\\Settings\\Button' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Button.php',
     50        'EasyWhiteLabel\\Customize\\Settings\\Css' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Css.php',
     51        'EasyWhiteLabel\\Customize\\Settings\\Footer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Footer.php',
     52        'EasyWhiteLabel\\Customize\\Settings\\Form' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Form.php',
     53        'EasyWhiteLabel\\Customize\\Settings\\Header' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Header.php',
     54        'EasyWhiteLabel\\Customize\\Settings\\Layout' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Layout.php',
     55        'EasyWhiteLabel\\Customize\\Settings\\Links' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Links.php',
     56        'EasyWhiteLabel\\Customize\\Settings\\Login' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Login.php',
     57        'EasyWhiteLabel\\Customize\\Settings\\Logo' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Logo.php',
     58        'EasyWhiteLabel\\Customize\\Settings\\Menu' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Menu.php',
     59        'EasyWhiteLabel\\Customize\\Settings\\SettingInterface' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/SettingInterface.php',
    4960        'EasyWhiteLabel\\DailyTask' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/DailyTask.php',
    5061        'EasyWhiteLabel\\Lang' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Lang.php',
    5162        'EasyWhiteLabel\\Lib\\ConnektInstaller' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Lib/ConnektInstaller.php',
     63        'EasyWhiteLabel\\Login\\AbstractSettings' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/AbstractSettings.php',
    5264        'EasyWhiteLabel\\Login\\Background' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/Background.php',
    5365        'EasyWhiteLabel\\Login\\Footer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/Footer.php',
     
    5769        'EasyWhiteLabel\\PageAccess' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/PageAccess.php',
    5870        'EasyWhiteLabel\\Plugin' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Plugin.php',
     71        'EasyWhiteLabel\\PluginInterface' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/PluginInterface.php',
    5972        'EasyWhiteLabel\\Traits\\Singleton' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Traits/Singleton.php',
    6073        'EasyWhiteLabel\\Transient' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Transient.php',
     
    6578    {
    6679        return \Closure::bind(function () use ($loader) {
    67             $loader->prefixLengthsPsr4 = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$prefixLengthsPsr4;
    68             $loader->prefixDirsPsr4 = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$prefixDirsPsr4;
    69             $loader->classMap = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$classMap;
     80            $loader->prefixLengthsPsr4 = ComposerStaticInit9c99636985841428f174d414af05dd2f::$prefixLengthsPsr4;
     81            $loader->prefixDirsPsr4 = ComposerStaticInit9c99636985841428f174d414af05dd2f::$prefixDirsPsr4;
     82            $loader->classMap = ComposerStaticInit9c99636985841428f174d414af05dd2f::$classMap;
    7083
    7184        }, null, ClassLoader::class);
  • wp-white-label-login/tags/7.2.1/vendor/composer/installed.php

    r3030343 r3030821  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e8fe3ab5d1ae1402a4f2fc4d900e6943b611abb8',
     6        'reference' => 'd4af63fb8feb37619d18b2346725898a3a1bba49',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'e8fe3ab5d1ae1402a4f2fc4d900e6943b611abb8',
     16            'reference' => 'd4af63fb8feb37619d18b2346725898a3a1bba49',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • wp-white-label-login/tags/7.2.1/white-label-login.php

    r3030343 r3030821  
    55 * Plugin URI:        https://wpbrisko.com/wordpress-plugins/
    66 * Description:       White Label Login, Custom Login Page, Registration and Lost Password Page, Activate it and forget it...
    7  * Version:           7.2.0
     7 * Version:           7.2.1
    88 * Requires at least: 3.4
    99 * Requires PHP:      7.4
     
    2222
    2323// plugin directory
    24 \define( 'EASYWHITELABEL_VERSION', '7.2.0' );
     24\define( 'EASYWHITELABEL_VERSION', '7.2.1' );
    2525
    2626// plugin directory
     
    6060);
    6161
    62 
    63 if ( ! \function_exists( 'wpwhitelabel' ) ) {
    64     /**
    65      * wpwhitelabel().
    66      *
    67      * @return object
    68      */
    69     function wpwhitelabel()
    70     {
    71         // new up wll object
    72         return EasyWhiteLabel\Plugin::init();
    73     }
    74 }
    75 
    7662// The plugin.
    7763EasyWhiteLabel\Plugin::init()->hooks();
     
    7965// run events.
    8066EasyWhiteLabel\DailyTask::init()->scheduled();
    81 
    82 EasyWhiteLabel\PageAccess::init();
  • wp-white-label-login/trunk/readme.txt

    r3030343 r3030821  
    1 === White Label Custom WordPress Login Page ===
     1=== Easy White Label ===
     2
    23Contributors: icelayer
    34Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6D6W2KXB88NKE
    4 Tags: custom login page, custom login, wordpress login, white label, login customizer, branding,
     5Tags: custom custom login, wordpress login, white label, login customizer, branding,
    56Requires at least: 3.4
    67Tested up to: 6.4
    7 Stable tag: 7.2.0
     8Stable tag: 7.2.1
    89Requires PHP: 7.4
    910License: GNU Version 2 or Any Later Version
    1011License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1112
    12 White Label Login, Custom Login Page, Registration, and Lost Password Page Activate it and forget it...
     13
     14Enhance login experience with a customized login, registration, and lost password page. Activate and enjoy a seamless branded login area.
    1315
    1416== Description ==
    1517
    16 Custom Login Page with Login Customizer options, Customize WordPress Login Page, Registration, and Lost Password Page.
     18Transform your WordPress login experience with the **Easy White Label** plugin. Tailor your login, registration, and lost password pages to match your brand's style and identity, offering a consistent and professional look across your site.
    1719
    18 Easy to use and very simple after you activate this plugin you can choose to change some settings or leave everything as is the login page has already been white-labeled and customized.
     20After activating the plugin, you can either tweak various settings to suit your branding needs or enjoy the immediate enhancement it brings to your login page. From changing the logo to customizing the background, this plugin offers an array of options to personalize your login area.
    1921
    20 But maybe you want to change the logo or change the login page background, well you can now easily change the default logo and set custom login page background and much more.
     22=  Key Features: =
    2123
    22 = Custom Login Page Customizer detailed feature list: =
    23 * Custom Login page header
    24 * Custom Login page header background-color
    25 * Custom Login page header description text
    26 * Custom Login page header link
    27 * Custom logo Change WordPress login logo
    28 * Custom Login page logo link
    29 * Change login form alignment
    30 * Add a custom background image
    31 * Add a custom background-attachment property set whether background image scrolls with the rest of the page or is fixed
    32 * Add a custom background-size specifies the size of the background images
    33 * Add a custom background-repeat property sets if/how the background image will be repeated.
    34 * Add a custom background-position property set the starting position of a background image.
    35 * Add a custom background-color
    36 * Add Custom Login Page CSS
    37 * Custom WordPress Login Page Footer
     24- **Customizable Login Header:** Modify the login page header, including background color and description text.
     25- **Logo Personalization:** Replace the default WordPress logo with your brand's logo and customize the link it directs to.
     26- **Form Alignment & Style:** Adjust the login form's alignment and inject custom CSS for unique styling.
     27- **Background Customization:** Set a custom background image, size, repeat, position, and color to align with your brand's aesthetic.
     28- **Enhanced Footer:** Personalize the WordPress login page footer for a complete branded experience.
    3829
    39 By far the simplest login white label plugin for any WordPress Website, activate and you are done.
     30Designed for simplicity, the plugin offers intuitive settings and defaults that require no adjustments. However, should you wish to fine-tune your login page, the options are readily available and easy to navigate.
    4031
    41 Easy to use, simple settings options, simplified sensible defaults, you never need to change a single setting the new settings are completely optional.
    42 
    43 The plugin options can be found by going to Appearance > Customize > White Label Login Options.
    44 
    45 If you found a bug or have suggestions head over to the [Support Section](https://wordpress.org/support/plugin/wp-white-label-login/)
     32Access the plugin settings via **Appearance > Customize > White Label Login Options** in your WordPress dashboard.
    4633
    4734== Installation ==
    4835
    49 1. Upload White Label Login to the /wp-content/plugins/ directory.
    50 2. Activate the plugin through the \'Plugins\' menu in WordPress.
    51 3. That’s it!.
     361. Upload the `White Label Login` plugin to your `/wp-content/plugins/` directory.
     372. Activate the plugin through the 'Plugins' menu in WordPress.
     383. You're all set! Optionally, customize the settings via Appearance > Customize > White Label Login Options.
    5239
    5340== Frequently Asked Questions ==
    5441
    55 = Will this work with my current theme =
     42**Q: Will this plugin work with my theme?** 
     43A: Absolutely! This plugin is designed to work seamlessly with any WordPress theme.
    5644
    57 Yes, this plugin will work with any WordPress theme.
    58 
    59 = Where can I find the Admin Settings =
    60 
    61 The plugin options can be found by going to Appearance > Customize > White Label Login Options
    62 
    63 =  =
    64 
    65 
    66 
     45**Q: Where can I find the plugin settings?** 
     46A: Navigate to Appearance > Customize > White Label Login Options in your WordPress dashboard to access and customize the plugin settings.
    6747
    6848== Screenshots ==
    6949
    70 1. Custom login page.
    71 2. Customizer Options
    72 3. Custom login page.
     501. Customized login page showcasing your brand's identity.
     512. Easy-to-navigate customizer options for personalization.
     523. Preview of a fully customized login page.
    7353
    7454== Changelog ==
    7555
     56https://github.com/devuri/wp-white-label-login/releases
    7657
    7758== Upgrade Notice ==
     59
     60*Keep your plugin updated for the latest features and improvements.*
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Admin/OptionSettings.php

    r3030343 r3030821  
    4040
    4141    /**
     42     * Retrieves the option name.
     43     *
     44     * @return string The option name.
     45     */
     46    public function get_opt_name(): string
     47    {
     48        return $this->option_name;
     49    }
     50
     51    /**
    4252     * Retrieves the section ID.
    4353     *
    4454     * @return string The section ID.
    4555     */
    46     public function get_section_id()
     56    public function get_section_id(): string
    4757    {
    4858        return $this->section_id;
     
    148158                'hidden'   => false,
    149159                'disabled' => false,
    150                 'info'     => false,
     160                'info'     => null,
    151161                'width'    => '200',
    152162                'checked'  => null,
     
    156166
    157167        ?>
    158         <div style="padding-bottom: 1em; color:#333333;font-weight:600">
     168        <div style="margin-bottom: 1.4em;" id="input-<?php echo esc_attr( $params['id'] ); ?>">
    159169            <input name="<?php echo esc_attr( $params['name'] ); ?>" type="<?php echo esc_attr( $params['type'] ); ?>" id="<?php echo esc_attr( $params['id'] ); ?>" value="<?php echo esc_attr( $val ); ?>"  <?php echo esc_attr( $params['checked'] ); ?> >
    160             <label for="<?php echo esc_attr( $params['id'] ); ?>"><?php echo esc_html( $fieldname ); ?></label>
     170            <label style="color:#333333;font-weight:600" for="<?php echo esc_attr( $params['id'] ); ?>"><?php echo esc_html( $fieldname ); ?></label>
    161171            <br/>
     172            <?php self::_info( $params['info'] ); ?>
    162173        </div>
    163174        <?php
     
    205216        return str_replace( '-', '_', $field_id );
    206217    }
     218
     219    private static function _info( ?string $description_info = null, string $item_id = 'item-description' ): void
     220    {
     221        if ( ! $description_info ) {
     222            return;
     223        }
     224
     225        ?>
     226        <p class="description" id="<?php echo esc_attr( $item_id ); ?>">
     227            <?php echo wp_kses_post( $description_info ); ?>
     228        </p>
     229        <?php
     230    }
    207231}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Includes/helpers.php

    r3022707 r3030821  
    11<?php
    22
    3 /**
    4  * wpwhitelabel().
    5  *
    6  * @return object
    7  */
    8 function wpwhitelabel()
    9 {
    10     // new up wll object
    11     return EasyWhiteLabel\Plugin::init();
     3if ( ! \function_exists( 'wpwhitelabel' ) ) {
     4    /**
     5     * wpwhitelabel().
     6     *
     7     * @return object
     8     */
     9    function wpwhitelabel()
     10    {
     11        // new up wll object
     12        return EasyWhiteLabel\Plugin::init();
     13    }
    1214}
    1315
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Login/Background.php

    r3022487 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Background
     5class Background extends AbstractSettings
    66{
    77    /**
    8      * Body.
    9      *
    10      * the page body
    11      *
    12      * @return
     8     * Outputs the CSS for the page body background within a style tag.
    139     */
    14     public static function body()
     10    public static function body_css(): void
    1511    {
    16         return self::css();
     12        $css = self::init()->get_css_rules();
     13        echo '<style type="text/css">' . $css . '</style>';
    1714    }
    1815
    1916    /**
    20      * background.
     17     * Generates the CSS for the page body background.
    2118     *
    22      * echo the background for background-image css
    23      *
    24      * @see https://developer.wordpress.org/reference/functions/wp_get_attachment_url/
     19     * @return string The CSS rules for the body background.
    2520     */
    26     protected static function background(): void
     21    protected function generate_css(): ?string
    2722    {
    28         $background_img = wp_get_attachment_url( wpwhitelabel()->option( 'background_image' ) );
    29         echo $background_img;
    30     }
     23        $background_img = wp_get_attachment_url( self::$whitelabel->option( 'background_image' ) );
    3124
    32     /**
    33      * Body.
    34      *
    35      * the page body
    36      *
    37      * @return
    38      */
    39     protected static function css()
    40     {
    41         ?><style type="text/css">
     25        $background_color      = self::$whitelabel->get_setting( 'background_color', '#ffffff' );
     26        $background_image      = esc_url( $background_img );
     27        $background_attachment = self::$whitelabel->get_setting( 'background_attachment' );
     28        $background_size       = self::$whitelabel->get_setting( 'background_size', 'cover' );
     29        $background_repeat     = self::$whitelabel->get_setting( 'background_repeat', 'no-repeat' );
     30        $background_position   = self::$whitelabel->get_setting( 'background_position', 'left' );
     31
     32        return "
    4233            body {
    43                 background-color: <?php echo wpwhitelabel()->setting( 'background_color', '#ffffff' ); ?>;
    44                 background-image: url(<?php self::background(); ?>);
    45                 background-attachment: <?php echo wpwhitelabel()->setting( 'background_attachment' ); ?>;
    46                 background-size: <?php echo wpwhitelabel()->setting( 'background_size', 'cover' ); ?>;
    47                 background-repeat: <?php echo wpwhitelabel()->setting( 'background_repeat', 'no-repeat' ); ?>;
    48                 background-position: <?php echo wpwhitelabel()->setting( 'background_position', 'left' ); ?>;
     34                background-color: {$background_color};
     35                background-image: url({$background_image});
     36                background-attachment: {$background_attachment};
     37                background-size: {$background_size};
     38                background-repeat: {$background_repeat};
     39                background-position: {$background_position};
    4940            }
    50             </style>
    51             <?php
     41        ";
    5242    }
    5343}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Login/Footer.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Footer
     5class Footer extends AbstractSettings
    66{
    77    /**
    8      * show footer navigation.
    9      *
    10      * @var [type]
     8     * Outputs the footer content.
    119     */
    12     private static $nav;
     10    public static function footer(): void
     11    {
     12        $year              = gmdate( 'Y' );
     13        $footer_text_color = esc_attr( self::$whitelabel->get_setting( 'footer_text_color' ) );
     14        $footer_alignment  = esc_attr( self::$whitelabel->get_setting( 'footer_alignment' ) );
     15        $footer_text       = esc_html( self::$whitelabel->get_setting( 'footer_text' ) );
     16        $site_url          = esc_url( get_bloginfo( 'url' ) );
     17        $site_name         = esc_html( get_bloginfo( 'name' ) );
     18        $copyright_text    = esc_html( self::$whitelabel->get_setting( 'copyright_text' ) );
    1319
    14     public static function menu(): void
     20        ob_start();
     21        ?>
     22
     23        <div class="push"></div>
     24        </div><!--wrapper-->
     25            <div  style=" font-size: small; color:<?php echo $footer_text_color; ?>;" id="footer" class="footer footer-copyright" align="<?php echo $footer_alignment; ?>">
     26                <div style="padding:8px; width: 70%; margin-bottom:12px;" class="footer-text">
     27                    <?php echo $footer_text; ?>
     28                </div><!--footer-text-->
     29                    <?php self::footer_nav_menu(); ?>
     30                <div style="padding:8px; width: 60%; margin-bottom:4px; color:<?php echo $footer_text_color; ?>;" class="footer-copyright">
     31                    Copyright © <?php echo $year; ?>
     32                        <a href="<?php echo $site_url; ?>"> <?php echo $site_name; ?> </a>
     33                    <span class="wll-footer-copyright-text">
     34                        <?php echo $copyright_text; ?>
     35                    </span>
     36                </div><!--footer-copyright-->
     37            </div><!--footer-->
     38        <?php
     39        $output = ob_get_clean();
     40        echo $output;
     41    }
     42
     43    private static function footer_nav_menu(): void
    1544    {
    16         self::$nav = wpwhitelabel()->setting( 'footer_nav' );
    17         if ( self::$nav ) { ?>
    18         <div align="<?php echo wpwhitelabel()->setting( 'footer_nav_alignment' ); ?>" style="padding: 12px;
    19           border-top: solid thin <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    20           border-bottom: solid thin <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    21           background-color: <?php echo wpwhitelabel()->setting( 'footer_nav_backgorund' ); ?>;
    22           box-shadow: 0 5px 15px rgba(0,0,0,.08);">
    23             <?php
    24             wp_nav_menu(
    25                 [
    26                     'theme_location'  => 'wll-footer-nav',
    27                     'container_class' => 'footer-navigation navigation clearfix',
    28                 ]
    29             );
     45        if ( self::$whitelabel->get_setting( 'footer_nav' ) ) {
     46            $footer_nav_alignment  = esc_attr( self::$whitelabel->get_setting( 'footer_nav_alignment' ) );
     47            $footer_nav_background = esc_attr( self::$whitelabel->get_setting( 'footer_nav_background' ) );
     48
    3049            ?>
    31             </div>
    32             <?php
     50            <div class="footer-nav" style="text-align:<?php echo $footer_nav_alignment; ?>; background-color:<?php echo $footer_nav_background; ?>;">
     51                <?php
     52                wp_nav_menu(
     53                    [
     54                        'theme_location'  => 'wll-footer-nav',
     55                        'container_class' => 'footer-navigation navigation clearfix',
     56                    ]
     57                );
     58                ?>
     59            </div>
     60            <?php
    3361        }
    3462    }
    35 
    36     /**
    37      * footer.
    38      *
    39      * @return mixed
    40      */
    41     public static function footer()
    42     {
    43         echo self::set_footer();
    44 
    45         return true;
    46     }
    47 
    48     /**
    49      * footer.
    50      *
    51      * add footer section to the login page
    52      *
    53      * @return mixed
    54      */
    55     protected static function set_footer()
    56     {
    57         $year = gmdate( 'Y' );
    58         ?>
    59     <div class="push"></div>
    60     </div><!--wrapper-->
    61     <div  style=" font-size: small; color:<?php echo wpwhitelabel()->setting( 'footer_text_color' ); ?>;" id="footer" class="footer footer-copyright" align="<?php echo wpwhitelabel()->setting( 'footer_alignment' ); ?>">
    62     <div style="padding:8px; width: 70%; margin-bottom:12px;" class="footer-text">
    63         <?php echo wpwhitelabel()->setting( 'footer_text' ); ?>
    64     </div><!--footer-text-->
    65         <?php self::menu(); ?>
    66     <div style="padding:8px; width: 60%; margin-bottom:4px; color:<?php echo wpwhitelabel()->setting( 'footer_text_color' ); ?>;" class="footer-copyright">
    67     Copyright © <?php echo $year; ?>
    68     <a href="<?php echo wpwhitelabel()->site_info( 'url' ); ?>">
    69         <?php echo wpwhitelabel()->site_info( 'name' ); ?>
    70     </a>
    71     <span class="wll-footer-copyright-text">
    72         <?php echo wpwhitelabel()->setting( 'copyright_text' ); ?>
    73     </span>
    74     </div><!--footer-copyright-->
    75     </div><!--footer-->
    76         <?php
    77 
    78         return true;
    79     }
    8063}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Login/Header.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Header
     5class Header extends AbstractSettings
    66{
    7     /**
    8      * [header description].
    9      *
    10      * @return [type] [description]
    11      */
    12     public static function header()
     7    public static function login_header()
     8    {
     9        echo self::_header();
     10    }
     11
     12    private static function _header()
    1313    {
    14         return self::login_header();
    15     }
     14        $style = sprintf(
     15            'background-color: %s; color: %s;',
     16            esc_attr( self::$whitelabel->get_setting( 'header_background_color' ) ),
     17            esc_attr( self::$whitelabel->get_setting( 'header_text_color' ) )
     18        );
    1619
    17     /**
    18      * header.
    19      *
    20      * add a header section to the login page
    21      *
    22      * @return
    23      */
    24     protected static function login_header()
    25     {
    26         $header  = '<div class="wrapper">';
    27         $header .= '<div style="background-color: ' . wpwhitelabel()->setting( 'header_background_color' ) . '; color: ' . wpwhitelabel()->setting( 'header_text_color' ) . ';" id="wll-header" class="wll-header" ';
    28         $header .= 'align="' . wpwhitelabel()->setting( 'header_alignment' ) . '">';
    29         $header .= '<h2 align="' . wpwhitelabel()->setting( 'header_alignment' ) . '">';
    30         $header .= '<a  href="' . get_bloginfo( 'url' ) . '" title="' . wpwhitelabel()->site_info( 'name' ) . '">';
    31         $header .= wpwhitelabel()->setting( 'header_title' );
    32         $header .= '</a>';
    33         $header .= '</h2>';
    34         $header .= '<div class="wll-site-description">';
    35         $header .= wpwhitelabel()->setting( 'header_description' );
    36         $header .= '</div>';
    37         $header .= '</div>';
    38         echo $header;
     20        return sprintf(
     21            '<div class="wrapper">
     22                <div id="wll-header" class="wll-header" style="%s" align="%s">
     23                    <h2 align="%s">
     24                        <a href="%s" title="%s">%s</a>
     25                    </h2>
     26                    <div class="wll-site-description">%s</div>
     27                </div>',
     28            $style,
     29            esc_attr( self::$whitelabel->get_setting( 'header_alignment' ) ),
     30            esc_attr( self::$whitelabel->get_setting( 'header_alignment' ) ),
     31            esc_url( get_bloginfo( 'url' ) ),
     32            esc_html( get_bloginfo( 'name' ) ),
     33            esc_html( self::$whitelabel->get_setting( 'header_title' ) ),
     34            esc_html( self::$whitelabel->get_setting( 'header_description' ) ),
     35        );
    3936    }
    4037}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Login/Logo.php

    r3020008 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Logo
     5class Logo extends AbstractSettings
    66{
    7     /**
    8      * [logo_text output.
    9      */
    107    public static function logo_text()
    118    {
    12         return self::set_logo_text();
     9        return get_bloginfo( 'name' );
    1310    }
    1411
     
    1815     * @return void
    1916     */
    20     public static function login_logo()
     17    public static function login_logo(): void
    2118    {
    22         return self::get_logo();
     19        $generate_css = self::init()->get_css_rules();
     20        echo '<style type="text/css">' . $generate_css . '</style>';
    2321    }
    2422
    2523    /**
    26      * logo.
     24     * Generates the CSS.
    2725     *
    28      * get the logo
     26     * @return string The CSS rules.
    2927     */
    30     protected static function logo(): void
     28    protected function generate_css(): ?string
    3129    {
    32         echo wp_get_attachment_url( wpwhitelabel()->option( 'logo' ) );
    33     }
     30        $logo_image_url = wp_get_attachment_url( self::$whitelabel->option( 'logo' ) );
     31        $logo_position  = esc_attr( self::$whitelabel->get_setting( 'logo_position' ) );
     32        $logo_display   = esc_attr( self::$whitelabel->get_setting( 'logo_display' ) );
    3433
    35     /**
    36      * login_logo.
    37      *
    38      * set the login screen logo
    39      *
    40      * @return
    41      */
    42     protected static function get_logo()
    43     {
    44         ?><style type="text/css">
     34        return "
    4535            #login h1 a, .login h1 a {
    46                 background-image: url(<?php self::logo(); ?>);
     36                background-image: url({$logo_image_url});
    4737                -webkit-background-size: 120px;
    48                 background-position: <?php echo wpwhitelabel()->setting( 'logo_position' ); ?>;
     38                background-position: {$logo_position};
    4939                background-size: 120px;
    5040                height: 120px;
    5141                width: 100%;
    52                 display: <?php echo wpwhitelabel()->setting( 'logo_display' ); ?>;
     42                display: {$logo_display};
    5343            }
    54             </style>
    55             <?php
    56     }
    57 
    58     /**
    59      * [logo_text description].
    60      *
    61      * @return [type] [description]
    62      * TODO this was Introduced in WordPress 5.2.0  check WordPress version.
    63      *
    64      * @see https://developer.wordpress.org/reference/hooks/login_headertext/
    65      */
    66     protected static function set_logo_text()
    67     {
    68         return get_bloginfo( 'name' );
     44        ";
    6945    }
    7046}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Login/Style.php

    r3023810 r3030821  
    33namespace EasyWhiteLabel\Login;
    44
    5 class Style
     5class Style extends AbstractSettings
    66{
    77    /**
     
    3737         */
    3838        self::enqueue_style( 'wll-user-styles' );
    39         $user_custom_css = wpwhitelabel()->option( 'custom_css' );
     39        $user_custom_css = self::$whitelabel->option( 'custom_css' );
    4040        wp_add_inline_style( 'wll-user-styles', $user_custom_css );
    4141
     
    4545         * @var [type]
    4646         */
    47         wp_add_inline_style( 'wll-user-styles', self::css() );
     47        wp_add_inline_style( 'wll-user-styles', self::css_output() );
    4848
    4949        // use theme styles (users can turn this on if they want its off by default)
    5050        // wp_enqueue_style('wll-theme-style',get_stylesheet_directory_uri() . '/style.css',array(),wp_get_theme()->get('Version') );
     51    }
     52
     53    /**
     54     * Output custom CSS to the page.
     55     *
     56     * @return mixed
     57     */
     58    public static function css_output()
     59    {
     60        $custom_css = self::init()->get_css_rules();
     61        echo '<style type="text/css">' . $custom_css . '</style>';
    5162    }
    5263
     
    5970     * @return
    6071     */
    61     protected static function align()
     72    protected static function align(): ?string
    6273    {
    6374        $align = null;
    6475
    65         switch ( wpwhitelabel()->setting( 'form_layout' ) ) {
     76        switch ( self::$whitelabel->get_setting( 'form_layout' ) ) {
    6677            case 'left':
    6778                $align = self::enqueue_style( 'wll-align-left' );
     
    104115    }
    105116
     117
    106118    /**
    107      * css().
     119     * Generate custom CSS rules based on user-defined settings.
    108120     *
    109      * Load up the user defined css rules
    110      *
    111      * @return [type] [description]
     121     * @return string Custom CSS rules.
    112122     */
    113     protected static function css()
     123    protected function generate_css(): ?string
    114124    {
    115         ?><style type="text/css">
    116             body.login {
    117                 color: <?php echo wpwhitelabel()->setting( 'login_text_color' ); ?>;
    118             }
    119             body a {
    120                 color: <?php echo wpwhitelabel()->setting( 'link_color' ); ?> !important;
    121             }
    122             #login {
    123                 background-color: <?php echo wpwhitelabel()->setting( 'login_container_color' ); ?>;
    124                 background-repeat: repeat-x;
    125                 background-position: left top;
    126                 margin-top: 8%;
    127                 margin-right: auto;
    128                 margin-bottom: 4%;
    129                 padding: 26px;
    130             }
    131             .login form {
    132                 box-shadow: 0 1px 3px #ffffff;
    133                 border: none;
    134                 border: none;
    135                 margin-top: 0px;
    136                 box-shadow: none;
    137                 background-color: <?php echo wpwhitelabel()->setting( 'login_form_color' ); ?> !important;
    138                 background: <?php echo wpwhitelabel()->setting( 'login_form_color' ); ?> !important;
    139                 border-radius: 0px;
    140                 opacity: 0.99;
    141             }
    142             #wp-submit, input[type="submit"] {
    143                 transition: all 0.2s linear 0s;
    144                 margin-top: 20px;
    145                 background-color: <?php echo wpwhitelabel()->setting( 'button_background_color' ); ?>;
    146                 border-radius: 0px;
    147                 color: <?php echo wpwhitelabel()->setting( 'button_text_color' ); ?>;
    148                 font-weight: normal;
    149                 border: solid thin <?php echo wpwhitelabel()->setting( 'button_background_color' ); ?>;
    150             }
    151         </style>
    152         <?php
     125        $login_text_color        = self::$whitelabel->get_setting( 'login_text_color' );
     126        $link_color              = self::$whitelabel->get_setting( 'link_color' );
     127        $login_container_color   = self::$whitelabel->get_setting( 'login_container_color' );
     128        $login_form_color        = self::$whitelabel->get_setting( 'login_form_color' );
     129        $button_background_color = self::$whitelabel->get_setting( 'button_background_color' );
     130        $button_text_color       = self::$whitelabel->get_setting( 'button_text_color' );
     131
     132        return "
     133            body.login {
     134                color: {$login_text_color};
     135            }
     136            body a {
     137                color: {$link_color} !important;
     138            }
     139            #login {
     140                background-color: {$login_container_color};
     141                background-repeat: repeat-x;
     142                background-position: left top;
     143                margin-top: 8%;
     144                margin-right: auto;
     145                margin-bottom: 4%;
     146                padding: 26px;
     147            }
     148            .login form {
     149                box-shadow: 0 1px 3px #ffffff;
     150                border: none;
     151                margin-top: 0px;
     152                box-shadow: none;
     153                background-color: {$login_form_color} !important;
     154                background: {$login_form_color} !important;
     155                border-radius: 0px;
     156                opacity: 0.99;
     157            }
     158            #wp-submit, input[type='submit'] {
     159                transition: all 0.2s linear 0s;
     160                margin-top: 20px;
     161                background-color: {$button_background_color};
     162                border-radius: 0px;
     163                color: {$button_text_color};
     164                font-weight: normal;
     165                border: solid thin {$button_background_color};
     166            }
     167        ";
    153168    }
    154169}
  • wp-white-label-login/trunk/src/EasyWhiteLabel/PageAccess.php

    r3030343 r3030821  
    77class PageAccess
    88{
    9     public const PAGE_ACCESS_OPTION = 'wpwll_page_access';
    10 
    119    protected $input_name;
    1210    protected $setting;
     
    1816    protected $page_ids;
    1917
    20     public function __construct()
     18    public function __construct( OptionSettings $setting )
    2119    {
    22         $this->input_name = self::PAGE_ACCESS_OPTION;
    23         $this->setting    = new OptionSettings( self::PAGE_ACCESS_OPTION, 'selective_page_access', 'wll-page-access' );
     20        $this->setting    = $setting;
     21        $this->input_name = $this->setting->get_opt_name();
    2422        $this->options    = $this->setting->get_option();
    2523        $this->site_pages = get_pages();
     
    4139    }
    4240
    43     public static function init()
     41    public static function init( OptionSettings $setting )
    4442    {
    45         return new self();
     43        return new self( $setting );
    4644    }
    4745
  • wp-white-label-login/trunk/src/EasyWhiteLabel/Plugin.php

    r3030343 r3030821  
    1111namespace EasyWhiteLabel;
    1212
     13use EasyWhiteLabel\Admin\OptionSettings;
    1314use EasyWhiteLabel\Admin\WhiteLabelAdmin;
    14 use EasyWhiteLabel\Customize\Customizer;
     15use EasyWhiteLabel\Customize\CustomizerPanel;
    1516use EasyWhiteLabel\Login\Background;
    1617use EasyWhiteLabel\Login\Footer;
     
    2122use EasyWhiteLabel\UsefulPlugins\Installer;
    2223
    23 class Plugin
     24class Plugin implements PluginInterface
    2425{
    2526    use Singleton;
    2627
    27     public $enabled;
    28     public $customizer;
    29 
    30     /**
    31      * Add Shortcode [wpoption opt="myoption"].
     28    public const OPTION = [
     29        'logo'           => 'wpwll_logo',
     30        'background'     => 'wpwll_background',
     31        'logo_url'       => 'wpwll_logo_url',
     32        'background_url' => 'wpwll_background_url',
     33        'align'          => 'wpwll_align',
     34        'custom_css'     => 'wpwll_custom_css',
     35        'copyright'      => 'wpwll_copyright_text',
     36        'options'        => 'wpwll_options',
     37        'page_access'    => 'wpwll_page_access',
     38    ];
     39
     40    protected $settings;
     41    protected $options;
     42
     43    /**
     44     * Add Hooks.
    3245     *
    3346     * @param mixed $enabled
    3447     */
    35     public function hooks( $enabled = true ): void
    36     {
    37         $this->enabled    = $enabled;
    38         $this->customizer = new Customizer();
    39 
    40         if ( is_admin() ) {
    41             $admin_menu = [
    42                 'page_title'  => 'White Label Login Settings ',
    43                 'menu_title'  => 'WP White Label',
    44                 'capability'  => 'manage_options',
    45                 'menu_slug'   => 'white-label-options',
    46                 'function'    => 'wllmenu_callback',
    47                 'icon_url'    => 'dashicons-art',
    48                 'prefix'      => 'wll',
    49                 'admin_views' => WhiteLabelAdmin::admin_views_dir(),
    50             ];
    51             WhiteLabelAdmin::init(
    52                 $admin_menu,
    53                 [
    54                     esc_html__( 'Settings', 'wp-white-label-login' ),
    55                     'background'  => [
    56                         'name' => esc_html__( 'Background', 'wp-white-label-login' ),
    57                         // 'hidden' => true,
    58                         'icon' => 'dashicons-format-image',
    59                     ],
    60                     'css'         => [
    61                         'name' => esc_html__( 'CSS Settings', 'wp-white-label-login' ),
    62                         // 'hidden' => true,
    63                         'icon' => 'dashicons-admin-customizer',
    64                     ],
    65                     'page-access' => [
    66                         'name' => esc_html__( 'Page Access Redirect', 'wp-white-label-login' ),
    67                         'icon' => 'dashicons-lock',
    68                     ],
    69                     'plugins'     => [
    70                         'name' => esc_html__( 'Useful Plugins', 'wp-white-label-login' ),
    71                         // 'hidden' => true,
    72                         'icon' => 'dashicons-plugins-checked',
    73                     ],
    74                 ]
    75             );
    76         }// end if
     48    public function hooks(): void
     49    {
     50        $this->setup_wll_plugin();
    7751
    7852        /**
     
    8155        add_action( 'init', [ Lang::class, 'i18n' ] );
    8256
     57        /**
     58         * Register Customizer panel.
     59         */
     60        add_action( 'customize_register', [ CustomizerPanel::class, 'setup_customizer_panel' ], 10 );
     61
     62        /**
     63         * Footer navigation menu.
     64         */
     65        add_action(
     66            'init',
     67            function (): void {
     68                register_nav_menu( 'wll-footer-nav', __( 'Login Page Footer Navigation' ) );
     69            }
     70        );
     71
    8372        add_action( 'admin_menu', [ $this, 'appearance_submenu' ] );
    84         add_action( 'init', [ $this, 'footer_navigation' ] );
    85         add_action( 'login_enqueue_scripts', [ Style::class, 'login_styles' ] );
     73        // @phpstan-ignore-next-line.
     74        add_filter( 'login_head', [ Background::class, 'body_css' ] );
     75        // @phpstan-ignore-next-line.
     76        add_filter( 'login_footer', [ Footer::class, 'footer' ] );
     77        add_filter( 'login_head', [ Header::class, 'login_header' ] );
    8678        add_action( 'login_enqueue_scripts', [ Logo::class, 'login_logo' ] );
    8779        add_filter( 'login_headertext', [ Logo::class, 'logo_text' ] );
    88         add_filter( 'login_head', [ Header::class, 'header' ] );
    89         add_filter( 'login_head', [ Background::class, 'body' ] );
    90         add_filter( 'login_footer', [ Footer::class, 'footer' ] );
    91         add_filter( 'login_headerurl', [ $this, 'logo_link' ] );
     80        add_action( 'login_enqueue_scripts', [ Style::class, 'login_styles' ] );
     81
     82        // login url.
     83        add_filter(
     84            'login_headerurl',
     85            function () {
     86                return get_bloginfo( 'url' );
     87            }
     88        );
    9289
    9390        // plugins
     
    127124
    128125    /**
    129      * Footer Navigation.
    130      *
    131      * @return void
    132      */
    133     public function footer_navigation(): void
    134     {
    135         register_nav_menu( 'wll-footer-nav', __( 'Login Page Footer Navigation' ) );
    136     }
    137 
    138     /**
    139126     * wp_slug.
    140127     *
     
    146133    {
    147134        return 'wp-white-label-login';
    148     }
    149 
    150     /**
    151      * plugin directory.
    152      *
    153      * WordPress.org repo slug
    154      *
    155      * @return [type] [description]
    156      */
    157     public function dir()
    158     {
    159         return EASYWHITELABEL_DIR;
    160135    }
    161136
     
    256231
    257232    /**
    258      * Options.
    259      *
    260      * setup some the options array
    261      *
    262      * @param string $opt
    263      *
    264      * @return string
    265      */
    266     public function option( $opt = 'logo' )
    267     {
    268         $option = [
    269             'wpwll_options'    => get_option( 'wpwll_options' ),
    270             'background_image' => get_option( 'wpwll_background' ),
    271             'logo'             => get_option( 'wpwll_logo' ),
    272             'custom_css'       => get_option( 'wpwll_custom_css' ),
    273         ];
    274 
    275         return $option[ $opt ];
    276     }
    277 
    278     /**
    279233     * settings.
    280234     *
     
    286240     * @return string
    287241     */
    288     public function setting( $set = 'background', $default = '' )
    289     {
    290         $setting = $this->option( 'wpwll_options' );
    291         if ( isset( $setting[ $set ] ) ) {
    292             return $setting[ $set ];
     242    public function option( $set = 'background', $default = '' )
     243    {
     244        if ( isset( $this->settings[ $set ] ) ) {
     245            return $this->settings[ $set ];
    293246        }
    294247
     
    296249    }
    297250
    298     /**
    299      * site_info.
    300      *
    301      * setup some site specific vars
    302      *
    303      * @param string $info
    304      *
    305      * @return string
    306      */
    307     public function site_info( $info = 'name' )
    308     {
    309         $site_info = [
    310             'name'             => get_bloginfo( 'name' ),
    311             'url'              => get_bloginfo( 'url' ),
    312             'admin_url'        => get_admin_url(),
    313             'background_color' => 'none',
    314             'header_text'      => get_bloginfo( 'description' ),
     251    public function get_setting( string $key = 'background', $default = '' )
     252    {
     253        return $this->settings['options'][ $key ] ?? $default;
     254    }
     255
     256    protected static function admin_menu(): void
     257    {
     258        if ( ! is_admin() ) {
     259            return;
     260        }// end if
     261
     262        // main menu args.
     263        $admin = [
     264            'page_title'  => 'White Label Login Settings ',
     265            'menu_title'  => 'WP White Label',
     266            'capability'  => 'manage_options',
     267            'menu_slug'   => 'white-label-options',
     268            'function'    => 'wllmenu_callback',
     269            'icon_url'    => 'dashicons-art',
     270            'prefix'      => 'wll',
     271            'admin_views' => WhiteLabelAdmin::admin_views_dir(),
    315272        ];
    316273
    317         return $site_info[ $info ];
    318     }
    319 
    320     /**
    321      * logo_link.
    322      *
    323      * change the login link to site url
    324      *
    325      * @return string
    326      */
    327     public function logo_link()
    328     {
    329         return $this->site_info( 'url' );
     274        // init menu
     275        WhiteLabelAdmin::init(
     276            $admin,
     277            [
     278                esc_html__( 'Settings', 'wp-white-label-login' ),
     279                'background'  => [
     280                    'name' => esc_html__( 'Background', 'wp-white-label-login' ),
     281                    // 'hidden' => true,
     282                    'icon' => 'dashicons-format-image',
     283                ],
     284                'css'         => [
     285                    'name' => esc_html__( 'CSS Settings', 'wp-white-label-login' ),
     286                    // 'hidden' => true,
     287                    'icon' => 'dashicons-admin-customizer',
     288                ],
     289                'page-access' => [
     290                    'name' => esc_html__( 'Page Access Redirect', 'wp-white-label-login' ),
     291                    'icon' => 'dashicons-lock',
     292                ],
     293                'plugins'     => [
     294                    'name' => esc_html__( 'Useful Plugins', 'wp-white-label-login' ),
     295                    // 'hidden' => true,
     296                    'icon' => 'dashicons-plugins-checked',
     297                ],
     298            ]
     299        );
     300    }
     301
     302    private function setup_wll_plugin(): void
     303    {
     304        $this->settings = [
     305            'logo'             => get_option( self::OPTION['logo'] ),
     306            'background_image' => get_option( self::OPTION['background'] ),
     307            'logo_url'         => get_option( self::OPTION['logo_url'] ),
     308            'background_url'   => get_option( self::OPTION['background_url'] ),
     309            'align'            => get_option( self::OPTION['align'] ),
     310            'custom_css'       => get_option( self::OPTION['custom_css'] ),
     311            'copyright'        => get_option( self::OPTION['copyright'] ),
     312            'options'          => get_option( self::OPTION['options'] ),
     313            'page_access'      => get_option( self::OPTION['page_access'] ),
     314        ];
     315
     316        // add admin menu.
     317        self::admin_menu();
     318
     319        // add page access.
     320        PageAccess::init( new OptionSettings( self::OPTION['page_access'], 'selective_page_access', 'wll-page-access' ) );
    330321    }
    331322}
  • wp-white-label-login/trunk/vendor/autoload.php

    r3020008 r3030821  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3::getLoader();
     25return ComposerAutoloaderInit9c99636985841428f174d414af05dd2f::getLoader();
  • wp-white-label-login/trunk/vendor/composer/autoload_classmap.php

    r3030343 r3030821  
    2626    'EasyWhiteLabel\\Admin\\Validate' => $baseDir . '/src/EasyWhiteLabel/Admin/Validate.php',
    2727    'EasyWhiteLabel\\Admin\\WhiteLabelAdmin' => $baseDir . '/src/EasyWhiteLabel/Admin/WhiteLabelAdmin.php',
    28     'EasyWhiteLabel\\Customize\\Customizer' => $baseDir . '/src/EasyWhiteLabel/Customize/Customizer.php',
    29     'EasyWhiteLabel\\Customize\\Section' => $baseDir . '/src/EasyWhiteLabel/Customize/Section.php',
     28    'EasyWhiteLabel\\Customize\\CustomizerPanel' => $baseDir . '/src/EasyWhiteLabel/Customize/CustomizerPanel.php',
     29    'EasyWhiteLabel\\Customize\\Settings\\Background' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Background.php',
     30    'EasyWhiteLabel\\Customize\\Settings\\Button' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Button.php',
     31    'EasyWhiteLabel\\Customize\\Settings\\Css' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Css.php',
     32    'EasyWhiteLabel\\Customize\\Settings\\Footer' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Footer.php',
     33    'EasyWhiteLabel\\Customize\\Settings\\Form' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Form.php',
     34    'EasyWhiteLabel\\Customize\\Settings\\Header' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Header.php',
     35    'EasyWhiteLabel\\Customize\\Settings\\Layout' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Layout.php',
     36    'EasyWhiteLabel\\Customize\\Settings\\Links' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Links.php',
     37    'EasyWhiteLabel\\Customize\\Settings\\Login' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Login.php',
     38    'EasyWhiteLabel\\Customize\\Settings\\Logo' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Logo.php',
     39    'EasyWhiteLabel\\Customize\\Settings\\Menu' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/Menu.php',
     40    'EasyWhiteLabel\\Customize\\Settings\\SettingInterface' => $baseDir . '/src/EasyWhiteLabel/Customize/Settings/SettingInterface.php',
    3041    'EasyWhiteLabel\\DailyTask' => $baseDir . '/src/EasyWhiteLabel/DailyTask.php',
    3142    'EasyWhiteLabel\\Lang' => $baseDir . '/src/EasyWhiteLabel/Lang.php',
    3243    'EasyWhiteLabel\\Lib\\ConnektInstaller' => $baseDir . '/src/EasyWhiteLabel/Lib/ConnektInstaller.php',
     44    'EasyWhiteLabel\\Login\\AbstractSettings' => $baseDir . '/src/EasyWhiteLabel/Login/AbstractSettings.php',
    3345    'EasyWhiteLabel\\Login\\Background' => $baseDir . '/src/EasyWhiteLabel/Login/Background.php',
    3446    'EasyWhiteLabel\\Login\\Footer' => $baseDir . '/src/EasyWhiteLabel/Login/Footer.php',
     
    3850    'EasyWhiteLabel\\PageAccess' => $baseDir . '/src/EasyWhiteLabel/PageAccess.php',
    3951    'EasyWhiteLabel\\Plugin' => $baseDir . '/src/EasyWhiteLabel/Plugin.php',
     52    'EasyWhiteLabel\\PluginInterface' => $baseDir . '/src/EasyWhiteLabel/PluginInterface.php',
    4053    'EasyWhiteLabel\\Traits\\Singleton' => $baseDir . '/src/EasyWhiteLabel/Traits/Singleton.php',
    4154    'EasyWhiteLabel\\Transient' => $baseDir . '/src/EasyWhiteLabel/Transient.php',
  • wp-white-label-login/trunk/vendor/composer/autoload_real.php

    r3020008 r3030821  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3
     5class ComposerAutoloaderInit9c99636985841428f174d414af05dd2f
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9c99636985841428f174d414af05dd2f', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitfad86c4de6683a712b18e6702e3e65b3', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9c99636985841428f174d414af05dd2f', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9c99636985841428f174d414af05dd2f::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit9c99636985841428f174d414af05dd2f::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-white-label-login/trunk/vendor/composer/autoload_static.php

    r3030343 r3030821  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3
     7class ComposerStaticInit9c99636985841428f174d414af05dd2f
    88{
    99    public static $files = array (
     
    4545        'EasyWhiteLabel\\Admin\\Validate' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Admin/Validate.php',
    4646        'EasyWhiteLabel\\Admin\\WhiteLabelAdmin' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Admin/WhiteLabelAdmin.php',
    47         'EasyWhiteLabel\\Customize\\Customizer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Customizer.php',
    48         'EasyWhiteLabel\\Customize\\Section' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Section.php',
     47        'EasyWhiteLabel\\Customize\\CustomizerPanel' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/CustomizerPanel.php',
     48        'EasyWhiteLabel\\Customize\\Settings\\Background' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Background.php',
     49        'EasyWhiteLabel\\Customize\\Settings\\Button' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Button.php',
     50        'EasyWhiteLabel\\Customize\\Settings\\Css' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Css.php',
     51        'EasyWhiteLabel\\Customize\\Settings\\Footer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Footer.php',
     52        'EasyWhiteLabel\\Customize\\Settings\\Form' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Form.php',
     53        'EasyWhiteLabel\\Customize\\Settings\\Header' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Header.php',
     54        'EasyWhiteLabel\\Customize\\Settings\\Layout' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Layout.php',
     55        'EasyWhiteLabel\\Customize\\Settings\\Links' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Links.php',
     56        'EasyWhiteLabel\\Customize\\Settings\\Login' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Login.php',
     57        'EasyWhiteLabel\\Customize\\Settings\\Logo' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Logo.php',
     58        'EasyWhiteLabel\\Customize\\Settings\\Menu' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/Menu.php',
     59        'EasyWhiteLabel\\Customize\\Settings\\SettingInterface' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Customize/Settings/SettingInterface.php',
    4960        'EasyWhiteLabel\\DailyTask' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/DailyTask.php',
    5061        'EasyWhiteLabel\\Lang' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Lang.php',
    5162        'EasyWhiteLabel\\Lib\\ConnektInstaller' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Lib/ConnektInstaller.php',
     63        'EasyWhiteLabel\\Login\\AbstractSettings' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/AbstractSettings.php',
    5264        'EasyWhiteLabel\\Login\\Background' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/Background.php',
    5365        'EasyWhiteLabel\\Login\\Footer' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Login/Footer.php',
     
    5769        'EasyWhiteLabel\\PageAccess' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/PageAccess.php',
    5870        'EasyWhiteLabel\\Plugin' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Plugin.php',
     71        'EasyWhiteLabel\\PluginInterface' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/PluginInterface.php',
    5972        'EasyWhiteLabel\\Traits\\Singleton' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Traits/Singleton.php',
    6073        'EasyWhiteLabel\\Transient' => __DIR__ . '/../..' . '/src/EasyWhiteLabel/Transient.php',
     
    6578    {
    6679        return \Closure::bind(function () use ($loader) {
    67             $loader->prefixLengthsPsr4 = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$prefixLengthsPsr4;
    68             $loader->prefixDirsPsr4 = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$prefixDirsPsr4;
    69             $loader->classMap = ComposerStaticInitfad86c4de6683a712b18e6702e3e65b3::$classMap;
     80            $loader->prefixLengthsPsr4 = ComposerStaticInit9c99636985841428f174d414af05dd2f::$prefixLengthsPsr4;
     81            $loader->prefixDirsPsr4 = ComposerStaticInit9c99636985841428f174d414af05dd2f::$prefixDirsPsr4;
     82            $loader->classMap = ComposerStaticInit9c99636985841428f174d414af05dd2f::$classMap;
    7083
    7184        }, null, ClassLoader::class);
  • wp-white-label-login/trunk/vendor/composer/installed.php

    r3030343 r3030821  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e8fe3ab5d1ae1402a4f2fc4d900e6943b611abb8',
     6        'reference' => 'd4af63fb8feb37619d18b2346725898a3a1bba49',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'e8fe3ab5d1ae1402a4f2fc4d900e6943b611abb8',
     16            'reference' => 'd4af63fb8feb37619d18b2346725898a3a1bba49',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • wp-white-label-login/trunk/white-label-login.php

    r3030343 r3030821  
    55 * Plugin URI:        https://wpbrisko.com/wordpress-plugins/
    66 * Description:       White Label Login, Custom Login Page, Registration and Lost Password Page, Activate it and forget it...
    7  * Version:           7.2.0
     7 * Version:           7.2.1
    88 * Requires at least: 3.4
    99 * Requires PHP:      7.4
     
    2222
    2323// plugin directory
    24 \define( 'EASYWHITELABEL_VERSION', '7.2.0' );
     24\define( 'EASYWHITELABEL_VERSION', '7.2.1' );
    2525
    2626// plugin directory
     
    6060);
    6161
    62 
    63 if ( ! \function_exists( 'wpwhitelabel' ) ) {
    64     /**
    65      * wpwhitelabel().
    66      *
    67      * @return object
    68      */
    69     function wpwhitelabel()
    70     {
    71         // new up wll object
    72         return EasyWhiteLabel\Plugin::init();
    73     }
    74 }
    75 
    7662// The plugin.
    7763EasyWhiteLabel\Plugin::init()->hooks();
     
    7965// run events.
    8066EasyWhiteLabel\DailyTask::init()->scheduled();
    81 
    82 EasyWhiteLabel\PageAccess::init();
Note: See TracChangeset for help on using the changeset viewer.