Plugin Directory

Changeset 3457463


Ignore:
Timestamp:
02/09/2026 09:16:23 PM (10 days ago)
Author:
uniconsent
Message:

Release 1.6.3

Location:
uniconsent-cmp
Files:
8 added
7 edited
7 copied

Legend:

Unmodified
Added
Removed
  • uniconsent-cmp/tags/1.6.3/README.txt

    r3376800 r3457463  
    11=== UniConsent Cookie Consent CMP - Consent Manager ===
    2 Version: 1.6.2
     2Version: 1.6.3
    33Contributors: uniconsent
    44Tags: cmp, cookie banner, cookie consent, iab, cookie
    55Requires at least: 4.0
    6 Tested up to: 6.8.1
     6Tested up to: 6.8.3
    77Requires PHP: 7.4
    8 Stable tag: 1.6.2
     8Stable tag: 1.6.3
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    123123== Changelog ==
    124124
     125= 1.6.3 =
     126* Improve UI
     127
    125128= 1.6.1 =
    126129* Improvement
  • uniconsent-cmp/tags/1.6.3/admin/class-unic-admin-pages.php

    r3293219 r3457463  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2022 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
    88 */
    99
    10 use UNIC\UNIC_Values;
     10// Include the separated files
     11require_once plugin_dir_path( __FILE__ ) . 'views.php';
     12require_once plugin_dir_path( __FILE__ ) . 'settings.php';
    1113
    1214class UNIC_Admin_Pages {
    1315
    14     private $unic_license;
    15     private $unic_options;
    16     private $unic_values;
    17     private $unic_language;
    18     private $unic_company;
    19     private $unic_logo;
    20     private $unic_policy_url;
    21     private $unic_language_default = 'en';
     16    private $settings;
    2217
    2318    public function __construct() {
    24 
    25         $this->unic_values = new UNIC_Values();
    26         $this->unic_language = esc_attr( get_option( 'unic_language' ) );
    27 
    28         $this->unic_language = isset( $this->unic_language ) && ! empty( $this->unic_language )
    29             ? $this->unic_language
    30             : $this->unic_language_default;
    31 
    32         add_action( 'admin_init', array( $this, 'unic_options_page_init' ) );
    33         add_action( 'admin_menu', array( $this, 'add_unic_admin_pages' ) );
    34         add_action( 'admin_notices', array( $this, 'unic_admin_notice_license' ) );
    35 
     19        // Load CSS styles
     20        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
     21       
     22        // Initialize settings
     23        $this->settings = new UNIC_Admin_Settings();
    3624    }
    3725
    38     public function unic_admin_notice_license() {
    39         $unic_enable_iab = get_option( 'unic_enable_iab');
    40     }
     26    public function enqueue_admin_styles($hook) {
     27        if ($hook !== 'toplevel_page_unic-options') {
     28            return;
     29        }
    4130
    42     public function unic_options() { ?>
    43 
    44         <style>
    45             #unic-left {
    46                 width:670px;
    47                 float: left;
    48             }
    49             #unic-right {
    50                 position: absolute;
    51                 top: 120px;
    52                 right: 60px;
    53                 width: 292px;
    54                 text-align: right;
    55             }
    56             #unic-right .top {
    57                 background: white;
    58                 padding: 10px;
    59                 text-align: center;
    60             }
    61             #unic-right .logo {
    62                 background: #555f80;
    63                 padding: 20px 10px;
    64                 text-align: center;
    65                 color: white;
    66             }
    67 
    68             #unic-right h3 {
    69                 color: white;
    70             }
    71             #unic-right .button-primary {
    72                 font-size: 20px;
    73             }
    74         </style>
    75 
    76         <div class="wrap wrap-unic-options">
    77             <div class="admin-header">
    78                 <div class="left"><h1><?php _e( 'UniConsent Options', 'unic-options' ); ?></h1></div>
    79                    
    80                 <div class="clear"></div>
    81             </div>
    82 
    83             <?php settings_errors(); ?>
    84 
    85         <div id="unic-admin">
    86 
    87             <div id="unic-left">
    88 
    89         <form method="post" action="options.php">
    90 
    91                 <?php settings_fields( 'unic-general-config' ); ?>
    92                 <?php do_settings_sections( 'unic-general-config' ); ?>
    93                 <?php $unic_license = esc_attr(get_option( 'unic_license')); ?>
    94 
    95                 <table class="form-table options-form-table">
    96 
    97                 <?php if(!($unic_license && (strpos($unic_license, 'key-') > -1 || strpos($unic_license, 'license-') > -1))): ?>
    98 
    99                 <?php $unic_enable_gdpr = get_option( 'unic_enable_gdpr'); ?>
    100                 <?php if(!$unic_enable_gdpr) {
    101                     $unic_enable_gdpr = 'yes';
    102                 } ?>
    103                 <tr class="table-top-row" valign="top">
    104                     <th scope="row">
    105                         <?php _e( 'Enable EU GDPR Compliance', 'uniconsent' ); ?>
    106                     </th>
    107                     <td class="col-2">
    108                         <select name="unic_enable_gdpr">
    109                             <option value="no" <?php selected( $unic_enable_gdpr, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    110                             <option value="yes" <?php selected( $unic_enable_gdpr, 'yes' ); ?>><?php _e( 'Yes', 'uniconsent' ); ?></option>
    111                         </select>
    112                     </td>
    113                 </tr>
    114 
    115                 <?php $unic_enable_ccpa = get_option( 'unic_enable_ccpa'); ?>
    116                 <tr class="table-top-row" valign="top">
    117                     <th scope="row">
    118                         <?php _e( 'Enable U.S. CCPA Compliance', 'uniconsent' ); ?>
    119                     </th>
    120                     <td class="col-2">
    121                         <select name="unic_enable_ccpa">
    122                             <option value="no" <?php selected( $unic_enable_ccpa, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    123                             <option value="yes" <?php selected( $unic_enable_ccpa, 'yes' ); ?>><?php _e( 'Yes', 'uniconsent' ); ?></option>
    124                         </select>
    125                     </td>
    126                 </tr>
    127 
    128                 <?php $unic_language = get_option( 'unic_language' ); ?>
    129                     <tr class="table-top-row" valign="top">
    130                         <th scope="row">
    131                             <?php _e( 'Language', 'uniconsent' ); ?>
    132                         </th>
    133                         <td class="col-2">
    134                             <select name="unic_language">
    135                                 <option value="EN" <?php selected( $unic_language, 'EN' ); ?>><?php _e( 'English', 'uniconsent' ); ?></option>
    136                                 <option value="FR" <?php selected( $unic_language, 'FR' ); ?>><?php _e( 'French', 'uniconsent' ); ?></option>
    137                                 <option value="DE" <?php selected( $unic_language, 'DE' ); ?>><?php _e( 'German', 'uniconsent' ); ?></option>
    138                                 <option value="ES" <?php selected( $unic_language, 'ES' ); ?>><?php _e( 'Spanish', 'uniconsent' ); ?></option>
    139                                 <option value="IT" <?php selected( $unic_language, 'IT' ); ?>><?php _e( 'Italian', 'uniconsent' ); ?></option>
    140                                 <option value="PT" <?php selected( $unic_language, 'PT' ); ?>><?php _e( 'Portuguese', 'uniconsent' ); ?></option>
    141                                 <option value="PL" <?php selected( $unic_language, 'PL' ); ?>><?php _e( 'Polish', 'uniconsent' ); ?></option>
    142                                 <option value="NL" <?php selected( $unic_language, 'NL' ); ?>><?php _e( 'Dutch', 'uniconsent' ); ?></option>
    143                                 <option value="SV" <?php selected( $unic_language, 'SV' ); ?>><?php _e( 'Swedish', 'uniconsent' ); ?></option>
    144                                 <option value="BG" <?php selected( $unic_language, 'BG' ); ?>><?php _e( 'Bulgarian', 'uniconsent' ); ?></option>
    145                                 <option value="CA" <?php selected( $unic_language, 'CA' ); ?>><?php _e( 'Catalan', 'uniconsent' ); ?></option>
    146                                 <option value="CS" <?php selected( $unic_language, 'CS' ); ?>><?php _e( 'Czech', 'uniconsent' ); ?></option>
    147                                 <option value="DA" <?php selected( $unic_language, 'DA' ); ?>><?php _e( 'Danish', 'uniconsent' ); ?></option>
    148                                 <option value="EL" <?php selected( $unic_language, 'EL' ); ?>><?php _e( 'Greek', 'uniconsent' ); ?></option>
    149                                 <option value="ET" <?php selected( $unic_language, 'ET' ); ?>><?php _e( 'Estonian', 'uniconsent' ); ?></option>
    150                                 <option value="FI" <?php selected( $unic_language, 'FI' ); ?>><?php _e( 'Finnish', 'uniconsent' ); ?></option>
    151                                 <option value="HU" <?php selected( $unic_language, 'HU' ); ?>><?php _e( 'Hungarian', 'uniconsent' ); ?></option>
    152                                 <option value="LT" <?php selected( $unic_language, 'LT' ); ?>><?php _e( 'Lithuanian', 'uniconsent' ); ?></option>
    153                                 <option value="LV" <?php selected( $unic_language, 'LV' ); ?>><?php _e( 'Latvian', 'uniconsent' ); ?></option>
    154                                 <option value="MT" <?php selected( $unic_language, 'MT' ); ?>><?php _e( 'Maltese', 'uniconsent' ); ?></option>
    155                                 <option value="NO" <?php selected( $unic_language, 'NO' ); ?>><?php _e( 'Norwegian', 'uniconsent' ); ?></option>
    156                                 <option value="RO" <?php selected( $unic_language, 'RO' ); ?>><?php _e( 'Romanian', 'uniconsent' ); ?></option>
    157                                 <option value="RU" <?php selected( $unic_language, 'RU' ); ?>><?php _e( 'Russian', 'uniconsent' ); ?></option>
    158                                 <option value="SK" <?php selected( $unic_language, 'SK' ); ?>><?php _e( 'Slovak', 'uniconsent' ); ?></option>
    159                                 <option value="SL" <?php selected( $unic_language, 'SL' ); ?>><?php _e( 'Slovenian', 'uniconsent' ); ?></option>
    160                                 <option value="ZH" <?php selected( $unic_language, 'ZH' ); ?>><?php _e( 'Chinese', 'uniconsent' ); ?></option>
    161                                 <option value="SR" <?php selected( $unic_language, 'SR' ); ?>><?php _e( 'Serbian', 'uniconsent' ); ?></option>
    162                                 <option value="JA" <?php selected( $unic_language, 'JA' ); ?>><?php _e( 'Japanese', 'uniconsent' ); ?></option>
    163                                 <option value="BS" <?php selected( $unic_language, 'BS' ); ?>><?php _e( 'Bosnian', 'uniconsent' ); ?></option>
    164                                 <option value="TR" <?php selected( $unic_language, 'TR' ); ?>><?php _e( 'Turkish', 'uniconsent' ); ?></option>
    165                                 <option value="CY" <?php selected( $unic_language, 'CY' ); ?>><?php _e( 'Welsh', 'uniconsent' ); ?></option>
    166                                 <option value="EU" <?php selected( $unic_language, 'EU' ); ?>><?php _e( 'Basque', 'uniconsent' ); ?></option>
    167                                 <option value="GL" <?php selected( $unic_language, 'GL' ); ?>><?php _e( 'Galician', 'uniconsent' ); ?></option>
    168                                 <option value="HE" <?php selected( $unic_language, 'HE' ); ?>><?php _e( 'Hebrew', 'uniconsent' ); ?></option>
    169                                 <option value="ID" <?php selected( $unic_language, 'ID' ); ?>><?php _e( 'Indonesian', 'uniconsent' ); ?></option>
    170                                 <option value="KO" <?php selected( $unic_language, 'KO' ); ?>><?php _e( 'Korean', 'uniconsent' ); ?></option>
    171                                 <option value="MK" <?php selected( $unic_language, 'MK' ); ?>><?php _e( 'Macedonian', 'uniconsent' ); ?></option>
    172                                 <option value="MS" <?php selected( $unic_language, 'MS' ); ?>><?php _e( 'Malay', 'uniconsent' ); ?></option>
    173                                 <option value="TL" <?php selected( $unic_language, 'TL' ); ?>><?php _e( 'Tagalog', 'uniconsent' ); ?></option>
    174                                 <option value="UK" <?php selected( $unic_language, 'UK' ); ?>><?php _e( 'Ukrainian', 'uniconsent' ); ?></option>
    175                             </select>
    176                         </td>
    177                     </tr>
    178 
    179                     <?php $unic_company = esc_attr(get_option( 'unic_company')); ?>
    180 
    181                     <tr valign="top">
    182                         <th scope="row">
    183                             <?php _e( 'Website Name (Optional)', 'uniconsent' ); ?>
    184                         </th>
    185                         <td class="col-2">
    186                             <input name="unic_company" type="text" value="<?php echo esc_attr(get_option( 'unic_company', $this->unic_company )); ?>">
    187                         </td>
    188                     </tr>
    189 
    190                     <?php $unic_logo = esc_url(get_option( 'unic_logo')); ?>
    191 
    192                     <tr valign="top">
    193                         <th scope="row">
    194                             <?php _e( 'Website LOGO URL (Optional)', 'uniconsent' ); ?>
    195                         </th>
    196                         <td class="col-2">
    197                             <input name="unic_logo" type="text" value="<?php echo esc_url(get_option( 'unic_logo', $this->unic_logo )); ?>">
    198                         </td>
    199                     </tr>
    200 
    201                     <?php $unic_policy_url = esc_url(get_option( 'unic_policy_url')); ?>
    202                    
    203                     <tr valign="top">
    204                         <th scope="row">
    205                             <?php _e( 'Policy URL (Optional)', 'uniconsent' ); ?>
    206                         </th>
    207                         <td class="col-2">
    208                             <input name="unic_policy_url" type="text" value="<?php echo esc_url(get_option( 'unic_policy_url', $this->unic_policy_url )); ?>">
    209                             <div class="desc">
    210                                 <strong><?php _e( 'Example:', 'uniconsent' ); ?></strong> <?php _e( 'https://www.example.com/policy', 'uniconsent' ); ?>
    211                             </div>
    212                         </td>
    213                     </tr>
    214 
    215                     <?php $unic_region = get_option( 'unic_region' ); ?>
    216                     <tr class="table-top-row" valign="top">
    217                         <th scope="row">
    218                             <?php _e( 'GDPR Policy Region', 'uniconsent' ); ?>
    219                         </th>
    220                         <td class="col-2">
    221                             <select name="unic_region">
    222                                 <option value="none" <?php selected( $unic_region, 'none' ); ?>><?php _e( 'None', 'uniconsent' ); ?></option>
    223                                 <option value="worldwide" <?php selected( $unic_region, 'worldwide' ); ?>><?php _e( 'Worldwide', 'uniconsent' ); ?></option>
    224                                 <option value="eu" <?php selected( $unic_region, 'eu' ); ?>><?php _e( 'EU (EEA) Countries', 'uniconsent' ); ?></option>
    225                             </select>
    226                             <div class="desc">
    227                                 <p>When select EU, only display CMP to the users in EU countries.</p>
    228                             </div>
    229                         </td>
    230                     </tr>
    231 
    232                     <?php $unic_type = get_option( 'unic_type' ); ?>
    233                     <tr class="table-top-row" valign="top">
    234                         <th scope="row">
    235                             <?php _e( 'CMP Style', 'uniconsent' ); ?>
    236                         </th>
    237                         <td class="col-2">
    238                             <select name="unic_type">
    239                                 <option value="bar" <?php selected( $unic_type, 'bar' ); ?>><?php _e( 'Banner', 'uniconsent' ); ?></option>
    240                                 <option value="popup" <?php selected( $unic_type, 'popup' ); ?>><?php _e( 'Popup Box', 'uniconsent' ); ?></option>
    241                             </select>
    242                         </td>
    243                     </tr>
    244 
    245                 <?php $unic_enable_iab = get_option( 'unic_enable_iab'); ?>
    246                     <tr class="table-top-row" valign="top">
    247                         <th scope="row">
    248                             <?php _e( 'IAB TCF Compliance', 'uniconsent' ); ?>
    249                         </th>
    250                         <td class="col-2">
    251                             <select name="unic_enable_iab">
    252                                 <option value="no" <?php selected( $unic_enable_iab, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    253                                 <option value="v2" <?php selected( $unic_enable_iab, 'v2' ); ?>><?php _e( 'IAB TCF 2.2', 'uniconsent' ); ?></option>
    254                             </select>
    255                         </td>
    256                     </tr>
    257 
    258                 <?php endif;?>
    259 
    260                 <?php $unic_license = get_option( 'unic_license'); ?>
    261 
    262                 <tr valign="top">
    263                     <th scope="row">
    264                         <?php _e( 'License key (Optional)', 'uniconsent' ); ?>
    265                     </th>
    266                     <td class="col-2">
    267                         <input name="unic_license" type="text" value="<?php echo esc_attr(get_option( 'unic_license', $this->unic_license )); ?>">
    268                         <div class="desc">
    269                                 <p><?php _e( '* Get your free license key at:', 'uniconsent' ); ?> <a target="_blank" href="https://www.uniconsent.com/?utm_source=wp_license">https://www.uniconsent.com/</a> to unlock more features.</p>
    270                                 <p>* The configurations are managed at <a target="_blank" href="https://www.uniconsent.com/?utm_source=wp_license">https://www.uniconsent.com/</a> once you have entered the license key: <b>license-xxxxxxxx</b>.</p>
    271                             </div>
    272                     </td>
    273                 </tr>
    274 
    275 
    276 
    277                 </table>
    278 
    279                 <table class="form-table options-form-table">
    280                     <tr>
    281                         <td><?php submit_button(); ?></td>
    282                     </tr>
    283                 </table>
    284 
    285             </form>
    286             </div>
    287 
    288             <div id="unic-right">
    289                 <div class="top">
    290                     <a target="_blank" href="<?php _e( 'https://www.uniconsent.com', 'uniconsent' ); ?>" target="_blank">
    291                         <img src="<?php echo plugins_url( 'uniconsent-cmp/admin/images/unic-logo.png' ); ?>" style="width: 200px;" />
    292                     </a>
    293                 </div>
    294                    
    295                 <div class='logo'>
    296                     <div>
    297                         <h3>UniConsent Cookie Consent CMP</h3>
    298                         <ul>
    299                             <li><strong>Certified EU IAB TCF 2.2 CMP</strong>
    300                             <li><strong>Certified Canada IAB TCF CMP</strong>
    301                             <li><strong>Certified Google CMP</strong>
    302                             <li><strong>Google Consent Mode v2</strong>
    303                             <li><strong>Microsoft UET Consent Mode</strong>
    304                             <li><strong>IAB GPP 1.1 compliance</strong>
    305                             <li><strong>40+ Languages support</strong>
    306                             <li><strong>GPP, TCF, USP Consent signals</strong>
    307                             <li><strong>For GDPR, CCPA, LGPD, PDPA, CPRA, PIPL</strong>
    308                             <li><strong>More popup UI choices and easy mode</strong>
    309                             <li><strong>Fully customisable multiple stages consent collection pop-ups, bars</strong>
    310                             <li><strong>Multiple languages support</strong>
    311                             <li><strong>Data analytics and inisght dashboard</strong>
    312                             <li><strong>One-tag Implementation</strong>
    313                             <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS Support</strong>
    314                             <li><strong>Prebid.js and Header bidding support</strong>
    315                             <li><strong>Cookie ePrivacy consent support</strong>
    316                             <li><strong>Website cookie discovery and disclose</strong>
    317                             <li><strong>Javascript and cookie blocking</strong>
    318                             <li><strong>Consent rate analytics and insight</strong>
    319                             <li><strong>Support: [email protected]</strong>
    320                         </ul>
    321                         <a class="button button-primary" href="https://app.uniconsent.com/app/register?utm_source=wp" target="_blank">Get Started</a>
    322                     </div>
    323                 </div>
    324             </div>
    325 
    326         </div>
    327 
    328         </div>
    329         <?php
    330 
    331     }
    332  
    333     public function add_unic_admin_pages() {
    334 
    335         $unic_admin_page = add_menu_page(
    336             'UniConsent CMP',
    337             'UniConsent CMP',
    338             'administrator',
    339             'unic-options',
    340             array( $this, 'unic_options' )
     31        wp_enqueue_style(
     32            'unic-admin-style',
     33            plugin_dir_url( __FILE__ ) . 'style.css',
     34            array(),
     35            '1.0.0'
    34136        );
    342 
    343     }
    344 
    345     public function unic_options_page_init() {
    346 
    347         register_setting(
    348             'unic-general-config', // Option group
    349             'unic_license', // Option name
    350             array(
    351                 'type' => 'string',
    352                 'sanitize_callback' => array( $this, 'sanitize_text' )
    353             )
     37       
     38        wp_enqueue_script(
     39            'unic-admin-script',
     40            plugin_dir_url( __FILE__ ) . 'views.js',
     41            array('jquery'),
     42            '1.0.0',
     43            true
    35444        );
    355 
    356         register_setting(
    357             'unic-general-config', // Option group
    358             'unic_language', // Option name
    359             array(
    360                 'type' => 'string',
    361                 'sanitize_callback' => array( $this, 'sanitize_text' )
    362             )
    363         );
    364 
    365         register_setting(
    366             'unic-general-config', // Option group
    367             'unic_type', // Option name
    368             array(
    369                 'type' => 'string',
    370                 'sanitize_callback' => array( $this, 'sanitize_text' )
    371             )
    372         );
    373 
    374         register_setting(
    375             'unic-general-config', // Option group
    376             'unic_region', // Option name
    377             array(
    378                 'type' => 'string',
    379                 'sanitize_callback' => array( $this, 'sanitize_text' )
    380             )
    381         );
    382 
    383         register_setting(
    384             'unic-general-config', // Option group
    385             'unic_company', // Option name
    386             array(
    387                 'type' => 'string',
    388                 'sanitize_callback' => array( $this, 'sanitize_text' )
    389             )
    390         );
    391 
    392         register_setting(
    393             'unic-general-config', // Option group
    394             'unic_logo', // Option name
    395             array(
    396                 'type' => 'string',
    397                 'sanitize_callback' => array( $this, 'sanitize_text' )
    398             )
    399         );
    400 
    401         register_setting(
    402             'unic-general-config', // Option group
    403             'unic_policy_url', // Option name
    404             array(
    405                 'type' => 'string',
    406                 'sanitize_callback' => array( $this, 'sanitize_text' )
    407             )
    408         );
    409 
    410         register_setting(
    411             'unic-general-config', // Option group
    412             'unic_enable_iab', // Option name
    413             array(
    414                 'type' => 'string',
    415                 'sanitize_callback' => array( $this, 'sanitize_text' )
    416             )
    417         );
    418 
    419         register_setting(
    420             'unic-general-config', // Option group
    421             'unic_enable_gdpr', // Option name
    422             array(
    423                 'type' => 'string',
    424                 'sanitize_callback' => array( $this, 'sanitize_text' )
    425             )
    426         );
    427 
    428         register_setting(
    429             'unic-general-config', // Option group
    430             'unic_enable_ccpa', // Option name
    431             array(
    432                 'type' => 'string',
    433                 'sanitize_callback' => array( $this, 'sanitize_text' )
    434             )
    435         );
    436 
    437     }
    438 
    439     public function sanitize_text( $input ) {
    440 
    441         $input = sanitize_text_field( $input );
    442         return $input;
    443 
    444     }
    445 
    446     public function sanitize_url( $input ) {
    447 
    448         $input = esc_url( $input );
    449         return $input;
    450 
    45145    }
    45246}
  • uniconsent-cmp/tags/1.6.3/admin/index.php

    r2338228 r3457463  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2020 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
  • uniconsent-cmp/tags/1.6.3/includes/class-unic-cmp.php

    r3376800 r3457463  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.6.2';
     22            $this->version = '1.6.3';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/tags/1.6.3/uniconsent-cmp.php

    r3376800 r3457463  
    44* Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
    55* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
    6 * Version: 1.6.2
     6* Version: 1.6.3
    77* Author: UniConsent
    88* Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
     
    1414}
    1515
    16 define( 'UNIC_CMP_VERSION', '1.6.2' );
     16define( 'UNIC_CMP_VERSION', '1.6.3' );
    1717
    1818function activate_unic_cmp() {
     
    4040        plugin_dir_url(__FILE__) . 'public/js/unic.min.js',
    4141        array(),
    42         '1.6.2',
     42        '1.6.3',
    4343        true
    4444    );
  • uniconsent-cmp/trunk/README.txt

    r3376800 r3457463  
    11=== UniConsent Cookie Consent CMP - Consent Manager ===
    2 Version: 1.6.2
     2Version: 1.6.3
    33Contributors: uniconsent
    44Tags: cmp, cookie banner, cookie consent, iab, cookie
    55Requires at least: 4.0
    6 Tested up to: 6.8.1
     6Tested up to: 6.8.3
    77Requires PHP: 7.4
    8 Stable tag: 1.6.2
     8Stable tag: 1.6.3
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    123123== Changelog ==
    124124
     125= 1.6.3 =
     126* Improve UI
     127
    125128= 1.6.1 =
    126129* Improvement
  • uniconsent-cmp/trunk/admin/class-unic-admin-pages.php

    r3293219 r3457463  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2022 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
    88 */
    99
    10 use UNIC\UNIC_Values;
     10// Include the separated files
     11require_once plugin_dir_path( __FILE__ ) . 'views.php';
     12require_once plugin_dir_path( __FILE__ ) . 'settings.php';
    1113
    1214class UNIC_Admin_Pages {
    1315
    14     private $unic_license;
    15     private $unic_options;
    16     private $unic_values;
    17     private $unic_language;
    18     private $unic_company;
    19     private $unic_logo;
    20     private $unic_policy_url;
    21     private $unic_language_default = 'en';
     16    private $settings;
    2217
    2318    public function __construct() {
    24 
    25         $this->unic_values = new UNIC_Values();
    26         $this->unic_language = esc_attr( get_option( 'unic_language' ) );
    27 
    28         $this->unic_language = isset( $this->unic_language ) && ! empty( $this->unic_language )
    29             ? $this->unic_language
    30             : $this->unic_language_default;
    31 
    32         add_action( 'admin_init', array( $this, 'unic_options_page_init' ) );
    33         add_action( 'admin_menu', array( $this, 'add_unic_admin_pages' ) );
    34         add_action( 'admin_notices', array( $this, 'unic_admin_notice_license' ) );
    35 
     19        // Load CSS styles
     20        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
     21       
     22        // Initialize settings
     23        $this->settings = new UNIC_Admin_Settings();
    3624    }
    3725
    38     public function unic_admin_notice_license() {
    39         $unic_enable_iab = get_option( 'unic_enable_iab');
    40     }
     26    public function enqueue_admin_styles($hook) {
     27        if ($hook !== 'toplevel_page_unic-options') {
     28            return;
     29        }
    4130
    42     public function unic_options() { ?>
    43 
    44         <style>
    45             #unic-left {
    46                 width:670px;
    47                 float: left;
    48             }
    49             #unic-right {
    50                 position: absolute;
    51                 top: 120px;
    52                 right: 60px;
    53                 width: 292px;
    54                 text-align: right;
    55             }
    56             #unic-right .top {
    57                 background: white;
    58                 padding: 10px;
    59                 text-align: center;
    60             }
    61             #unic-right .logo {
    62                 background: #555f80;
    63                 padding: 20px 10px;
    64                 text-align: center;
    65                 color: white;
    66             }
    67 
    68             #unic-right h3 {
    69                 color: white;
    70             }
    71             #unic-right .button-primary {
    72                 font-size: 20px;
    73             }
    74         </style>
    75 
    76         <div class="wrap wrap-unic-options">
    77             <div class="admin-header">
    78                 <div class="left"><h1><?php _e( 'UniConsent Options', 'unic-options' ); ?></h1></div>
    79                    
    80                 <div class="clear"></div>
    81             </div>
    82 
    83             <?php settings_errors(); ?>
    84 
    85         <div id="unic-admin">
    86 
    87             <div id="unic-left">
    88 
    89         <form method="post" action="options.php">
    90 
    91                 <?php settings_fields( 'unic-general-config' ); ?>
    92                 <?php do_settings_sections( 'unic-general-config' ); ?>
    93                 <?php $unic_license = esc_attr(get_option( 'unic_license')); ?>
    94 
    95                 <table class="form-table options-form-table">
    96 
    97                 <?php if(!($unic_license && (strpos($unic_license, 'key-') > -1 || strpos($unic_license, 'license-') > -1))): ?>
    98 
    99                 <?php $unic_enable_gdpr = get_option( 'unic_enable_gdpr'); ?>
    100                 <?php if(!$unic_enable_gdpr) {
    101                     $unic_enable_gdpr = 'yes';
    102                 } ?>
    103                 <tr class="table-top-row" valign="top">
    104                     <th scope="row">
    105                         <?php _e( 'Enable EU GDPR Compliance', 'uniconsent' ); ?>
    106                     </th>
    107                     <td class="col-2">
    108                         <select name="unic_enable_gdpr">
    109                             <option value="no" <?php selected( $unic_enable_gdpr, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    110                             <option value="yes" <?php selected( $unic_enable_gdpr, 'yes' ); ?>><?php _e( 'Yes', 'uniconsent' ); ?></option>
    111                         </select>
    112                     </td>
    113                 </tr>
    114 
    115                 <?php $unic_enable_ccpa = get_option( 'unic_enable_ccpa'); ?>
    116                 <tr class="table-top-row" valign="top">
    117                     <th scope="row">
    118                         <?php _e( 'Enable U.S. CCPA Compliance', 'uniconsent' ); ?>
    119                     </th>
    120                     <td class="col-2">
    121                         <select name="unic_enable_ccpa">
    122                             <option value="no" <?php selected( $unic_enable_ccpa, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    123                             <option value="yes" <?php selected( $unic_enable_ccpa, 'yes' ); ?>><?php _e( 'Yes', 'uniconsent' ); ?></option>
    124                         </select>
    125                     </td>
    126                 </tr>
    127 
    128                 <?php $unic_language = get_option( 'unic_language' ); ?>
    129                     <tr class="table-top-row" valign="top">
    130                         <th scope="row">
    131                             <?php _e( 'Language', 'uniconsent' ); ?>
    132                         </th>
    133                         <td class="col-2">
    134                             <select name="unic_language">
    135                                 <option value="EN" <?php selected( $unic_language, 'EN' ); ?>><?php _e( 'English', 'uniconsent' ); ?></option>
    136                                 <option value="FR" <?php selected( $unic_language, 'FR' ); ?>><?php _e( 'French', 'uniconsent' ); ?></option>
    137                                 <option value="DE" <?php selected( $unic_language, 'DE' ); ?>><?php _e( 'German', 'uniconsent' ); ?></option>
    138                                 <option value="ES" <?php selected( $unic_language, 'ES' ); ?>><?php _e( 'Spanish', 'uniconsent' ); ?></option>
    139                                 <option value="IT" <?php selected( $unic_language, 'IT' ); ?>><?php _e( 'Italian', 'uniconsent' ); ?></option>
    140                                 <option value="PT" <?php selected( $unic_language, 'PT' ); ?>><?php _e( 'Portuguese', 'uniconsent' ); ?></option>
    141                                 <option value="PL" <?php selected( $unic_language, 'PL' ); ?>><?php _e( 'Polish', 'uniconsent' ); ?></option>
    142                                 <option value="NL" <?php selected( $unic_language, 'NL' ); ?>><?php _e( 'Dutch', 'uniconsent' ); ?></option>
    143                                 <option value="SV" <?php selected( $unic_language, 'SV' ); ?>><?php _e( 'Swedish', 'uniconsent' ); ?></option>
    144                                 <option value="BG" <?php selected( $unic_language, 'BG' ); ?>><?php _e( 'Bulgarian', 'uniconsent' ); ?></option>
    145                                 <option value="CA" <?php selected( $unic_language, 'CA' ); ?>><?php _e( 'Catalan', 'uniconsent' ); ?></option>
    146                                 <option value="CS" <?php selected( $unic_language, 'CS' ); ?>><?php _e( 'Czech', 'uniconsent' ); ?></option>
    147                                 <option value="DA" <?php selected( $unic_language, 'DA' ); ?>><?php _e( 'Danish', 'uniconsent' ); ?></option>
    148                                 <option value="EL" <?php selected( $unic_language, 'EL' ); ?>><?php _e( 'Greek', 'uniconsent' ); ?></option>
    149                                 <option value="ET" <?php selected( $unic_language, 'ET' ); ?>><?php _e( 'Estonian', 'uniconsent' ); ?></option>
    150                                 <option value="FI" <?php selected( $unic_language, 'FI' ); ?>><?php _e( 'Finnish', 'uniconsent' ); ?></option>
    151                                 <option value="HU" <?php selected( $unic_language, 'HU' ); ?>><?php _e( 'Hungarian', 'uniconsent' ); ?></option>
    152                                 <option value="LT" <?php selected( $unic_language, 'LT' ); ?>><?php _e( 'Lithuanian', 'uniconsent' ); ?></option>
    153                                 <option value="LV" <?php selected( $unic_language, 'LV' ); ?>><?php _e( 'Latvian', 'uniconsent' ); ?></option>
    154                                 <option value="MT" <?php selected( $unic_language, 'MT' ); ?>><?php _e( 'Maltese', 'uniconsent' ); ?></option>
    155                                 <option value="NO" <?php selected( $unic_language, 'NO' ); ?>><?php _e( 'Norwegian', 'uniconsent' ); ?></option>
    156                                 <option value="RO" <?php selected( $unic_language, 'RO' ); ?>><?php _e( 'Romanian', 'uniconsent' ); ?></option>
    157                                 <option value="RU" <?php selected( $unic_language, 'RU' ); ?>><?php _e( 'Russian', 'uniconsent' ); ?></option>
    158                                 <option value="SK" <?php selected( $unic_language, 'SK' ); ?>><?php _e( 'Slovak', 'uniconsent' ); ?></option>
    159                                 <option value="SL" <?php selected( $unic_language, 'SL' ); ?>><?php _e( 'Slovenian', 'uniconsent' ); ?></option>
    160                                 <option value="ZH" <?php selected( $unic_language, 'ZH' ); ?>><?php _e( 'Chinese', 'uniconsent' ); ?></option>
    161                                 <option value="SR" <?php selected( $unic_language, 'SR' ); ?>><?php _e( 'Serbian', 'uniconsent' ); ?></option>
    162                                 <option value="JA" <?php selected( $unic_language, 'JA' ); ?>><?php _e( 'Japanese', 'uniconsent' ); ?></option>
    163                                 <option value="BS" <?php selected( $unic_language, 'BS' ); ?>><?php _e( 'Bosnian', 'uniconsent' ); ?></option>
    164                                 <option value="TR" <?php selected( $unic_language, 'TR' ); ?>><?php _e( 'Turkish', 'uniconsent' ); ?></option>
    165                                 <option value="CY" <?php selected( $unic_language, 'CY' ); ?>><?php _e( 'Welsh', 'uniconsent' ); ?></option>
    166                                 <option value="EU" <?php selected( $unic_language, 'EU' ); ?>><?php _e( 'Basque', 'uniconsent' ); ?></option>
    167                                 <option value="GL" <?php selected( $unic_language, 'GL' ); ?>><?php _e( 'Galician', 'uniconsent' ); ?></option>
    168                                 <option value="HE" <?php selected( $unic_language, 'HE' ); ?>><?php _e( 'Hebrew', 'uniconsent' ); ?></option>
    169                                 <option value="ID" <?php selected( $unic_language, 'ID' ); ?>><?php _e( 'Indonesian', 'uniconsent' ); ?></option>
    170                                 <option value="KO" <?php selected( $unic_language, 'KO' ); ?>><?php _e( 'Korean', 'uniconsent' ); ?></option>
    171                                 <option value="MK" <?php selected( $unic_language, 'MK' ); ?>><?php _e( 'Macedonian', 'uniconsent' ); ?></option>
    172                                 <option value="MS" <?php selected( $unic_language, 'MS' ); ?>><?php _e( 'Malay', 'uniconsent' ); ?></option>
    173                                 <option value="TL" <?php selected( $unic_language, 'TL' ); ?>><?php _e( 'Tagalog', 'uniconsent' ); ?></option>
    174                                 <option value="UK" <?php selected( $unic_language, 'UK' ); ?>><?php _e( 'Ukrainian', 'uniconsent' ); ?></option>
    175                             </select>
    176                         </td>
    177                     </tr>
    178 
    179                     <?php $unic_company = esc_attr(get_option( 'unic_company')); ?>
    180 
    181                     <tr valign="top">
    182                         <th scope="row">
    183                             <?php _e( 'Website Name (Optional)', 'uniconsent' ); ?>
    184                         </th>
    185                         <td class="col-2">
    186                             <input name="unic_company" type="text" value="<?php echo esc_attr(get_option( 'unic_company', $this->unic_company )); ?>">
    187                         </td>
    188                     </tr>
    189 
    190                     <?php $unic_logo = esc_url(get_option( 'unic_logo')); ?>
    191 
    192                     <tr valign="top">
    193                         <th scope="row">
    194                             <?php _e( 'Website LOGO URL (Optional)', 'uniconsent' ); ?>
    195                         </th>
    196                         <td class="col-2">
    197                             <input name="unic_logo" type="text" value="<?php echo esc_url(get_option( 'unic_logo', $this->unic_logo )); ?>">
    198                         </td>
    199                     </tr>
    200 
    201                     <?php $unic_policy_url = esc_url(get_option( 'unic_policy_url')); ?>
    202                    
    203                     <tr valign="top">
    204                         <th scope="row">
    205                             <?php _e( 'Policy URL (Optional)', 'uniconsent' ); ?>
    206                         </th>
    207                         <td class="col-2">
    208                             <input name="unic_policy_url" type="text" value="<?php echo esc_url(get_option( 'unic_policy_url', $this->unic_policy_url )); ?>">
    209                             <div class="desc">
    210                                 <strong><?php _e( 'Example:', 'uniconsent' ); ?></strong> <?php _e( 'https://www.example.com/policy', 'uniconsent' ); ?>
    211                             </div>
    212                         </td>
    213                     </tr>
    214 
    215                     <?php $unic_region = get_option( 'unic_region' ); ?>
    216                     <tr class="table-top-row" valign="top">
    217                         <th scope="row">
    218                             <?php _e( 'GDPR Policy Region', 'uniconsent' ); ?>
    219                         </th>
    220                         <td class="col-2">
    221                             <select name="unic_region">
    222                                 <option value="none" <?php selected( $unic_region, 'none' ); ?>><?php _e( 'None', 'uniconsent' ); ?></option>
    223                                 <option value="worldwide" <?php selected( $unic_region, 'worldwide' ); ?>><?php _e( 'Worldwide', 'uniconsent' ); ?></option>
    224                                 <option value="eu" <?php selected( $unic_region, 'eu' ); ?>><?php _e( 'EU (EEA) Countries', 'uniconsent' ); ?></option>
    225                             </select>
    226                             <div class="desc">
    227                                 <p>When select EU, only display CMP to the users in EU countries.</p>
    228                             </div>
    229                         </td>
    230                     </tr>
    231 
    232                     <?php $unic_type = get_option( 'unic_type' ); ?>
    233                     <tr class="table-top-row" valign="top">
    234                         <th scope="row">
    235                             <?php _e( 'CMP Style', 'uniconsent' ); ?>
    236                         </th>
    237                         <td class="col-2">
    238                             <select name="unic_type">
    239                                 <option value="bar" <?php selected( $unic_type, 'bar' ); ?>><?php _e( 'Banner', 'uniconsent' ); ?></option>
    240                                 <option value="popup" <?php selected( $unic_type, 'popup' ); ?>><?php _e( 'Popup Box', 'uniconsent' ); ?></option>
    241                             </select>
    242                         </td>
    243                     </tr>
    244 
    245                 <?php $unic_enable_iab = get_option( 'unic_enable_iab'); ?>
    246                     <tr class="table-top-row" valign="top">
    247                         <th scope="row">
    248                             <?php _e( 'IAB TCF Compliance', 'uniconsent' ); ?>
    249                         </th>
    250                         <td class="col-2">
    251                             <select name="unic_enable_iab">
    252                                 <option value="no" <?php selected( $unic_enable_iab, 'no' ); ?>><?php _e( 'No', 'uniconsent' ); ?></option>
    253                                 <option value="v2" <?php selected( $unic_enable_iab, 'v2' ); ?>><?php _e( 'IAB TCF 2.2', 'uniconsent' ); ?></option>
    254                             </select>
    255                         </td>
    256                     </tr>
    257 
    258                 <?php endif;?>
    259 
    260                 <?php $unic_license = get_option( 'unic_license'); ?>
    261 
    262                 <tr valign="top">
    263                     <th scope="row">
    264                         <?php _e( 'License key (Optional)', 'uniconsent' ); ?>
    265                     </th>
    266                     <td class="col-2">
    267                         <input name="unic_license" type="text" value="<?php echo esc_attr(get_option( 'unic_license', $this->unic_license )); ?>">
    268                         <div class="desc">
    269                                 <p><?php _e( '* Get your free license key at:', 'uniconsent' ); ?> <a target="_blank" href="https://www.uniconsent.com/?utm_source=wp_license">https://www.uniconsent.com/</a> to unlock more features.</p>
    270                                 <p>* The configurations are managed at <a target="_blank" href="https://www.uniconsent.com/?utm_source=wp_license">https://www.uniconsent.com/</a> once you have entered the license key: <b>license-xxxxxxxx</b>.</p>
    271                             </div>
    272                     </td>
    273                 </tr>
    274 
    275 
    276 
    277                 </table>
    278 
    279                 <table class="form-table options-form-table">
    280                     <tr>
    281                         <td><?php submit_button(); ?></td>
    282                     </tr>
    283                 </table>
    284 
    285             </form>
    286             </div>
    287 
    288             <div id="unic-right">
    289                 <div class="top">
    290                     <a target="_blank" href="<?php _e( 'https://www.uniconsent.com', 'uniconsent' ); ?>" target="_blank">
    291                         <img src="<?php echo plugins_url( 'uniconsent-cmp/admin/images/unic-logo.png' ); ?>" style="width: 200px;" />
    292                     </a>
    293                 </div>
    294                    
    295                 <div class='logo'>
    296                     <div>
    297                         <h3>UniConsent Cookie Consent CMP</h3>
    298                         <ul>
    299                             <li><strong>Certified EU IAB TCF 2.2 CMP</strong>
    300                             <li><strong>Certified Canada IAB TCF CMP</strong>
    301                             <li><strong>Certified Google CMP</strong>
    302                             <li><strong>Google Consent Mode v2</strong>
    303                             <li><strong>Microsoft UET Consent Mode</strong>
    304                             <li><strong>IAB GPP 1.1 compliance</strong>
    305                             <li><strong>40+ Languages support</strong>
    306                             <li><strong>GPP, TCF, USP Consent signals</strong>
    307                             <li><strong>For GDPR, CCPA, LGPD, PDPA, CPRA, PIPL</strong>
    308                             <li><strong>More popup UI choices and easy mode</strong>
    309                             <li><strong>Fully customisable multiple stages consent collection pop-ups, bars</strong>
    310                             <li><strong>Multiple languages support</strong>
    311                             <li><strong>Data analytics and inisght dashboard</strong>
    312                             <li><strong>One-tag Implementation</strong>
    313                             <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS Support</strong>
    314                             <li><strong>Prebid.js and Header bidding support</strong>
    315                             <li><strong>Cookie ePrivacy consent support</strong>
    316                             <li><strong>Website cookie discovery and disclose</strong>
    317                             <li><strong>Javascript and cookie blocking</strong>
    318                             <li><strong>Consent rate analytics and insight</strong>
    319                             <li><strong>Support: [email protected]</strong>
    320                         </ul>
    321                         <a class="button button-primary" href="https://app.uniconsent.com/app/register?utm_source=wp" target="_blank">Get Started</a>
    322                     </div>
    323                 </div>
    324             </div>
    325 
    326         </div>
    327 
    328         </div>
    329         <?php
    330 
    331     }
    332  
    333     public function add_unic_admin_pages() {
    334 
    335         $unic_admin_page = add_menu_page(
    336             'UniConsent CMP',
    337             'UniConsent CMP',
    338             'administrator',
    339             'unic-options',
    340             array( $this, 'unic_options' )
     31        wp_enqueue_style(
     32            'unic-admin-style',
     33            plugin_dir_url( __FILE__ ) . 'style.css',
     34            array(),
     35            '1.0.0'
    34136        );
    342 
    343     }
    344 
    345     public function unic_options_page_init() {
    346 
    347         register_setting(
    348             'unic-general-config', // Option group
    349             'unic_license', // Option name
    350             array(
    351                 'type' => 'string',
    352                 'sanitize_callback' => array( $this, 'sanitize_text' )
    353             )
     37       
     38        wp_enqueue_script(
     39            'unic-admin-script',
     40            plugin_dir_url( __FILE__ ) . 'views.js',
     41            array('jquery'),
     42            '1.0.0',
     43            true
    35444        );
    355 
    356         register_setting(
    357             'unic-general-config', // Option group
    358             'unic_language', // Option name
    359             array(
    360                 'type' => 'string',
    361                 'sanitize_callback' => array( $this, 'sanitize_text' )
    362             )
    363         );
    364 
    365         register_setting(
    366             'unic-general-config', // Option group
    367             'unic_type', // Option name
    368             array(
    369                 'type' => 'string',
    370                 'sanitize_callback' => array( $this, 'sanitize_text' )
    371             )
    372         );
    373 
    374         register_setting(
    375             'unic-general-config', // Option group
    376             'unic_region', // Option name
    377             array(
    378                 'type' => 'string',
    379                 'sanitize_callback' => array( $this, 'sanitize_text' )
    380             )
    381         );
    382 
    383         register_setting(
    384             'unic-general-config', // Option group
    385             'unic_company', // Option name
    386             array(
    387                 'type' => 'string',
    388                 'sanitize_callback' => array( $this, 'sanitize_text' )
    389             )
    390         );
    391 
    392         register_setting(
    393             'unic-general-config', // Option group
    394             'unic_logo', // Option name
    395             array(
    396                 'type' => 'string',
    397                 'sanitize_callback' => array( $this, 'sanitize_text' )
    398             )
    399         );
    400 
    401         register_setting(
    402             'unic-general-config', // Option group
    403             'unic_policy_url', // Option name
    404             array(
    405                 'type' => 'string',
    406                 'sanitize_callback' => array( $this, 'sanitize_text' )
    407             )
    408         );
    409 
    410         register_setting(
    411             'unic-general-config', // Option group
    412             'unic_enable_iab', // Option name
    413             array(
    414                 'type' => 'string',
    415                 'sanitize_callback' => array( $this, 'sanitize_text' )
    416             )
    417         );
    418 
    419         register_setting(
    420             'unic-general-config', // Option group
    421             'unic_enable_gdpr', // Option name
    422             array(
    423                 'type' => 'string',
    424                 'sanitize_callback' => array( $this, 'sanitize_text' )
    425             )
    426         );
    427 
    428         register_setting(
    429             'unic-general-config', // Option group
    430             'unic_enable_ccpa', // Option name
    431             array(
    432                 'type' => 'string',
    433                 'sanitize_callback' => array( $this, 'sanitize_text' )
    434             )
    435         );
    436 
    437     }
    438 
    439     public function sanitize_text( $input ) {
    440 
    441         $input = sanitize_text_field( $input );
    442         return $input;
    443 
    444     }
    445 
    446     public function sanitize_url( $input ) {
    447 
    448         $input = esc_url( $input );
    449         return $input;
    450 
    45145    }
    45246}
  • uniconsent-cmp/trunk/admin/index.php

    r2338228 r3457463  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2020 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
  • uniconsent-cmp/trunk/includes/class-unic-cmp.php

    r3376800 r3457463  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.6.2';
     22            $this->version = '1.6.3';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/trunk/uniconsent-cmp.php

    r3376800 r3457463  
    44* Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
    55* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
    6 * Version: 1.6.2
     6* Version: 1.6.3
    77* Author: UniConsent
    88* Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
     
    1414}
    1515
    16 define( 'UNIC_CMP_VERSION', '1.6.2' );
     16define( 'UNIC_CMP_VERSION', '1.6.3' );
    1717
    1818function activate_unic_cmp() {
     
    4040        plugin_dir_url(__FILE__) . 'public/js/unic.min.js',
    4141        array(),
    42         '1.6.2',
     42        '1.6.3',
    4343        true
    4444    );
Note: See TracChangeset for help on using the changeset viewer.