Plugin Directory

Changeset 1823342


Ignore:
Timestamp:
02/16/2018 12:04:27 PM (8 years ago)
Author:
killua99
Message:

New translation files for Swedish and default settings

Location:
custom-cookie-message/trunk
Files:
2 added
13 edited

Legend:

Unmodified
Added
Removed
  • custom-cookie-message/trunk/CHANGELOG.txt

    r1822626 r1823342  
    11== changelog ==
     2
     3= 2.0.3 =
     4* Swedish translation.
     5* Improve default settings values.
    26
    37= 2.0.0 =
  • custom-cookie-message/trunk/assets/css/custom-cookie-message-popup.css

    r1822626 r1823342  
    88  transform:       translateZ(0);
    99  will-change:     transform;
     10  z-index:         99;
    1011}
    1112.custom-cookie-message-banner--bottom-fixed {
     
    137138  text-align: right;
    138139}
     140
     141
     142.custom-cookie-message-modal__content div.hide {
     143  display: none;
     144}
  • custom-cookie-message/trunk/custom-cookie-message.php

    r1822601 r1823342  
    3737define( 'CUSTOM_COOKIE_MESSAGE_DIR', dirname( CUSTOM_COOKIE_MESSAGE_FILE ) );
    3838
    39 include_once CUSTOM_COOKIE_MESSAGE_DIR . '/src/class-main.php';
     39require_once CUSTOM_COOKIE_MESSAGE_DIR . '/src/class-main.php';
    4040
    4141Main::single();
  • custom-cookie-message/trunk/readme.txt

    r1822632 r1823342  
    22Contributors: johansylvan, angrycreative, kylegard, killua99
    33Tags:  custom, cookie, message, consent, cookie bar, cookie compliance, cookie law, cookie notice, cookie notification, cookie notification bar, cookie notify, cookies, eu, eu cookie, eu cookie law, notice, notification, notify, custom cookie message, WPML, Polylang, Multisite, multisites, local storage
    4 Requires at least: 4.8
     4Requires at least: 4.9
    55Tested up to: 4.9.1
    6 Stable tag: 2.0.2
    7 Requires PHP: 5.6
     6Stable tag: 2.0.3
     7Requires PHP: 5.6+
    88
    99License: GPLv2 or later
  • custom-cookie-message/trunk/src/Controller/class-controller.php

    r1822626 r1823342  
    5959        $namespace_route = apply_filters( 'custom_cookie_message_route_register', 'custom-cm' );
    6060
    61         register_rest_route( $namespace_route, '/upgrade', [
    62             [
    63                 'methods'             => \WP_REST_Server::CREATABLE,
    64                 'callback'            => [ $this, 'upgrade' ],
    65                 'permission_callback' => [ $this, 'upgrade_permissions' ],
    66             ],
    67         ] );
    68         register_rest_route( $namespace_route, '/cookie_list/(?P<category>.+)', [
    69             'methods'  => \WP_REST_Server::READABLE,
    70             'callback' => [ $this, 'redeable_cookie_list' ],
    71         ] );
    72         register_rest_route( $namespace_route, '/post_link', [
    73             'methods'  => \WP_REST_Server::READABLE,
    74             'callback' => [ $this, 'redeable_post_link' ],
    75         ] );
    76         register_rest_route( $namespace_route, '/banner', [
    77             'methods'  => \WP_REST_Server::READABLE,
    78             'callback' => [ $this, 'redeable_popup_banner' ],
    79         ] );
    80         register_rest_route( $namespace_route, '/cookie-preference', [
    81             'methods'  => \WP_REST_Server::CREATABLE,
    82             'callback' => [ $this, 'creatable_cookie_preference' ],
    83         ] );
     61        register_rest_route(
     62            $namespace_route, '/upgrade', [
     63                [
     64                    'methods'             => \WP_REST_Server::CREATABLE,
     65                    'callback'            => [ $this, 'upgrade' ],
     66                    'permission_callback' => [ $this, 'upgrade_permissions' ],
     67                ],
     68            ]
     69        );
     70        register_rest_route(
     71            $namespace_route, '/cookie_list/(?P<category>.+)', [
     72                'methods'  => \WP_REST_Server::READABLE,
     73                'callback' => [ $this, 'readeable_cookie_list' ],
     74            ]
     75        );
     76        register_rest_route(
     77            $namespace_route, '/post_link', [
     78                'methods'  => \WP_REST_Server::READABLE,
     79                'callback' => [ $this, 'readeable_post_link' ],
     80            ]
     81        );
     82        register_rest_route(
     83            $namespace_route, '/banner', [
     84                'methods'  => \WP_REST_Server::READABLE,
     85                'callback' => [ $this, 'readeable_popup_banner' ],
     86            ]
     87        );
     88        register_rest_route(
     89            $namespace_route, '/cookie-preference', [
     90                'methods'  => \WP_REST_Server::CREATABLE,
     91                'callback' => [ $this, 'creatable_cookie_preference' ],
     92            ]
     93        );
    8494    }
    8595
     
    92102     */
    93103    public function upgrade_permissions( \WP_REST_Request $request ) {
    94         return $this->user->has_cap( 'update_plugins' ) ?: new \WP_Error( 'ccm_upgrade_permissions', esc_html__( 'What it is? No, thanks.', 'custom-cookie-message' ), [
    95             'status' => 403,
    96         ] );
     104        return $this->user->has_cap( 'update_plugins' ) ?: new \WP_Error(
     105            'ccm_upgrade_permissions', esc_html__( 'What it is? No, thanks.', 'custom-cookie-message' ), [
     106                'status' => 403,
     107            ]
     108        );
    97109    }
    98110
     
    119131     * Get popup Banner.
    120132     */
    121     public function redeable_popup_banner() {
     133    public function readeable_popup_banner() {
    122134
    123135        ob_start();
     
    130142        }
    131143
    132         return new \WP_REST_Response( [
    133             'template' => $template_content,
    134         ], 200 );
     144        return new \WP_REST_Response(
     145            [
     146                'template' => $template_content,
     147            ], 200
     148        );
    135149    }
    136150
     
    149163        $settings['advertising'] = $request->get_param( 'adsvertising' );
    150164        $cookie_value            = html_entity_decode( wp_json_encode( $settings, JSON_FORCE_OBJECT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK ) );
    151         $expire = 0 === (int) $options['general']['life_time'] ? 0 : time() + (int) $options['general']['life_time'];
     165        $expire                  = 0 === (int) $options['general']['life_time'] ? 0 : time() + (int) $options['general']['life_time'];
    152166
    153167        if ( setcookie( 'custom_cookie_message', $cookie_value, $expire, '/', $url['host'], is_ssl() ) ) {
    154168            wp_cache_flush();
    155169
    156             return new \WP_REST_Response( [
    157                 'success' => 200,
    158             ], 200 );
     170            return new \WP_REST_Response(
     171                [
     172                    'success' => 200,
     173                ], 200
     174            );
    159175        }
    160176
     
    169185     * @return \WP_REST_Response
    170186     */
    171     public function redeable_post_link( \WP_REST_Request $request ) {
     187    public function readeable_post_link( \WP_REST_Request $request ) {
    172188
    173189        if ( ! $request->get_param( 'q' ) ) {
     
    175191        }
    176192
    177         $query = new \WP_Query( [
    178             's'              => trim( $request->get_param( 'q' ) ),
    179             'posts_per_page' => 5,
    180         ] );
     193        $query = new \WP_Query(
     194            [
     195                's'              => trim( $request->get_param( 'q' ) ),
     196                'posts_per_page' => 5,
     197            ]
     198        );
    181199
    182200        if ( $query->have_posts() ) {
     
    229247     * @return \WP_REST_Response
    230248     */
    231     public function redeable_cookie_list( \WP_REST_Request $request ) {
     249    public function readeable_cookie_list( \WP_REST_Request $request ) {
    232250
    233251        $result = $this->filter_cookie_list( $request );
  • custom-cookie-message/trunk/src/Forms/class-admincookiesettings.php

    r1822626 r1823342  
    8888     */
    8989    public function cookie_required_callback() {
    90         $html = '<br><label>';
     90        $html  = '<br><label>';
    9191        $html .= esc_html__( 'These cookies are required to enable core site functionality, we can not disable anything here.', 'custom-cookie-message' );
    9292        $html .= '</label>';
    9393
    94         wp_editor( $this->options['cookie_granularity_settings']['required_cookies_message'], 'required_cookies_message', [
    95             'teeny'         => true,
    96             'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][required_cookies_message]',
    97         ] );
     94        wp_editor(
     95            $this->options['cookie_granularity_settings']['required_cookies_message'], 'required_cookies_message', [
     96                'teeny'         => true,
     97                'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][required_cookies_message]',
     98            ]
     99        );
    98100        echo $html; // WPCS: XSS ok.
    99101    }
     
    103105     */
    104106    public function cookie_functional_callback() {
    105         $html = '<br><label>';
     107        $html  = '<br><label>';
    106108        $html .= esc_html__( 'These cookies allow us to analyze site usage so we can measure and improve performance. Example, hotjar', 'custom-cookie-message' ) . '<br>';
    107109        $html .= '<input id="functional_cookies_ban" placeholder="hotjar, analytics" name="custom_cookie_message[cookie_granularity_settings][functional_list]" value="' . $this->options['cookie_granularity_settings']['functional_list'] . '" class="large-text ltr">';
    108110        $html .= '</label>';
    109111
    110         wp_editor( $this->options['cookie_granularity_settings']['functional_cookies_message'], 'functional_cookies_message', [
    111             'teeny'         => true,
    112             'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][functional_cookies_message]',
    113         ] );
     112        wp_editor(
     113            $this->options['cookie_granularity_settings']['functional_cookies_message'], 'functional_cookies_message', [
     114                'teeny'         => true,
     115                'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][functional_cookies_message]',
     116            ]
     117        );
    114118        echo $html; // WPCS: XSS ok.
    115119    }
     
    119123     */
    120124    public function cookie_advertising_callback() {
    121         $html = '<br><label>';
     125        $html  = '<br><label>';
    122126        $html .= esc_html__( 'These cookies are used by advertising companies to serve ads that are relevant to your interests. Example, Doubleclick', 'custom-cookie-message' ) . '<br>';
    123127        $html .= '<input id="advertising_cookies_ban" placeholder="doubleclick, adsense" name="custom_cookie_message[cookie_granularity_settings][advertising_list]" value="' . $this->options['cookie_granularity_settings']['advertising_list'] . '" class="large-text ltr">';
    124128        $html .= '</label>';
    125129
    126         wp_editor( $this->options['cookie_granularity_settings']['advertising_cookies_message'], 'advertising_cookies_message', [
    127             'teeny'         => true,
    128             'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][advertising_cookies_message]',
    129         ] );
     130        wp_editor(
     131            $this->options['cookie_granularity_settings']['advertising_cookies_message'], 'advertising_cookies_message', [
     132                'teeny'         => true,
     133                'textarea_name' => 'custom_cookie_message[cookie_granularity_settings][advertising_cookies_message]',
     134            ]
     135        );
    130136        echo $html; // WPCS: XSS ok.
    131137    }
  • custom-cookie-message/trunk/src/Forms/class-adminform.php

    r1822626 r1823342  
    9191     */
    9292    public function cookies_menu() {
    93         add_options_page( 'Custom Cookie Message', 'Custom Cookie M', 'administrator', 'custom_cookie_message_options', [
    94             $this,
    95             'cookies_options_display',
    96         ] );
     93        add_options_page(
     94            'Custom Cookie Message', 'Custom Cookie M', 'administrator', 'custom_cookie_message_options', [
     95                $this,
     96                'cookies_options_display',
     97            ]
     98        );
    9799    }
    98100
     
    105107        wp_enqueue_style( 'wp-color-picker' );
    106108        wp_register_script( 'ccm-suggest', CUSTOM_COOKIE_MESSAGE_PLUGIN_URL . '/assets/js/ccm-suggest.js', [], Main::version() );
    107         wp_enqueue_script( 'custom-cookie-message-admin-style', CUSTOM_COOKIE_MESSAGE_PLUGIN_URL . '/assets/js/custom-cookie-message-backend.js', [
    108             'jquery',
    109             'jquery-ui-slider',
    110             'jquery-ui-autocomplete',
    111             'wp-color-picker',
    112             'ccm-suggest',
    113         ], Main::version() );
    114         wp_localize_script( 'custom-cookie-message-admin-style', 'customCookieMessageAdminLocalize', [
    115             'rest_url'           => rest_url( 'custom-cm/upgrade' ),
    116             'rest_post_link'     => rest_url( 'custom-cm/post_link' ),
    117             'rest_cookie_list'   => rest_url( 'custom-cm/cookie_list' ),
    118             'ccm_nonce'          => wp_create_nonce( 'custom_cookie_message_upgrade' ),
    119             'wp_rest_nonce'      => wp_create_nonce( 'wp_rest' ),
    120             'life_time'          => [
    121                 'week_seconds'  => WEEK_IN_SECONDS,
    122                 'month_seconds' => MONTH_IN_SECONDS,
    123                 'year_seconds'  => YEAR_IN_SECONDS,
    124             ],
    125             'life_time_messages' => [
    126                 'no_life_time'       => esc_html__( 'Until session expires (closing browser)', 'custom-cookie-message' ),
    127                 'week_life_time'     => esc_html__( 'Weekly', 'custom-cookie-message' ),
    128                 'month_life_time'    => esc_html__( 'Montly', 'custom-cookie-message' ),
    129                 'year_life_time'     => esc_html__( 'Yearly', 'custom-cookie-message' ),
    130                 'end_less_life_time' => esc_html__( 'Until end of times', 'custom-cookie-message' ),
    131             ],
    132         ] );
     109        wp_enqueue_script(
     110            'custom-cookie-message-admin-style', CUSTOM_COOKIE_MESSAGE_PLUGIN_URL . '/assets/js/custom-cookie-message-backend.js', [
     111                'jquery',
     112                'jquery-ui-slider',
     113                'jquery-ui-autocomplete',
     114                'wp-color-picker',
     115                'ccm-suggest',
     116            ], Main::version()
     117        );
     118        wp_localize_script(
     119            'custom-cookie-message-admin-style', 'customCookieMessageAdminLocalize', [
     120                'rest_url'           => rest_url( 'custom-cm/upgrade' ),
     121                'rest_post_link'     => rest_url( 'custom-cm/post_link' ),
     122                'rest_cookie_list'   => rest_url( 'custom-cm/cookie_list' ),
     123                'ccm_nonce'          => wp_create_nonce( 'custom_cookie_message_upgrade' ),
     124                'wp_rest_nonce'      => wp_create_nonce( 'wp_rest' ),
     125                'life_time'          => [
     126                    'week_seconds'  => WEEK_IN_SECONDS,
     127                    'month_seconds' => MONTH_IN_SECONDS,
     128                    'year_seconds'  => YEAR_IN_SECONDS,
     129                ],
     130                'life_time_messages' => [
     131                    'no_life_time'       => esc_html__( 'Until session expires (closing browser)', 'custom-cookie-message' ),
     132                    'week_life_time'     => esc_html__( 'Weekly', 'custom-cookie-message' ),
     133                    'month_life_time'    => esc_html__( 'Montly', 'custom-cookie-message' ),
     134                    'year_life_time'     => esc_html__( 'Yearly', 'custom-cookie-message' ),
     135                    'end_less_life_time' => esc_html__( 'Until end of times', 'custom-cookie-message' ),
     136                ],
     137            ]
     138        );
    133139    }
    134140
     
    142148        $page_title = get_admin_page_title();
    143149
    144         if ( current_user_can('manage_options') ) {
     150        if ( current_user_can( 'manage_options' ) ) {
    145151            $allow_edition = true;
    146152        }
  • custom-cookie-message/trunk/src/Forms/class-admingeneraloptions.php

    r1822626 r1823342  
    9090    public function cookies_select_position_callback() {
    9191
    92         $html = '<select id="location_options" name="custom_cookie_message[general][location_options]">';
     92        $html  = '<select id="location_options" name="custom_cookie_message[general][location_options]">';
    9393        $html .= '<option value="top-fixed"' . selected( $this->options['general']['location_options'], 'top-fixed', false ) . '>' . __( 'Top as overlay', 'cookie-message' ) . '</option>';
    9494        $html .= '<option value="bottom-fixed"' . selected( $this->options['general']['location_options'], 'bottom-fixed', false ) . '>' . __( 'Bottom as overlay', 'cookie-message' ) . '</option>';
  • custom-cookie-message/trunk/src/Forms/class-adminstylingoptions.php

    r1822626 r1823342  
    101101     */
    102102    public function cookies_message_color_picker_callback() {
    103         $val = isset( $this->options['styles']['message_color_picker'] ) ? $this->options['styles']['message_color_picker'] : '';
     103        $val = isset( $this->options['styles']['message_color_picker'] ) ? $this->options['styles']['message_color_picker'] : '#3d3d3d';
    104104        echo '<input type="text" id="message_color_picker" name="custom_cookie_message[styles][message_color_picker]" value="' . $val . '" class="cpa-color-picker" >'; // WPCS: XSS ok.
    105105    }
     
    203203     */
    204204    public function cookies_modal_background_callback() {
    205         $val = isset( $this->options['styles']['modal_bg'] ) ? $this->options['styles']['modal_bg'] : '';
     205        $val = isset( $this->options['styles']['modal_bg'] ) ? $this->options['styles']['modal_bg'] : '#3d3d3d';
    206206        echo '<input type="text" id="button_hover_color_picker" name="custom_cookie_message[styles][modal_bg]" value="' . $val . '" class="cpa-color-picker" >'; // WPCS: XSS ok.
    207207    }
     
    211211     */
    212212    public function cookies_modal_background_opacity_callback() {
    213         $val = isset( $this->options['styles']['modal_bg_opacity'] ) ? $this->options['styles']['modal_bg_opacity'] : '100';
     213        $val = isset( $this->options['styles']['modal_bg_opacity'] ) ? $this->options['styles']['modal_bg_opacity'] : '50';
    214214        echo '<input type="text" id="modal_bg_opacity_amount" name="custom_cookie_message[styles][modal_bg_opacity]" value="' . $val . '" readonly class="hidden">'; // WPCS: XSS ok.
    215215        echo '<div id="modal_bg_opacity_slider" class="slider"><div id="modal_bg_opacity_slider_handle" class="ui-slider-handle ui-slider-handle-custom"></div></div>';
  • custom-cookie-message/trunk/src/Forms/class-admintrait.php

    r1822626 r1823342  
    3333
    3434        if ( empty( $input['cookie_granularity_settings'] ) ) {
    35             array_walk_recursive( $input, function ( &$item, $key ) {
    36                 $item = sanitize_textarea_field( $item );
    37             } );
     35            array_walk_recursive(
     36                $input, function ( &$item, $key ) {
     37                    $item = sanitize_textarea_field( $item );
     38                }
     39            );
    3840        }
    3941
  • custom-cookie-message/trunk/src/class-main.php

    r1822626 r1823342  
    7171            include CUSTOM_COOKIE_MESSAGE_DIR . '/src/' . $file_path;
    7272        } else {
    73             wp_die( 'File does not exists ' . CUSTOM_COOKIE_MESSAGE_DIR . '/src/' . $file_path );
     73            wp_die( 'File does not exists ' . esc_url( CUSTOM_COOKIE_MESSAGE_DIR ) . '/src/' . esc_url( $file_path ) );
    7474        }
    7575    }
     
    214214        }
    215215
    216         $patter_array = array_filter( $patter_array, function ( $value ) {
    217             return '' !== trim( $value );
    218         } );
    219 
    220         $patter_array = array_map( function ( $pattern ) {
    221             return '(' . trim( $pattern ) . ')';
    222         }, $patter_array );
     216        $patter_array = array_filter(
     217            $patter_array, function ( $value ) {
     218                return '' !== trim( $value );
     219            }
     220        );
     221
     222        $patter_array = array_map(
     223            function ( $pattern ) {
     224                    return '(' . trim( $pattern ) . ')';
     225            }, $patter_array
     226        );
    223227
    224228        return implode( '|', $patter_array );
     
    260264
    261265        wp_enqueue_script( 'custom-cookie-message-popup', CUSTOM_COOKIE_MESSAGE_PLUGIN_URL . '/assets/js/custom-cookie-message-popup.js', [ 'jquery' ], $this->version, true );
    262         wp_localize_script( 'custom-cookie-message-popup', 'customCookieMessageLocalize', [
    263             'options'             => get_option( 'custom_cookie_message' ),
    264             'wp_rest'             => wp_create_nonce( 'wp_rest' ),
    265             'rest_url_banner'     => rest_url( 'custom-cm/banner' ),
    266             'rest_url_preference' => rest_url( 'custom-cm/cookie-preference' ),
    267         ] );
     266        wp_localize_script(
     267            'custom-cookie-message-popup', 'customCookieMessageLocalize', [
     268                'options'             => get_option( 'custom_cookie_message' ),
     269                'wp_rest'             => wp_create_nonce( 'wp_rest' ),
     270                'rest_url_banner'     => rest_url( 'custom-cm/banner' ),
     271                'rest_url_preference' => rest_url( 'custom-cm/cookie-preference' ),
     272            ]
     273        );
    268274
    269275    }
     
    299305        $default_path = CUSTOM_COOKIE_MESSAGE_PLUGIN_PATH . '/templates';
    300306
    301         $template = locate_template( [
    302             trailingslashit( $template_path ) . $template_name,
    303             $template_name,
    304         ] );
     307        $template = locate_template(
     308            [
     309                trailingslashit( $template_path ) . $template_name,
     310                $template_name,
     311            ]
     312        );
    305313
    306314        if ( ! $template ) {
  • custom-cookie-message/trunk/src/class-shortcode.php

    r1822626 r1823342  
    2323     */
    2424    public static function ccm_shortcode_preferences( $atts ) {
    25         $atts = shortcode_atts( [
    26             'style' => 'link',
    27         ], $atts );
     25        $atts = shortcode_atts(
     26            [
     27                'style' => 'link',
     28            ], $atts
     29        );
    2830
    2931        $class  = '';
  • custom-cookie-message/trunk/templates/cookie-notice.php

    r1822626 r1823342  
    66 */
    77
    8 include_once ABSPATH . 'wp-admin/includes/plugin.php';
     8require_once ABSPATH . 'wp-admin/includes/plugin.php';
    99
    1010$options = get_option( 'custom_cookie_message' );
     
    2222
    2323list( $r, $g, $b ) = sscanf( $options['styles']['message_color_picker'], '#%02x%02x%02x' );
    24 $background_opacity  = $options['styles']['opacity_slider_amount'] / 100;
    25 $style_notice_banner = "background-color: rgba({$r}, {$g}, {$b}, {$background_opacity});";
     24
     25$background_opacity   = $options['styles']['opacity_slider_amount'] / 100;
     26$style_notice_banner  = "background-color: rgba({$r}, {$g}, {$b}, {$background_opacity});";
    2627$style_notice_banner .= ' padding: ' . $options['styles']['message_height_slider_amount'] . 'px 0;';
    2728
    28 $style_message = 'color: ' . $options['styles']['text_color_picker'] . ';';
     29$style_message  = 'color: ' . $options['styles']['text_color_picker'] . ';';
    2930$style_message .= empty( $options['styles']['text_font'] ) ? '' : 'font-family: ' . $options['styles']['text_font'] . ';';
    3031
     
    3435
    3536list( $r, $g, $b ) = sscanf( $options['styles']['modal_bg'], '#%02x%02x%02x' );
     37
    3638$modal_background_opacity = $options['styles']['modal_bg_opacity'] / 100;
    3739$modal_style              = "background-color: rgba({$r}, {$g}, {$b}, {$modal_background_opacity});";
     
    5456        <div class="warning-text" style="<?php echo esc_attr( $style_message ); ?>">
    5557            <p><?php $esc_html( $options['content']['textarea_warning_text'], 'custom-cookie-message' ); ?>
    56                 <a style="<?php echo esc_attr( $style_link ); ?>" href="<?php echo esc_url( $options['general']['cookies_page_link'] ); ?>" title="<?php $esc_html( $options['content']['input_link_text'], 'custom-cookie-message' ); ?>"><?php $esc_html( $options['content']['input_link_text'], 'custom-cookie-message' ); ?></a>
    57                 <a id="custom-cookie-message-preference" class="btn btn-default <?php echo esc_attr( $style_button_class ); ?>">
     58                <?php if ( $options['general']['cookies_page_link'] ) : ?>
     59                    <a style="<?php echo esc_attr( $style_link ); ?>" href="<?php echo esc_url( $options['general']['cookies_page_link'] ); ?>" title="<?php $esc_html( $options['content']['input_link_text'], 'custom-cookie-message' ); ?>"><?php $esc_html( $options['content']['input_link_text'], 'custom-cookie-message' ); ?></a>
     60                    <?php endif; ?>
     61                <button id="custom-cookie-message-preference" class="btn btn-default <?php echo esc_attr( $style_button_class ); ?>">
    5862                    <?php $esc_html( $options['content']['input_button_text'], 'custom-cookie-message' ); ?>
    59                 </a>
     63                </button>
    6064            </p>
    6165        </div>
Note: See TracChangeset for help on using the changeset viewer.