Changeset 3060991
- Timestamp:
- 03/29/2024 09:10:15 AM (2 years ago)
- Location:
- ag-custom-admin/trunk
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
changelog.txt (modified) (1 diff)
-
plugin.php (modified) (13 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ag-custom-admin/trunk
- Property svn:ignore
-
old new 1 .idea 1 2 .git
-
- Property svn:ignore
-
ag-custom-admin/trunk/changelog.txt
r3015609 r3060991 1 1 == Change Log == 2 3 = 7.2.2 = 4 * Maintenance release 2 5 3 6 = 7.2.1 = -
ag-custom-admin/trunk/plugin.php
r3015609 r3060991 5 5 Description: CHANGE: admin menu, login page, admin bar, dashboard widgets, custom colors, custom CSS & JS, logo & images 6 6 Author: Cusmin 7 Version: 7.2. 17 Version: 7.2.2 8 8 Text Domain: ag-custom-admin 9 9 Domain Path: /languages 10 10 Author URI: https://cusmin.com/ 11 11 12 Copyright 202 3. Cusmin (email : info@cusmin.com)12 Copyright 2024. Cusmin (email : info@cusmin.com) 13 13 14 14 This program is free software: you can redistribute it and/or modify … … 29 29 30 30 class AGCA{ 31 private $agca_version = "7.2. 1";31 private $agca_version = "7.2.2"; 32 32 private $colorizer = ""; 33 33 private $agca_debug = false; … … 35 35 private $context = ""; 36 36 private $saveAfterImport = false; 37 38 const PLACEHOLDER_BLOG = '%BLOG%'; 39 const PLACEHOLDER_PAGE = '%PAGE%'; 37 40 38 41 public function __construct() … … 311 314 $page = $title; 312 315 $customTitle = get_option('agca_custom_title'); 313 $customTitle = str_replace( '%BLOG%',$blog,$customTitle);314 $customTitle = str_replace( '%PAGE%',$page,$customTitle);316 $customTitle = str_replace(self::PLACEHOLDER_BLOG,$blog,$customTitle); 317 $customTitle = str_replace(self::PLACEHOLDER_PAGE,$page,$customTitle); 315 318 return htmlentities(strip_tags($customTitle)); 316 319 }else{ … … 971 974 <?php } ?> 972 975 <?php if(get_option('agca_wp_logo_custom_link')!=""){ ?> 973 var href = "<?php echo $this->sanitize_html(get_option('agca_wp_logo_custom_link')); ?>"; 974 href = href.replace("%BLOG%", "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>"); 976 977 <?php 978 $href = get_option('agca_wp_logo_custom_link'); 979 $href = str_replace(self::PLACEHOLDER_BLOG, get_bloginfo('wpurl'), $href); 980 ?> 981 var href = "<?php echo esc_url($href); ?>"; 975 982 if(href == "%SWITCH%"){ 976 983 href = "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>"; … … 1540 1547 <?php } ?> 1541 1548 <?php if(get_option('agca_admin_menu_brand_link')!=""){ ?> 1542 1543 var href = "<?php echo $this->sanitize_html(get_option('agca_admin_menu_brand_link')); ?>"; 1544 href = href.replace("%BLOG%", "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>"); 1549 <?php 1550 $href = get_option('agca_admin_menu_brand_link'); 1551 $href = str_replace(self::PLACEHOLDER_BLOG, get_bloginfo('wpurl'), $href); 1552 ?> 1553 var href = "<?php echo esc_url($href); ?>"; 1545 1554 1546 1555 jQuery("#sidebar_adminmenu_logo").attr('onclick','window.open(\"'+ href+ '\");'); … … 1870 1879 <?php if(get_option('agca_login_photo_href')==true){ ?> 1871 1880 var $href = "<?php echo $this->sanitize_html(get_option('agca_login_photo_href')); ?>"; 1872 $href = $href.replace(" %BLOG%", "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>");1881 $href = $href.replace("<?php echo self::PLACEHOLDER_BLOG ?>", "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>"); 1873 1882 1874 1883 jQuery("#login h1 a").attr("href",$href); … … 2157 2166 'name'=>'agca_wp_logo_custom_link', 2158 2167 'label'=>__('Admin bar logo link', 'ag-custom-admin'), 2159 'hint' =>__('Link', 'ag-custom-admin') 2168 'hint' =>__('Link', 'ag-custom-admin'), 2169 'link' => true 2160 2170 )); 2161 2171 … … 2728 2738 'name'=>'agca_admin_menu_brand_link', 2729 2739 'label'=>__('Branding logo link', 'ag-custom-admin'), 2730 'hint'=>__('Branding image URL', 'ag-custom-admin') 2740 'hint'=>__('Branding image URL', 'ag-custom-admin'), 2741 'link' => true 2731 2742 )); 2732 2743 ?> … … 2920 2931 $strAttributes = ''; 2921 2932 $parentAttr = ''; 2933 $isLink = false; 2922 2934 if(isset($data['hint'])){ 2923 2935 $strHint = ' <p><i>'.$this->sanitize($data['hint']).'</i></p>'; … … 2931 2943 if(isset($data['suffix'])){ 2932 2944 $suffix = $data['suffix']; 2945 } 2946 if(isset($data['link']) && $data['link']){ 2947 $isLink = true; 2933 2948 } 2934 2949 if(isset($data['attributes'])){ … … 2944 2959 <td> 2945 2960 <input id="<?php 2961 $value = get_option($data['name']); 2962 $value = $isLink ? 2963 ( 2964 ( 2965 $value === self::PLACEHOLDER_BLOG || 2966 $value === self::PLACEHOLDER_PAGE 2967 ) ? $value : esc_url($value) 2968 ) : 2969 htmlentities($value); 2946 2970 echo $this->sanitize_html($data['name']) ?>" 2947 2971 title="<?php echo $this->sanitize_html($data['title']) ?>" … … 2950 2974 class="<?php echo $data['disabled'] ? 'disabled' : ''; ?>" 2951 2975 name="<?php echo $this->sanitize_html($data['name']) ?>" 2952 value="<?php echo htmlentities(get_option($data['name'])); ?>"2976 value="<?php echo $value; ?>" 2953 2977 <?php echo $data['disabled'] ? 'disabled="disabled"':''; ?> /> 2954 2978 <?php if(!$data['disabled']) { ?> -
ag-custom-admin/trunk/readme.txt
r3015609 r3060991 4 4 Tags: customize dashboard, hide admin bar, customize admin menu, customize login page, hide widgets, admin menu, dashboard, edit admin menu, admin bar, login page, widgets, customize admin 5 5 Requires at least: 3.0 6 Tested up to: 6.4. 27 Stable tag: 7.2. 16 Tested up to: 6.4.3 7 Stable tag: 7.2.2 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl.txt … … 24 24 > Cusmin is the premium version of the Absolutely Glamorous Custom Admin with the advanced features for customization and branding. It's perfect for professionals, but can be also used on personal sites as well.<br><br> 25 25 > Please check how this pro plugin can help you to completely [customize your WordPress dashboard](https://cusmin.com/blog/customize-wordpress-dashboard/?ref=wporg-recommended).<br><br> 26 27 > <strong>[PLUGNA](https://plugna.com?ref=wporg)</strong><br>28 > Plugna is a free plugin that can help you to manage WordPress plugins with ease, in a more productive and fun way.<br><br>29 26 30 27 = General Settings = … … 163 160 == Change Log == 164 161 162 = 7.2.2 = 163 * Maintenance release 164 165 165 = 7.2.1 = 166 166 * WordPress compatibility … … 182 182 = 7.2 = 183 183 * Fixed issue with the login image 184 185 = 7.1.5 =186 * Admin menu editor and text improvements
Note: See TracChangeset
for help on using the changeset viewer.