Changeset 3486975
- Timestamp:
- 03/20/2026 06:15:16 AM (13 days ago)
- Location:
- wcookie/trunk
- Files:
-
- 3 edited
-
css/wcookie.css (modified) (11 diffs)
-
readme.txt (modified) (1 diff)
-
wcookie.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wcookie/trunk/css/wcookie.css
r2130584 r3486975 10 10 11 11 line-height: 1em 12 13 12 } 14 13 … … 19 18 font-size: 0.8em; 20 19 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; 26 25 27 26 } … … 36 35 37 36 font-size: 0.8em 38 39 37 } 40 38 … … 50 48 51 49 display: none 52 53 50 } 54 51 … … 71 68 display: flex; 72 69 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; 80 77 81 78 } … … 104 101 105 102 max-width: 120px 106 107 103 } 108 104 … … 115 111 width: 300px; 116 112 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 126 123 .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 { 132 130 border-radius: 2em; 133 131 bottom: 3%; 134 left: 2%; 135 right: 2%; 136 } 132 left: 2%; 133 right: 2%; 134 } 135 137 136 .cookie_container_top { 138 top: 0; 139 } 137 top: 0; 138 } 139 140 140 .cookie_container_bottom { 141 bottom: 0; 142 } 141 bottom: 0 !important; 142 } 143 143 144 .cookie_container_right { 144 145 145 146 width: 300px; 146 147 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; 154 155 155 156 } … … 162 163 163 164 padding: 10px 164 165 165 } 166 166 … … 178 178 179 179 box-sizing: border-box 180 181 180 } 182 181 … … 190 189 191 190 text-shadow: none 192 193 191 } 194 192 … … 206 204 207 205 -webkit-border-radius: 5px 208 209 206 } 210 207 -
wcookie/trunk/readme.txt
r2130609 r3486975 3 3 Contributors: ajaylulia 4 4 Requires at least: 5.0 5 Requires PHP: 7.06 Tested up to: 5.2.27 Stable tag: 4.05 Requires PHP: 8.0 6 Tested up to: 6.9 7 Stable tag: 5.0 8 8 9 9 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. -
wcookie/trunk/wcookie.php
r2130584 r3486975 5 5 Description: 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. 6 6 Author: Ajay Lulia 7 Version: 1. 07 Version: 1.1 8 8 */ 9 9 … … 14 14 15 15 function wcookie_activate() { 16 $config = wcookie_defualt_configuration_array(); 16 17 17 update_option('wcookie_configuration_dP', 'bottom'); 18 18 update_option('wcookie_configuration_bT', 'I Accept'); … … 35 35 return; 36 36 } 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 = ''; 38 47 if($config->displayPosition=="top") 39 48 $add_class = "cookie_container_top"; … … 222 231 #preview{margin: 0 20px;width: 50em;border: 2px solid #ccc;height: 30em; position: relative;background-size: cover; 223 232 background-position: center;background-image: url(<?php echo $background; ?>)} 224 #msgDiv{} 233 225 234 .class_top{height:40px;position: absolute;top:0;width: 100%;line-height:2.5;} 226 235 .class_bottom{height:40px;position: absolute;bottom:0;width: 100%;line-height:2.5;}
Note: See TracChangeset
for help on using the changeset viewer.