Plugin Directory

Changeset 2475189


Ignore:
Timestamp:
02/15/2021 11:08:06 PM (5 years ago)
Author:
cookiehub
Message:

Added support for Polylang

Location:
cookiehub/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cookiehub/trunk/cookiehub.php

    r2472931 r2475189  
    44Plugin URI: https://www.cookiehub.com/wordpress
    55Description: CookieHub is a complete Cookie Consent Solution that you can easily integrate on your website. The widget can be customized to match your brand and is compliant with cookie laws, including GDPR.
    6 Version: 0.2.1
     6Version: 0.2.2
    77Author: CookieHub
    88Author URI: https://www.cookiehub.com/
  • cookiehub/trunk/includes/ch-admin.php

    r2472913 r2475189  
    321321    {
    322322        printf(
    323             '<input type="checkbox" id="language" name="dcchub_option_name[dcchub_language]" value="1" '. checked( 1, $this->options['dcchub_language'], false ) .' /> <p style="max-width:500px">When this feature is enabled, the CookieHub display language will match your web sites language either by using the configured language (in Settings -> General) or the language configured by the WPML plugin. Please note that you will have to enable all languages supported by your web site in the CookieHub Portal.</p>'           
     323            '<input type="checkbox" id="language" name="dcchub_option_name[dcchub_language]" value="1" '. checked( 1, $this->options['dcchub_language'], false ) .' /> <p style="max-width:500px">When this feature is enabled, the CookieHub display language will match your web sites language either by using the configured language (in Settings -> General) or the language configured by the WPML or Polylang plugins. Please note that you will have to enable all languages supported by your web site in the CookieHub Portal.</p>'           
    324324        );
    325325    }
  • cookiehub/trunk/includes/ch-generate.php

    r2472925 r2475189  
    1717            if ($detectLanguage && function_exists('icl_object_id') ) {
    1818                $lang = ICL_LANGUAGE_CODE;             
     19            }
     20
     21            if ($detectLanguage && function_exists('pll_current_language') ) {
     22                $lang = pll_current_language('slug');             
    1923            }
    2024           
  • cookiehub/trunk/readme.txt

    r2472925 r2475189  
    11=== CookieHub - GDPR Compliant Cookie Consent Solution ===
    22Contributors: cookiehub
    3 Tags: cookies, cookie consent, cmp, cookie dialog, cookie widget, consent, wpml
     3Tags: cookies, cookie consent, cmp, cookie dialog, cookie widget, consent, wpml, polylang
    44Requires at least: 5.2
    55Tested up to: 5.6.1
    6 Stable tag: 0.2.1
     6Stable tag: 0.2.2
    77License: GPLv2 or later
    88
     
    3232== Changelog ==
    3333
     34= 0.2.2 =
     35*Release Date - 15 February 2021*
     36
     37Added Polylang support to control the display language
     38
    3439= 0.2.1 =
    3540*Release Date - 11 February 2021*
Note: See TracChangeset for help on using the changeset viewer.