Plugin Directory

Changeset 3060991


Ignore:
Timestamp:
03/29/2024 09:10:15 AM (2 years ago)
Author:
cusmin
Message:

v7.2.2 maintenace

Location:
ag-custom-admin/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ag-custom-admin/trunk

    • Property svn:ignore
      •  

        old new  
         1.idea
        12.git
  • ag-custom-admin/trunk/changelog.txt

    r3015609 r3060991  
    11== Change Log ==
     2
     3= 7.2.2 =
     4* Maintenance release
    25
    36= 7.2.1 =
  • ag-custom-admin/trunk/plugin.php

    r3015609 r3060991  
    55Description: CHANGE: admin menu, login page, admin bar, dashboard widgets, custom colors, custom CSS & JS, logo & images
    66Author: Cusmin
    7 Version: 7.2.1
     7Version: 7.2.2
    88Text Domain: ag-custom-admin
    99Domain Path: /languages
    1010Author URI: https://cusmin.com/
    1111
    12     Copyright 2023. Cusmin (email : info@cusmin.com)
     12    Copyright 2024. Cusmin (email : info@cusmin.com)
    1313
    1414    This program is free software: you can redistribute it and/or modify
     
    2929
    3030class AGCA{
    31     private $agca_version = "7.2.1";
     31    private $agca_version = "7.2.2";
    3232    private $colorizer = "";
    3333    private $agca_debug = false;
     
    3535    private $context = "";
    3636    private $saveAfterImport = false;
     37
     38    const PLACEHOLDER_BLOG = '%BLOG%';
     39    const PLACEHOLDER_PAGE = '%PAGE%';
    3740
    3841    public function __construct()
     
    311314            $page = $title;
    312315            $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);
    315318            return htmlentities(strip_tags($customTitle));
    316319        }else{
     
    971974        <?php } ?>
    972975        <?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); ?>";
    975982            if(href == "%SWITCH%"){
    976983            href = "<?php echo $this->sanitize_html(get_bloginfo('wpurl')); ?>";
     
    15401547                    <?php } ?>
    15411548                    <?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); ?>";
    15451554
    15461555                    jQuery("#sidebar_adminmenu_logo").attr('onclick','window.open(\"'+ href+ '\");');
     
    18701879                    <?php if(get_option('agca_login_photo_href')==true){ ?>
    18711880                    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')); ?>");
    18731882
    18741883                    jQuery("#login h1 a").attr("href",$href);
     
    21572166                            'name'=>'agca_wp_logo_custom_link',
    21582167                            'label'=>__('Admin bar logo link', 'ag-custom-admin'),
    2159                             'hint' =>__('Link', 'ag-custom-admin')
     2168                            'hint' =>__('Link', 'ag-custom-admin'),
     2169                            'link' => true
    21602170                        ));
    21612171
     
    27282738                            'name'=>'agca_admin_menu_brand_link',
    27292739                            '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
    27312742                        ));
    27322743                        ?>
     
    29202931        $strAttributes = '';
    29212932        $parentAttr = '';
     2933        $isLink = false;
    29222934        if(isset($data['hint'])){
    29232935            $strHint = '&nbsp;<p><i>'.$this->sanitize($data['hint']).'</i></p>';
     
    29312943        if(isset($data['suffix'])){
    29322944            $suffix = $data['suffix'];
     2945        }
     2946        if(isset($data['link']) && $data['link']){
     2947            $isLink = true;
    29332948        }
    29342949        if(isset($data['attributes'])){
     
    29442959            <td>
    29452960                <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);
    29462970                echo $this->sanitize_html($data['name']) ?>"
    29472971                       title="<?php echo $this->sanitize_html($data['title']) ?>"
     
    29502974                       class="<?php echo $data['disabled'] ? 'disabled' : ''; ?>"
    29512975                       name="<?php echo $this->sanitize_html($data['name']) ?>"
    2952                        value="<?php echo htmlentities(get_option($data['name'])); ?>"
     2976                       value="<?php echo $value; ?>"
    29532977                    <?php echo $data['disabled'] ? 'disabled="disabled"':''; ?> />
    29542978                <?php if(!$data['disabled']) { ?>
  • ag-custom-admin/trunk/readme.txt

    r3015609 r3060991  
    44Tags: 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
    55Requires at least: 3.0
    6 Tested up to: 6.4.2
    7 Stable tag: 7.2.1
     6Tested up to: 6.4.3
     7Stable tag: 7.2.2
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl.txt
     
    2424> 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>
    2525> 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>
    2926
    3027= General Settings =
     
    163160== Change Log ==
    164161
     162= 7.2.2 =
     163* Maintenance release
     164
    165165= 7.2.1 =
    166166* WordPress compatibility
     
    182182= 7.2 =
    183183* 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.