Changeset 2061892
- Timestamp:
- 04/02/2019 10:01:16 PM (7 years ago)
- Location:
- ac-change-login-logo
- Files:
-
- 2 edited
-
tags/1.0.0/ac-change-login-logo.php (modified) (5 diffs)
-
trunk/ac-change-login-logo.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ac-change-login-logo/tags/1.0.0/ac-change-login-logo.php
r2061854 r2061892 7 7 Version: 1.0.0 8 8 Author URI: https://antoniocampos.net 9 Text Domain: ac _login_logo9 Text Domain: ac-change-login-logo 10 10 Domain Path: /languages 11 11 License: GPL2 … … 64 64 { 65 65 if (is_admin()) { 66 add_theme_page(__('Choose Login Logo', 'ac _login_logo'), __('Login Logo', 'ac_login_logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');66 add_theme_page(__('Choose Login Logo', 'ac-change-login-logo'), __('Login Logo', 'ac-change-login-logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page'); 67 67 } 68 68 } … … 73 73 /* Scripts to allow to shoose the image */ 74 74 add_action('admin_footer', 'ac_login_logo_admin_css'); 75 echo '<h3>' . __('Choose the image to use as login Logo', 'ac _login_logo') . '</h3>';75 echo '<h3>' . __('Choose the image to use as login Logo', 'ac-change-login-logo') . '</h3>'; 76 76 // Save attachment ID 77 77 if (isset($_POST['submit_image_selector']) && isset($_POST['image_attachment_id'])): … … 86 86 <img id='image-preview' height='100px' src='<?php echo $uploaded_login_logo; ?>'> 87 87 </div> 88 <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac _login_logo');?>" />88 <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac-change-login-logo');?>" /> 89 89 <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option(AC_LOGIN_LOGO_ID); ?>'> 90 <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac _login_logo');?>" class="button-primary">90 <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac-change-login-logo');?>" class="button-primary"> 91 91 </form> <?php ; 92 92 } … … 118 118 // Create the media frame. 119 119 file_frame = wp.media.frames.file_frame = wp.media({ 120 title: "<?php _e('Select a image to upload', 'ac _login_logo');?>",120 title: "<?php _e('Select a image to upload', 'ac-change-login-logo');?>", 121 121 button: { 122 text: "<?php _e('Use this image', 'ac _login_logo');?>",122 text: "<?php _e('Use this image', 'ac-change-login-logo');?>", 123 123 }, 124 124 multiple: false // Set to true to allow multiple files to be selected -
ac-change-login-logo/trunk/ac-change-login-logo.php
r2061859 r2061892 7 7 Version: 1.0.0 8 8 Author URI: https://antoniocampos.net 9 Text Domain: ac _login_logo9 Text Domain: ac-change-login-logo 10 10 Domain Path: /languages 11 11 License: GPL2 … … 64 64 { 65 65 if (is_admin()) { 66 add_theme_page(__('Choose Login Logo', 'ac _login_logo'), __('Login Logo', 'ac_login_logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');66 add_theme_page(__('Choose Login Logo', 'ac-change-login-logo'), __('Login Logo', 'ac-change-login-logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page'); 67 67 } 68 68 } … … 73 73 /* Scripts to allow to shoose the image */ 74 74 add_action('admin_footer', 'ac_login_logo_admin_css'); 75 echo '<h3>' . __('Choose the image to use as login Logo', 'ac _login_logo') . '</h3>';75 echo '<h3>' . __('Choose the image to use as login Logo', 'ac-change-login-logo') . '</h3>'; 76 76 // Save attachment ID 77 77 if (isset($_POST['submit_image_selector']) && isset($_POST['image_attachment_id'])): … … 86 86 <img id='image-preview' height='100px' src='<?php echo $uploaded_login_logo; ?>'> 87 87 </div> 88 <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac _login_logo');?>" />88 <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac-change-login-logo');?>" /> 89 89 <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option(AC_LOGIN_LOGO_ID); ?>'> 90 <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac _login_logo');?>" class="button-primary">90 <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac-change-login-logo');?>" class="button-primary"> 91 91 </form> <?php ; 92 92 } … … 118 118 // Create the media frame. 119 119 file_frame = wp.media.frames.file_frame = wp.media({ 120 title: "<?php _e('Select a image to upload', 'ac _login_logo');?>",120 title: "<?php _e('Select a image to upload', 'ac-change-login-logo');?>", 121 121 button: { 122 text: "<?php _e('Use this image', 'ac _login_logo');?>",122 text: "<?php _e('Use this image', 'ac-change-login-logo');?>", 123 123 }, 124 124 multiple: false // Set to true to allow multiple files to be selected
Note: See TracChangeset
for help on using the changeset viewer.