Version Description
Download this release
Release Info
Developer | cdoral |
Plugin | Asesor de Cookies para normativa española |
Version | 0.25 |
Comparing to | |
See all releases |
Code changes from version 0.24 to 0.25
- html/admin/principal.html +1 -0
- html/admin/principal.js +0 -14
- html/front/estilos.css +3 -0
- lib/plugin.php +5 -2
html/admin/principal.html
CHANGED
@@ -37,6 +37,7 @@
|
|
37 |
<div class="cdp-cookies-5c">
|
38 |
<?php
|
39 |
$opciones = array(
|
|
|
40 |
'izq' => 'Izquierda',
|
41 |
'der' => 'Derecha'
|
42 |
);
|
37 |
<div class="cdp-cookies-5c">
|
38 |
<?php
|
39 |
$opciones = array(
|
40 |
+
'ocultar' => 'Ocultar',
|
41 |
'izq' => 'Izquierda',
|
42 |
'der' => 'Derecha'
|
43 |
);
|
html/admin/principal.js
CHANGED
@@ -101,18 +101,4 @@ jQuery( document ).ready( function( $ ) {
|
|
101 |
window.open( $( '#enlace_politica' ).val() );
|
102 |
} );
|
103 |
|
104 |
-
// Vista previa del aviso
|
105 |
-
$( 'a.cdp-cookies-vista-previa' ).click( function() {
|
106 |
-
window.open(
|
107 |
-
cdp_cookies_info.siteurl +
|
108 |
-
'?cdp_cookies_vista_previa=1' +
|
109 |
-
'&layout=' + $( '#layout' ).val() +
|
110 |
-
'&comportamiento=' + $( '#comportamiento' ).val() +
|
111 |
-
'&posicion=' + $( '#posicion' ).val() +
|
112 |
-
'&alineacion=' + $( '#alineacion' ).val() +
|
113 |
-
'&tema=' + $( '#tema:checked' ).val() +
|
114 |
-
'&tam_fuente=' + $( '#tam_fuente' ).val()
|
115 |
-
);
|
116 |
-
} );
|
117 |
-
|
118 |
} );
|
101 |
window.open( $( '#enlace_politica' ).val() );
|
102 |
} );
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
} );
|
html/front/estilos.css
CHANGED
@@ -28,6 +28,9 @@
|
|
28 |
.cdp-cookies-alerta.cdp-solapa-izq .cdp-cookies-solapa {
|
29 |
left:0;
|
30 |
}
|
|
|
|
|
|
|
31 |
.cdp-cookies-alerta .cdp-cookies-texto {
|
32 |
position: fixed;
|
33 |
left:0;
|
28 |
.cdp-cookies-alerta.cdp-solapa-izq .cdp-cookies-solapa {
|
29 |
left:0;
|
30 |
}
|
31 |
+
.cdp-cookies-alerta.cdp-solapa-ocultar .cdp-cookies-solapa {
|
32 |
+
display:none;
|
33 |
+
}
|
34 |
.cdp-cookies-alerta .cdp-cookies-texto {
|
35 |
position: fixed;
|
36 |
left:0;
|
lib/plugin.php
CHANGED
@@ -60,7 +60,10 @@ class cdp_cookies
|
|
60 |
if( self::parametro( 'posicion_solapa' ) == 'izq' )
|
61 |
$class .= ' cdp-solapa-izq';
|
62 |
else
|
|
|
63 |
$class .= ' cdp-solapa-der';
|
|
|
|
|
64 |
|
65 |
// Alineación de los textos
|
66 |
if( self::parametro( 'alineacion' ) == 'izq' )
|
@@ -208,7 +211,7 @@ class cdp_cookies
|
|
208 |
throw new cdp_cookies_error_nonce();
|
209 |
|
210 |
//
|
211 |
-
cdp_cookies_input::validar_array( 'posicion_solapa', array( 'izq', 'der' ) );
|
212 |
cdp_cookies_input::validar_array( 'alineacion', array( 'izq', 'cen' ) );
|
213 |
cdp_cookies_input::validar_array( 'tema', array( 'gris', 'blanco', 'azul', 'verde', 'rojo' ) );
|
214 |
cdp_cookies_input::validar_url( 'enlace_politica' );
|
@@ -249,7 +252,7 @@ class cdp_cookies
|
|
249 |
$vdef =
|
250 |
array
|
251 |
(
|
252 |
-
'posicion_solapa' => '
|
253 |
'alineacion' => 'izq',
|
254 |
'tema' => 'gris',
|
255 |
'enlace_politica' => '#',
|
60 |
if( self::parametro( 'posicion_solapa' ) == 'izq' )
|
61 |
$class .= ' cdp-solapa-izq';
|
62 |
else
|
63 |
+
if( self::parametro( 'posicion_solapa' ) == 'der' )
|
64 |
$class .= ' cdp-solapa-der';
|
65 |
+
else
|
66 |
+
$class .= ' cdp-solapa-ocultar';
|
67 |
|
68 |
// Alineación de los textos
|
69 |
if( self::parametro( 'alineacion' ) == 'izq' )
|
211 |
throw new cdp_cookies_error_nonce();
|
212 |
|
213 |
//
|
214 |
+
cdp_cookies_input::validar_array( 'posicion_solapa', array( 'izq', 'der', 'ocultar' ) );
|
215 |
cdp_cookies_input::validar_array( 'alineacion', array( 'izq', 'cen' ) );
|
216 |
cdp_cookies_input::validar_array( 'tema', array( 'gris', 'blanco', 'azul', 'verde', 'rojo' ) );
|
217 |
cdp_cookies_input::validar_url( 'enlace_politica' );
|
252 |
$vdef =
|
253 |
array
|
254 |
(
|
255 |
+
'posicion_solapa' => 'ocultar',
|
256 |
'alineacion' => 'izq',
|
257 |
'tema' => 'gris',
|
258 |
'enlace_politica' => '#',
|