Plugin Directory

Changeset 3486975


Ignore:
Timestamp:
03/20/2026 06:15:16 AM (13 days ago)
Author:
ajaylulia
Message:

Uploading wcookie plugin

Location:
wcookie/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wcookie/trunk/css/wcookie.css

    r2130584 r3486975  
    1010
    1111    line-height: 1em
    12 
    1312}
    1413
     
    1918    font-size: 0.8em;
    2019
    21     margin: 5px;
    22 
    23     padding: 0;
    24 
    25     line-height: 1.5em;
     20    margin: 5px;
     21
     22    padding: 0;
     23
     24    line-height: 1.5em;
    2625
    2726}
     
    3635
    3736        font-size: 0.8em
    38 
    3937    }
    4038
     
    5048
    5149        display: none
    52 
    5350    }
    5451
     
    7168    display: flex;
    7269
    73     flex-direction: row-reverse;
    74 
    75     justify-content: space-around;
    76 
    77     align-items: center;
    78 
    79     z-index: 9;
     70    flex-direction: row-reverse;
     71
     72    justify-content: space-around;
     73
     74    align-items: center;
     75
     76    z-index: 9;
    8077
    8178}
     
    104101
    105102    max-width: 120px
    106 
    107103}
    108104
     
    115111    width: 300px;
    116112
    117     bottom: 3%;
    118 
    119     left: 1%;
    120 
    121     display: flex;
    122 
    123     flex-direction: column-reverse;
    124 
    125 }
     113    bottom: 3%;
     114
     115    left: 1%;
     116
     117    display: flex;
     118
     119    flex-direction: column-reverse;
     120
     121}
     122
    126123.cookie_container_floating {
    127     bottom: 3%;
    128     left: 2%;
    129     right: 2%;
    130 }
    131 .cookie_container_rounded{
     124    bottom: 3%;
     125    left: 2%;
     126    right: 2%;
     127}
     128
     129.cookie_container_rounded {
    132130    border-radius: 2em;
    133131    bottom: 3%;
    134     left: 2%;
    135     right: 2%;
    136 }
     132    left: 2%;
     133    right: 2%;
     134}
     135
    137136.cookie_container_top {
    138     top: 0;
    139 }
     137    top: 0;
     138}
     139
    140140.cookie_container_bottom {
    141     bottom: 0;
    142 }
     141    bottom: 0 !important;
     142}
     143
    143144.cookie_container_right {
    144145
    145146    width: 300px;
    146147
    147     bottom: 3%;
    148 
    149     left: auto;
    150 
    151     right: 1%;
    152 
    153     flex-direction: column-reverse;
     148    bottom: 3%;
     149
     150    left: auto;
     151
     152    right: 1%;
     153
     154    flex-direction: column-reverse;
    154155
    155156}
     
    162163
    163164        padding: 10px
    164 
    165165    }
    166166
     
    178178
    179179    box-sizing: border-box
    180 
    181180}
    182181
     
    190189
    191190    text-shadow: none
    192 
    193191}
    194192
     
    206204
    207205    -webkit-border-radius: 5px
    208 
    209206}
    210207
  • wcookie/trunk/readme.txt

    r2130609 r3486975  
    33Contributors: ajaylulia
    44Requires at least: 5.0
    5 Requires PHP: 7.0
    6 Tested up to: 5.2.2
    7 Stable tag: 4.0
     5Requires PHP: 8.0
     6Tested up to: 6.9
     7Stable tag: 5.0
    88
    99The wCookie plugin for Wordpress lets you display a cookie (or other legal) notice on your Wordpress website and inform the visitors that your site uses cookies.
  • wcookie/trunk/wcookie.php

    r2130584 r3486975  
    55Description: The wCookie plugin for wordpress lets you display a cookie (or other legal) notice on your wordpress website and inform the visitors that your site uses cookies.
    66Author: Ajay Lulia
    7 Version: 1.0
     7Version: 1.1
    88*/
    99
     
    1414
    1515function wcookie_activate() {
    16     $config = wcookie_defualt_configuration_array();
     16
    1717    update_option('wcookie_configuration_dP', 'bottom');
    1818    update_option('wcookie_configuration_bT', 'I Accept');
     
    3535        return;
    3636    }
    37     $config = json_decode(get_option( 'wcookie_configuration' ));
     37    $config = new stdClass;
     38    $config->displayPosition = get_option('wcookie_configuration_dP');
     39    $config->buttonText = get_option('wcookie_configuration_bT');
     40    $config->backgroundColor = get_option('wcookie_configuration_bC');
     41    $config->textColor = get_option('wcookie_configuration_tC');
     42    $config->linkColor = get_option('wcookie_configuration_lC');
     43    $config->buttonBackgroundColor = get_option('wcookie_configuration_bBC');
     44    $config->buttonTextColor = get_option('wcookie_configuration_bTC');
     45    $config->cookieContent = get_option('wcookie_configuration_cC');
     46    $add_class = '';
    3847    if($config->displayPosition=="top")
    3948        $add_class = "cookie_container_top";
     
    222231    #preview{margin: 0 20px;width: 50em;border: 2px solid #ccc;height: 30em; position: relative;background-size: cover;
    223232    background-position: center;background-image: url(<?php echo $background; ?>)}
    224     #msgDiv{}
     233
    225234    .class_top{height:40px;position: absolute;top:0;width: 100%;line-height:2.5;}
    226235    .class_bottom{height:40px;position: absolute;bottom:0;width: 100%;line-height:2.5;}
Note: See TracChangeset for help on using the changeset viewer.