Changeset 3237336
- Timestamp:
- 02/09/2025 12:42:01 PM (13 months ago)
- Location:
- my-wp-login-logo
- Files:
-
- 16 edited
- 1 copied
-
tags/2.5.0 (copied) (copied from my-wp-login-logo/trunk)
-
tags/2.5.0/core/custom-js.php (modified) (1 diff)
-
tags/2.5.0/core/custom-styles.php (modified) (1 diff)
-
tags/2.5.0/css/styles.css (modified) (1 diff)
-
tags/2.5.0/dc-custom-login-logo.php (modified) (1 diff)
-
tags/2.5.0/readme.txt (modified) (3 diffs)
-
tags/2.5.0/uninstall.php (modified) (1 diff)
-
tags/2.5.0/views/dashboard.php (modified) (1 diff)
-
tags/2.5.0/views/faq.php (modified) (1 diff)
-
trunk/core/custom-js.php (modified) (1 diff)
-
trunk/core/custom-styles.php (modified) (1 diff)
-
trunk/css/styles.css (modified) (1 diff)
-
trunk/dc-custom-login-logo.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/views/dashboard.php (modified) (1 diff)
-
trunk/views/faq.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-wp-login-logo/tags/2.5.0/core/custom-js.php
r686520 r3237336 2 2 /* Custom JS for Login Page */ 3 3 4 $custom_logo_fadein = get_option('wp_custom_login_logo_fadein','true'); 5 $custom_logo_fadetime = get_option('wp_custom_login_logo_fadetime','2500'); 6 7 if($custom_logo_fadein) { 8 echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 9 <script type="text/javascript">// <![CDATA[ 10 jQuery(document).ready(function() { jQuery("#loginform,#nav,#backtoblog").css("display", "none"); jQuery("#loginform,#nav,#backtoblog").fadeIn('.$custom_logo_fadetime.'); 11 }); 12 // ]]></script>'; 13 } 14 ?> 4 $custom_logo_fadein = get_option('wp_custom_login_logo_fadein', 'true'); 5 $custom_logo_fadetime = intval(get_option('wp_custom_login_logo_fadetime', '2500')); 6 7 if ($custom_logo_fadein === 'true') { 8 echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 9 <script type="text/javascript">// <![CDATA[ 10 jQuery(document).ready(function() { 11 jQuery("#loginform,#nav,#backtoblog").css("display", "none"); 12 jQuery("#loginform,#nav,#backtoblog").fadeIn(' . $custom_logo_fadetime . '); 13 }); 14 // ]]></script>'; 15 } -
my-wp-login-logo/tags/2.5.0/core/custom-styles.php
r686526 r3237336 2 2 /* Custom Styling for Login Page */ 3 3 4 $custom_logo_url = get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL.'images/mylogo.png'); 5 $custom_logo_height = get_option('wp_custom_login_logo_height','70'); 6 $custom_logo_width = get_option('wp_custom_login_logo_width','320'); 7 8 echo '<!-- Customized using My Wordpress Login Logo --> 9 <style type="text/css"> 10 .login h1 a { 11 background-image:url('.$custom_logo_url.') !important; 12 background-size:'.$custom_logo_width.'px '.$custom_logo_height .'px; 13 height:'.$custom_logo_height .'px; width:'.$custom_logo_width.'px; 14 margin: 0 auto; 15 } 4 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL . 'images/mylogo.png')); 5 $custom_logo_height = intval(get_option('wp_custom_login_logo_height', '70')); 6 $custom_logo_width = intval(get_option('wp_custom_login_logo_width', '320')); 16 7 17 .login .message { 18 display: none; 19 } 20 </style>'; 21 ?> 8 echo '<!-- Customized using My Wordpress Login Logo --> 9 <style type="text/css"> 10 .login h1 a { 11 background-image:url(' . $custom_logo_url . ') !important; 12 background-size:' . $custom_logo_width . 'px ' . $custom_logo_height . 'px; 13 height:' . $custom_logo_height . 'px; width:' . $custom_logo_width . 'px; 14 margin: 0 auto; 15 } 16 17 .login .message { 18 display: none; 19 } 20 </style>'; -
my-wp-login-logo/tags/2.5.0/css/styles.css
r686520 r3237336 2 2 /* CSS Document */ 3 3 4 #sidebar-subscribe-box{background:url("images/color-chronicl.gif") repeat scroll 0 0 transparent;border:1px solid #aaa;border-radius:3px;padding:3px 0}.sidebar-subscribe-box-wrapper{background:url(images/pattern-chronicl.png) repeat scroll 0 0 #f7f7f7;color:#111;font-size:14px;line-height:20px;padding:1px 20px 10px;text-align:center;text-transform:uppercase}.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0}form.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0 0;width:auto}.sidebar-subscribe-box-email-field{-moz-border-radius:4px;-webkit-border-radius:4px;background:#fff url(images/sprites.png) no-repeat 0 -27px;border:1px solid #ccc;border-radius:4px;color:#444;margin:0 0 15px;padding:10px 40px;width:68%}.sidebar-subscribe-box-email-button{background:#09f;border:1px solid #007fff;box-shadow:0 1px 0 rgba(255,255,255,0.3) inset, 0 1px 0 transparent;color:#fff;cursor:pointer;font-family:verdana;font-weight:700;padding:10px;text-shadow:1px 1px 0 rgba(0,0,0,.4);text-transform:uppercase;width:100%}.sidebar-subscribe-box-email-button:hover,.sidebar-subscribe-box-email-button:focus{background:#1ca4ff}.sidebar-subscribe-box-email-button:active{-moz-box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;outline:0}iframe,object,embed,.yt-border iframe,.yt-border object,.yt-border embed,table{width:100%}embed{border-radius:3px;-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#FFF;border:1px solid #ddd;box-shadow:0 2px 4px rgba(0,0,0,0.2);margin:0;padding:4px 4px 4px}#footer-section{background:#f5f5f5 url(images/pattern-chronicl.png) repeat top left;border-top:1px solid #aaa;box-shadow:inset 0 4px 6px -3px #aaa;font-family:cambria;font-size:14px;height:100px;margin:10px -30px 5px;padding:0 30px;text-align:center;width:100%} 4 #sidebar-subscribe-box { 5 background: url("images/color-chronicl.gif") repeat scroll 0 0 transparent; 6 border: 1px solid #aaa; 7 border-radius: 3px; 8 padding: 3px 0; 9 } 10 .sidebar-subscribe-box-wrapper { 11 background: url(images/pattern-chronicl.png) repeat scroll 0 0 #f7f7f7; 12 color: #111; 13 font-size: 14px; 14 line-height: 20px; 15 padding: 1px 20px 10px; 16 text-align: center; 17 text-transform: uppercase; 18 } 19 .sidebar-subscribe-box-form { 20 clear: both; 21 display: block; 22 margin: 10px 0; 23 } 24 form.sidebar-subscribe-box-form { 25 clear: both; 26 display: block; 27 margin: 10px 0 0; 28 width: auto; 29 } 30 .sidebar-subscribe-box-email-field { 31 -moz-border-radius: 4px; 32 -webkit-border-radius: 4px; 33 background: #fff url(images/sprites.png) no-repeat 0 -27px; 34 border: 1px solid #ccc; 35 border-radius: 4px; 36 color: #444; 37 margin: 0 0 15px; 38 padding: 10px 40px; 39 width: 68%; 40 } 41 .sidebar-subscribe-box-email-button { 42 background: #09f; 43 border: 1px solid #007fff; 44 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 1px 0 transparent; 45 color: #fff; 46 cursor: pointer; 47 font-family: verdana; 48 font-weight: 700; 49 padding: 10px; 50 text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); 51 text-transform: uppercase; 52 width: 100%; 53 } 54 .sidebar-subscribe-box-email-button:hover, 55 .sidebar-subscribe-box-email-button:focus { 56 background: #1ca4ff; 57 } 58 .sidebar-subscribe-box-email-button:active { 59 -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 60 -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 61 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 62 outline: 0; 63 } 64 iframe, 65 object, 66 embed, 67 .yt-border iframe, 68 .yt-border object, 69 .yt-border embed, 70 table { 71 width: 100%; 72 } 73 embed { 74 border-radius: 3px; 75 -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 76 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 77 background: #fff; 78 border: 1px solid #ddd; 79 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 80 margin: 0; 81 padding: 4px 4px 4px; 82 } 83 #footer-section { 84 background: #f5f5f5 url(images/pattern-chronicl.png) repeat top left; 85 border-top: 1px solid #aaa; 86 box-shadow: inset 0 4px 6px -3px #aaa; 87 font-family: cambria; 88 font-size: 14px; 89 height: 100px; 90 margin: 10px -30px 5px; 91 padding: 0 30px; 92 text-align: center; 93 width: 100%; 94 } -
my-wp-login-logo/tags/2.5.0/dc-custom-login-logo.php
r2511852 r3237336 9 9 */ 10 10 11 if ( !defined( 'DC_MyWP_LoginLogo_URL' ) ) 12 define( 'DC_MyWP_LoginLogo_URL', plugin_dir_url( __FILE__ ) ); 13 if ( !defined( 'DC_MyWP_LoginLogo_PATH' ) ) 14 define( 'DC_MyWP_LoginLogo_PATH', plugin_dir_path( __FILE__ ) ); 15 16 class DC_MyWP_LoginLogo { 11 if (!defined('DC_MyWP_LoginLogo_URL')) 12 define('DC_MyWP_LoginLogo_URL', plugin_dir_url(__FILE__)); 13 if (!defined('DC_MyWP_LoginLogo_PATH')) 14 define('DC_MyWP_LoginLogo_PATH', plugin_dir_path(__FILE__)); 17 15 18 function __construct() { 19 add_action('login_head', array( $this, 'DC_MyWP_login_logo')); 20 add_action('login_head', array( $this, 'DC_MyWP_login_fadein')); 21 add_action('login_form', array( $this, 'DC_MyWP_login_form_message')); 22 add_action('admin_menu', array( $this, 'DC_MyWP_login_logo_actions')); 16 class DC_MyWP_LoginLogo 17 { 23 18 24 add_filter('login_headerurl', array( $this, 'DC_MyWP_login_url')); 19 function __construct() 20 { 21 add_action('login_head', array($this, 'DC_MyWP_login_logo')); 22 add_action('login_head', array($this, 'DC_MyWP_login_fadein')); 23 add_action('login_form', array($this, 'DC_MyWP_login_form_message')); 24 add_action('admin_menu', array($this, 'DC_MyWP_login_logo_actions')); 25 26 add_filter('login_headerurl', array($this, 'DC_MyWP_login_url')); 25 27 26 28 // login_headertitle is deprecated above wp_version 5.2 27 if ( version_compare( $GLOBALS['wp_version'], '5.2', '<' )) {28 add_filter( 'login_headertitle', array( $this, 'DC_MyWP_login_title'));29 if (version_compare($GLOBALS['wp_version'], '5.2', '<')) { 30 add_filter('login_headertitle', array($this, 'DC_MyWP_login_title')); 29 31 } else { 30 add_filter( 'login_headertext', array( $this, 'DC_MyWP_login_title'));32 add_filter('login_headertext', array($this, 'DC_MyWP_login_title')); 31 33 } 32 34 } 33 35 34 function DC_MyWP_login_logo() { 35 include_once( DC_MyWP_LoginLogo_PATH . '/core/custom-styles.php' ); 36 function DC_MyWP_login_logo() 37 { 38 include_once(DC_MyWP_LoginLogo_PATH . '/core/custom-styles.php'); 36 39 } 37 40 38 function DC_MyWP_login_url() { 39 $custom_login_url = get_option('wp_custom_login_url',home_url()); 41 function DC_MyWP_login_url() 42 { 43 $custom_login_url = esc_url(get_option('wp_custom_login_url', home_url())); 40 44 return $custom_login_url; 41 45 } 42 46 43 function DC_MyWP_login_title() { 44 $custom_login_title = get_option('wp_custom_login_title',get_bloginfo('description')); 47 function DC_MyWP_login_title() 48 { 49 $custom_login_title = sanitize_text_field(get_option('wp_custom_login_title', get_bloginfo('description'))); 45 50 return $custom_login_title; 46 51 } 47 52 48 function DC_MyWP_login_fadein() { 49 include_once( DC_MyWP_LoginLogo_PATH . '/core/custom-js.php' ); 53 function DC_MyWP_login_fadein() 54 { 55 include_once(DC_MyWP_LoginLogo_PATH . '/core/custom-js.php'); 50 56 } 51 52 function DC_MyWP_login_form_message() { 53 $custom_logo_message = get_option('wp_custom_login_logo_message',''); 54 if($custom_logo_message != '') { 55 echo '<p>'.$custom_logo_message.'</p><br/>'; 57 58 function DC_MyWP_login_form_message() 59 { 60 $custom_logo_message = esc_html(get_option('wp_custom_login_logo_message', '')); 61 if ($custom_logo_message != '') { 62 echo '<p>' . $custom_logo_message . '</p><br/>'; 56 63 } 57 64 } 58 65 59 function DC_MyWP_login_logo_options() { 60 require( DC_MyWP_LoginLogo_PATH . '/views/dashboard.php' ); 61 } 66 function DC_MyWP_login_logo_options() 67 { 68 require(DC_MyWP_LoginLogo_PATH . '/views/dashboard.php'); 69 } 62 70 63 function DC_MyWP_login_logo_actions() { 64 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' )); 71 function DC_MyWP_login_logo_actions() 72 { 73 add_menu_page('Login Logo', 'Login Logo', 'manage_options', 'DC_MyWP_login_logo_dashboard', array($this, 'DC_MyWP_login_logo_options')); 65 74 66 75 /* Add settings link on plugins page*/ 67 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'DC_MyWP_add_settings_link' ); 68 function DC_MyWP_add_settings_link ( $links ) { 69 $settings_link = array('<a href="' . admin_url( 'admin.php?page=DC_MyWP_login_logo_dashboard' ) . '">Settings</a>'); 70 return array_merge( $links, $settings_link ); 76 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'DC_MyWP_add_settings_link'); 77 function DC_MyWP_add_settings_link($links) 78 { 79 $settings_link = array('<a href="' . admin_url('admin.php?page=DC_MyWP_login_logo_dashboard') . '">Settings</a>'); 80 return array_merge($links, $settings_link); 71 81 } 72 82 } 73 74 83 } 75 84 $MyWordpressLoginLogo = new DC_MyWP_LoginLogo(); 76 ?> -
my-wp-login-logo/tags/2.5.0/readme.txt
r2511852 r3237336 3 3 Tags: wordpress login logo, custom logo, login page logo, logo changer, change login page logo 4 4 Requires at least: 3.0.1 5 Tested up to: 5.76 Stable tag: 2. 4.15 Tested up to: 6.7.1 6 Stable tag: 2.5.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 2.5.0 = 47 * Security improvements and compatibility updates for WordPress 6.7.1. 48 46 49 = 2.4.1 = 47 50 * Fix readme and wp tested version … … 82 85 == Upgrade Notice == 83 86 84 = 2. 4.0 =85 * Important Release, upgrade immediately. Compatible with 5.787 = 2.5.0 = 88 * Important Release, upgrade immediately. Compatible with 6.7.1 -
my-wp-login-logo/tags/2.5.0/uninstall.php
r686520 r3237336 1 1 <?php 2 2 3 if ( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN'))4 exit();3 if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) 4 exit(); 5 5 6 $options_array = array(7 'wp_custom_login_logo_url',8 'wp_custom_login_url',9 'wp_custom_login_title',10 'wp_custom_login_logo_height',11 'wp_custom_login_logo_width',12 'wp_custom_login_logo_fadein',13 'wp_custom_login_logo_fadetime',14 'wp_custom_login_logo_message'15 );16 6 $options_array = array( 7 'wp_custom_login_logo_url', 8 'wp_custom_login_url', 9 'wp_custom_login_title', 10 'wp_custom_login_logo_height', 11 'wp_custom_login_logo_width', 12 'wp_custom_login_logo_fadein', 13 'wp_custom_login_logo_fadetime', 14 'wp_custom_login_logo_message' 15 ); 16 17 17 foreach ($options_array as $option) { 18 delete_option( $option);18 delete_option($option); 19 19 } 20 ?> -
my-wp-login-logo/tags/2.5.0/views/dashboard.php
r2166404 r3237336 1 <?php2 3 if( !defined( 'ABSPATH'))1 <?php 2 3 if (!defined('ABSPATH')) 4 4 exit('Restricted Access..! Please Login.'); 5 6 if (!current_user_can('manage_options')) { 7 wp_die('You do not have sufficient permissions to access this page.'); 8 } 9 10 wp_register_style( 'DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL.'css/styles.css' ); 11 wp_enqueue_style( 'DC_MyWP_login_logo_Styles' ); 12 wp_enqueue_script('jquery'); 13 wp_enqueue_media(); 14 15 global $current_user; 16 get_currentuserinfo(); 17 18 $invalid_number = false; 19 $updated = false; 20 21 if($_POST['update_MyWP_login_logo'] == 'update') { 22 23 check_admin_referer('update_MyWP_login_logo'); 24 25 $wp_custom_login_logo_url = sanitize_text_field($_POST['wp_custom_login_logo_url']); 26 $wp_custom_login_logo_height = sanitize_text_field($_POST['wp_custom_login_logo_height']); 27 $wp_custom_login_logo_width = sanitize_text_field($_POST['wp_custom_login_logo_width']); 28 $wp_custom_login_title = sanitize_text_field($_POST['wp_custom_login_title']); 29 $wp_custom_login_logo_fadein = sanitize_text_field($_POST['wp_custom_login_logo_fadein']); 30 $wp_custom_login_logo_fadetime = sanitize_text_field($_POST['wp_custom_login_logo_fadetime']); 31 $wp_custom_login_logo_message = sanitize_text_field($_POST['wp_custom_login_logo_message']); 32 33 if(!intval($wp_custom_login_logo_height) || !intval($wp_custom_login_logo_width)) { 34 $invalid_number = true; 35 } else { 36 update_option('wp_custom_login_logo_url', $wp_custom_login_logo_url); 37 update_option('wp_custom_login_logo_height', $wp_custom_login_logo_height); 38 update_option('wp_custom_login_logo_width', $wp_custom_login_logo_width); 39 update_option('wp_custom_login_title', $wp_custom_login_title); 40 update_option('wp_custom_login_logo_fadein', $wp_custom_login_logo_fadein); 41 update_option('wp_custom_login_logo_fadetime', $wp_custom_login_logo_fadetime); 42 update_option('wp_custom_login_logo_message', $wp_custom_login_logo_message); 43 $updated = true; 44 } 5 6 if (!current_user_can('manage_options')) { 7 wp_die('You do not have sufficient permissions to access this page.'); 8 } 9 10 wp_register_style('DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL . 'css/styles.css'); 11 wp_enqueue_style('DC_MyWP_login_logo_Styles'); 12 wp_enqueue_script('jquery'); 13 wp_enqueue_media(); 14 15 $current_user = wp_get_current_user(); 16 17 $invalid_number = false; 18 $updated = false; 19 20 if (isset($_POST['update_MyWP_login_logo']) && $_POST['update_MyWP_login_logo'] == 'update') { 21 22 check_admin_referer('update_MyWP_login_logo'); 23 24 $wp_custom_login_logo_url = esc_url_raw($_POST['wp_custom_login_logo_url']); 25 $wp_custom_login_logo_height = intval($_POST['wp_custom_login_logo_height']); 26 $wp_custom_login_logo_width = intval($_POST['wp_custom_login_logo_width']); 27 $wp_custom_login_title = sanitize_text_field($_POST['wp_custom_login_title']); 28 $wp_custom_login_logo_fadein = isset($_POST['wp_custom_login_logo_fadein']) ? 'true' : 'false'; 29 $wp_custom_login_logo_fadetime = intval($_POST['wp_custom_login_logo_fadetime']); 30 $wp_custom_login_logo_message = sanitize_textarea_field($_POST['wp_custom_login_logo_message']); 31 32 if (!$wp_custom_login_logo_height || !$wp_custom_login_logo_width) { 33 $invalid_number = true; 34 } else { 35 update_option('wp_custom_login_logo_url', $wp_custom_login_logo_url); 36 update_option('wp_custom_login_logo_height', $wp_custom_login_logo_height); 37 update_option('wp_custom_login_logo_width', $wp_custom_login_logo_width); 38 update_option('wp_custom_login_title', $wp_custom_login_title); 39 update_option('wp_custom_login_logo_fadein', $wp_custom_login_logo_fadein); 40 update_option('wp_custom_login_logo_fadetime', $wp_custom_login_logo_fadetime); 41 update_option('wp_custom_login_logo_message', $wp_custom_login_logo_message); 42 $updated = true; 45 43 } 46 47 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL.'images/mylogo.png')); 48 $custom_logo_height = esc_textarea(get_option('wp_custom_login_logo_height','70')); 49 $custom_logo_width = esc_textarea(get_option('wp_custom_login_logo_width','320')); 50 $custom_login_title = esc_textarea(get_option('wp_custom_login_title',get_bloginfo('description'))); 51 $custom_login_url = esc_textarea(get_option('wp_custom_login_url',home_url())); 52 $custom_logo_fadein = esc_textarea(get_option('wp_custom_login_logo_fadein','true')); 53 $custom_logo_fadetime = esc_textarea(get_option('wp_custom_login_logo_fadetime','2500')); 54 $custom_logo_message = esc_textarea(get_option('wp_custom_login_logo_message','')); 44 } 45 46 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL . 'images/mylogo.png')); 47 $custom_logo_height = esc_attr(get_option('wp_custom_login_logo_height', '70')); 48 $custom_logo_width = esc_attr(get_option('wp_custom_login_logo_width', '320')); 49 $custom_login_title = esc_attr(get_option('wp_custom_login_title', get_bloginfo('description'))); 50 $custom_login_url = esc_attr(get_option('wp_custom_login_url', home_url())); 51 $custom_logo_fadein = esc_attr(get_option('wp_custom_login_logo_fadein', 'true')); 52 $custom_logo_fadetime = esc_attr(get_option('wp_custom_login_logo_fadetime', '2500')); 53 $custom_logo_message = esc_textarea(get_option('wp_custom_login_logo_message', '')); 55 54 ?> 56 55 57 56 58 <div style="margin: 10px 20px 0 2px;"> 59 <div class="metabox-holder columns-2"> 60 <div class="postbox-container"> 61 <div id="top-sortables" class="meta-box-sortables ui-sortable"> 62 63 64 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 65 <tbody> 66 <tr> 67 <td valign="top"><h3>My Wordpress Login Logo</h3></td> 68 </tr> 69 </tbody> 70 </table> 71 <hr> 72 73 <?php 74 if($updated) { 75 echo "<div class=\"updated\"><p><strong>Login Page Updated.</strong></p></div>"; 76 } 77 if($invalid_number) { 78 echo "<div class=\"error\"><p><strong> Error: Provide a valid height and width </strong></p></div>"; 79 } 80 ?> 81 82 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 83 <tbody><tr> 84 <td valign="top"> 85 86 <div class="postbox"> 87 <button class="handlediv button-link" aria-expanded="true" type="button"> 88 <span class="screen-reader-text">Toggle panel: Current Login Page Logo</span> 89 <span class="toggle-indicator" aria-hidden="true"></span> 90 </button> 91 <h2 class="hndle ui-sortable-handle"> 92 <span>Current Login Page Logo</span> 93 </h2> 94 <div class="inside"> 95 <p class="description"><img src="<?php echo $custom_logo_url; ?>" alt="" /></p> 57 <div style="margin: 10px 20px 0 2px;"> 58 <div class="metabox-holder columns-2"> 59 <div class="postbox-container"> 60 <div id="top-sortables" class="meta-box-sortables ui-sortable"> 61 62 63 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 64 <tbody> 65 <tr> 66 <td valign="top"> 67 <h3>My Wordpress Login Logo</h3> 68 </td> 69 </tr> 70 </tbody> 71 </table> 72 <hr> 73 74 <?php 75 if ($updated) { 76 echo "<div class=\"updated\"><p><strong>Login Page Updated.</strong></p></div>"; 77 } 78 if ($invalid_number) { 79 echo "<div class=\"error\"><p><strong> Error: Provide a valid height and width </strong></p></div>"; 80 } 81 ?> 82 83 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 84 <tbody> 85 <tr> 86 <td valign="top"> 87 88 <div class="postbox"> 89 <button class="handlediv button-link" aria-expanded="true" type="button"> 90 <span class="screen-reader-text">Toggle panel: Current Login Page Logo</span> 91 <span class="toggle-indicator" aria-hidden="true"></span> 92 </button> 93 <h2 class="hndle ui-sortable-handle"> 94 <span>Current Login Page Logo</span> 95 </h2> 96 <div class="inside"> 97 <p class="description"><img src="<?php echo $custom_logo_url; ?>" alt="" /></p> 98 </div> 99 </div> 100 101 <div class="postbox"> 102 <button class="handlediv button-link" aria-expanded="true" type="button"> 103 <span class="screen-reader-text">Toggle panel: Customize Login Page</span> 104 <span class="toggle-indicator" aria-hidden="true"></span> 105 </button> 106 <h2 class="hndle ui-sortable-handle"> 107 <span>Customize Login Page</span> 108 </h2> 109 110 <div class="inside"> 111 <form name="DC_MyWP_login_logo_form" method="post" action=""> 112 <?php wp_nonce_field('update_MyWP_login_logo'); ?> 113 <input type="hidden" name="update_MyWP_login_logo" value="update"> 114 <h3>Customize Logo</h3> 115 116 <table class="form-table"> 117 <tbody> 118 <tr> 119 <th scope="row"><label for="logoimage">Logo Image</label></th> 120 <td><input class="regular-text" type="text" id="wp_custom_login_logo_url" name="wp_custom_login_logo_url" value="<?php echo $custom_logo_url; ?>" size="70"> <input type="button" name="upload-btn" id="upload-btn" class="button-secondary" value="Upload Image"></td> 121 <script type="text/javascript"> 122 jQuery(document).ready(function($) { 123 $('#upload-btn').click(function(e) { 124 e.preventDefault(); 125 var image = wp.media({ 126 title: 'Upload Image', 127 multiple: false 128 }).open() 129 .on('select', function(e) { 130 var uploaded_image = image.state().get('selection').first(); 131 var image_url = uploaded_image.toJSON().url; 132 $('#wp_custom_login_logo_url').val(image_url); 133 }); 134 }); 135 }); 136 </script> 137 </tr> 138 <tr> 139 <th scope="row"><label for="logowidth">Logo Width</label></th> 140 <td><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5"> px</td> 141 </tr> 142 <tr> 143 <th scope="row"><label for="logowidth">Logo Height</label></th> 144 <td><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5"> px</td> 145 </tr> 146 <tr> 147 <th scope="row"><label for="logolinkurl">Logo Link URL</label></th> 148 <td><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70"> 149 <p class="description">This is the url opened when clicked on the logo in your login page.</p> 150 </td> 151 </tr> 152 <tr> 153 <th scope="row"><label for="logotitle">Logo Page Title</label></th> 154 <td><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40"> 155 <p class="description">Title or description shown on hovering mouse over the logo.</p> 156 </td> 157 </tr> 158 <tr> 159 <th scope="row"><label for="submit"></label></th> 160 <td> 161 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p> 162 </td> 163 </tr> 164 </tbody> 165 </table> 166 167 <br /> 168 <h3>Advanced Customization</h3> 169 <table class="form-table"> 170 <tbody> 171 <tr> 172 <th scope="row"><label for="fadeineffect">FadeIn Effect</label></th> 173 <td><input id="DisableFadeIn" type="checkbox" name="wp_custom_login_logo_fadein" value="true" <?php checked($custom_logo_fadein, 'true'); ?>>Enable FadeIn Effect<p class="description"> Provides a fading effect to the login form</p> 174 </td> 175 </tr> 176 177 <tr <?php if (!$custom_logo_fadein) { 178 echo 'style="display:none;"'; 179 } ?>> 180 <th scope="row"><label for="fadetime">FadeIn Time</label></th> 181 <td><input id="fadetime" 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> 182 </td> 183 </tr> 184 <script type="text/javascript"> 185 // <![CDATA[ 186 jQuery('#DisableFadeIn').change(function() { 187 if (jQuery(this).is(':checked')) { 188 jQuery('#fadetime').show(); 189 } else { 190 jQuery('#fadetime').hide(); 191 } 192 }); 193 // ]]> 194 </script> 195 196 <tr> 197 <th scope="row"><label for="fadetime">Custom Message</label></th> 198 <td><textarea class="large-text code" name="wp_custom_login_logo_message"><?php echo esc_textarea($custom_logo_message); ?></textarea> 199 <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> 200 </td> 201 </tr> 202 203 <tr> 204 <th scope="row"><label for="submit"></label></th> 205 <td> 206 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p> 207 </td> 208 </tr> 209 </tbody> 210 </table> 211 212 </form> 213 </div> 214 </div> 215 216 217 </td> 218 <td width="300" valign="top"> 219 <div class="inner-sidebar" id="side-info-column"> 220 <?php include_once(DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php'); ?> 221 </div> 222 223 <div class="inner-sidebar" id="side-info-column"> 224 <?php include_once(DC_MyWP_LoginLogo_PATH . '/views/faq.php'); ?> 225 </div> 226 </td> 227 </tr> 228 </tbody> 229 </table> 230 96 231 </div> 97 232 </div> 98 99 <div class="postbox"> 100 <button class="handlediv button-link" aria-expanded="true" type="button"> 101 <span class="screen-reader-text">Toggle panel: Customize Login Page</span> 102 <span class="toggle-indicator" aria-hidden="true"></span> 103 </button> 104 <h2 class="hndle ui-sortable-handle"> 105 <span>Customize Login Page</span> 106 </h2> 107 108 <div class="inside"> 109 <form name="DC_MyWP_login_logo_form" method="post" action=""> 110 <?php wp_nonce_field('update_MyWP_login_logo'); ?> 111 <input type="hidden" name="update_MyWP_login_logo" value="update"> 112 <h3>Customize Logo</h3> 113 114 <table class="form-table"><tbody> 115 <tr> 116 <th scope="row"><label for="logoimage">Logo Image</label></th> 117 <td><input class="regular-text" type="text" id="wp_custom_login_logo_url" name="wp_custom_login_logo_url" value="<?php echo $custom_logo_url; ?>" size="70"> <input type="button" name="upload-btn" id="upload-btn" class="button-secondary" value="Upload Image"></td> 118 <script type="text/javascript"> 119 jQuery(document).ready(function($){ 120 $('#upload-btn').click(function(e) { 121 e.preventDefault(); 122 var image = wp.media({ 123 title: 'Upload Image', 124 multiple: false 125 }).open() 126 .on('select', function(e){ 127 var uploaded_image = image.state().get('selection').first(); 128 var image_url = uploaded_image.toJSON().url; 129 $('#wp_custom_login_logo_url').val(image_url); 130 }); 131 }); 132 }); 133 </script> 134 </tr> 135 <tr> 136 <th scope="row"><label for="logowidth">Logo Width</label></th> 137 <td><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5"> px</td> 138 </tr> 139 <tr> 140 <th scope="row"><label for="logowidth">Logo Height</label></th> 141 <td><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5"> px</td> 142 </tr> 143 <tr> 144 <th scope="row"><label for="logolinkurl">Logo Link URL</label></th> 145 <td><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70"> 146 <p class="description">This is the url opened when clicked on the logo in your login page.</p></td> 147 </tr> 148 <tr> 149 <th scope="row"><label for="logotitle">Logo Page Title</label></th> 150 <td><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40"> 151 <p class="description">Title or description shown on hovering mouse over the logo.</p></td> 152 </tr> 153 <tr> 154 <th scope="row"><label for="submit"></label></th> 155 <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td> 156 </tr> 157 </tbody></table> 158 159 <br/> 160 <h3>Advanced Customization</h3> 161 <table class="form-table"><tbody> 162 <tr> 163 <th scope="row"><label for="fadeineffect">FadeIn Effect</label></th> 164 <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> 165 </tr> 166 167 <tr <?php if(!$custom_logo_fadein) { echo 'style="display:none;"'; } ?>> 168 <th scope="row"><label for="fadetime">FadeIn Time</label></th> 169 <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> 170 </tr> 171 <script type="text/javascript">// <![CDATA[ 172 jQuery('#DisableFadeIn').change(function(){ 173 if(jQuery(this).is(':checked')){ 174 jQuery('#fadetime').show(); 175 } else { 176 jQuery('#fadetime').hide(); 177 } 178 }); 179 // ]]></script> 180 181 <tr> 182 <th scope="row"><label for="fadetime">Custom Message</label></th> 183 <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> 184 </tr> 185 186 <tr> 187 <th scope="row"><label for="submit"></label></th> 188 <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td> 189 </tr> 190 </tbody></table> 191 192 </form> 193 </div> 194 </div> 195 196 197 </td> 198 <td width="300" valign="top"> 199 <div class="inner-sidebar" id="side-info-column"> 200 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php' ); ?> 201 </div> 202 203 <div class="inner-sidebar" id="side-info-column"> 204 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?> 205 </div> 206 </td> 207 </tr></tbody> 208 </table> 209 233 </div> 210 234 </div> 211 </div>212 </div>213 </div> -
my-wp-login-logo/tags/2.5.0/views/faq.php
r2166381 r3237336 9 9 10 10 <div class="inside"> 11 <p><h4>Q1. How does it works?</h4> 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 </p> 16 <p><h4>Q2. How to change the logo size?</h4> 17 Simply input your desired logo height and width in the given fields to change the displayed logo size.</p> 18 <p><h4>Q3. What is the recommened logo size?</h4> 19 Less than or equal to 320px width and 70px height is the recommended logo size for your Wordpress Login Page.</p> 11 <p> 12 <h4>Q1. How does it work?</h4> 13 [-] Upload your desired logo clicking the Upload Image button.<br /> 14 [-] Provide your custom height and width for the logo and press Save<br /> 15 [-] That's it! You can now logout and check your awesome new login page. 16 </p> 17 <p> 18 <h4>Q2. How to change the logo size?</h4> 19 Simply input your desired logo height and width in the given fields to change the displayed logo size.</p> 20 <p> 21 <h4>Q3. What is the recommended logo size?</h4> 22 Less than or equal to 320px width and 70px height is the recommended logo size for your Wordpress Login Page.</p> 20 23 </div> 21 24 </div> -
my-wp-login-logo/trunk/core/custom-js.php
r686520 r3237336 2 2 /* Custom JS for Login Page */ 3 3 4 $custom_logo_fadein = get_option('wp_custom_login_logo_fadein','true'); 5 $custom_logo_fadetime = get_option('wp_custom_login_logo_fadetime','2500'); 6 7 if($custom_logo_fadein) { 8 echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 9 <script type="text/javascript">// <![CDATA[ 10 jQuery(document).ready(function() { jQuery("#loginform,#nav,#backtoblog").css("display", "none"); jQuery("#loginform,#nav,#backtoblog").fadeIn('.$custom_logo_fadetime.'); 11 }); 12 // ]]></script>'; 13 } 14 ?> 4 $custom_logo_fadein = get_option('wp_custom_login_logo_fadein', 'true'); 5 $custom_logo_fadetime = intval(get_option('wp_custom_login_logo_fadetime', '2500')); 6 7 if ($custom_logo_fadein === 'true') { 8 echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 9 <script type="text/javascript">// <![CDATA[ 10 jQuery(document).ready(function() { 11 jQuery("#loginform,#nav,#backtoblog").css("display", "none"); 12 jQuery("#loginform,#nav,#backtoblog").fadeIn(' . $custom_logo_fadetime . '); 13 }); 14 // ]]></script>'; 15 } -
my-wp-login-logo/trunk/core/custom-styles.php
r686526 r3237336 2 2 /* Custom Styling for Login Page */ 3 3 4 $custom_logo_url = get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL.'images/mylogo.png'); 5 $custom_logo_height = get_option('wp_custom_login_logo_height','70'); 6 $custom_logo_width = get_option('wp_custom_login_logo_width','320'); 7 8 echo '<!-- Customized using My Wordpress Login Logo --> 9 <style type="text/css"> 10 .login h1 a { 11 background-image:url('.$custom_logo_url.') !important; 12 background-size:'.$custom_logo_width.'px '.$custom_logo_height .'px; 13 height:'.$custom_logo_height .'px; width:'.$custom_logo_width.'px; 14 margin: 0 auto; 15 } 4 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL . 'images/mylogo.png')); 5 $custom_logo_height = intval(get_option('wp_custom_login_logo_height', '70')); 6 $custom_logo_width = intval(get_option('wp_custom_login_logo_width', '320')); 16 7 17 .login .message { 18 display: none; 19 } 20 </style>'; 21 ?> 8 echo '<!-- Customized using My Wordpress Login Logo --> 9 <style type="text/css"> 10 .login h1 a { 11 background-image:url(' . $custom_logo_url . ') !important; 12 background-size:' . $custom_logo_width . 'px ' . $custom_logo_height . 'px; 13 height:' . $custom_logo_height . 'px; width:' . $custom_logo_width . 'px; 14 margin: 0 auto; 15 } 16 17 .login .message { 18 display: none; 19 } 20 </style>'; -
my-wp-login-logo/trunk/css/styles.css
r686520 r3237336 2 2 /* CSS Document */ 3 3 4 #sidebar-subscribe-box{background:url("images/color-chronicl.gif") repeat scroll 0 0 transparent;border:1px solid #aaa;border-radius:3px;padding:3px 0}.sidebar-subscribe-box-wrapper{background:url(images/pattern-chronicl.png) repeat scroll 0 0 #f7f7f7;color:#111;font-size:14px;line-height:20px;padding:1px 20px 10px;text-align:center;text-transform:uppercase}.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0}form.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0 0;width:auto}.sidebar-subscribe-box-email-field{-moz-border-radius:4px;-webkit-border-radius:4px;background:#fff url(images/sprites.png) no-repeat 0 -27px;border:1px solid #ccc;border-radius:4px;color:#444;margin:0 0 15px;padding:10px 40px;width:68%}.sidebar-subscribe-box-email-button{background:#09f;border:1px solid #007fff;box-shadow:0 1px 0 rgba(255,255,255,0.3) inset, 0 1px 0 transparent;color:#fff;cursor:pointer;font-family:verdana;font-weight:700;padding:10px;text-shadow:1px 1px 0 rgba(0,0,0,.4);text-transform:uppercase;width:100%}.sidebar-subscribe-box-email-button:hover,.sidebar-subscribe-box-email-button:focus{background:#1ca4ff}.sidebar-subscribe-box-email-button:active{-moz-box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;box-shadow:0 1px 4px rgba(0,0,0,0.5) inset;outline:0}iframe,object,embed,.yt-border iframe,.yt-border object,.yt-border embed,table{width:100%}embed{border-radius:3px;-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#FFF;border:1px solid #ddd;box-shadow:0 2px 4px rgba(0,0,0,0.2);margin:0;padding:4px 4px 4px}#footer-section{background:#f5f5f5 url(images/pattern-chronicl.png) repeat top left;border-top:1px solid #aaa;box-shadow:inset 0 4px 6px -3px #aaa;font-family:cambria;font-size:14px;height:100px;margin:10px -30px 5px;padding:0 30px;text-align:center;width:100%} 4 #sidebar-subscribe-box { 5 background: url("images/color-chronicl.gif") repeat scroll 0 0 transparent; 6 border: 1px solid #aaa; 7 border-radius: 3px; 8 padding: 3px 0; 9 } 10 .sidebar-subscribe-box-wrapper { 11 background: url(images/pattern-chronicl.png) repeat scroll 0 0 #f7f7f7; 12 color: #111; 13 font-size: 14px; 14 line-height: 20px; 15 padding: 1px 20px 10px; 16 text-align: center; 17 text-transform: uppercase; 18 } 19 .sidebar-subscribe-box-form { 20 clear: both; 21 display: block; 22 margin: 10px 0; 23 } 24 form.sidebar-subscribe-box-form { 25 clear: both; 26 display: block; 27 margin: 10px 0 0; 28 width: auto; 29 } 30 .sidebar-subscribe-box-email-field { 31 -moz-border-radius: 4px; 32 -webkit-border-radius: 4px; 33 background: #fff url(images/sprites.png) no-repeat 0 -27px; 34 border: 1px solid #ccc; 35 border-radius: 4px; 36 color: #444; 37 margin: 0 0 15px; 38 padding: 10px 40px; 39 width: 68%; 40 } 41 .sidebar-subscribe-box-email-button { 42 background: #09f; 43 border: 1px solid #007fff; 44 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 1px 0 transparent; 45 color: #fff; 46 cursor: pointer; 47 font-family: verdana; 48 font-weight: 700; 49 padding: 10px; 50 text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); 51 text-transform: uppercase; 52 width: 100%; 53 } 54 .sidebar-subscribe-box-email-button:hover, 55 .sidebar-subscribe-box-email-button:focus { 56 background: #1ca4ff; 57 } 58 .sidebar-subscribe-box-email-button:active { 59 -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 60 -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 61 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) inset; 62 outline: 0; 63 } 64 iframe, 65 object, 66 embed, 67 .yt-border iframe, 68 .yt-border object, 69 .yt-border embed, 70 table { 71 width: 100%; 72 } 73 embed { 74 border-radius: 3px; 75 -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 76 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 77 background: #fff; 78 border: 1px solid #ddd; 79 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 80 margin: 0; 81 padding: 4px 4px 4px; 82 } 83 #footer-section { 84 background: #f5f5f5 url(images/pattern-chronicl.png) repeat top left; 85 border-top: 1px solid #aaa; 86 box-shadow: inset 0 4px 6px -3px #aaa; 87 font-family: cambria; 88 font-size: 14px; 89 height: 100px; 90 margin: 10px -30px 5px; 91 padding: 0 30px; 92 text-align: center; 93 width: 100%; 94 } -
my-wp-login-logo/trunk/dc-custom-login-logo.php
r2511852 r3237336 9 9 */ 10 10 11 if ( !defined( 'DC_MyWP_LoginLogo_URL' ) ) 12 define( 'DC_MyWP_LoginLogo_URL', plugin_dir_url( __FILE__ ) ); 13 if ( !defined( 'DC_MyWP_LoginLogo_PATH' ) ) 14 define( 'DC_MyWP_LoginLogo_PATH', plugin_dir_path( __FILE__ ) ); 15 16 class DC_MyWP_LoginLogo { 11 if (!defined('DC_MyWP_LoginLogo_URL')) 12 define('DC_MyWP_LoginLogo_URL', plugin_dir_url(__FILE__)); 13 if (!defined('DC_MyWP_LoginLogo_PATH')) 14 define('DC_MyWP_LoginLogo_PATH', plugin_dir_path(__FILE__)); 17 15 18 function __construct() { 19 add_action('login_head', array( $this, 'DC_MyWP_login_logo')); 20 add_action('login_head', array( $this, 'DC_MyWP_login_fadein')); 21 add_action('login_form', array( $this, 'DC_MyWP_login_form_message')); 22 add_action('admin_menu', array( $this, 'DC_MyWP_login_logo_actions')); 16 class DC_MyWP_LoginLogo 17 { 23 18 24 add_filter('login_headerurl', array( $this, 'DC_MyWP_login_url')); 19 function __construct() 20 { 21 add_action('login_head', array($this, 'DC_MyWP_login_logo')); 22 add_action('login_head', array($this, 'DC_MyWP_login_fadein')); 23 add_action('login_form', array($this, 'DC_MyWP_login_form_message')); 24 add_action('admin_menu', array($this, 'DC_MyWP_login_logo_actions')); 25 26 add_filter('login_headerurl', array($this, 'DC_MyWP_login_url')); 25 27 26 28 // login_headertitle is deprecated above wp_version 5.2 27 if ( version_compare( $GLOBALS['wp_version'], '5.2', '<' )) {28 add_filter( 'login_headertitle', array( $this, 'DC_MyWP_login_title'));29 if (version_compare($GLOBALS['wp_version'], '5.2', '<')) { 30 add_filter('login_headertitle', array($this, 'DC_MyWP_login_title')); 29 31 } else { 30 add_filter( 'login_headertext', array( $this, 'DC_MyWP_login_title'));32 add_filter('login_headertext', array($this, 'DC_MyWP_login_title')); 31 33 } 32 34 } 33 35 34 function DC_MyWP_login_logo() { 35 include_once( DC_MyWP_LoginLogo_PATH . '/core/custom-styles.php' ); 36 function DC_MyWP_login_logo() 37 { 38 include_once(DC_MyWP_LoginLogo_PATH . '/core/custom-styles.php'); 36 39 } 37 40 38 function DC_MyWP_login_url() { 39 $custom_login_url = get_option('wp_custom_login_url',home_url()); 41 function DC_MyWP_login_url() 42 { 43 $custom_login_url = esc_url(get_option('wp_custom_login_url', home_url())); 40 44 return $custom_login_url; 41 45 } 42 46 43 function DC_MyWP_login_title() { 44 $custom_login_title = get_option('wp_custom_login_title',get_bloginfo('description')); 47 function DC_MyWP_login_title() 48 { 49 $custom_login_title = sanitize_text_field(get_option('wp_custom_login_title', get_bloginfo('description'))); 45 50 return $custom_login_title; 46 51 } 47 52 48 function DC_MyWP_login_fadein() { 49 include_once( DC_MyWP_LoginLogo_PATH . '/core/custom-js.php' ); 53 function DC_MyWP_login_fadein() 54 { 55 include_once(DC_MyWP_LoginLogo_PATH . '/core/custom-js.php'); 50 56 } 51 52 function DC_MyWP_login_form_message() { 53 $custom_logo_message = get_option('wp_custom_login_logo_message',''); 54 if($custom_logo_message != '') { 55 echo '<p>'.$custom_logo_message.'</p><br/>'; 57 58 function DC_MyWP_login_form_message() 59 { 60 $custom_logo_message = esc_html(get_option('wp_custom_login_logo_message', '')); 61 if ($custom_logo_message != '') { 62 echo '<p>' . $custom_logo_message . '</p><br/>'; 56 63 } 57 64 } 58 65 59 function DC_MyWP_login_logo_options() { 60 require( DC_MyWP_LoginLogo_PATH . '/views/dashboard.php' ); 61 } 66 function DC_MyWP_login_logo_options() 67 { 68 require(DC_MyWP_LoginLogo_PATH . '/views/dashboard.php'); 69 } 62 70 63 function DC_MyWP_login_logo_actions() { 64 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' )); 71 function DC_MyWP_login_logo_actions() 72 { 73 add_menu_page('Login Logo', 'Login Logo', 'manage_options', 'DC_MyWP_login_logo_dashboard', array($this, 'DC_MyWP_login_logo_options')); 65 74 66 75 /* Add settings link on plugins page*/ 67 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'DC_MyWP_add_settings_link' ); 68 function DC_MyWP_add_settings_link ( $links ) { 69 $settings_link = array('<a href="' . admin_url( 'admin.php?page=DC_MyWP_login_logo_dashboard' ) . '">Settings</a>'); 70 return array_merge( $links, $settings_link ); 76 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'DC_MyWP_add_settings_link'); 77 function DC_MyWP_add_settings_link($links) 78 { 79 $settings_link = array('<a href="' . admin_url('admin.php?page=DC_MyWP_login_logo_dashboard') . '">Settings</a>'); 80 return array_merge($links, $settings_link); 71 81 } 72 82 } 73 74 83 } 75 84 $MyWordpressLoginLogo = new DC_MyWP_LoginLogo(); 76 ?> -
my-wp-login-logo/trunk/readme.txt
r2511852 r3237336 3 3 Tags: wordpress login logo, custom logo, login page logo, logo changer, change login page logo 4 4 Requires at least: 3.0.1 5 Tested up to: 5.76 Stable tag: 2. 4.15 Tested up to: 6.7.1 6 Stable tag: 2.5.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 2.5.0 = 47 * Security improvements and compatibility updates for WordPress 6.7.1. 48 46 49 = 2.4.1 = 47 50 * Fix readme and wp tested version … … 82 85 == Upgrade Notice == 83 86 84 = 2. 4.0 =85 * Important Release, upgrade immediately. Compatible with 5.787 = 2.5.0 = 88 * Important Release, upgrade immediately. Compatible with 6.7.1 -
my-wp-login-logo/trunk/uninstall.php
r686520 r3237336 1 1 <?php 2 2 3 if ( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN'))4 exit();3 if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) 4 exit(); 5 5 6 $options_array = array(7 'wp_custom_login_logo_url',8 'wp_custom_login_url',9 'wp_custom_login_title',10 'wp_custom_login_logo_height',11 'wp_custom_login_logo_width',12 'wp_custom_login_logo_fadein',13 'wp_custom_login_logo_fadetime',14 'wp_custom_login_logo_message'15 );16 6 $options_array = array( 7 'wp_custom_login_logo_url', 8 'wp_custom_login_url', 9 'wp_custom_login_title', 10 'wp_custom_login_logo_height', 11 'wp_custom_login_logo_width', 12 'wp_custom_login_logo_fadein', 13 'wp_custom_login_logo_fadetime', 14 'wp_custom_login_logo_message' 15 ); 16 17 17 foreach ($options_array as $option) { 18 delete_option( $option);18 delete_option($option); 19 19 } 20 ?> -
my-wp-login-logo/trunk/views/dashboard.php
r2166404 r3237336 1 <?php2 3 if( !defined( 'ABSPATH'))1 <?php 2 3 if (!defined('ABSPATH')) 4 4 exit('Restricted Access..! Please Login.'); 5 6 if (!current_user_can('manage_options')) { 7 wp_die('You do not have sufficient permissions to access this page.'); 8 } 9 10 wp_register_style( 'DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL.'css/styles.css' ); 11 wp_enqueue_style( 'DC_MyWP_login_logo_Styles' ); 12 wp_enqueue_script('jquery'); 13 wp_enqueue_media(); 14 15 global $current_user; 16 get_currentuserinfo(); 17 18 $invalid_number = false; 19 $updated = false; 20 21 if($_POST['update_MyWP_login_logo'] == 'update') { 22 23 check_admin_referer('update_MyWP_login_logo'); 24 25 $wp_custom_login_logo_url = sanitize_text_field($_POST['wp_custom_login_logo_url']); 26 $wp_custom_login_logo_height = sanitize_text_field($_POST['wp_custom_login_logo_height']); 27 $wp_custom_login_logo_width = sanitize_text_field($_POST['wp_custom_login_logo_width']); 28 $wp_custom_login_title = sanitize_text_field($_POST['wp_custom_login_title']); 29 $wp_custom_login_logo_fadein = sanitize_text_field($_POST['wp_custom_login_logo_fadein']); 30 $wp_custom_login_logo_fadetime = sanitize_text_field($_POST['wp_custom_login_logo_fadetime']); 31 $wp_custom_login_logo_message = sanitize_text_field($_POST['wp_custom_login_logo_message']); 32 33 if(!intval($wp_custom_login_logo_height) || !intval($wp_custom_login_logo_width)) { 34 $invalid_number = true; 35 } else { 36 update_option('wp_custom_login_logo_url', $wp_custom_login_logo_url); 37 update_option('wp_custom_login_logo_height', $wp_custom_login_logo_height); 38 update_option('wp_custom_login_logo_width', $wp_custom_login_logo_width); 39 update_option('wp_custom_login_title', $wp_custom_login_title); 40 update_option('wp_custom_login_logo_fadein', $wp_custom_login_logo_fadein); 41 update_option('wp_custom_login_logo_fadetime', $wp_custom_login_logo_fadetime); 42 update_option('wp_custom_login_logo_message', $wp_custom_login_logo_message); 43 $updated = true; 44 } 5 6 if (!current_user_can('manage_options')) { 7 wp_die('You do not have sufficient permissions to access this page.'); 8 } 9 10 wp_register_style('DC_MyWP_login_logo_Styles', DC_MyWP_LoginLogo_URL . 'css/styles.css'); 11 wp_enqueue_style('DC_MyWP_login_logo_Styles'); 12 wp_enqueue_script('jquery'); 13 wp_enqueue_media(); 14 15 $current_user = wp_get_current_user(); 16 17 $invalid_number = false; 18 $updated = false; 19 20 if (isset($_POST['update_MyWP_login_logo']) && $_POST['update_MyWP_login_logo'] == 'update') { 21 22 check_admin_referer('update_MyWP_login_logo'); 23 24 $wp_custom_login_logo_url = esc_url_raw($_POST['wp_custom_login_logo_url']); 25 $wp_custom_login_logo_height = intval($_POST['wp_custom_login_logo_height']); 26 $wp_custom_login_logo_width = intval($_POST['wp_custom_login_logo_width']); 27 $wp_custom_login_title = sanitize_text_field($_POST['wp_custom_login_title']); 28 $wp_custom_login_logo_fadein = isset($_POST['wp_custom_login_logo_fadein']) ? 'true' : 'false'; 29 $wp_custom_login_logo_fadetime = intval($_POST['wp_custom_login_logo_fadetime']); 30 $wp_custom_login_logo_message = sanitize_textarea_field($_POST['wp_custom_login_logo_message']); 31 32 if (!$wp_custom_login_logo_height || !$wp_custom_login_logo_width) { 33 $invalid_number = true; 34 } else { 35 update_option('wp_custom_login_logo_url', $wp_custom_login_logo_url); 36 update_option('wp_custom_login_logo_height', $wp_custom_login_logo_height); 37 update_option('wp_custom_login_logo_width', $wp_custom_login_logo_width); 38 update_option('wp_custom_login_title', $wp_custom_login_title); 39 update_option('wp_custom_login_logo_fadein', $wp_custom_login_logo_fadein); 40 update_option('wp_custom_login_logo_fadetime', $wp_custom_login_logo_fadetime); 41 update_option('wp_custom_login_logo_message', $wp_custom_login_logo_message); 42 $updated = true; 45 43 } 46 47 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL.'images/mylogo.png')); 48 $custom_logo_height = esc_textarea(get_option('wp_custom_login_logo_height','70')); 49 $custom_logo_width = esc_textarea(get_option('wp_custom_login_logo_width','320')); 50 $custom_login_title = esc_textarea(get_option('wp_custom_login_title',get_bloginfo('description'))); 51 $custom_login_url = esc_textarea(get_option('wp_custom_login_url',home_url())); 52 $custom_logo_fadein = esc_textarea(get_option('wp_custom_login_logo_fadein','true')); 53 $custom_logo_fadetime = esc_textarea(get_option('wp_custom_login_logo_fadetime','2500')); 54 $custom_logo_message = esc_textarea(get_option('wp_custom_login_logo_message','')); 44 } 45 46 $custom_logo_url = esc_url(get_option('wp_custom_login_logo_url', DC_MyWP_LoginLogo_URL . 'images/mylogo.png')); 47 $custom_logo_height = esc_attr(get_option('wp_custom_login_logo_height', '70')); 48 $custom_logo_width = esc_attr(get_option('wp_custom_login_logo_width', '320')); 49 $custom_login_title = esc_attr(get_option('wp_custom_login_title', get_bloginfo('description'))); 50 $custom_login_url = esc_attr(get_option('wp_custom_login_url', home_url())); 51 $custom_logo_fadein = esc_attr(get_option('wp_custom_login_logo_fadein', 'true')); 52 $custom_logo_fadetime = esc_attr(get_option('wp_custom_login_logo_fadetime', '2500')); 53 $custom_logo_message = esc_textarea(get_option('wp_custom_login_logo_message', '')); 55 54 ?> 56 55 57 56 58 <div style="margin: 10px 20px 0 2px;"> 59 <div class="metabox-holder columns-2"> 60 <div class="postbox-container"> 61 <div id="top-sortables" class="meta-box-sortables ui-sortable"> 62 63 64 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 65 <tbody> 66 <tr> 67 <td valign="top"><h3>My Wordpress Login Logo</h3></td> 68 </tr> 69 </tbody> 70 </table> 71 <hr> 72 73 <?php 74 if($updated) { 75 echo "<div class=\"updated\"><p><strong>Login Page Updated.</strong></p></div>"; 76 } 77 if($invalid_number) { 78 echo "<div class=\"error\"><p><strong> Error: Provide a valid height and width </strong></p></div>"; 79 } 80 ?> 81 82 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 83 <tbody><tr> 84 <td valign="top"> 85 86 <div class="postbox"> 87 <button class="handlediv button-link" aria-expanded="true" type="button"> 88 <span class="screen-reader-text">Toggle panel: Current Login Page Logo</span> 89 <span class="toggle-indicator" aria-hidden="true"></span> 90 </button> 91 <h2 class="hndle ui-sortable-handle"> 92 <span>Current Login Page Logo</span> 93 </h2> 94 <div class="inside"> 95 <p class="description"><img src="<?php echo $custom_logo_url; ?>" alt="" /></p> 57 <div style="margin: 10px 20px 0 2px;"> 58 <div class="metabox-holder columns-2"> 59 <div class="postbox-container"> 60 <div id="top-sortables" class="meta-box-sortables ui-sortable"> 61 62 63 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 64 <tbody> 65 <tr> 66 <td valign="top"> 67 <h3>My Wordpress Login Logo</h3> 68 </td> 69 </tr> 70 </tbody> 71 </table> 72 <hr> 73 74 <?php 75 if ($updated) { 76 echo "<div class=\"updated\"><p><strong>Login Page Updated.</strong></p></div>"; 77 } 78 if ($invalid_number) { 79 echo "<div class=\"error\"><p><strong> Error: Provide a valid height and width </strong></p></div>"; 80 } 81 ?> 82 83 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0"> 84 <tbody> 85 <tr> 86 <td valign="top"> 87 88 <div class="postbox"> 89 <button class="handlediv button-link" aria-expanded="true" type="button"> 90 <span class="screen-reader-text">Toggle panel: Current Login Page Logo</span> 91 <span class="toggle-indicator" aria-hidden="true"></span> 92 </button> 93 <h2 class="hndle ui-sortable-handle"> 94 <span>Current Login Page Logo</span> 95 </h2> 96 <div class="inside"> 97 <p class="description"><img src="<?php echo $custom_logo_url; ?>" alt="" /></p> 98 </div> 99 </div> 100 101 <div class="postbox"> 102 <button class="handlediv button-link" aria-expanded="true" type="button"> 103 <span class="screen-reader-text">Toggle panel: Customize Login Page</span> 104 <span class="toggle-indicator" aria-hidden="true"></span> 105 </button> 106 <h2 class="hndle ui-sortable-handle"> 107 <span>Customize Login Page</span> 108 </h2> 109 110 <div class="inside"> 111 <form name="DC_MyWP_login_logo_form" method="post" action=""> 112 <?php wp_nonce_field('update_MyWP_login_logo'); ?> 113 <input type="hidden" name="update_MyWP_login_logo" value="update"> 114 <h3>Customize Logo</h3> 115 116 <table class="form-table"> 117 <tbody> 118 <tr> 119 <th scope="row"><label for="logoimage">Logo Image</label></th> 120 <td><input class="regular-text" type="text" id="wp_custom_login_logo_url" name="wp_custom_login_logo_url" value="<?php echo $custom_logo_url; ?>" size="70"> <input type="button" name="upload-btn" id="upload-btn" class="button-secondary" value="Upload Image"></td> 121 <script type="text/javascript"> 122 jQuery(document).ready(function($) { 123 $('#upload-btn').click(function(e) { 124 e.preventDefault(); 125 var image = wp.media({ 126 title: 'Upload Image', 127 multiple: false 128 }).open() 129 .on('select', function(e) { 130 var uploaded_image = image.state().get('selection').first(); 131 var image_url = uploaded_image.toJSON().url; 132 $('#wp_custom_login_logo_url').val(image_url); 133 }); 134 }); 135 }); 136 </script> 137 </tr> 138 <tr> 139 <th scope="row"><label for="logowidth">Logo Width</label></th> 140 <td><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5"> px</td> 141 </tr> 142 <tr> 143 <th scope="row"><label for="logowidth">Logo Height</label></th> 144 <td><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5"> px</td> 145 </tr> 146 <tr> 147 <th scope="row"><label for="logolinkurl">Logo Link URL</label></th> 148 <td><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70"> 149 <p class="description">This is the url opened when clicked on the logo in your login page.</p> 150 </td> 151 </tr> 152 <tr> 153 <th scope="row"><label for="logotitle">Logo Page Title</label></th> 154 <td><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40"> 155 <p class="description">Title or description shown on hovering mouse over the logo.</p> 156 </td> 157 </tr> 158 <tr> 159 <th scope="row"><label for="submit"></label></th> 160 <td> 161 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p> 162 </td> 163 </tr> 164 </tbody> 165 </table> 166 167 <br /> 168 <h3>Advanced Customization</h3> 169 <table class="form-table"> 170 <tbody> 171 <tr> 172 <th scope="row"><label for="fadeineffect">FadeIn Effect</label></th> 173 <td><input id="DisableFadeIn" type="checkbox" name="wp_custom_login_logo_fadein" value="true" <?php checked($custom_logo_fadein, 'true'); ?>>Enable FadeIn Effect<p class="description"> Provides a fading effect to the login form</p> 174 </td> 175 </tr> 176 177 <tr <?php if (!$custom_logo_fadein) { 178 echo 'style="display:none;"'; 179 } ?>> 180 <th scope="row"><label for="fadetime">FadeIn Time</label></th> 181 <td><input id="fadetime" 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> 182 </td> 183 </tr> 184 <script type="text/javascript"> 185 // <![CDATA[ 186 jQuery('#DisableFadeIn').change(function() { 187 if (jQuery(this).is(':checked')) { 188 jQuery('#fadetime').show(); 189 } else { 190 jQuery('#fadetime').hide(); 191 } 192 }); 193 // ]]> 194 </script> 195 196 <tr> 197 <th scope="row"><label for="fadetime">Custom Message</label></th> 198 <td><textarea class="large-text code" name="wp_custom_login_logo_message"><?php echo esc_textarea($custom_logo_message); ?></textarea> 199 <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> 200 </td> 201 </tr> 202 203 <tr> 204 <th scope="row"><label for="submit"></label></th> 205 <td> 206 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p> 207 </td> 208 </tr> 209 </tbody> 210 </table> 211 212 </form> 213 </div> 214 </div> 215 216 217 </td> 218 <td width="300" valign="top"> 219 <div class="inner-sidebar" id="side-info-column"> 220 <?php include_once(DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php'); ?> 221 </div> 222 223 <div class="inner-sidebar" id="side-info-column"> 224 <?php include_once(DC_MyWP_LoginLogo_PATH . '/views/faq.php'); ?> 225 </div> 226 </td> 227 </tr> 228 </tbody> 229 </table> 230 96 231 </div> 97 232 </div> 98 99 <div class="postbox"> 100 <button class="handlediv button-link" aria-expanded="true" type="button"> 101 <span class="screen-reader-text">Toggle panel: Customize Login Page</span> 102 <span class="toggle-indicator" aria-hidden="true"></span> 103 </button> 104 <h2 class="hndle ui-sortable-handle"> 105 <span>Customize Login Page</span> 106 </h2> 107 108 <div class="inside"> 109 <form name="DC_MyWP_login_logo_form" method="post" action=""> 110 <?php wp_nonce_field('update_MyWP_login_logo'); ?> 111 <input type="hidden" name="update_MyWP_login_logo" value="update"> 112 <h3>Customize Logo</h3> 113 114 <table class="form-table"><tbody> 115 <tr> 116 <th scope="row"><label for="logoimage">Logo Image</label></th> 117 <td><input class="regular-text" type="text" id="wp_custom_login_logo_url" name="wp_custom_login_logo_url" value="<?php echo $custom_logo_url; ?>" size="70"> <input type="button" name="upload-btn" id="upload-btn" class="button-secondary" value="Upload Image"></td> 118 <script type="text/javascript"> 119 jQuery(document).ready(function($){ 120 $('#upload-btn').click(function(e) { 121 e.preventDefault(); 122 var image = wp.media({ 123 title: 'Upload Image', 124 multiple: false 125 }).open() 126 .on('select', function(e){ 127 var uploaded_image = image.state().get('selection').first(); 128 var image_url = uploaded_image.toJSON().url; 129 $('#wp_custom_login_logo_url').val(image_url); 130 }); 131 }); 132 }); 133 </script> 134 </tr> 135 <tr> 136 <th scope="row"><label for="logowidth">Logo Width</label></th> 137 <td><input type="text" name="wp_custom_login_logo_width" value="<?php echo $custom_logo_width; ?>" size="5"> px</td> 138 </tr> 139 <tr> 140 <th scope="row"><label for="logowidth">Logo Height</label></th> 141 <td><input type="text" name="wp_custom_login_logo_height" value="<?php echo $custom_logo_height; ?>" size="5"> px</td> 142 </tr> 143 <tr> 144 <th scope="row"><label for="logolinkurl">Logo Link URL</label></th> 145 <td><input class="regular-text code" type="text" name="wp_custom_login_url" value="<?php echo $custom_login_url; ?>" size="70"> 146 <p class="description">This is the url opened when clicked on the logo in your login page.</p></td> 147 </tr> 148 <tr> 149 <th scope="row"><label for="logotitle">Logo Page Title</label></th> 150 <td><input class="regular-text code" type="text" name="wp_custom_login_title" value="<?php echo $custom_login_title; ?>" size="40"> 151 <p class="description">Title or description shown on hovering mouse over the logo.</p></td> 152 </tr> 153 <tr> 154 <th scope="row"><label for="submit"></label></th> 155 <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td> 156 </tr> 157 </tbody></table> 158 159 <br/> 160 <h3>Advanced Customization</h3> 161 <table class="form-table"><tbody> 162 <tr> 163 <th scope="row"><label for="fadeineffect">FadeIn Effect</label></th> 164 <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> 165 </tr> 166 167 <tr <?php if(!$custom_logo_fadein) { echo 'style="display:none;"'; } ?>> 168 <th scope="row"><label for="fadetime">FadeIn Time</label></th> 169 <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> 170 </tr> 171 <script type="text/javascript">// <![CDATA[ 172 jQuery('#DisableFadeIn').change(function(){ 173 if(jQuery(this).is(':checked')){ 174 jQuery('#fadetime').show(); 175 } else { 176 jQuery('#fadetime').hide(); 177 } 178 }); 179 // ]]></script> 180 181 <tr> 182 <th scope="row"><label for="fadetime">Custom Message</label></th> 183 <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> 184 </tr> 185 186 <tr> 187 <th scope="row"><label for="submit"></label></th> 188 <td><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p></td> 189 </tr> 190 </tbody></table> 191 192 </form> 193 </div> 194 </div> 195 196 197 </td> 198 <td width="300" valign="top"> 199 <div class="inner-sidebar" id="side-info-column"> 200 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/plugin-info.php' ); ?> 201 </div> 202 203 <div class="inner-sidebar" id="side-info-column"> 204 <?php include_once( DC_MyWP_LoginLogo_PATH . '/views/faq.php' ); ?> 205 </div> 206 </td> 207 </tr></tbody> 208 </table> 209 233 </div> 210 234 </div> 211 </div>212 </div>213 </div> -
my-wp-login-logo/trunk/views/faq.php
r2166381 r3237336 9 9 10 10 <div class="inside"> 11 <p><h4>Q1. How does it works?</h4> 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 </p> 16 <p><h4>Q2. How to change the logo size?</h4> 17 Simply input your desired logo height and width in the given fields to change the displayed logo size.</p> 18 <p><h4>Q3. What is the recommened logo size?</h4> 19 Less than or equal to 320px width and 70px height is the recommended logo size for your Wordpress Login Page.</p> 11 <p> 12 <h4>Q1. How does it work?</h4> 13 [-] Upload your desired logo clicking the Upload Image button.<br /> 14 [-] Provide your custom height and width for the logo and press Save<br /> 15 [-] That's it! You can now logout and check your awesome new login page. 16 </p> 17 <p> 18 <h4>Q2. How to change the logo size?</h4> 19 Simply input your desired logo height and width in the given fields to change the displayed logo size.</p> 20 <p> 21 <h4>Q3. What is the recommended logo size?</h4> 22 Less than or equal to 320px width and 70px height is the recommended logo size for your Wordpress Login Page.</p> 20 23 </div> 21 24 </div>
Note: See TracChangeset
for help on using the changeset viewer.