Plugin Directory

Changeset 1864327


Ignore:
Timestamp:
04/25/2018 06:20:22 PM (8 years ago)
Author:
amargolf
Message:

Bleuer Bootstra Button hinzugefuegt

Location:
bst-dsgvo-cookie
Files:
24 added
3 edited

Legend:

Unmodified
Added
Removed
  • bst-dsgvo-cookie/trunk/bst.php

    r1864308 r1864327  
    44* Plugin URI: https://bst-systemtechnik.de
    55* Description: Einfaches, responsives Cookie Pop-up ohne viel Schnick Schnack. EU-DSGVO konform.
    6 * Version: 1.0.5
     6* Version: 1.0.6
    77* Author: BST Systemtechnik (Arnold Margolf)
    88* Author URI: https://www.bst-systemtechnik.de
     
    4343    $bst_options = get_option('bst_settings');
    4444    $defaults = array (
    45         'enable' => 1,
     45        'enable' => 'checked',
    4646        'front-only' => 0,
    47         'fixed-to-bottom' => 1,
     47        'fixed-to-bottom' => 'checked',
    4848        'message' => "Wir benutzen Cookies um die Nutzerfreundlickeit der Webseite zu verbessen. Durch Deinen Besuch stimmst Du dem zu.",
    4949        'accept' => 'Verstanden',
     
    7070    $bst_options = get_option('bst_settings');
    7171    $defaults = array (
    72         'enable' => 1,
     72        'enable' => 'checked',
    7373        'front-only' => 0,
    74         'fixed-to-bottom' => 1,
     74        'fixed-to-bottom' => 'checked',
    7575        'message' => "Wir benutzen Cookies um die Nutzerfreundlickeit der Webseite zu verbessen. Durch Deinen Besuch stimmst Du dem zu.",
    7676        'accept' => 'Verstanden',
     
    121121                            if (get_bst_value('button_typ') ==1) {
    122122                        ?>
    123                             <button type="button" class="btn btn-primary btn-lg gradient"><?php bst_value('accept'); ?></button>
     123                            <button type="button" class="btn btn-primary btn-lg gradient bst-accept" onlick="#"><a href="#"><?php bst_value('accept'); ?></a></button>
    124124                        <?php
    125125                            } else if(get_bst_value('button_typ')==2) {
     
    129129                            } else {
    130130                        ?>
    131                             <button type="button" class="btn btn-primary btn-lg gradient"><?php bst_value('accept'); ?></button>
     131                            <button type="button" class="btn btn-primary btn-lg gradient bst-accept" onlick="#"><a href="#"><?php bst_value('accept'); ?></a></button>
    132132                        <?php   
    133133                            }
  • bst-dsgvo-cookie/trunk/includes/js/scripts.js

    r1861597 r1864327  
    2222                   
    2323        });
     24
     25
     26        jQuery(".bst-accept").on('click', function(event)  {
     27           
     28            event.preventDefault();
     29           
     30            jQuery(".bst-panel").slideUp(500);
     31           
     32            var d = new Date();
     33            d.setTime(d.getTime()+(365*24*60*60*1000));
     34            var expires = d.toGMTString();
     35            document.cookie = 'bst_accepted = 1; expires=' + expires + ';' + "domain=." + document.domain + "; path=/;";
     36                   
     37        });
    2438   
    2539    }
  • bst-dsgvo-cookie/trunk/readme.txt

    r1864308 r1864327  
    66Tested up to: 4.9.5
    77Requires PHP: 5.6
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.