Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/legacy.tar
Назад
public/class-cookie-law-info-public.php 0000777 00000041340 15251221700 0014101 0 ustar 00 <?php /** * The public-facing functionality of the plugin. * * @link http://cookielawinfo.com/ * @since 1.6.6 * * @package Cookie_Law_Info * @subpackage Cookie_Law_Info/public */ /** * The public-facing functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for how to * enqueue the public-facing stylesheet and JavaScript. * * @package Cookie_Law_Info * @subpackage Cookie_Law_Info/public * @author WebToffee <info@webtoffee.com> */ class Cookie_Law_Info_Public { /** * The ID of this plugin. * * @since 1.6.6 * @access private * @var string $plugin_name The ID of this plugin. */ public $plugin_name; /** * The version of this plugin. * * @since 1.6.6 * @access private * @var string $version The current version of this plugin. */ public $version; public $plugin_obj; /* * module list, Module folder and main file must be same as that of module name * Please check the `register_modules` method for more details */ private $modules = array( 'script-blocker', 'shortcode', ); public static $existing_modules = array(); public $cookie_categories; /** * Initialize the class and set its properties. * * @since 1.6.6 * @param string $plugin_name The name of the plugin. * @param string $version The version of this plugin. */ public function __construct( $plugin_name, $version, $plugin_obj ) { $this->plugin_name = $plugin_name; $this->version = $version; $this->plugin_obj = $plugin_obj; register_activation_hook( CLI_PLUGIN_FILENAME, array( $this, 'activator' ) ); } public function activator() { $activation_transient = wp_validate_boolean( get_transient( '_wt_cli_first_time_activation' ) ); if ( Cookie_Law_Info::maybe_first_time_install() === true ) { $js_blocking = wp_validate_boolean( Cookie_Law_Info::get_js_option() ); if ( $js_blocking === false ) { update_option( 'cookielawinfo_js_blocking', 'yes' ); } } } /** * Set Category Cookies If Empty * * @since 1.7.7 */ public function cli_set_category_cookies() { $js_blocking_enabled = Cookie_Law_Info::wt_cli_is_js_blocking_active(); if ( $js_blocking_enabled === false ) { $cookie_category_data = apply_filters( 'wt_cli_cookie_categories', array() ); $the_options = Cookie_Law_Info::get_settings(); if ( $the_options['is_on'] == true ) { foreach ( $cookie_category_data as $key => $data ) { if ( empty( $_COOKIE[ "cookielawinfo-checkbox-$key" ] ) ) { $category_enabled = isset( $data['enabled'] ) ? $data['enabled'] : false; $cookie_value = ( isset( $data['default_state'] ) && $data['default_state'] === true ) ? 'yes' : 'no'; if ( $category_enabled === false ) { return false; } else { if ( true === apply_filters( 'wt_cli_set_secure_cookies', false ) ) { @setcookie( "cookielawinfo-checkbox-$key", $cookie_value, time() + 3600, '/', '', true ); } else { @setcookie( "cookielawinfo-checkbox-$key", $cookie_value, time() + 3600, '/' ); } } } } } } } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.6.6 */ public function enqueue_styles() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Cookie_Law_Info_Loader as all of the hooks are defined * in that particular class. * * The Cookie_Law_Info_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ $the_options = Cookie_Law_Info::get_settings(); if ( $the_options['is_on'] == true ) { wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cookie-law-info-public.css', array(), $this->version, 'all' ); wp_enqueue_style( $this->plugin_name . '-gdpr', plugin_dir_url( __FILE__ ) . 'css/cookie-law-info-gdpr.css', array(), $this->version, 'all' ); // this style will include only when shortcode is called wp_register_style( $this->plugin_name . '-table', plugin_dir_url( __FILE__ ) . 'css/cookie-law-info-table.css', array(), $this->version, 'all' ); } } /** * Register the JavaScript for the public-facing side of the site. * * @since 1.6.6 */ public function enqueue_scripts() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Cookie_Law_Info_Loader as all of the hooks are defined * in that particular class. * * The Cookie_Law_Info_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ $the_options = Cookie_Law_Info::get_settings(); $ccpa_enabled = ( isset( $the_options['ccpa_enabled'] ) ? $the_options['ccpa_enabled'] : false ); $ccpa_region_based = ( isset( $the_options['ccpa_region_based'] ) ? $the_options['ccpa_region_based'] : false ); $ccpa_enable_bar = ( isset( $the_options['ccpa_enable_bar'] ) ? $the_options['ccpa_enable_bar'] : false ); $ccpa_type = ( isset( $the_options['consent_type'] ) ? $the_options['consent_type'] : 'gdpr' ); $js_blocking_enabled = Cookie_Law_Info::wt_cli_is_js_blocking_active(); $enable_custom_integration = apply_filters( 'wt_cli_enable_plugin_integration', false ); $trigger_dom_reload = apply_filters( 'wt_cli_script_blocker_trigger_dom_refresh', false ); if ( $the_options['is_on'] == true ) { $non_necessary_cookie_ids = Cookie_Law_Info::get_non_necessary_cookie_ids(); $cli_cookie_data = array( 'nn_cookie_ids' => ! empty( $non_necessary_cookie_ids ) ? $non_necessary_cookie_ids : array(), 'cookielist' => array(), 'non_necessary_cookies' => $this->get_cookies_by_category(), 'ccpaEnabled' => $ccpa_enabled, 'ccpaRegionBased' => $ccpa_region_based, 'ccpaBarEnabled' => $ccpa_enable_bar, 'strictlyEnabled' => Cookie_Law_Info_Cookies::get_instance()->get_strictly_necessory_categories(), 'ccpaType' => $ccpa_type, 'js_blocking' => $js_blocking_enabled, 'custom_integration' => $enable_custom_integration, 'triggerDomRefresh' => $trigger_dom_reload, 'secure_cookies' => apply_filters( 'wt_cli_set_secure_cookies', false ), ); wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cookie-law-info-public.js', array( 'jquery' ), $this->version, false ); wp_localize_script( $this->plugin_name, 'Cli_Data', $cli_cookie_data ); wp_localize_script( $this->plugin_name, 'cli_cookiebar_settings', Cookie_Law_Info::get_json_settings() ); wp_localize_script( $this->plugin_name, 'log_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); } } /** Registers modules: public+admin */ public function common_modules() { foreach ( $this->modules as $module ) { $module_file = plugin_dir_path( __FILE__ ) . "modules/$module/$module.php"; if ( file_exists( $module_file ) ) { self::$existing_modules[] = $module; // this is for module_exits checking require_once $module_file; } } } public static function module_exists( $module ) { return in_array( $module, self::$existing_modules ); } /** Removes leading # characters from a string */ public static function cookielawinfo_remove_hash( $str ) { if ( $str[0] == '#' ) { $str = substr( $str, 1, strlen( $str ) ); } else { return $str; } return self::cookielawinfo_remove_hash( $str ); } /* /* Outputs the cookie control script in the footer /* N.B. This script MUST be output in the footer. /* This function should be attached to the wp_footer action hook. */ public function cookielawinfo_inject_cli_script() { $the_options = Cookie_Law_Info::get_settings(); $show_cookie_bar = true; if ( apply_filters( 'wt_cli_hide_bar_on_page_editor', true ) && $this->is_page_editor_active() ) { $show_cookie_bar = false; } if ( $the_options['is_on'] == true && $show_cookie_bar ) { // Output the HTML in the footer: $message = nl2br( $the_options['notify_message'] ); $str = do_shortcode( stripslashes( $message ) ); $head = trim( stripslashes( $the_options['bar_heading_text'] ) ); $notify_html = '<div id="' . $this->cookielawinfo_remove_hash( $the_options['notify_div_id'] ) . '" data-nosnippet="true">' . ( $head != '' ? '<h5 class="cli_messagebar_head">' . wp_kses_post( $head ) . '</h5>' : '' ) . '<span>' . $str . '</span></div>'; $show_again = stripslashes( $the_options['showagain_text'] ); $notify_html .= '<div id="' . $this->cookielawinfo_remove_hash( $the_options['showagain_div_id'] ) . '" style="display:none;" data-nosnippet="true"><span id="cookie_hdr_showagain">' . esc_html( $show_again ) . '</span></div>'; global $wp_query; $current_obj = get_queried_object(); $post_slug = ''; if ( is_object( $current_obj ) ) { if ( is_category() || is_tag() ) { $post_slug = isset( $current_obj->slug ) ? $current_obj->slug : ''; } elseif ( is_archive() ) { $post_slug = isset( $current_obj->rewrite ) && isset( $current_obj->rewrite['slug'] ) ? $current_obj->rewrite['slug'] : ''; } else { if ( isset( $current_obj->post_name ) ) { $post_slug = $current_obj->post_name; } } } $notify_html = apply_filters( 'cli_show_cookie_bar_only_on_selected_pages', $notify_html, $post_slug ); require_once plugin_dir_path( __FILE__ ) . 'views/cookie-law-info_bar.php'; } } /* Print scripts or data in the head tag on the front end. */ public function include_user_accepted_cookielawinfo() { $this->wt_cli_print_scripts( true ); } public function wt_cli_head_scripts() { } public function wt_cli_print_scripts( $head = false ) { $the_options = Cookie_Law_Info::get_settings(); $advanced_script_rendering = Cookie_Law_Info::wt_cli_is_js_blocking_active(); if ( $the_options['is_on'] == true && ! is_admin() ) { $cookie_categories = apply_filters( 'wt_cli_cookie_categories', array() ); if ( ! empty( $cookie_categories ) ) { foreach ( $cookie_categories as $slug => $data ) { if ( isset( $data['status'] ) && $data['status'] === true ) { if ( $head === false ) { $scripts = $data['body_scripts']; } else { $scripts = $data['head_scripts']; } if ( ! empty( $scripts ) ) { $this->process_scripts( $scripts, $slug, $advanced_script_rendering, $head ); } } } } } } public function process_scripts( $script, $slug, $advanced_script_rendering, $head ) { if ( $advanced_script_rendering === false ) { if ( $this->check_consent( $slug ) === true ) { echo $script; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } else { echo $this->pre_process_scripts( $slug, $script, $head ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } public function check_consent( $slug ) { $preference_cookie = isset( $_COOKIE[ 'cookielawinfo-checkbox-' . $slug ] ) ? sanitize_text_field( wp_unslash( $_COOKIE[ 'cookielawinfo-checkbox-' . $slug ] ) ) : 'no'; $main_cookie = isset( $_COOKIE['viewed_cookie_policy'] ) ? sanitize_text_field( wp_unslash( $_COOKIE['viewed_cookie_policy'] ) ) : 'no'; if ( $main_cookie === 'yes' && $preference_cookie === 'yes' || isset( $_GET['cli_bypass'] ) && get_option( 'CLI_BYPASS' ) == 1 ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return true; } return false; } public function pre_process_scripts( $slug, $script, $head ) { $position = 'body'; if ( $head === true ) { $position = 'head'; } $replace = 'data-cli-class="cli-blocker-script" data-cli-script-type="' . $slug . '" data-cli-block="true" data-cli-element-position="' . $position . '"'; $scripts = $this->replace_script_attribute_type( $script, $replace ); return $scripts; } /* Print scripts or data in the body tag on the front end. */ public function include_user_accepted_cookielawinfo_in_body() { $this->wt_cli_print_scripts(); } /** * Desceiption * * @since 1.8.9 * @param string script * @param string replace * @return string */ public function replace_script_attribute_type( $script, $replace ) { $textarr = wp_html_split( $script ); $replace_script = $script; $script_array = ( isset( $textarr ) && is_array( $textarr ) ) ? $textarr : array(); $changed = false; $script_type = 'text/plain'; foreach ( $script_array as $i => $html ) { if ( preg_match( '/<script[^\>]*?\>/m', $script_array[ $i ] ) ) { $changed = true; if ( preg_match( '/<script.*(type=(?:"|\')(.*?)(?:"|\')).*?>/', $script_array[ $i ] ) && preg_match( '/<script.*(type=(?:"|\')text\/javascript(.*?)(?:"|\')).*?>/', $script_array[ $i ] ) ) { preg_match( '/<script.*(type=(?:"|\')text\/javascript(.*?)(?:"|\')).*?>/', $script_array[ $i ], $output_array ); $re = preg_quote( $output_array[1], '/' ); if ( ! empty( $output_array ) ) { $script_array[ $i ] = preg_replace( '/' . $re . '/', 'type="' . $script_type . '"' . ' ' . $replace, $script_array[ $i ], 1 ); } } else { $script_array[ $i ] = str_replace( '<script', '<script type="' . $script_type . '"' . ' ' . $replace, $script_array[ $i ] ); } } } if ( $changed === true ) { $replace_script = implode( $script_array ); } return $replace_script; } public function wt_cli_bypass_script_blocking() { $bypass_blocking = false; $the_options = Cookie_Law_Info::get_settings(); $ccpa_enabled = Cookie_Law_Info::sanitise_settings( 'ccpa_enabled', ( isset( $the_options['ccpa_enabled'] ) ? $the_options['ccpa_enabled'] : false ) ); $ccpa_bar_enabled = Cookie_Law_Info::sanitise_settings( 'ccpa_enable_bar', ( isset( $the_options['ccpa_enable_bar'] ) ? $the_options['ccpa_enable_bar'] : false ) ); $consent_type = Cookie_Law_Info::sanitise_settings( 'consent_type', ( isset( $the_options['consent_type'] ) ? $the_options['consent_type'] : 'gdpr' ) ); if ( $ccpa_enabled === true && $consent_type === 'ccpa' ) { if ( $ccpa_bar_enabled === false ) { if ( ! isset( $_COOKIE['viewed_cookie_policy'] ) && self::do_not_sell_optout() === false ) { $bypass_blocking = true; } } } return $bypass_blocking; } /** * Check whether opted in CCPA or not * * @since 1.0.0 * @return bool */ public static function do_not_sell_optout() { $preference_cookie = 'CookieLawInfoConsent'; $ccpa_optout = false; if ( isset( $_COOKIE[ $preference_cookie ] ) ) { $json_cookie = json_decode( base64_decode( sanitize_text_field( wp_unslash( $_COOKIE[ $preference_cookie ] ) ) ) ); $ccpa_optout = ( isset( $json_cookie->ccpaOptout ) ? $json_cookie->ccpaOptout : false ); } return $ccpa_optout; } public function get_cookies_by_category() { $cookie_categories = apply_filters( 'wt_cli_cookie_categories', array() ); $categories = array(); if ( ! empty( $cookie_categories ) ) { foreach ( $cookie_categories as $slug => $data ) { if ( isset( $data['status'] ) && $data['status'] === true ) { $cookies = ( isset( $data['cookies'] ) && is_array( $data['cookies'] ) ) ? $data['cookies'] : array(); $cookie_list = array(); $strict = isset( $data['strict'] ) ? $data['strict'] : false; if ( ! empty( $cookies ) ) { foreach ( $cookies as $key => $cookie ) { $sensitivity = get_post_meta( $cookie->ID, '_cli_cookie_sensitivity', true ); $cookie_title = get_post_meta( $cookie->ID, '_cli_cookie_slugid', true ); $cookie_id = ( ' ' !== $cookie_title ) ? $cookie_title : $cookie->post_title; if ( 'non-necessary' === $sensitivity || false === $strict ) { if ( false === $this->maybe_plugin_cookie( $cookie_id ) ) { $cookie_list[] = $cookie_id; } } } } } if ( ! empty( $cookie_list ) ) { $categories[ $slug ] = $cookie_list; } } } return $categories; } public function maybe_plugin_cookie( $cookie ) { if ( 'viewed_cookie_policy' === $cookie || false !== strpos( $cookie, 'cookielawinfo-checkbox' ) ) { return true; } return false; } /** * Check whether any page editor is active or not * * @since 2.0.5 * @return bool */ public function is_page_editor_active() { global $wp_customize; if ( isset( $_GET['et_fb'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended || ( defined( 'ET_FB_ENABLED' ) && ET_FB_ENABLED ) || isset( $_GET['elementor-preview'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended || isset( $_POST['cs_preview_state'] ) // phpcs:ignore WordPress.Security.NonceVerification.Missing || isset( $wp_customize ) ) { return true; } return false; } } public/css/cookie-law-info-public.css 0000777 00000006042 15251221700 0013567 0 ustar 00 #cookie-law-info-bar { font-size: 15px; margin: 0 auto; padding: 12px 10px; position: absolute; text-align: center; box-sizing: border-box; width:100%; z-index: 9999; /* box-shadow:rgba(0,0,0,.5) 0px 5px 50px; */ display: none; left:0px; font-weight:300; box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3); } #cookie-law-info-again { font-size: 10pt; margin: 0; padding:5px 10px; text-align: center; z-index: 9999; cursor: pointer; box-shadow: #161616 2px 2px 5px 2px; } #cookie-law-info-bar span { vertical-align: middle; } /** Buttons (http://papermashup.com/demos/css-buttons) */ .cli-plugin-button, .cli-plugin-button:visited { display: inline-block; padding: 9px 12px; color: #fff; text-decoration: none; position: relative; cursor: pointer; margin-left: 5px; text-decoration: none; } .cli-plugin-main-link { margin-left:0px; font-weight: 550; text-decoration: underline; } .cli-plugin-button:hover { background-color: #111; color: #fff; text-decoration: none; } .small.cli-plugin-button, .small.cli-plugin-button:visited { font-size: 11px; } .cli-plugin-button, .cli-plugin-button:visited, .medium.cli-plugin-button, .medium.cli-plugin-button:visited { font-size: 13px; font-weight: 400; line-height: 1; } .large.cli-plugin-button, .large.cli-plugin-button:visited { font-size: 14px; padding: 8px 14px 9px; } .super.cli-plugin-button, .super.cli-plugin-button:visited { font-size: 34px; padding: 8px 14px 9px; } .pink.cli-plugin-button, .magenta.cli-plugin-button:visited { background-color: #e22092; } .pink.cli-plugin-button:hover { background-color: #c81e82; } .green.cli-plugin-button, .green.cli-plugin-button:visited { background-color: #91bd09; } .green.cli-plugin-button:hover { background-color: #749a02; } .red.cli-plugin-button, .red.cli-plugin-button:visited { background-color: #e62727; } .red.cli-plugin-button:hover { background-color: #cf2525; } .orange.cli-plugin-button, .orange.cli-plugin-button:visited { background-color: #ff5c00; } .orange.cli-plugin-button:hover { background-color: #d45500; } .blue.cli-plugin-button, .blue.cli-plugin-button:visited { background-color: #2981e4; } .blue.cli-plugin-button:hover { background-color: #2575cf; } .yellow.cli-plugin-button, .yellow.cli-plugin-button:visited { background-color: #ffb515; } .yellow.cli-plugin-button:hover { background-color: #fc9200; } .cli-plugin-button{ margin-top:5px; } .cli-bar-popup{ -moz-background-clip: padding; -webkit-background-clip: padding; background-clip: padding-box; -webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px; padding:20px; } .cli-powered_by_p{width:100% !important; display:block !important; color:#333; clear:both; font-style:italic !important; font-size:12px !important; margin-top:15px !important; } .cli-powered_by_a{color:#333; font-weight:600 !important; font-size:12px !important;} /** * Added extra space between each cookie bar action elements @since 1.8.9 */ .cli-plugin-main-link.cli-plugin-button { text-decoration: none; } .cli-plugin-main-link.cli-plugin-button { margin-left: 5px; } public/css/cookie-law-info-gdpr.css 0000777 00000065161 15251221700 0013254 0 ustar 00 .gdpr-container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .gdpr-row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; } .gdpr-col-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .gdpr-col-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .gdpr-align-items-stretch { -ms-flex-align: stretch!important; align-items: stretch!important; } .gdpr-d-flex { display: -ms-flexbox!important; display: flex!important; } .gdpr-px-0 { padding-left: 0; padding-right: 0; } .modal-backdrop.show { opacity: .8; } .modal-open { overflow: hidden } .modal-open .gdpr-modal { overflow-x: hidden; overflow-y: auto } .gdpr-modal.fade .gdpr-modal-dialog { transition: -webkit-transform .3s ease-out; transition: transform .3s ease-out; transition: transform .3s ease-out,-webkit-transform .3s ease-out; -webkit-transform: translate(0,-25%); transform: translate(0,-25%) } .gdpr-modal.show .gdpr-modal-dialog { -webkit-transform: translate(0,0); transform: translate(0,0) } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1039; background-color: #000 } .modal-backdrop.fade { opacity: 0 } .modal-backdrop.show { opacity: .5 } .gdpr-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; outline: 0 } .gdpr-modal a { text-decoration: none; } .gdpr-modal .gdpr-modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; min-height: calc(100% - (.5rem * 2)) } @media (min-width: 576px) { .gdpr-modal .gdpr-modal-dialog { max-width:500px; margin: 1.75rem auto; min-height: calc(100% - (1.75rem * 2)); } } @media (min-width: 992px) { .gdpr-modal .gdpr-modal-dialog { max-width: 900px; } } .gdpr-modal-content { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: .3rem; outline: 0 } .gdpr-modal .row { margin: 0 -15px; } .gdpr-modal .modal-body { padding: 0; position: relative; -ms-flex: 1 1 auto; flex: 1 1 auto; } .gdpr-modal .close { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 0; background-color: transparent; border: 0; -webkit-appearance: none; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; } .gdpr-modal .close:focus { outline: 0; } .gdpr-switch { display: inline-block; position: relative; min-height: 1px; padding-left: 70px; font-size: 14px; } .gdpr-switch input[type="checkbox"] { display:none; } .gdpr-switch .gdpr-slider { background-color: #e3e1e8; height: 24px; width: 50px; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; } .gdpr-switch .gdpr-slider:before { background-color: #fff; bottom: 2px; content: ""; height: 20px; left: 2px; position: absolute; transition: .4s; width: 20px; } .gdpr-switch input:checked + .gdpr-slider { background-color:rgb(99, 179, 95); } .gdpr-switch input:checked + .gdpr-slider:before { transform: translateX(26px); } .gdpr-switch .gdpr-slider { border-radius: 34px; } .gdpr-switch .gdpr-slider:before { border-radius: 50%; } .gdpr-tab-content>.gdpr-tab-pane { display: none; } .gdpr-tab-content>.active { display: block; } .gdpr-fade { transition: opacity .15s linear; } .gdpr-nav-pills { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; -ms-flex-direction: column !important; flex-direction: column !important; align-items: stretch !important; -ms-align-items: stretch !important; } .nav.gdpr-nav-pills, .gdpr-tab-content { width: 100%; padding: 30px; } .nav.gdpr-nav-pills { background: #f3f3f3; } .nav.gdpr-nav-pills .gdpr-nav-link { border: 1px solid #0070ad; margin-bottom: 10px; color: #0070ad; font-size: 14px; display: block; padding: .5rem 1rem; border-radius: .25rem; } .nav.gdpr-nav-pills .gdpr-nav-link.active, .nav.gdpr-nav-pills .show>.gdpr-nav-link { background-color: #0070ad; border: 1px solid #0070ad; } .nav.gdpr-nav-pills .gdpr-nav-link.active { color: #ffffff; } .gdpr-tab-content .gdpr-button-wrapper { padding-top: 30px; margin-top: 30px; border-top: 1px solid #d6d6d6; } .gdpr-tab-content .gdpr-button-wrapper .btn-gdpr { background-color: #0070ad; border-color: #0070ad; color: #ffffff; font-size: 14px; display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; } .gdpr-tab-content p { color: #343438; font-size: 14px; margin-top: 0; } .gdpr-tab-content h4 { font-size: 20px; margin-bottom: .5rem; margin-top: 0; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; } .cli-container-fluid { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .cli-row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; } .cli-col-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .cli-col-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .cli-align-items-stretch { -ms-flex-align: stretch!important; align-items: stretch!important; } .cli-d-flex { display: -ms-flexbox!important; display: flex!important; } .cli-px-0 { padding-left: 0; padding-right: 0; } .cli-btn { cursor: pointer; font-size: 14px; display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid transparent; padding: .5rem 1.25rem; line-height: 1; border-radius: .25rem; transition: all .15s ease-in-out; } .cli-btn:hover { opacity: .8; } .cli-read-more-link { cursor: pointer; font-size: 15px; font-weight: 500; text-decoration: underline; } .cli-btn:focus { outline: 0; } .cli-modal-backdrop.cli-show { opacity: .8; } .cli-modal-open { overflow: hidden } .cli-barmodal-open { overflow: hidden } .cli-modal-open .cli-modal { overflow-x: hidden; overflow-y: auto } .cli-modal.cli-fade .cli-modal-dialog { transition: -webkit-transform .3s ease-out; transition: transform .3s ease-out; transition: transform .3s ease-out,-webkit-transform .3s ease-out; -webkit-transform: translate(0,-25%); transform: translate(0,-25%) } .cli-modal.cli-show .cli-modal-dialog { -webkit-transform: translate(0,0); transform: translate(0,0) } .cli-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; display: none; } .cli-modal-backdrop.cli-fade { opacity: 0 } .cli-modal-backdrop.cli-show { opacity: .5; display: block; } .cli-modal.cli-show { display: block; } .cli-modal a { text-decoration: none; } .cli-modal .cli-modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; min-height: calc(100% - (.5rem * 2)) } @media (min-width: 576px) { .cli-modal .cli-modal-dialog { max-width:500px; margin: 1.75rem auto; min-height: calc(100% - (1.75rem * 2)) } } @media (min-width: 992px) { .cli-modal .cli-modal-dialog { max-width: 900px; } } .cli-modal-content { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border-radius: .3rem; outline: 0 } .cli-modal .row { margin: 0 -15px; } .cli-modal .modal-body { padding: 0; position: relative; -ms-flex: 1 1 auto; flex: 1 1 auto; } .cli-modal .cli-modal-close { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 0; background-color: transparent !important; border: 0; -webkit-appearance: none; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; } .cli-modal .cli-modal-close:focus { outline: 0; } .cli-switch { display: inline-block; position: relative; min-height: 1px; padding-left: 70px; font-size: 14px; } .cli-switch input[type="checkbox"] { display:none; } .cli-switch .cli-slider { background-color: #e3e1e8; height: 24px; width: 50px; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; } .cli-switch .cli-slider:before { background-color: #fff; bottom: 2px; content: ""; height: 20px; left: 2px; position: absolute; transition: .4s; width: 20px; } .cli-switch input:checked + .cli-slider { background-color: #00acad } .cli-switch input:checked + .cli-slider:before { transform: translateX(26px); } .cli-switch .cli-slider { border-radius: 34px; } .cli-switch .cli-slider:before { border-radius: 50%; } .cli-tab-content { background: #ffffff; } .cli-tab-content>.cli-active { display: block; } .cli-fade { transition: opacity .15s linear; } .cli-nav-pills { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; -ms-flex-direction: column; flex-direction: column; } .cli-nav-pills, .cli-tab-content { width: 100%; padding: 30px; } @media (max-width: 767px) { .cli-nav-pills, .cli-tab-content { padding: 30px 10px; } } .cli-nav-pills { background: #f3f3f3; } .cli-nav-pills .cli-nav-link { border: 1px solid #00acad; margin-bottom: 10px; color: #00acad; font-size: 14px; display: block; padding: .5rem 1rem; border-radius: .25rem; cursor: pointer } .cli-nav-pills .cli-nav-link.cli-active, .cli-nav-pills .cli-show>.cli-nav-link { background-color: #00acad; border: 1px solid #00acad; } .cli-nav-pills .cli-nav-link.cli-active { color: #ffffff; } .cli-tab-content .cli-button-wrapper { padding-top: 30px; margin-top: 30px; border-top: 1px solid #d6d6d6; } .cli-tab-content p { color: #343438; font-size: 14px; margin-top: 0; } .cli-tab-content h4 { font-size: 20px; margin-bottom: 1.5rem; margin-top: 0; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; } /* Settings Popup */ .cli-container-fluid { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .cli-row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; } .cli-col-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .cli-col-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; flex-direction: column; } .cli-align-items-stretch { -ms-flex-align: stretch!important; align-items: stretch!important; } .cli-d-flex { display: -ms-flexbox!important; display: flex!important; } .cli-px-0 { padding-left: 0; padding-right: 0; } .cli-btn { cursor: pointer; font-size: 14px; display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid transparent; padding: .5rem 1.25rem; line-height: 1; border-radius: .25rem; transition: all .15s ease-in-out; } .cli-btn:hover { opacity: .8; } .cli-read-more-link { cursor: pointer; font-size: 15px; font-weight: 500; text-decoration: underline; } .cli-btn:focus { outline: 0; } .cli-modal-backdrop.cli-show { opacity: .8; } .cli-modal-open { overflow: hidden } .cli-barmodal-open { overflow: hidden } .cli-modal-open .cli-modal { overflow-x: hidden; overflow-y: auto } .cli-modal.cli-fade .cli-modal-dialog { transition: -webkit-transform .3s ease-out; transition: transform .3s ease-out; transition: transform .3s ease-out,-webkit-transform .3s ease-out; -webkit-transform: translate(0,-25%); transform: translate(0,-25%) } .cli-modal.cli-show .cli-modal-dialog { -webkit-transform: translate(0,0); transform: translate(0,0) } .cli-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; -webkit-transform:scale(0); transform:scale(0); transition: opacity ease-in-out 0.5s; } .cli-modal-backdrop.cli-fade { opacity: 0; } .cli-modal-backdrop.cli-show { opacity: .5; -webkit-transform:scale(1); transform:scale(1); } .cli-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; transform: scale(0); overflow: hidden; outline: 0; display: none; } .cli-modal a { text-decoration: none; } .cli-modal .cli-modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; min-height: calc(100% - (.5rem * 2)) } @media (min-width: 576px) { .cli-modal .cli-modal-dialog { max-width:500px; margin: 1.75rem auto; min-height: calc(100% - (1.75rem * 2)) } } .cli-modal-content { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border-radius: .2rem; box-sizing: border-box; outline: 0 } .cli-modal .row { margin: 0 -15px; } .cli-modal .modal-body { padding: 0; position: relative; -ms-flex: 1 1 auto; flex: 1 1 auto; } .cli-modal .cli-modal-close:focus { outline: 0; } .cli-switch { display: inline-block; position: relative; min-height: 1px; padding-left: 38px; font-size: 14px; } .cli-switch input[type="checkbox"] { display:none; } .cli-switch .cli-slider { background-color: #e3e1e8; height: 20px; width: 38px; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; } .cli-switch .cli-slider:before { background-color: #fff; bottom: 2px; content: ""; height: 15px; left: 3px; position: absolute; transition: .4s; width: 15px; } .cli-switch input:checked + .cli-slider { background-color: #61a229; } .cli-switch input:checked + .cli-slider:before { transform: translateX(18px); } .cli-switch .cli-slider { border-radius: 34px; font-size:0; } .cli-switch .cli-slider:before { border-radius: 50%; } .cli-tab-content { background: #ffffff; } .cli-nav-pills { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; -ms-flex-direction: column; flex-direction: column; } .cli-nav-pills, .cli-tab-content { width: 100%; padding:5px 30px 5px 5px; box-sizing: border-box; } @media (max-width: 767px) { .cli-nav-pills, .cli-tab-content { padding: 30px 10px; } } .cli-nav-pills { background: #fff; } .cli-nav-pills .cli-nav-link { border: 1px solid #cccccc; margin-bottom: 10px; color:#2a2a2a; font-size: 14px; display: block; padding: .5rem 1rem; border-radius: .25rem; cursor: pointer } .cli-nav-pills .cli-nav-link.cli-active, .cli-nav-pills .cli-show>.cli-nav-link { background-color: #f6f6f9; border: 1px solid #cccccc; } .cli-nav-pills .cli-nav-link.cli-active { color:#2a2a2a; } .cli-tab-content .cli-button-wrapper { padding-top: 30px; margin-top: 30px; border-top: 1px solid #d6d6d6; } .cli-tab-content p { color: #343438; font-size: 14px; margin-top: 0; } .cli-tab-content h4 { font-size: 20px; margin-bottom: 1.5rem; margin-top: 0; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; } /* Cookie Settings In Bar */ #cookie-law-info-bar .cli-nav-pills,#cookie-law-info-bar .cli-tab-content,#cookie-law-info-bar .cli-nav-pills .cli-show>.cli-nav-link,#cookie-law-info-bar a.cli-nav-link.cli-active{ background: transparent; } #cookie-law-info-bar .cli-nav-pills .cli-nav-link.cli-active,#cookie-law-info-bar .cli-nav-link,#cookie-law-info-bar .cli-tab-container p,#cookie-law-info-bar span.cli-necessary-caption,#cookie-law-info-bar .cli-switch .cli-slider:after { color:inherit; } #cookie-law-info-bar .cli-tab-header a:before { border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; } #cookie-law-info-bar .cli-row { margin-top:20px; } #cookie-law-info-bar .cli-col-4 { -webkit-box-flex: 0; -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } #cookie-law-info-bar .cli-col-8 { flex-basis: 0; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .cli-wrapper { max-width: 90%; float: none; margin: 0 auto; } #cookie-law-info-bar .cli-tab-content h4 { margin-bottom:0.5rem; } #cookie-law-info-bar .cli-nav-pills .cli-nav-link { padding: .2rem 0.5rem; } #cookie-law-info-bar .cli-tab-container { display:none; text-align:left; } /* Popup Footer Styles */ .cli-tab-footer .cli-btn { background-color: #00acad; padding: 10px 15px; text-decoration:none; } .cli-tab-footer .wt-cli-privacy-accept-btn { background-color: #61a229; color: #ffffff; border-radius: 0; } .cli-tab-footer { width:100%; text-align:right; padding: 20px 0; } /* version 2.0 */ .cli-col-12 { width:100%; } .cli-tab-header { display: flex; justify-content: space-between; } .cli-tab-header a:before { width: 10px; height: 2px; left: 0; top: calc(50% - 1px); } .cli-tab-header a:after { width: 2px; height: 10px; left: 4px; top: calc(50% - 5px); -webkit-transform: none; transform: none; } .cli-tab-header a:before { width: 7px; height: 7px; border-right: 1px solid #4a6e78; border-bottom: 1px solid #4a6e78; content: " "; transform: rotate(-45deg); -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; margin-right:10px; } .cli-tab-header a.cli-nav-link { position: relative; display: flex; align-items: center; font-size:14px; color:#000; text-transform: capitalize; } .cli-tab-header.cli-tab-active .cli-nav-link:before { transform: rotate(45deg); -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .cli-tab-header { border-radius: 5px; padding: 12px 15px; cursor: pointer; transition: background-color 0.2s ease-out 0.3s, color 0.2s ease-out 0s; background-color:#f2f2f2; } .cli-modal .cli-modal-close { position: absolute; right: 0; top: 0; z-index: 1; -webkit-appearance: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; padding: 10px; background: transparent; border:none; min-width: 40px; } .cli-tab-container h4,.cli-tab-container h1 { font-family: inherit; font-size: 16px; margin-bottom: 15px; margin:10px 0; } #cliSettingsPopup .cli-tab-section-container { padding-top: 12px; } .cli-tab-container p ,.cli-privacy-content-text{ font-size: 14px; line-height: 1.4; margin-top: 0; padding: 0; color: #000; } .wt-cli-privacy { display:none; } .cli-tab-content { display:none; } .cli-tab-section .cli-tab-content { padding: 10px 20px 5px 20px; } .cli-tab-section { margin-top:5px; } @media (min-width: 992px) { .cli-modal .cli-modal-dialog { max-width: 645px; } } .cli-switch .cli-slider:after{ content: attr(data-cli-disable); position: absolute; right: 50px; color: #000; font-size:12px; text-align:right; min-width: 80px; } .cli-switch input:checked + .cli-slider:after { content: attr(data-cli-enable); } .cli-privacy-overview:not(.cli-collapsed) .cli-privacy-content { max-height: 60px; transition: max-height 0.15s ease-out; overflow: hidden; } a.cli-privacy-readmore { font-size: 12px; margin-top: 12px; display: inline-block; padding-bottom: 0; cursor: pointer; color:#000; text-decoration: underline; } .cli-modal-footer { position: relative; } a.cli-privacy-readmore:before { content: attr(data-readmore-text); } .cli-collapsed a.cli-privacy-readmore:before { content: attr(data-readless-text); } .cli-collapsed .cli-privacy-content { transition: max-height 0.25s ease-in; } .cli-privacy-content p { margin-bottom:0; } .cli-modal-close svg { fill: #000; } span.cli-necessary-caption { color: #000; font-size: 12px; } .cli-tab-section.cli-privacy-tab { display: none; } #cookie-law-info-bar .cli-tab-section.cli-privacy-tab { display: block; } #cookie-law-info-bar .cli-privacy-overview { display: none; } .cli-tab-container .cli-row { max-height: 500px; overflow-y: auto; } .cli-modal.cli-blowup.cli-out { z-index: -1; } .cli-modal.cli-blowup { z-index: 999999; transform: scale(1); } .cli-modal.cli-blowup .cli-modal-dialog { animation: blowUpModal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; } .cli-modal.cli-blowup.cli-out .cli-modal-dialog { animation: blowUpModalTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; } @keyframes blowUpContent { 0% { transform: scale(1); opacity: 1; } 99.9% { transform: scale(2); opacity: 0; } 100% { transform: scale(0); } } @keyframes blowUpContentTwo { 0% { transform: scale(2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } @keyframes blowUpModal { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes blowUpModalTwo { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(0); opacity: 0; } } .cli-tab-section .cookielawinfo-row-cat-table td, .cli-tab-section .cookielawinfo-row-cat-table th { font-size: 12px; } .cli_settings_button { cursor: pointer; } /* Accessibility Fix */ .wt-cli-sr-only { display: none; font-size:16px; } /* Changes for CCPA Version : 1.8.9 */ a.wt-cli-element.cli_cookie_close_button { text-decoration: none; color: #333333; font-size: 22px; line-height: 22px; cursor: pointer; position: absolute; right: 10px; top: 5px; } /* GDPR Bar Version 2 */ .cli-bar-container{ float: none; margin: 0 auto; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; justify-content: space-between; -webkit-box-align: center; -moz-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; } .cli-bar-btn_container { margin-left: 20px; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-align: center; -moz-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; flex-wrap: nowrap; } .cli-style-v2 a { cursor: pointer; } .cli-bar-btn_container a { white-space: nowrap; } .cli-style-v2 .cli-plugin-main-link { font-weight:inherit; } .cli-style-v2 { font-size: 11pt; line-height: 18px; font-weight:normal; } #cookie-law-info-bar[data-cli-type="widget"] .cli-bar-container,#cookie-law-info-bar[data-cli-type="popup"] .cli-bar-container{ display: block; } .cli-style-v2 .cli-bar-message { width: 70%; text-align: left; } #cookie-law-info-bar[data-cli-type="widget"] .cli-bar-message,#cookie-law-info-bar[data-cli-type="popup"] .cli-bar-message { width:100%; } #cookie-law-info-bar[data-cli-type="widget"] .cli-style-v2 .cli-bar-btn_container { margin-top:8px; margin-left: 0px; flex-wrap: wrap; } /* #cookie-law-info-bar[data-cli-type="widget"] .cli-style-v2 .cli-bar-message { text-align: center; } */ #cookie-law-info-bar[data-cli-type="popup"] .cli-style-v2 .cli-bar-btn_container { margin-top:8px; margin-left: 0px; } #cookie-law-info-bar[data-cli-style="cli-style-v2"] .cli_messagebar_head{ text-align: left; /* padding-left: 15px; */ margin-bottom: 5px; margin-top: 0px; font-size: 16px; } /* #cookie-law-info-bar[data-cli-type="widget"] .cli-bar-container.cli-style-v2 { padding-left: 0px; padding-right: 0px; } */ .cli-style-v2 .cli-bar-message .wt-cli-ccpa-element,.cli-style-v2 .cli-bar-message .wt-cli-ccpa-checkbox { margin-top: 5px; } .cli-style-v2 .cli-bar-btn_container .cli_action_button , .cli-style-v2 .cli-bar-btn_container .cli-plugin-main-link, .cli-style-v2 .cli-bar-btn_container .cli_settings_button { margin-left: 5px; } .wt-cli-ccpa-checkbox label { font-size: inherit; cursor: pointer; margin: 0px 0px 0px 5px; } /* .cli-bar-container.cli-style-v2 { padding-left: 15px; padding-right: 15px; padding-top: 2px; padding-bottom: 2px; } */ #cookie-law-info-bar[data-cli-style="cli-style-v2"] { padding: 14px 25px; } #cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="widget"] { padding:32px 30px; } #cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="popup"] { padding: 32px 45px; } .cli-style-v2 .cli-plugin-main-link:not(.cli-plugin-button), .cli-style-v2 .cli_settings_button:not(.cli-plugin-button),.cli-style-v2 .cli_action_button:not(.cli-plugin-button){ text-decoration: underline; } .cli-style-v2 .cli-bar-btn_container .cli-plugin-button { margin-top: 5px; margin-bottom: 5px; } a.wt-cli-ccpa-opt-out { white-space: nowrap; text-decoration: underline; } .wt-cli-necessary-checkbox { display: none !important; } @media (max-width: 985px) { .cli-style-v2 .cli-bar-message { width:100%; } .cli-style-v2.cli-bar-container { justify-content:left; flex-wrap: wrap; } .cli-style-v2 .cli-bar-btn_container { margin-left:0px; margin-top: 10px; } #cookie-law-info-bar[data-cli-style="cli-style-v2"],#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="widget"],#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="popup"] { padding: 25px 25px; } } /* Settings popup footer section */ .wt-cli-ckyes-brand-logo { display: flex; align-items: center; font-size: 9px; color: #111111; font-weight: normal; } .wt-cli-ckyes-brand-logo img{ width: 65px; margin-left: 2px; } .wt-cli-privacy-overview-actions { padding-bottom:0; } @media only screen and (max-width: 479px) and (min-width: 320px){ .cli-style-v2 .cli-bar-btn_container { flex-wrap: wrap; } } /* Fix: HTML validation error due to the enclosing of <p> tags on category description */ .wt-cli-cookie-description { font-size: 14px; line-height: 1.4; margin-top: 0; padding: 0; color: #000; } public/css/cookie-law-info-table.css 0000777 00000013741 15251221700 0013404 0 ustar 00 /** Responsive table courtesy of Mark Wiltshire: mark@bamboorocketapps.com (thanks!) For more styles try: http://icant.co.uk/csstablegallery/ ---- Generic styles: Here you could e.g. customise width of column 1 and 2, or add a generic roll-over effect on table rows */ .cookielawinfo-column-1 {width: 25%;} .cookielawinfo-column-2 {width: 10%;} .cookielawinfo-column-3 {width: 15%;} .cookielawinfo-column-4 {width: 50%;} /** Simple style */ .cookielawinfo-simple thead {width: 100%;} .cookielawinfo-simple td {padding: 5px 5px 5px 0;vertical-align: top;} .cookielawinfo-simple thead th {padding-right: 10px;text-align: left;} /** Modern style */ .cookielawinfo-modern {border: 1px solid #e3e3e3;background-color: #f2f2f2;width: 100%;border-radius: 6px;-webkit-border-radius: 6px;-moz-border-radius: 6px;} .cookielawinfo-modern td, .cookielawinfo-modern th {padding: 5px;color: #333;} .cookielawinfo-modern thead {font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;padding: .2em 0 .2em .5em;text-align: left;color: #4B4B4B;background-color: #C8C8C8;background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#e3e3e3), color-stop(.6,#B3B3B3));background-image: -moz-linear-gradient(top, #D6D6D6, #B0B0B0, #B3B3B3 90%);border-bottom: solid 1px #999;} .cookielawinfo-modern th {font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 17px;line-height: 20px;font-style: normal;font-weight: normal;text-align: left;text-shadow: white 1px 1px 1px;} .cookielawinfo-modern td {line-height: 20px;font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 14px;border-bottom: 1px solid #fff;border-top: 1px solid #fff;} .cookielawinfo-modern tr.cookielawinfo-row:hover {background-color: #fff;} /** Elegant style */ .cookielawinfo-elegant {border: 1px solid #DFDFDF;background-color: #F9F9F9;width: 100%;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;font-family: Arial,"Bitstream Vera Sans",Helvetica,Verdana,sans-serif;color: #333;} .cookielawinfo-elegant tr {border-top-color: white;border-bottom: 1px solid #DFDFDF;color: #555;} .cookielawinfo-elegant th {text-shadow: rgba(255, 255, 255, 0.796875) 0px 1px 0px;font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-weight: normal;padding: 7px 7px 8px;text-align: left;line-height: 1.3em;font-size: 14px;} .cookielawinfo-elegant td {font-size: 12px;padding: 4px 7px 2px;vertical-align: top;} /** Rounded style */ .cookielawinfo-rounded {background-color: #f5f5f5;padding: 5px;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;border: 1px solid #ebebeb;} .cookielawinfo-rounded td, .rounded th {padding: 1px 5px;} .cookielawinfo-rounded thead {text-shadow: 0 1px 0 white;color: #999;} .cookielawinfo-rounded th {text-align: left;text-transform: uppercase;font-size: 11pt;border-bottom: 1px solid #fff;padding: 1px 5px;} .cookielawinfo-rounded td {font-size: 10pt;padding: 5px;} .cookielawinfo-rounded tr.cookielawinfo-row:hover {background-color: #fff;} /** Classic Style */ table.cookielawinfo-classic {font-family: Verdana, Arial, Helvetica, sans-serif;border-collapse: collapse;border-left: 1px solid #ccc;border-top: 1px solid #ccc; color: #333;} table.cookielawinfo-classic thead tr th {text-transform: uppercase;background: #e2e2e2;} table.cookielawinfo-classic tfoot tr th, table.cookielawinfo-classic tfoot tr td {text-transform: uppercase;color: #000;font-weight: bold;} table.cookielawinfo-classic tfoot tr th {width: 20%;} table.cookielawinfo-classic tfoot tr td {width: 80%;} table.cookielawinfo-classic td, table.cookielawinfo-classic th {border-right: 1px solid #ccc;border-bottom: 1px solid #ccc;padding: 5px;line-height: 1.8em;font-size: 0.8em;vertical-align: top;width: 20%;} table.cookielawinfo-classic tr.odd th, table.cookielawinfo-classic tr.odd td {background: #efefef;} /* "Winter Blues" CSS theme for CSS Table Gallery (http://icant.co.uk/csstablegallery/) by Gunta Klavina (http://www.klavina.com) */ table.cookielawinfo-winter {font: 85% "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", sans-serif;padding: 0; margin: 10px 0 20px; border-collapse: collapse; color: #333; background: #F3F5F7;} table.cookielawinfo-winter a {color: #3A4856; text-decoration: none; border-bottom: 1px solid #C6C8CB;} table.cookielawinfo-winter a:visited {color: #777;} table.cookielawinfo-winter a:hover {color: #000;} table.cookielawinfo-winter caption {text-align: left; text-transform: uppercase; padding-bottom: 10px; font: 200% "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", sans-serif;} table.cookielawinfo-winter thead th {background: #3A4856; padding: 15px 10px; color: #fff; text-align: left; font-weight: normal;} table.cookielawinfo-winter tbody {border-left: 1px solid #EAECEE; border-right: 1px solid #EAECEE;} table.cookielawinfo-winter tbody {border-bottom: 1px solid #EAECEE;} table.cookielawinfo-winter tbody td, table.cookielawinfo-winter tbody th {padding: 10px; background: url("../../images/td_back.gif") repeat-x; text-align: left;} table.cookielawinfo-winter tbody tr {background: #F3F5F7;} table.cookielawinfo-winter tbody tr.odd {background: #F0F2F4;} table.cookielawinfo-winter tbody tr:hover {background: #EAECEE; color: #111;} table.cookielawinfo-winter tfoot td, table.cookielawinfo-winter tfoot th, table.cookielawinfo-winter tfoot tr {text-align: left; font: 120% "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", sans-serif; text-transform: uppercase; background: #fff; padding: 10px;} /** 27/05/2013: responsive table by Mark Wiltshire */ @media(max-width:800px) { table.cookielawinfo-row-cat-table td, table.cookielawinfo-row-cat-table th { width:23%; font-size:12px; word-wrap: break-word; } table.cookielawinfo-row-cat-table .cookielawinfo-column-4, table.cookielawinfo-row-cat-table .cookielawinfo-column-4 { width:45%; } } .cookielawinfo-row-cat-title{ border-bottom: 1px solid #eee; text-align: center; } .cookielawinfo-row-cat-title-head{ text-align: center; } .cookielawinfo-row-cat-table{ width: 99%; margin-left: 5px; } public/js/cookie-law-info-public.js 0000777 00000102611 15251221700 0013236 0 ustar 00 CLI_ACCEPT_COOKIE_NAME = (typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy'); CLI_PREFERENCE_COOKIE = (typeof CLI_PREFERENCE_COOKIE !== 'undefined' ? CLI_PREFERENCE_COOKIE : 'CookieLawInfoConsent'); CLI_ACCEPT_COOKIE_EXPIRE = (typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365); CLI_COOKIEBAR_AS_POPUP = (typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false); var CLI_Cookie = { set: function (name, value, days) { var secure = ""; if (true === Boolean(Cli_Data.secure_cookies)) { secure = ";secure"; } if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else { var expires = ""; } document.cookie = name + "=" + value + secure + expires + "; path=/"; if (days < 1) { host_name = window.location.hostname; document.cookie = name + "=" + value + expires + "; path=/; domain=." + host_name + ";"; if (host_name.indexOf("www") != 1) { var host_name_withoutwww = host_name.replace('www', ''); document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";"; } host_name = host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1)); document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";"; } }, read: function (name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; }, erase: function (name) { this.set(name, "", -10); }, exists: function (name) { return (this.read(name) !== null); }, getallcookies: function () { var pairs = document.cookie.split(";"); var cookieslist = {}; for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split("="); cookieslist[(pair[0] + '').trim()] = unescape(pair[1]); } return cookieslist; } } var CLI = { bar_config: {}, showagain_config: {}, allowedCategories: [], js_blocking_enabled: false, set: function (args) { if (typeof JSON.parse !== "function") { console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); return; } if (typeof args.settings !== 'object') { this.settings = JSON.parse(args.settings); } else { this.settings = args.settings; } this.js_blocking_enabled = Boolean(Cli_Data.js_blocking); this.settings = args.settings; this.bar_elm = jQuery(this.settings.notify_div_id); this.showagain_elm = jQuery(this.settings.showagain_div_id); this.settingsModal = jQuery('#cliSettingsPopup'); /* buttons */ this.main_button = jQuery('.cli-plugin-main-button'); this.main_link = jQuery('.cli-plugin-main-link'); this.reject_link = jQuery('.cookie_action_close_header_reject'); this.delete_link = jQuery(".cookielawinfo-cookie-delete"); this.settings_button = jQuery('.cli_settings_button'); this.accept_all_button = jQuery('.wt-cli-accept-all-btn'); if (this.settings.cookie_bar_as == 'popup') { CLI_COOKIEBAR_AS_POPUP = true; } this.mayBeSetPreferenceCookie(); this.addStyleAttribute(); this.configBar(); this.toggleBar(); this.attachDelete(); this.attachEvents(); this.configButtons(); this.reviewConsent(); var cli_hidebar_on_readmore = this.hideBarInReadMoreLink(); if (Boolean(this.settings.scroll_close) === true && cli_hidebar_on_readmore === false) { window.addEventListener("scroll", CLI.closeOnScroll, false); } }, hideBarInReadMoreLink: function () { if (Boolean(CLI.settings.button_2_hidebar) === true && this.main_link.length > 0 && this.main_link.hasClass('cli-minimize-bar')) { this.hideHeader(); cliBlocker.cookieBar(false); this.showagain_elm.slideDown(this.settings.animate_speed_show); return true; } return false; }, attachEvents: function () { jQuery(document).on( 'click', '.wt-cli-privacy-btn', function (e) { e.preventDefault(); CLI.accept_close(); CLI.settingsPopUpClose(); } ); jQuery('.wt-cli-accept-btn').on( "click", function (e) { e.preventDefault(); CLI.acceptRejectCookies(jQuery(this)); }); jQuery('.wt-cli-accept-all-btn').on( "click", function (e) { e.preventDefault(); CLI.acceptRejectCookies(jQuery(this), 'accept'); }); jQuery('.wt-cli-reject-btn').on( "click", function (e) { e.preventDefault(); CLI.acceptRejectCookies(jQuery(this), 'reject'); }); this.settingsPopUp(); this.settingsTabbedAccordion(); this.toggleUserPreferenceCheckBox(); this.hideCookieBarOnClose(); this.cookieLawInfoRunCallBacks(); }, acceptRejectCookies(element, action = 'custom') { var open_link = element[0].hasAttribute("href") && element.attr("href") != '#' ? true : false; var new_window = false; if (action == 'accept') { this.enableAllCookies(); this.accept_close(); new_window = CLI.settings.button_7_new_win ? true : false; } else if (action == 'reject') { this.disableAllCookies(); this.reject_close(); new_window = Boolean(this.settings.button_3_new_win) ? true : false; } else { this.accept_close(); new_window = Boolean(this.settings.button_1_new_win) ? true : false; } if (open_link) { if (new_window) { window.open(element.attr("href"), '_blank'); } else { window.location.href = element.attr("href"); } } }, toggleUserPreferenceCheckBox: function () { jQuery('.cli-user-preference-checkbox').each( function () { categoryCookie = 'cookielawinfo-' + jQuery(this).attr('data-id'); categoryCookieValue = CLI_Cookie.read(categoryCookie); if (categoryCookieValue == null) { if (jQuery(this).is(':checked')) { CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); } else { CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE); } } else { if (categoryCookieValue == "yes") { jQuery(this).prop("checked", true); } else { jQuery(this).prop("checked", false); } } } ); jQuery('.cli-user-preference-checkbox').on( "click", function (e) { var dataID = jQuery(this).attr('data-id'); var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']'); if (jQuery(this).is(':checked')) { CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); currentToggleElm.prop('checked', true); } else { CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE); currentToggleElm.prop('checked', false); } CLI.checkCategories(); CLI.generateConsent(); } ); }, settingsPopUp: function () { jQuery(document).on( 'click', '.cli_settings_button', function (e) { e.preventDefault(); CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 }); CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup"); jQuery('body').addClass("cli-modal-open"); jQuery(".cli-settings-overlay").addClass("cli-show"); jQuery("#cookie-law-info-bar").css({ 'opacity': .1 }); if (!jQuery('.cli-settings-mobile').is(':visible')) { CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click"); } } ); jQuery('#cliModalClose').on( "click", function (e) { CLI.settingsPopUpClose(); } ); CLI.settingsModal.on( "click", function (e) { if (!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) { CLI.settingsPopUpClose(); } } ); jQuery('.cli_enable_all_btn').on( "click", function (e) { var cli_toggle_btn = jQuery(this); var enable_text = cli_toggle_btn.attr('data-enable-text'); var disable_text = cli_toggle_btn.attr('data-disable-text'); if (cli_toggle_btn.hasClass('cli-enabled')) { CLI.disableAllCookies(); cli_toggle_btn.html(enable_text); } else { CLI.enableAllCookies(); cli_toggle_btn.html(disable_text); } jQuery(this).toggleClass('cli-enabled'); } ); this.privacyReadmore(); }, settingsTabbedAccordion: function () { jQuery(".cli-tab-header").on( "click", function (e) { if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) { if (jQuery(this).hasClass("cli-tab-active")) { jQuery(this).removeClass("cli-tab-active"); jQuery(this) .siblings(".cli-tab-content") .slideUp(200); } else { jQuery(".cli-tab-header").removeClass("cli-tab-active"); jQuery(this).addClass("cli-tab-active"); jQuery(".cli-tab-content").slideUp(200); jQuery(this) .siblings(".cli-tab-content") .slideDown(200); } } } ); }, settingsPopUpClose: function () { this.settingsModal.removeClass('cli-show'); this.settingsModal.addClass('cli-out'); jQuery('body').removeClass("cli-modal-open"); jQuery(".cli-settings-overlay").removeClass("cli-show"); jQuery("#cookie-law-info-bar").css({ 'opacity': 1 }); }, privacyReadmore: function () { var el = jQuery('.cli-privacy-content .cli-privacy-content-text'); if (el.length > 0) { var clone = el.clone(), originalHtml = clone.html(), originalHeight = el.outerHeight(), Trunc = { addReadmore: function (textBlock) { if (textBlock.html().length > 250) { jQuery('.cli-privacy-readmore').show(); } else { jQuery('.cli-privacy-readmore').hide(); } }, truncateText: function (textBlock) { var strippedText = jQuery('<div />').html(textBlock.html()); strippedText.find('table').remove(); textBlock.html(strippedText.html()); currentText = textBlock.text(); if (currentText.trim().length > 250) { var newStr = currentText.substring(0, 250); textBlock.empty().html(newStr).append('...'); } }, replaceText: function (textBlock, original) { return textBlock.html(original); } }; Trunc.addReadmore(el); Trunc.truncateText(el); jQuery('a.cli-privacy-readmore').on( "click", function (e) { e.preventDefault(); if (jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) { Trunc.truncateText(el); jQuery('.cli-privacy-overview').removeClass('cli-collapsed'); el.css('height', '100%'); } else { jQuery('.cli-privacy-overview').addClass('cli-collapsed'); Trunc.replaceText(el, originalHtml); } } ); } }, attachDelete: function () { this.delete_link.on( "click", function (e) { CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); for (var k in Cli_Data.nn_cookie_ids) { CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); } CLI.generateConsent(); return false; } ); }, configButtons: function () { /*[cookie_button] */ this.main_button.css('color', this.settings.button_1_link_colour); if (Boolean(this.settings.button_1_as_button)) { this.main_button.css('background-color', this.settings.button_1_button_colour); this.main_button.on( 'mouseenter', function () { jQuery(this).css('background-color', CLI.settings.button_1_button_hover); } ) .on( 'mouseleave', function () { jQuery(this).css('background-color', CLI.settings.button_1_button_colour); } ); } /* [cookie_link] */ this.main_link.css('color', this.settings.button_2_link_colour); if (Boolean(this.settings.button_2_as_button)) { this.main_link.css('background-color', this.settings.button_2_button_colour); this.main_link.on( 'mouseenter', function () { jQuery(this).css('background-color', CLI.settings.button_2_button_hover); } ) .on( 'mouseleave', function () { jQuery(this).css('background-color', CLI.settings.button_2_button_colour); } ); } /* [cookie_reject] */ this.reject_link.css('color', this.settings.button_3_link_colour); if (Boolean(this.settings.button_3_as_button)) { this.reject_link.css('background-color', this.settings.button_3_button_colour); this.reject_link.on( 'mouseenter', function () { jQuery(this).css('background-color', CLI.settings.button_3_button_hover); } ) .on( 'mouseleave', function () { jQuery(this).css('background-color', CLI.settings.button_3_button_colour); } ); } /* [cookie_settings] */ this.settings_button.css('color', this.settings.button_4_link_colour); if (Boolean(this.settings.button_4_as_button)) { this.settings_button.css('background-color', this.settings.button_4_button_colour); this.settings_button.on( 'mouseenter', function () { jQuery(this).css('background-color', CLI.settings.button_4_button_hover); } ) .on( 'mouseleave', function () { jQuery(this).css('background-color', CLI.settings.button_4_button_colour); } ); } /* [cookie_accept_all] */ this.accept_all_button.css('color', this.settings.button_7_link_colour); if (this.settings.button_7_as_button) { this.accept_all_button.css('background-color', this.settings.button_7_button_colour); this.accept_all_button.on( 'mouseenter', function () { jQuery(this).css('background-color', CLI.settings.button_7_button_hover); } ) .on( 'mouseleave', function () { jQuery(this).css('background-color', CLI.settings.button_7_button_colour); } ); } }, toggleBar: function () { if (CLI_COOKIEBAR_AS_POPUP) { this.barAsPopUp(1); } if (CLI.settings.cookie_bar_as == 'widget') { this.barAsWidget(1); } if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { this.displayHeader(); } else { this.hideHeader(); } if (Boolean(this.settings.show_once_yn)) { setTimeout( function () { CLI.close_header(); }, CLI.settings.show_once ); } if (CLI.js_blocking_enabled === false) { if (Boolean(Cli_Data.ccpaEnabled) === true) { if (Cli_Data.ccpaType === 'ccpa' && Boolean(Cli_Data.ccpaBarEnabled) === false) { cliBlocker.cookieBar(false); } } else { jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); } } this.showagain_elm.on( "click", function (e) { e.preventDefault(); CLI.showagain_elm.slideUp( CLI.settings.animate_speed_hide, function () { CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); if (CLI_COOKIEBAR_AS_POPUP) { CLI.showPopupOverlay(); } } ); } ); }, configShowAgain: function () { this.showagain_config = { 'background-color': this.settings.background, 'color': this.l1hs(this.settings.text), 'position': 'fixed', 'font-family': this.settings.font_family }; if (Boolean(this.settings.border_on)) { var border_to_hide = 'border-' + this.settings.notify_position_vertical; this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border); this.showagain_config[border_to_hide] = 'none'; } var cli_win = jQuery(window); var cli_winw = cli_win.width(); var showagain_x_pos = this.settings.showagain_x_position; if (cli_winw < 300) { showagain_x_pos = 10; this.showagain_config.width = cli_winw - 20; } else { this.showagain_config.width = 'auto'; } var cli_defw = cli_winw > 400 ? 500 : cli_winw - 20; if (CLI_COOKIEBAR_AS_POPUP) { /* cookie bar as popup */ var sa_pos = this.settings.popup_showagain_position; var sa_pos_arr = sa_pos.split('-'); if (sa_pos_arr[1] == 'left') { this.showagain_config.left = showagain_x_pos; } else if (sa_pos_arr[1] == 'right') { this.showagain_config.right = showagain_x_pos; } if (sa_pos_arr[0] == 'top') { this.showagain_config.top = 0; } else if (sa_pos_arr[0] == 'bottom') { this.showagain_config.bottom = 0; } this.bar_config['position'] = 'fixed'; } else if (this.settings.cookie_bar_as == 'widget') { this.showagain_config.bottom = 0; if (this.settings.widget_position == 'left') { this.showagain_config.left = showagain_x_pos; } else if (this.settings.widget_position == 'right') { this.showagain_config.right = showagain_x_pos; } } else { if (this.settings.notify_position_vertical == "top") { this.showagain_config.top = '0'; } else if (this.settings.notify_position_vertical == "bottom") { this.bar_config['position'] = 'fixed'; this.bar_config['bottom'] = '0'; this.showagain_config.bottom = '0'; } if (this.settings.notify_position_horizontal == "left") { this.showagain_config.left = showagain_x_pos; } else if (this.settings.notify_position_horizontal == "right") { this.showagain_config.right = showagain_x_pos; } } this.showagain_elm.css(this.showagain_config); }, configBar: function () { this.bar_config = { 'background-color': this.settings.background, 'color': this.settings.text, 'font-family': this.settings.font_family }; if (this.settings.notify_position_vertical == "top") { this.bar_config['top'] = '0'; if (Boolean(this.settings.header_fix) === true) { this.bar_config['position'] = 'fixed'; } } else { this.bar_config['bottom'] = '0'; } this.configShowAgain(); this.bar_elm.css(this.bar_config).hide(); }, l1hs: function (str) { if (str.charAt(0) == "#") { str = str.substring(1, str.length); } else { return "#" + str; } return this.l1hs(str); }, close_header: function () { CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); this.hideHeader(); }, accept_close: function () { this.hidePopupOverlay(); this.generateConsent(); this.cookieLawInfoRunCallBacks(); CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); if (Boolean(this.settings.notify_animate_hide)) { if (CLI.js_blocking_enabled === true) { this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); } else { this.bar_elm.slideUp(this.settings.animate_speed_hide); } } else { if (CLI.js_blocking_enabled === true) { this.bar_elm.hide(0, cliBlocker.runScripts); } else { this.bar_elm.hide(); } } if (Boolean(this.settings.showagain_tab)) { this.showagain_elm.slideDown(this.settings.animate_speed_show); } if (Boolean(this.settings.accept_close_reload) === true) { this.reload_current_page(); } return false; }, reject_close: function () { this.hidePopupOverlay(); this.generateConsent(); this.cookieLawInfoRunCallBacks(); for (var k in Cli_Data.nn_cookie_ids) { CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); } CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE); if (Boolean(this.settings.notify_animate_hide)) { if (CLI.js_blocking_enabled === true) { this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); } else { this.bar_elm.slideUp(this.settings.animate_speed_hide); } } else { if (CLI.js_blocking_enabled === true) { this.bar_elm.hide(cliBlocker.runScripts); } else { this.bar_elm.hide(); } } if (Boolean(this.settings.showagain_tab)) { this.showagain_elm.slideDown(this.settings.animate_speed_show); } if (Boolean(this.settings.reject_close_reload) === true) { this.reload_current_page(); } return false; }, reload_current_page: function () { window.location.reload(true); }, closeOnScroll: function () { if (window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) { CLI.accept_close(); if (Boolean(CLI.settings.scroll_close_reload) === true) { window.location.reload(); } window.removeEventListener("scroll", CLI.closeOnScroll, false); } }, displayHeader: function () { if (Boolean(this.settings.notify_animate_show)) { this.bar_elm.slideDown(this.settings.animate_speed_show); } else { this.bar_elm.show(); } this.showagain_elm.hide(); if (CLI_COOKIEBAR_AS_POPUP) { this.showPopupOverlay(); } }, hideHeader: function () { if (Boolean(this.settings.showagain_tab)) { if (Boolean(this.settings.notify_animate_show)) { this.showagain_elm.slideDown(this.settings.animate_speed_show); } else { this.showagain_elm.show(); } } else { this.showagain_elm.hide(); } this.bar_elm.slideUp(this.settings.animate_speed_show); this.hidePopupOverlay(); }, hidePopupOverlay: function () { jQuery('body').removeClass("cli-barmodal-open"); jQuery(".cli-popupbar-overlay").removeClass("cli-show"); }, showPopupOverlay: function () { if (this.bar_elm.length) { if (Boolean(this.settings.popup_overlay)) { jQuery('body').addClass("cli-barmodal-open"); jQuery(".cli-popupbar-overlay").addClass("cli-show"); } } }, barAsWidget: function (a) { var cli_elm = this.bar_elm; cli_elm.attr('data-cli-type', 'widget'); var cli_win = jQuery(window); var cli_winh = cli_win.height() - 40; var cli_winw = cli_win.width(); var cli_defw = cli_winw > 400 ? 300 : cli_winw - 30; cli_elm.css( { 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box' } ); if (this.checkifStyleAttributeExist() === false) { cli_elm.css({ 'padding': '25px 15px' }); } if (this.settings.widget_position == 'left') { cli_elm.css( { 'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto' } ); } else { cli_elm.css( { 'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto' } ); } if (a) { this.setResize(); } }, barAsPopUp: function (a) { if (typeof cookie_law_info_bar_as_popup === 'function') { return false; } var cli_elm = this.bar_elm; cli_elm.attr('data-cli-type', 'popup'); var cli_win = jQuery(window); var cli_winh = cli_win.height() - 40; var cli_winw = cli_win.width(); var cli_defw = cli_winw > 700 ? 500 : cli_winw - 20; cli_elm.css( { 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto' } ).addClass('cli-bar-popup cli-modal-content'); if (this.checkifStyleAttributeExist() === false) { cli_elm.css({ 'padding': '25px 15px' }); } cli_h = cli_elm.height(); li_h = cli_h < 200 ? 200 : cli_h; cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 }); setTimeout( function () { cli_elm.css( { 'bottom': '' } ); }, 100 ); if (a) { this.setResize(); } }, setResize: function () { var resizeTmr = null; jQuery(window).resize( function () { clearTimeout(resizeTmr); resizeTmr = setTimeout( function () { if (CLI_COOKIEBAR_AS_POPUP) { CLI.barAsPopUp(); } if (CLI.settings.cookie_bar_as == 'widget') { CLI.barAsWidget(); } CLI.configShowAgain(); }, 500 ); } ); }, enableAllCookies: function () { jQuery('.cli-user-preference-checkbox').each( function () { var cli_chkbox_elm = jQuery(this); var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); if (cli_chkbox_data_id != 'checkbox-necessary') { cli_chkbox_elm.prop('checked', true); CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); } } ); }, disableAllCookies: function () { jQuery('.cli-user-preference-checkbox').each( function () { var cli_chkbox_elm = jQuery(this); var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); cliCategorySlug = cli_chkbox_data_id.replace('checkbox-', ''); if (Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) { cli_chkbox_elm.prop('checked', false); CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE); } } ); }, hideCookieBarOnClose: function () { jQuery(document).on( 'click', '.cli_cookie_close_button', function (e) { e.preventDefault(); var elm = jQuery(this); if (Cli_Data.ccpaType === 'ccpa') { CLI.enableAllCookies(); } CLI.accept_close(); } ); }, checkCategories: function () { var cliAllowedCategories = []; var cli_categories = {}; jQuery('.cli-user-preference-checkbox').each( function () { var status = false; cli_chkbox_elm = jQuery(this); cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); cli_chkbox_data_id_trimmed = cli_chkbox_data_id.replace('-', '_') if (jQuery(cli_chkbox_elm).is(':checked')) { status = true; cliAllowedCategories.push(cli_chkbox_data_id); } cli_categories[cli_chkbox_data_id_trimmed] = status; } ); CLI.allowedCategories = cliAllowedCategories; }, cookieLawInfoRunCallBacks: function () { this.checkCategories(); if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes') { if ("function" == typeof CookieLawInfo_Accept_Callback) { CookieLawInfo_Accept_Callback(); } } }, generateConsent: function () { var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); cliConsent = {}; if (preferenceCookie !== null) { cliConsent = window.atob(preferenceCookie); cliConsent = JSON.parse(cliConsent); } cliConsent.ver = Cli_Data.consentVersion; categories = []; jQuery('.cli-user-preference-checkbox').each( function () { categoryVal = ''; cli_chkbox_data_id = jQuery(this).attr('data-id'); cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); if (jQuery(this).is(':checked')) { categoryVal = true; } else { categoryVal = false; } cliConsent[cli_chkbox_data_id] = categoryVal; } ); cliConsent = JSON.stringify(cliConsent); cliConsent = window.btoa(cliConsent); CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE); }, addStyleAttribute: function () { var bar = this.bar_elm; var styleClass = ''; if (jQuery(bar).find('.cli-bar-container').length > 0) { styleClass = jQuery('.cli-bar-container').attr('class'); styleClass = styleClass.replace('cli-bar-container', ''); styleClass = styleClass.trim(); jQuery(bar).attr('data-cli-style', styleClass); } }, getParameterByName: function (name, url) { if (!url) { url = window.location.href; } name = name.replace(/[\[\]]/g, '\\$&'); var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url); if (!results) { return null; } if (!results[2]) { return ''; } return decodeURIComponent(results[2].replace(/\+/g, ' ')); }, CookieLawInfo_Callback: function (enableBar, enableBlocking) { enableBar = typeof enableBar !== 'undefined' ? enableBar : true; enableBlocking = typeof enableBlocking !== 'undefined' ? enableBlocking : true; if (CLI.js_blocking_enabled === true && Boolean(Cli_Data.custom_integration) === true) { cliBlocker.cookieBar(enableBar); cliBlocker.runScripts(enableBlocking); } }, checkifStyleAttributeExist: function () { var exist = false; var attr = this.bar_elm.attr('data-cli-style'); if (typeof attr !== typeof undefined && attr !== false) { exist = true; } return exist; }, reviewConsent: function () { jQuery(document).on( 'click', '.cli_manage_current_consent,.wt-cli-manage-consent-link', function () { CLI.displayHeader(); } ); }, mayBeSetPreferenceCookie: function () { if (CLI.getParameterByName('cli_bypass') === "1") { CLI.generateConsent(); } } } var cliBlocker = { blockingStatus: true, scriptsLoaded: false, ccpaEnabled: false, ccpaRegionBased: false, ccpaApplicable: false, ccpaBarEnabled: false, cliShowBar: true, isBypassEnabled: CLI.getParameterByName('cli_bypass'), checkPluginStatus: function (callbackA, callbackB) { this.ccpaEnabled = Boolean(Cli_Data.ccpaEnabled); this.ccpaRegionBased = Boolean(Cli_Data.ccpaRegionBased); this.ccpaBarEnabled = Boolean(Cli_Data.ccpaBarEnabled); if (Boolean(Cli_Data.custom_integration) === true) { callbackA(false); } else { if (this.ccpaEnabled === true) { this.ccpaApplicable = true; if (Cli_Data.ccpaType === 'ccpa') { if (this.ccpaBarEnabled !== true) { this.cliShowBar = false; this.blockingStatus = false; } } } else { jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); } if (cliBlocker.isBypassEnabled === "1") { cliBlocker.blockingStatus = false; } callbackA(this.cliShowBar); callbackB(this.blockingStatus); } }, cookieBar: function (showbar) { showbar = typeof showbar !== 'undefined' ? showbar : true; cliBlocker.cliShowBar = showbar; if (cliBlocker.cliShowBar === false) { CLI.bar_elm.hide(); CLI.showagain_elm.hide(); CLI.settingsModal.removeClass('cli-blowup cli-out'); CLI.hidePopupOverlay(); jQuery(".cli-settings-overlay").removeClass("cli-show"); } else { if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { CLI.displayHeader(); } else { CLI.hideHeader(); } } }, removeCookieByCategory: function () { if (cliBlocker.blockingStatus === true) { if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) { var non_necessary_cookies = Cli_Data.non_necessary_cookies; for (var key in non_necessary_cookies) { currentCategory = key; if (CLI.allowedCategories.indexOf(currentCategory) === -1) { var nonNecessaryCookies = non_necessary_cookies[currentCategory]; for (var i = 0; i < nonNecessaryCookies.length; i++) { if (CLI_Cookie.read(nonNecessaryCookies[i]) !== null) { CLI_Cookie.erase(nonNecessaryCookies[i]); } } } } } } }, runScripts: function (blocking) { blocking = typeof blocking !== 'undefined' ? blocking : true; cliBlocker.blockingStatus = blocking; srcReplaceableElms = ['iframe', 'IFRAME', 'EMBED', 'embed', 'OBJECT', 'object', 'IMG', 'img']; var genericFuncs = { renderByElement: function (callback) { cliScriptFuncs.renderScripts(); callback(); cliBlocker.scriptsLoaded = true; }, }; var cliScriptFuncs = { // trigger DOMContentLoaded scriptsDone: function () { if (typeof Cli_Data.triggerDomRefresh !== 'undefined') { if (Boolean(Cli_Data.triggerDomRefresh) === true) { var DOMContentLoadedEvent = document.createEvent('Event') DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true) window.document.dispatchEvent(DOMContentLoadedEvent); } } }, seq: function (arr, callback, index) { // first call, without an index if (typeof index === 'undefined') { index = 0 } arr[index]( function () { index++ if (index === arr.length) { callback() } else { cliScriptFuncs.seq(arr, callback, index) } } ) }, /* script runner */ insertScript: function ($script, callback) { var s = ''; var scriptType = $script.getAttribute('data-cli-script-type'); var elementPosition = $script.getAttribute('data-cli-element-position'); var isBlock = $script.getAttribute('data-cli-block'); var s = document.createElement('script'); var ccpaOptedOut = cliBlocker.ccpaOptedOut(); s.type = 'text/plain'; if ($script.async) { s.async = $script.async; } if ($script.defer) { s.defer = $script.defer; } if ($script.src) { s.onload = callback s.onerror = callback s.src = $script.src } else { s.textContent = $script.innerText } var attrs = jQuery($script).prop("attributes"); for (var ii = 0; ii < attrs.length; ++ii) { if (attrs[ii].nodeName !== 'id') { s.setAttribute(attrs[ii].nodeName, attrs[ii].value); } } if (cliBlocker.blockingStatus === true) { if ((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes' && CLI.allowedCategories.indexOf(scriptType) !== -1)) { s.setAttribute('data-cli-consent', 'accepted'); s.type = 'text/javascript'; } if (cliBlocker.ccpaApplicable === true) { if (ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null) { s.type = 'text/plain'; } } } else { s.type = 'text/javascript'; } if ($script.type != s.type) { if (elementPosition === 'head') { document.head.appendChild(s); } else { document.body.appendChild(s); } if (!$script.src) { callback() } $script.parentNode.removeChild($script); } else { callback(); } }, renderScripts: function () { var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]'); if ($scripts.length > 0) { var runList = [] var typeAttr Array.prototype.forEach.call( $scripts, function ($script) { // only run script tags without the type attribute // or with a javascript mime attribute value typeAttr = $script.getAttribute('type') runList.push( function (callback) { cliScriptFuncs.insertScript($script, callback) } ) } ) cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone); } } }; genericFuncs.renderByElement(cliBlocker.removeCookieByCategory); }, ccpaOptedOut: function () { var ccpaOptedOut = false; var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); if (preferenceCookie !== null) { cliConsent = window.atob(preferenceCookie); cliConsent = JSON.parse(cliConsent); if (typeof cliConsent.ccpaOptout !== 'undefined') { ccpaOptedOut = cliConsent.ccpaOptout; } } return ccpaOptedOut; } } jQuery(document).ready( function () { if (typeof cli_cookiebar_settings != 'undefined') { CLI.set( { settings: cli_cookiebar_settings } ); if (CLI.js_blocking_enabled === true) { cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts); } } } ); public/index.php 0000777 00000000033 15251221700 0007640 0 ustar 00 <?php // Silence is golden public/modules/script-blocker/integrations/facebook-for-wordpress.php 0000777 00000000427 15251221700 0022224 0 ustar 00 <?php // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } add_filter( 'wt_cli_third_party_scripts', 'wt_cli_facebook_wordpress_script' ); function wt_cli_facebook_wordpress_script( $tags ) { $tags['facebook-for-wordpress'] = 'fbq'; return $tags; } public/modules/script-blocker/integrations/google-analytics-for-wordpress.php 0000777 00000000640 15251221700 0023711 0 ustar 00 <?php // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } add_filter( 'wt_cli_third_party_scripts', 'wt_cli_google_analytics_wordpress_script' ); function wt_cli_google_analytics_wordpress_script( $tags ) { $tags['google-analytics-for-wordpress'] = array( 'mi_track_user', 'www.google-analytics.com/analytics.js', 'google-analytics-for-wordpress/assets/js/', ); return $tags; } public/modules/script-blocker/integrations/twitter-feed.php 0000777 00000000745 15251221700 0020247 0 ustar 00 <?php // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } add_filter( 'wt_cli_third_party_scripts', 'wt_cli_twitter_feed_script' ); function wt_cli_twitter_feed_script( $tags ) { $tags['twitter-feed'] = array( 'plugins/custom-twitter-feeds/js/ctf-scripts.js', 'plugins/custom-twitter-feeds/js/ctf-scripts.min.js', 'plugins/custom-twitter-feeds-pro/js/ctf-scripts.js', 'plugins/custom-twitter-feeds-pro/js/ctf-scripts.min.js', ); return $tags; } public/modules/script-blocker/integrations/instagram-feed.php 0000777 00000001243 15251221700 0020524 0 ustar 00 <?php // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } add_filter( 'wt_cli_third_party_scripts', 'wt_cli_instagram_feed_script' ); function wt_cli_instagram_feed_script( $tags ) { $tags['instagram-feed'] = array( 'plugins/instagram-feed/js/sb-instagram.min.js', 'plugins/instagram-feed/js/sb-instagram.js', 'plugins/instagram-feed/js/sbi-scripts.min.js', 'plugins/instagram-feed/js/sbi-scripts.js', 'plugins/instagram-feed-pro/js/sb-instagram.min.js', 'plugins/instagram-feed-pro/js/sb-instagram.js', 'plugins/instagram-feed-pro/js/sbi-scripts.min.js', 'plugins/instagram-feed-pro/js/sbi-scripts.js', ); return $tags; } public/modules/script-blocker/assets/js/script-blocker.js 0000777 00000004674 15251221700 0017631 0 ustar 00 (function ($) { 'use strict'; var CLIScriptBlocker = { set: function () { this.changeStatusEvent(); this.changeCategory(); this.disableEvents(); }, changeStatusEvent: function() { jQuery( '.wt-cli-plugin-status' ).on( 'change', function (e) { e.preventDefault(); CLIScriptBlocker.changeStatus( jQuery( this ) ); } ); }, disableEvents: function(){ jQuery( '.wt-cli-script-blocker-disabled' ).children().click( function(){return false;} ); jQuery( '.wt-cli-plugin-inactive' ).children().click( function(){return false;} ); }, changeStatus: function( element ) { var script_id = element.attr( 'data-script-id' ); var status = element.is( ':checked' ); var data = { 'action' : 'wt_cli_change_plugin_status', '_wpnonce' : wt_cli_script_blocker_obj.nonce, 'script_id' : script_id, 'status' : status }; jQuery.ajax( { url: wt_cli_script_blocker_obj.ajax_url, type: 'POST', data: data, dataType: 'json', success: function (response) { if (response.success === true) { cli_notify_msg.success( wt_cli_script_blocker_obj.messages.success ); } }, error: function () { cli_notify_msg.error( wt_cli_script_blocker_obj.messages.success ); } } ); }, changeCategory: function () { jQuery( '[name="cliscript_category"]' ).on( 'change', function (e) { e.preventDefault(); var element = jQuery( this ); var script_id = element.closest( 'tr' ).attr( 'data-script-id' ); var category = this.value; console.log( category ); var data = { 'action': 'cli_change_script_category', '_wpnonce': wt_cli_script_blocker_obj.nonce, 'script_id': script_id, 'category': category }; jQuery.ajax( { url: wt_cli_script_blocker_obj.ajax_url, type: 'POST', data: data, dataType: 'json', success: function (response) { if (response.success === true) { cli_notify_msg.success( wt_cli_script_blocker_obj.messages.success ); } else { cli_notify_msg.error( response.data ); } }, error: function () { cli_notify_msg.error( wt_cli_script_blocker_obj.messages.error ); } } ); } ); } } jQuery( document ).ready( function () { CLIScriptBlocker.set(); } ); })( jQuery ); public/modules/script-blocker/views/settings.php 0000777 00000022247 15251221700 0016134 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } $cli_icon = ( $script_blocker_status === true ? '<span class="dashicons dashicons-yes cli-enabled ">' : '<span class="dashicons dashicons-no-alt cli-disabled"></span>' ); $action_text = ( $script_blocker_status === true ? __( 'Disable', 'cookie-law-info' ) : __( 'Enable', 'cookie-law-info' ) ); $action_value = ( $script_blocker_status === true ? 'disabled' : 'enabled' ); $script_blocker_text = ( $script_blocker_status === true ? __( 'Script blocker is enabled.', 'cookie-law-info' ) : __( 'Script blocker is currently disabled. Enable the blocker if you want any of the below listed plugins to be auto blocked.', 'cookie-law-info' ) ); /* translators: %s: action text */ $cli_notice_text = sprintf( __( '<a id="wt-cli-script-blocker-action">%s</a>', 'cookie-law-info' ), $action_text ); // phpcs:ignore WordPress.WP.I18n.NoHtmlWrappedStrings $js_blocking_status = ( $js_blocking === false || $js_blocking === 'no' ) ? false : true; $script_blocker_class = ( $js_blocking_status === false || $script_blocker_status === false ) ? 'wt-cli-script-blocker-disabled' : ''; $advanced_settings_url = get_admin_url( null, 'edit.php?post_type=' . CLI_POST_TYPE . '&page=cookie-law-info#cookie-law-info-advanced' ); /* translators: %s: advanced settings URL */ $js_blocking_notice = sprintf( wp_kses( __( 'Advanced script rendering is currently disabled. It should be enabled for the automatic script blocker to function. <a href="%s">Enable.</a>', 'cookie-law-info' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( $advanced_settings_url ) ); $count = 0; $plugin_help_url = 'https://www.cookieyes.com/documentation/gdpr-cookie-consent-plugin/#Script_Blo_8'; ?> <style> #wt-cli-script-blocker-action { cursor: pointer; } table.cli_script_items td, table.cli_script_items th { display: table-cell !important; padding: 1em !important; vertical-align: top; line-height: 1.75em; } .cli-switch { display: inline-block; position: relative; min-height: 20px; padding-left: 38px; font-size: 14px; } .cli-switch input[type="checkbox"] { display: none; } .cli-switch .cli-slider { background-color: #e3e1e8; height: 20px; width: 38px; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; } .cli-switch .cli-slider:before { background-color: #fff; bottom: 2px; content: ""; height: 15px; left: 3px; position: absolute; transition: .4s; width: 15px; } .cli-switch input:checked+.cli-slider { background-color: #28a745; } .cli-switch input:checked+.cli-slider:before { transform: translateX(18px); } .cli-switch .cli-slider { border-radius: 34px; font-size: 0; } .cli-switch .cli-slider:before { border-radius: 50%; } .dashicons.cli-enabled { color: #46b450; } .dashicons.cli-disabled { color: #dc3232; } .wt-cli-script-blocker-disabled, .wt-cli-plugin-inactive .cli-switch { opacity: 0.5; } .cli_script_items [data-wt-cli-tooltip]:before { min-width: 220px; } .wt-cli-notice.wt-cli-info { padding: 15px 15px 15px 41px; background: #e5f5fa; position: relative; border-left: 4px solid; border-color: #00a0d2; margin-bottom: 15px; } .wt-cli-notice.wt-cli-info:before { content: "\f348"; color: #00a0d2; font-family: "dashicons"; position: absolute; left: 15px; font-size: 16px; } </style> <div class="wrap cliscript-container"> <h3><?php echo esc_html__( 'Manage Script Blocking', 'cookie-law-info' ); ?></h3> <?php if ( $js_blocking_status === false ) : ?> <div class="notice-warning notice"> <p><label><span class="dashicons dashicons-no-alt cli-disabled"></span></label> <?php echo wp_kses_post( $js_blocking_notice ); ?> </div> <?php endif; ?> <div class="notice-info notice"> <p><label><?php echo wp_kses_post( $cli_icon ); ?></label> <?php echo esc_html( $script_blocker_text ); ?> <?php echo wp_kses_post( $cli_notice_text ); ?></p> </div> <form method="post" name="script_blocker_form"> <?php if ( function_exists( 'wp_nonce_field' ) ) { wp_nonce_field( $this->module_id ); } ?> <input type="hidden" id="cli_script_blocker_state" name="cli_script_blocker_state" class="styled" value="<?php echo esc_attr( $action_value ); ?>" /> <input type="hidden" id="cli_update_script_blocker" name="cli_update_script_blocker" /> </form> <div class="wt-cli-notice wt-cli-info"> <?php echo sprintf( wp_kses( /* translators: %s: plugin help URL */ __( 'Below is the list of plugins currently supported for auto blocking. Plugins marked inactive are either not installed or activated on your website. Enabled plugins will be blocked by default on the front-end of your website prior to obtaining user consent and rendered respectively based on consent. <a href="%s" target="_blank">Read more.</a>', 'cookie-law-info' ), array( 'a' => array( 'href' => array(), 'target' => array(), ), ) ), esc_url( $plugin_help_url ) ); ?> </div> <table class="cli_script_items widefat <?php echo esc_attr( $script_blocker_class ); ?>" cellspacing="0"> <thead> <tr> <th><?php echo esc_html__( 'No', 'cookie-law-info' ); ?></th> <th><?php echo esc_html__( 'Name', 'cookie-law-info' ); ?></th> <th><?php echo esc_html__( 'Enabled', 'cookie-law-info' ); ?><span class="wt-cli-tootip" data-wt-cli-tooltip="<?php echo esc_html__( 'Enabled: Plugins will be blocked by default prior to obtaining user consent.', 'cookie-law-info' ); ?> <?php echo esc_html__( 'Disabled: Plugins will be rendered prior to obtaining consent.', 'cookie-law-info' ); ?>"><span class="wt-cli-tootip-icon"></span></span></th> <?php if ( Cookie_Law_Info_Cookies::get_instance()->check_if_old_category_table() === false ) : ?> <th><?php echo esc_html__( 'Category', 'cookie-law-info' ); ?></th> <?php endif; ?> <th><?php echo esc_html__( 'Description', 'cookie-law-info' ); ?></th> </tr> </thead> <tbody> <?php $disabled_plugins = array(); $enabled_plugins = array(); foreach ( $wt_cli_integration_list as $plugin => $data ) { $plugin_data = ( isset( $script_data[ $plugin ] ) ? $script_data[ $plugin ] : '' ); if ( ! empty( $plugin_data ) ) { if ( defined( $data['identifier'] ) || function_exists( $data['identifier'] ) || class_exists( $data['identifier'] ) ) { $plugin_data['active'] = true; $enabled_plugins[ $plugin ] = $plugin_data; } else { $plugin_data['active'] = false; $disabled_plugins[ $plugin ] = $plugin_data; } } } $plugin_list = $enabled_plugins + $disabled_plugins; if ( ! empty( $plugin_list ) ) : foreach ( $plugin_list as $plugin => $plugin_data ) : $count++; $script_id = isset( $plugin_data['id'] ) ? $plugin_data['id'] : ''; $title = isset( $plugin_data['title'] ) ? $plugin_data['title'] : ''; $description = isset( $plugin_data['description'] ) ? $plugin_data['description'] : ''; $status = isset( $plugin_data['status'] ) ? wp_validate_boolean( $plugin_data['status'] ) : false; $plugin_status = isset( $plugin_data['active'] ) ? wp_validate_boolean( $plugin_data['active'] ) : false; $category = __( 'Non-necessary', 'cookie-law-info' ); $plugins_status_text = ( $plugin_status === false ? __( 'Inactive', 'cookie-law-info' ) : '' ); $plugins_status_class = ( $plugin_status === false ? 'wt-cli-plugin-inactive' : 'wt-cli-plugin-active' ); ?> <tr class="<?php echo esc_attr( $plugins_status_class ); ?>" data-script-id="<?php echo esc_attr( $script_id ); ?>"> <td><?php echo esc_html( $count ); ?></td> <td><?php echo esc_html( $title ); ?> <?php if ( ! empty( $plugins_status_text ) ) : ?> <span style="color:#dc3232; margin-left:3px;">( <?php echo esc_html( $plugins_status_text ); ?> )</span> <?php endif; ?> </td> <td> <div class="cli-switch"> <input type="checkbox" id="wt-cli-checkbox-<?php echo esc_attr( $plugin ); ?>" data-script-id="<?php echo esc_attr( $script_id ); ?>" class="wt-cli-plugin-status" <?php checked( wp_validate_boolean( $status ), true ); ?> /> <label for="wt-cli-checkbox-<?php echo esc_attr( $plugin ); ?>" class="cli-slider"></label> </div> </td> <?php if ( Cookie_Law_Info_Cookies::get_instance()->check_if_old_category_table() === false ) : ?> <td> <select name="cliscript_category" id="cliscript_category"> <option value="0">--Select Category--</option> <?php foreach ( $terms as $key => $term ) : ?> <option value="<?php echo esc_attr( $key ); ?>" <?php echo selected( $plugin_data['category'], $key, false ); ?>><?php echo esc_html( $term['title'] ); ?></option> <?php endforeach; ?> </select> </td> <?php endif; ?> <td><?php echo esc_html( $description ); ?></td> </tr> <?php endforeach; endif; ?> </tbody> </table> </div> <script> let item = document.getElementById('wt-cli-script-blocker-action'); item && item.addEventListener('click', function(event) { event.preventDefault(); document.script_blocker_form.submit(); }); </script>