Changeset 2166381
- Timestamp:
- 10/01/2019 01:17:19 PM (6 years ago)
- Location:
- my-wp-login-logo/trunk
- Files:
-
- 4 edited
-
dc-custom-login-logo.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
views/dashboard.php (modified) (4 diffs)
-
views/faq.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-wp-login-logo/trunk/dc-custom-login-logo.php
r2165172 r2166381 4 4 Plugin URI: https://digitcodes.com 5 5 Description: 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. 16 Version: 2.3.2 7 7 Author: Afsal Rahim 8 8 Author URI: https://afsal.me … … 56 56 57 57 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 } 59 66 } 60 67 61 68 } 62 69 $MyWordpressLoginLogo = new DC_MyWP_LoginLogo(); -
my-wp-login-logo/trunk/readme.txt
r2165172 r2166381 4 4 Requires at least: 3.0.1 5 5 Tested up to: 5.2.3 6 Stable tag: 2.3. 16 Stable tag: 2.3.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 28 == Frequently Asked Questions == 29 29 = 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.30 1. Upload your desired logo clicking the Upload Image button. 31 2. Provide your custom height and width for the logo and press Update. 32 3. That's it! You can now logout and check your awesome new login page. 33 33 34 34 = How to change the logo size? = … … 44 44 == Changelog == 45 45 46 = 2.3.2 = 47 * Improved settings page with media uploader. 48 * Settings link in plugins page. 49 46 50 = 2.3.1 = 47 51 * Remove subscribe box. … … 53 57 54 58 = 2.2 = 55 * More security updates .59 * More security updates 56 60 57 61 = 2.1 = -
my-wp-login-logo/trunk/views/dashboard.php
r2165168 r2166381 10 10 wp_register_style( 'DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL.'css/styles.css' ); 11 11 wp_enqueue_style( 'DC_MyWP_login_logo_Styles' ); 12 wp_enqueue_script('jquery'); 13 wp_enqueue_media(); 12 14 13 15 global $current_user; … … 108 110 <input type="hidden" name="update_MyWP_login_logo" value="update"> 109 111 <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 119 158 <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> 124 170 <script type="text/javascript">// <![CDATA[ 125 171 jQuery('#DisableFadeIn').change(function(){ … … 131 177 }); 132 178 // ]]></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 137 191 </form> 138 192 </div> 139 193 </div> 140 194 141 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?>142 195 143 196 </td> … … 146 199 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php' ); ?> 147 200 </div> 201 202 <div class="inner-sidebar" id="side-info-column"> 203 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?> 204 </div> 148 205 </td> 149 206 </tr></tbody> -
my-wp-login-logo/trunk/views/faq.php
r2165168 r2166381 10 10 <div class="inside"> 11 11 <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. 15 15 </p> 16 16 <p><h4>Q2. How to change the logo size?</h4>
Note: See TracChangeset
for help on using the changeset viewer.