Plugin Directory

Changeset 2166381


Ignore:
Timestamp:
10/01/2019 01:17:19 PM (6 years ago)
Author:
afsalrahim
Message:

v2.3.2 changes added

Location:
my-wp-login-logo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • my-wp-login-logo/trunk/dc-custom-login-logo.php

    r2165172 r2166381  
    44Plugin URI: https://digitcodes.com
    55Description: My Wordpress Login Logo lets you to add a custom logo in your wordpress login page instead of the usual wordpress logo.
    6 Version: 2.3.1
     6Version: 2.3.2
    77Author: Afsal Rahim
    88Author URI: https://afsal.me
     
    5656
    5757    function DC_MyWP_login_logo_actions() { 
    58         add_menu_page( 'My Wordpress Login Logo Options' , 'My Wordpress Login Logo', 'manage_options', 'DC_MyWP_login_logo_dashboard', array( $this, 'DC_MyWP_login_logo_options' ), DC_MyWP_LoginLogo_URL.'images/digitcodes-icon.png' );
     58        add_menu_page( 'My Wordpress Login Logo Options' , 'My Wordpress Login Logo', 'manage_options', 'DC_MyWP_login_logo_dashboard', array( $this, 'DC_MyWP_login_logo_options' ));
     59
     60        /* Add settings link on plugins page*/
     61        add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'DC_MyWP_add_settings_link' );
     62        function DC_MyWP_add_settings_link ( $links ) {
     63            $settings_link = array('<a href="' . admin_url( 'admin.php?page=DC_MyWP_login_logo_dashboard' ) . '">Settings</a>');
     64            return array_merge( $links, $settings_link );
     65        }
    5966    }
    60  
     67
    6168}
    6269$MyWordpressLoginLogo = new DC_MyWP_LoginLogo();
  • my-wp-login-logo/trunk/readme.txt

    r2165172 r2166381  
    44Requires at least: 3.0.1
    55Tested up to: 5.2.3
    6 Stable tag: 2.3.1
     6Stable tag: 2.3.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2828== Frequently Asked Questions ==
    2929= How does it works? =
    30 1. Upload your desired logo using the WordPress media uploader.
    31 2. Copy the uploaded image's File URL path and input it in the Logo URL field.
    32 3. That's it! You can now logout and check your yousite.com/wp-admin/ page to see the changes.
     301. Upload your desired logo clicking the Upload Image button.
     312. Provide your custom height and width for the logo and press Update.
     323. That's it! You can now logout and check your awesome new login page.
    3333
    3434= How to change the logo size? =
     
    4444== Changelog ==
    4545
     46= 2.3.2 =
     47* Improved settings page with media uploader.
     48* Settings link in plugins page.
     49
    4650= 2.3.1 =
    4751* Remove subscribe box.
     
    5357
    5458= 2.2 =
    55 * More security updates.
     59* More security updates
    5660
    5761= 2.1 =
  • my-wp-login-logo/trunk/views/dashboard.php

    r2165168 r2166381  
    1010    wp_register_style( 'DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL.'css/styles.css' );
    1111    wp_enqueue_style( 'DC_MyWP_login_logo_Styles' );
     12    wp_enqueue_script('jquery');
     13    wp_enqueue_media();
    1214   
    1315    global $current_user;
     
    108110                    <input type="hidden" name="update_MyWP_login_logo" value="update">
    109111                    <h3>Customize Logo</h3>
    110                     <p><b>Logo Image URL : </b><input class="regular-text code" type="text" name="wp_custom_login_logo_url" value="<?php echo $custom_logo_url; ?>" size="70"><br/>
    111                     <span class="description">Example: <code>http://yoursite.com/wp-content/uploads/2013/01/logo.png</code></span></p>
    112                     <p><b>Logo Width : </b><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5">px</p>
    113                     <p><b>Logo Height : </b><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5">px</p>
    114                     <p><b>Logo Link : </b><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70"><br/>
    115                     <span class="description">This is the url opened when clicked on the logo in your login page.</p>
    116                     <p><b>Logo Title : </b><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40"><br/>
    117                     <span class="description">Title or description shown on hovering mouse over the logo.</p>
    118                     <input type="submit" class="button-primary" name="Submit" value="Update" />
     112
     113                    <table class="form-table"><tbody>
     114                    <tr>
     115                        <th scope="row"><label for="logoimage">Logo Image</label></th>
     116                        <td><input class="regular-text" type="text" id="wp_custom_login_logo_url" name="wp_custom_login_logo_url" size="70"> <input type="button" name="upload-btn" id="upload-btn" class="button-secondary" value="Upload Image"></td>
     117                            <script type="text/javascript">
     118                            jQuery(document).ready(function($){
     119                                $('#upload-btn').click(function(e) {
     120                                    e.preventDefault();
     121                                    var image = wp.media({
     122                                        title: 'Upload Image',
     123                                        multiple: false
     124                                    }).open()
     125                                    .on('select', function(e){
     126                                        var uploaded_image = image.state().get('selection').first();
     127                                        var image_url = uploaded_image.toJSON().url;
     128                                        $('#wp_custom_login_logo_url').val(image_url);
     129                                    });
     130                                });
     131                            });
     132                            </script>
     133                    </tr>
     134                    <tr>
     135                        <th scope="row"><label for="logowidth">Logo Width</label></th>
     136                        <td><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5"> px</td>
     137                    </tr>
     138                    <tr>
     139                        <th scope="row"><label for="logowidth">Logo Height</label></th>
     140                        <td><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5"> px</td>
     141                    </tr>
     142                    <tr>
     143                        <th scope="row"><label for="logolinkurl">Logo Link URL</label></th>
     144                        <td><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70">
     145                        <p class="description">This is the url opened when clicked on the logo in your login page.</p></td>
     146                    </tr>
     147                    <tr>
     148                        <th scope="row"><label for="logotitle">Logo Page Title</label></th>
     149                        <td><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40">
     150                        <p class="description">Title or description shown on hovering mouse over the logo.</p></td>
     151                    </tr>
     152                    <tr>
     153                    <th scope="row"><label for="submit"></label></th>
     154                    <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td>
     155                    </tr>
     156                    </tbody></table>
     157
    119158                    <br/>
    120                     <h3>Customize Login Form</h3>
    121                     <p><input id="DisableFadeIn" type="checkbox" name="wp_custom_login_logo_fadein" value="false" <?php if($custom_logo_fadein) echo "checked"; ?>><span id="DisableFadeInText"> Enable FadeIn Effect</span><br/>
    122                     <span class="description"> Provides a fading effect to the login form</span></p>
    123                     <p id="fadetime" <?php if(!$custom_logo_fadein) { echo 'style="display:none;"'; } ?>><b>Set fade in time : </b><input type="text" name="wp_custom_login_logo_fadetime" value="<?php echo $custom_logo_fadetime; ?>" size="5">seconds</p>
     159                    <h3>Advanced Customization</h3>
     160                    <table class="form-table"><tbody>
     161                    <tr>
     162                        <th scope="row"><label for="fadeineffect">FadeIn Effect</label></th>
     163                        <td><input id="DisableFadeIn" type="checkbox" name="wp_custom_login_logo_fadein" value="false" <?php if($custom_logo_fadein) echo "checked"; ?>>Enable FadeIn Effect<p class="description"> Provides a fading effect to the login form</p></td>
     164                    </tr>
     165
     166                    <tr <?php if(!$custom_logo_fadein) { echo 'style="display:none;"'; } ?>>
     167                        <th scope="row"><label for="fadetime">FadeIn Time</label></th>
     168                        <td><input id="DisableFadeIn" type="text" name="wp_custom_login_logo_fadetime" value="<?php echo $custom_logo_fadetime; ?>" size="5"> seconds<p class="description">Set fade in time.</p></td>
     169                    </tr>
    124170                            <script type="text/javascript">// <![CDATA[
    125171                            jQuery('#DisableFadeIn').change(function(){
     
    131177                            });
    132178                            // ]]></script>
    133                                
    134                     <p><b>Custom Message : </b><br/><textarea class="large-text code" name="wp_custom_login_logo_message"><?php echo $custom_logo_message; ?></textarea><br/>
    135                     <span class="description">Shows the given message below the login form. Leave this empty if you don't want to show any custom message.</p>             
    136                     <input type="submit" class="button-primary" name="Submit" value="Update" />
     179                   
     180                    <tr>
     181                        <th scope="row"><label for="fadetime">Custom Message</label></th>
     182                        <td><textarea class="large-text code" name="wp_custom_login_logo_message"><?php echo $custom_logo_message; ?></textarea><p class="description">Shows the given message below the login form. Leave this empty if you don't want to show any custom message.</p></td>
     183                    </tr>
     184
     185                    <tr>
     186                    <th scope="row"><label for="submit"></label></th>
     187                    <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td>
     188                    </tr>
     189                    </tbody></table>
     190
    137191                </form>
    138192            </div>
    139193        </div>         
    140194
    141         <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?>
    142195   
    143196        </td>
     
    146199            <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php' ); ?>
    147200            </div> 
     201
     202            <div class="inner-sidebar" id="side-info-column">
     203            <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?>
     204            </div>
    148205        </td>
    149206</tr></tbody>
  • my-wp-login-logo/trunk/views/faq.php

    r2165168 r2166381  
    1010    <div class="inside">
    1111            <p><h4>Q1. How does it works?</h4>
    12             [-] Upload your desired logo using the WordPress media uploader or  <a href="media-new.php">click here</a><br/>
    13             [-] Copy the uploaded image's File URL path and input it in the Logo URL field.<br/>
    14             [-] That's it! You can now logout and check your <code>yousite.com/wp-admin/</code> page to see the changes.
     12            [-] Upload your desired logo clicking the Upload Image button.<br/>
     13            [-] Provide your custom height and width for the logo and press Save<br/>
     14            [-] That's it! You can now logout and check your awesome new login page.
    1515            </p>
    1616            <p><h4>Q2. How to change the logo size?</h4>
Note: See TracChangeset for help on using the changeset viewer.