Merge branch 'trunk'
12
.htaccess
|
|
@ -378,20 +378,10 @@ RewriteRule ^.* - [F,L]
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
# protect wp-login (allow LDC et localhost)
|
||||
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
|
||||
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
|
||||
RewriteCond %{HTTP:X-FORWARDED-FOR} !^86\.65\.205\.242$
|
||||
RewriteCond %{HTTP:X-FORWARDED-FOR} !^217\.15\.92\.67$
|
||||
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
|
||||
RewriteRule ^(.*)$ - [R=404,L]
|
||||
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
|
||||
|
||||
</IfModule>
|
||||
|
||||
# END WordPress
|
||||
|
|
|
|||
1148
pole-sbv-content/plugins/cookie-notice/cookie-notice.php
Normal file
112
pole-sbv-content/plugins/cookie-notice/css/admin.css
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
/* Cookie Notice settings */
|
||||
.df-credits {
|
||||
float: right;
|
||||
width: 280px;
|
||||
background: #fff;
|
||||
margin: 20px -300px 20px 20px;
|
||||
position: relative;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.df-credits .inner {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.df-credits h3 {
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.df-credits .df-link {
|
||||
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||
font-style: italic;
|
||||
padding-bottom: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.df-credits .df-link a {
|
||||
vertical-align: middle;
|
||||
padding: 5px 0 0 4px;
|
||||
}
|
||||
|
||||
.df-promo h4 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.cookie-notice-settings .df-credits form {
|
||||
min-width: 260px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.cookie-notice-settings .df-credits form input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cookie-notice-settings {
|
||||
margin-right: 300px;
|
||||
}
|
||||
|
||||
.cookie-notice-settings hr, .df-credits hr {
|
||||
border: solid #eee;
|
||||
border-width: 1px 0 0;
|
||||
clear: both;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.cookie-notice-settings form {
|
||||
float: left;
|
||||
min-width: 463px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cookie-notice-settings .ui-button {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.cookie-notice-settings .description {
|
||||
font-size: 13px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
#cn_colors label {
|
||||
min-width: 10em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#cn_colors div {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#cn_refuse_code .nav-tab-wrapper {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#cn_refuse_code .refuse-code-tab {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#cn_refuse_code .refuse-code-tab.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#cn_refuse_code .refuse-code-tab .description {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* All Mobile Sizes (devices and browser) */
|
||||
@media only screen and (max-width: 959px) {
|
||||
.df-credits {
|
||||
width: 100%;
|
||||
float: none;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.cookie-notice-settings {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
1
pole-sbv-content/plugins/cookie-notice/css/admin.min.css
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.df-credits{float:right;width:280px;background:#fff;margin:20px -300px 20px 20px;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,0.05)}.df-credits .inner{padding-left:10px;padding-right:10px}.df-credits h3{font-size:14px;line-height:1.4;margin:0;padding:8px 12px;border-bottom:1px solid #eee}.df-credits .df-link{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-style:italic;padding-bottom:10px;margin:0}.df-credits .df-link a{vertical-align:middle;padding:5px 0 0 4px}.df-promo h4{margin-bottom:0}.cookie-notice-settings .df-credits form{min-width:260px;margin-bottom:1em}.cookie-notice-settings .df-credits form input{margin:0;padding:0}.cookie-notice-settings{margin-right:300px}.cookie-notice-settings hr,.df-credits hr{border:solid #eee;border-width:1px 0 0;clear:both;height:0}.cookie-notice-settings form{float:left;min-width:463px;width:100%}.cookie-notice-settings .ui-button{margin-bottom:5px}.cookie-notice-settings .description{font-size:13px;margin-bottom:8px}#cn_colors label{min-width:10em;display:inline-block}#cn_colors div{vertical-align:middle}#cn_refuse_code .nav-tab-wrapper{padding-top:0}#cn_refuse_code .refuse-code-tab{display:none}#cn_refuse_code .refuse-code-tab.active{display:block}#cn_refuse_code .refuse-code-tab .description{margin-top:10px}@media only screen and (max-width: 959px){.df-credits{width:100%;float:none;margin:20px 0}.cookie-notice-settings{margin-right:0}}
|
||||
151
pole-sbv-content/plugins/cookie-notice/css/front.css
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
#cookie-notice {
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
position: fixed;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
z-index: 100000;
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cn-top {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.cn-bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.cookie-notice-container {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cookie-notice-revoke-container {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
visibility: hidden;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cn-top .cookie-notice-revoke-container {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
#cookie-notice .cn-revoke-cookie {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.cn-button.wp-default,
|
||||
.cn-button.wp-default:hover,
|
||||
.cn-button.bootstrap,
|
||||
.cn-button.bootstrap:hover {
|
||||
box-shadow: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#cookie-notice .cn-button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.cn-button.wp-default {
|
||||
font-family: sans-serif;
|
||||
line-height: 18px;
|
||||
padding: 2px 12px;
|
||||
background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0 0 #F3F3F3;
|
||||
border-color: #BBB;
|
||||
color: #333;
|
||||
text-shadow: 0 1px 0 #FFF;
|
||||
-moz-box-sizing: border-box;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.cn-button.wp-default:hover {
|
||||
background: linear-gradient(to bottom, #FFFFFF, #F3F3F3) repeat scroll 0 0 #F3F3F3;
|
||||
border-color: #999;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.cn-button.bootstrap {
|
||||
font-family: sans-serif;
|
||||
display: inline-block;
|
||||
*display: inline;
|
||||
padding: 4px 12px;
|
||||
margin-right: .3em;
|
||||
margin-bottom: 0;
|
||||
*margin-left: .3em;
|
||||
line-height: 20px;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
|
||||
font-style: normal;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||
background-color: #006dcc;
|
||||
*background-color: #04c;
|
||||
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
||||
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
||||
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
||||
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
||||
background-repeat: repeat-x;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #04c #04c #002a80;
|
||||
border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .25);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 2px rgba(0, 0, 0, .05);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
||||
padding: 2px 10px;
|
||||
font-size: 12px;
|
||||
text-decoration: none;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.cn-button.bootstrap:hover {
|
||||
color: #fff;
|
||||
background-color: #04c;
|
||||
*background-color: #003bb3;
|
||||
background-position: 0 -15px;
|
||||
-webkit-transition: background-position 0.1s linear;
|
||||
-moz-transition: background-position 0.1s linear;
|
||||
-o-transition: background-position 0.1s linear;
|
||||
transition: background-position 0.1s linear;
|
||||
}
|
||||
|
||||
@media all and (max-width: 900px) {
|
||||
.cookie-notice-container #cn-notice-text {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
#cookie-notice .cn-button {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
1
pole-sbv-content/plugins/cookie-notice/css/front.min.css
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
#cookie-notice{display:block;visibility:hidden;position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center}.cn-top{top:0}.cn-bottom{bottom:0}.cookie-notice-container{padding:10px;text-align:center;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cookie-notice-revoke-container{position:absolute;bottom:0;width:100%;z-index:1;visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cn-top .cookie-notice-revoke-container{top:0;bottom:auto}#cookie-notice .cn-revoke-cookie{margin:0}.cn-button.wp-default,.cn-button.wp-default:hover,.cn-button.bootstrap,.cn-button.bootstrap:hover{box-shadow:none;text-decoration:none}#cookie-notice .cn-button{margin-left:10px}.cn-button.wp-default{font-family:sans-serif;line-height:18px;padding:2px 12px;background:linear-gradient(to bottom,#FEFEFE,#F4F4F4) repeat scroll 0 0 #F3F3F3;border-color:#BBB;color:#333;text-shadow:0 1px 0 #FFF;-moz-box-sizing:border-box;border-radius:3px 3px 3px 3px;border-style:solid;border-width:1px;cursor:pointer;display:inline-block;font-size:12px;font-style:normal;text-decoration:none;white-space:nowrap;outline:none}.cn-button.wp-default:hover{background:linear-gradient(to bottom,#FFFFFF,#F3F3F3) repeat scroll 0 0 #F3F3F3;border-color:#999;color:#222}.cn-button.bootstrap{font-family:sans-serif;display:inline-block;*display:inline;padding:4px 12px;margin-right:.3em;margin-bottom:0;*margin-left:.3em;line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);font-style:normal;vertical-align:middle;cursor:pointer;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;*background-color:#04c;background-image:-moz-linear-gradient(top,#0088cc,#0044cc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0088cc),to(#0044cc));background-image:-webkit-linear-gradient(top,#0088cc,#0044cc);background-image:-o-linear-gradient(top,#0088cc,#0044cc);background-image:linear-gradient(to bottom,#0088cc,#0044cc);background-repeat:repeat-x;border-style:solid;border-width:1px;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 1px 2px rgba(0,0,0,.05);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);padding:2px 10px;font-size:12px;text-decoration:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:none}.cn-button.bootstrap:hover{color:#fff;background-color:#04c;*background-color:#003bb3;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear}@media all and (max-width:900px){.cookie-notice-container #cn-notice-text{display:block;margin-bottom:5px}#cookie-notice .cn-button{margin-left:5px;margin-right:5px}}
|
||||
BIN
pole-sbv-content/plugins/cookie-notice/images/logo-dfactory.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
// exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) )
|
||||
exit;
|
||||
|
||||
/**
|
||||
* Check if cookies are accepted.
|
||||
*
|
||||
* @return boolean Whether cookies are accepted
|
||||
*/
|
||||
if ( ! function_exists( 'cn_cookies_accepted' ) ) {
|
||||
function cn_cookies_accepted() {
|
||||
return (bool) Cookie_Notice::cookies_accepted();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if cookies are set.
|
||||
*
|
||||
* @return boolean Whether cookies are set
|
||||
*/
|
||||
if ( ! function_exists( 'cn_cookies_set' ) ) {
|
||||
function cn_cookies_set() {
|
||||
return (bool) Cookie_Notice::cookies_set();
|
||||
}
|
||||
}
|
||||
34
pole-sbv-content/plugins/cookie-notice/includes/upgrade.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
// exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) )
|
||||
exit;
|
||||
|
||||
new Cookie_Notice_Upgrade( $cookie_notice );
|
||||
|
||||
class Cookie_Notice_Upgrade {
|
||||
|
||||
private $defaults;
|
||||
|
||||
public function __construct( $cookie_notice ) {
|
||||
// attributes
|
||||
$this->defaults = $cookie_notice->get_defaults();
|
||||
|
||||
// actions
|
||||
add_action( 'init', array( $this, 'check_upgrade' ) );
|
||||
}
|
||||
|
||||
public function check_upgrade() {
|
||||
if ( ! current_user_can( 'manage_options' ) )
|
||||
return;
|
||||
|
||||
// gets current database version
|
||||
$current_db_version = get_option( 'cookie_notice_version', '1.0.0' );
|
||||
|
||||
// new version?
|
||||
if ( version_compare( $current_db_version, $this->defaults['version'], '<' ) ) {
|
||||
// updates plugin version
|
||||
update_option( 'cookie_notice_version', $this->defaults['version'], false );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
2
pole-sbv-content/plugins/cookie-notice/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// Silence is golden.
|
||||
73
pole-sbv-content/plugins/cookie-notice/js/admin.js
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
( function ( $ ) {
|
||||
|
||||
$( document ).ready( function () {
|
||||
// initialize color picker
|
||||
$( '.cn_color' ).wpColorPicker();
|
||||
|
||||
// refuse option
|
||||
$( '#cn_refuse_opt' ).change( function () {
|
||||
if ( $( this ).is( ':checked' ) ) {
|
||||
$( '#cn_refuse_opt_container' ).slideDown( 'fast' );
|
||||
} else {
|
||||
$( '#cn_refuse_opt_container' ).slideUp( 'fast' );
|
||||
}
|
||||
} );
|
||||
|
||||
// revoke option
|
||||
$( '#cn_revoke_cookies' ).change( function () {
|
||||
if ( $( this ).is( ':checked' ) ) {
|
||||
$( '#cn_revoke_opt_container' ).slideDown( 'fast' );
|
||||
} else {
|
||||
$( '#cn_revoke_opt_container' ).slideUp( 'fast' );
|
||||
}
|
||||
} );
|
||||
|
||||
// privacy policy option
|
||||
$( '#cn_see_more' ).change( function () {
|
||||
if ( $( this ).is( ':checked' ) ) {
|
||||
$( '#cn_see_more_opt' ).slideDown( 'fast' );
|
||||
} else {
|
||||
$( '#cn_see_more_opt' ).slideUp( 'fast' );
|
||||
}
|
||||
} );
|
||||
|
||||
// privacy policy option
|
||||
$( '#cn_on_scroll' ).change( function () {
|
||||
if ( $( this ).is( ':checked' ) ) {
|
||||
$( '#cn_on_scroll_offset' ).slideDown( 'fast' );
|
||||
} else {
|
||||
$( '#cn_on_scroll_offset' ).slideUp( 'fast' );
|
||||
}
|
||||
} );
|
||||
|
||||
// privacy policy link
|
||||
$( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
|
||||
if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
|
||||
$( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
|
||||
$( '#cn_see_more_opt_link' ).slideDown( 'fast' );
|
||||
} );
|
||||
} else if ( $( '#cn_see_more_link-page:checked' ).val() === 'page' ) {
|
||||
$( '#cn_see_more_opt_link' ).slideUp( 'fast', function () {
|
||||
$( '#cn_see_more_opt_page' ).slideDown( 'fast' );
|
||||
} );
|
||||
}
|
||||
} );
|
||||
|
||||
$( '#cn_refuse_code_fields' ).find( 'a' ).click( function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
$( '#cn_refuse_code_fields' ).find( 'a' ).removeClass( 'nav-tab-active' );
|
||||
$( '.refuse-code-tab' ).removeClass( 'active' );
|
||||
|
||||
var id = $( this ).attr( 'id' ).replace( '-tab', '' );
|
||||
|
||||
$( '#' + id ).addClass( 'active' );
|
||||
$( this ).addClass( 'nav-tab-active' );
|
||||
} );
|
||||
} );
|
||||
|
||||
$( document ).on( 'click', 'input#reset_cookie_notice_options', function () {
|
||||
return confirm( cnArgs.resetToDefaults );
|
||||
} );
|
||||
|
||||
} )( jQuery );
|
||||
1
pole-sbv-content/plugins/cookie-notice/js/admin.min.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
!function(c){c(document).ready(function(){c(".cn_color").wpColorPicker(),c("#cn_refuse_opt").change(function(){c(this).is(":checked")?c("#cn_refuse_opt_container").slideDown("fast"):c("#cn_refuse_opt_container").slideUp("fast")}),c("#cn_revoke_cookies").change(function(){c(this).is(":checked")?c("#cn_revoke_opt_container").slideDown("fast"):c("#cn_revoke_opt_container").slideUp("fast")}),c("#cn_see_more").change(function(){c(this).is(":checked")?c("#cn_see_more_opt").slideDown("fast"):c("#cn_see_more_opt").slideUp("fast")}),c("#cn_on_scroll").change(function(){c(this).is(":checked")?c("#cn_on_scroll_offset").slideDown("fast"):c("#cn_on_scroll_offset").slideUp("fast")}),c("#cn_see_more_link-custom, #cn_see_more_link-page").change(function(){"custom"===c("#cn_see_more_link-custom:checked").val()?c("#cn_see_more_opt_page").slideUp("fast",function(){c("#cn_see_more_opt_link").slideDown("fast")}):"page"===c("#cn_see_more_link-page:checked").val()&&c("#cn_see_more_opt_link").slideUp("fast",function(){c("#cn_see_more_opt_page").slideDown("fast")})}),c("#cn_refuse_code_fields").find("a").click(function(e){e.preventDefault(),c("#cn_refuse_code_fields").find("a").removeClass("nav-tab-active"),c(".refuse-code-tab").removeClass("active");var n=c(this).attr("id").replace("-tab","");c("#"+n).addClass("active"),c(this).addClass("nav-tab-active")})}),c(document).on("click","input#reset_cookie_notice_options",function(){return confirm(cnArgs.resetToDefaults)})}(jQuery);
|
||||
291
pole-sbv-content/plugins/cookie-notice/js/front.js
Normal file
|
|
@ -0,0 +1,291 @@
|
|||
( function ( $ ) {
|
||||
|
||||
// ready event
|
||||
$( document ).ready( function () {
|
||||
var notice = $( '#cookie-notice' ),
|
||||
cookie = $.fn.getCookieNotice();
|
||||
|
||||
// handle set-cookie button click
|
||||
$( document ).on( 'click', '.cn-set-cookie', function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
$( this ).setCookieNotice( $( this ).data( 'cookie-set' ) );
|
||||
} );
|
||||
|
||||
// handle revoke button click
|
||||
$( document ).on( 'click', '.cn-revoke-cookie', function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
if ( cnArgs.refuse === 'yes' ) {
|
||||
var revoke = $( this );
|
||||
|
||||
if ( cnArgs.onScroll === 'yes' ) {
|
||||
// enable cookie acceptance by scrolling again
|
||||
$( window ).on( 'scroll', handleScroll );
|
||||
}
|
||||
|
||||
if ( cnArgs.revoke_cookies === '1' ) {
|
||||
// clicked shortcode button?
|
||||
if ( revoke.hasClass( 'cn-revoke-inline' ) ) {
|
||||
var body = $( 'body' );
|
||||
|
||||
// is cookie notice hidden?
|
||||
if ( ! ( body.hasClass( 'cookies-revoke' ) || body.hasClass( 'cookies-not-set' ) ) ) {
|
||||
// display automatic revoke button?
|
||||
if ( cnArgs.revoke_cookies_opt === 'automatic' ) {
|
||||
notice.showCookieNotice( 3 );
|
||||
} else {
|
||||
notice.showCookieNotice( 2 );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
notice.showCookieNotice( 1 );
|
||||
}
|
||||
|
||||
// update cookie value
|
||||
cookie = $.fn.getCookieNotice();
|
||||
|
||||
// add body class
|
||||
$.fn.setCookieNoticeBodyClass( 'cookies-set cookies-revoke ' + ( cookie === 'true' ? 'cookies-accepted' : 'cookies-refused' ) );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
// cookie is not set
|
||||
if ( typeof cookie === 'undefined' ) {
|
||||
// handle on scroll
|
||||
if ( cnArgs.onScroll === 'yes' ) {
|
||||
$( window ).on( 'scroll', handleScroll );
|
||||
}
|
||||
|
||||
notice.showCookieNotice( 0 );
|
||||
|
||||
$.fn.setCookieNoticeBodyClass( 'cookies-not-set' );
|
||||
// active refuse button?
|
||||
} else if ( cnArgs.refuse === 'yes' ) {
|
||||
if ( cnArgs.revoke_cookies === '1' ) {
|
||||
if ( cnArgs.revoke_cookies_opt === 'automatic' ) {
|
||||
notice.hideCookieNotice( 1 );
|
||||
}
|
||||
|
||||
$.fn.setCookieNoticeBodyClass( 'cookies-set ' + ( cookie === 'true' ? 'cookies-accepted' : 'cookies-refused' ) );
|
||||
}
|
||||
// remove cookie notice
|
||||
} else {
|
||||
// add body class
|
||||
$.fn.setCookieNoticeBodyClass( 'cookies-set ' + ( cookie === 'true' ? 'cookies-accepted' : 'cookies-refused' ) );
|
||||
}
|
||||
} );
|
||||
|
||||
// handle mouse scrolling
|
||||
function handleScroll( event ) {
|
||||
var win = $( this );
|
||||
|
||||
if ( win.scrollTop() > parseInt( cnArgs.onScrollOffset ) ) {
|
||||
// accept cookie
|
||||
win.setCookieNotice( 'accept' );
|
||||
|
||||
// remove itself after cookie accept
|
||||
win.off( 'scroll', handleScroll );
|
||||
}
|
||||
};
|
||||
|
||||
// set Cookie Notice
|
||||
$.fn.setCookieNotice = function ( cookie_value ) {
|
||||
if ( cnArgs.onScroll === 'yes' ) {
|
||||
$( window ).off( 'scroll', handleScroll );
|
||||
}
|
||||
|
||||
var date = new Date(),
|
||||
later_date = new Date(),
|
||||
notice = $( '#cookie-notice' );
|
||||
|
||||
// set expiry time in seconds
|
||||
later_date.setTime( parseInt( date.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
|
||||
|
||||
// set cookie
|
||||
cookie_value = cookie_value === 'accept' ? 'true' : 'false';
|
||||
document.cookie = cnArgs.cookieName + '=' + cookie_value + ';expires=' + later_date.toUTCString() + ';' + ( cnArgs.cookieDomain !== undefined && cnArgs.cookieDomain !== '' ? 'domain=' + cnArgs.cookieDomain + ';' : '' ) + ( cnArgs.cookiePath !== undefined && cnArgs.cookiePath !== '' ? 'path=' + cnArgs.cookiePath + ';' : '' ) + ( cnArgs.secure === '1' ? 'secure;' : '' );
|
||||
|
||||
// trigger custom event
|
||||
$.event.trigger( {
|
||||
type: 'setCookieNotice',
|
||||
value: cookie_value,
|
||||
time: date,
|
||||
expires: later_date
|
||||
} );
|
||||
|
||||
// add body class
|
||||
$.fn.setCookieNoticeBodyClass( 'cookies-set ' + ( cookie_value === 'true' ? 'cookies-accepted' : 'cookies-refused' ) );
|
||||
|
||||
if ( cnArgs.refuse === 'yes' && cnArgs.revoke_cookies === '1' && cnArgs.revoke_cookies_opt === 'automatic' ) {
|
||||
notice.hideCookieNotice( 2 );
|
||||
} else {
|
||||
notice.hideCookieNotice( 0 );
|
||||
}
|
||||
|
||||
if ( cookie_value && cnArgs.redirection === '1' ) {
|
||||
var url = window.location.protocol + '//',
|
||||
hostname = window.location.host + '/' + window.location.pathname;
|
||||
|
||||
if ( cnArgs.cache === '1' ) {
|
||||
url = url + hostname.replace( '//', '/' ) + ( window.location.search === '' ? '?' : window.location.search + '&' ) + 'cn-reloaded=1' + window.location.hash;
|
||||
|
||||
window.location.href = url;
|
||||
} else {
|
||||
url = url + hostname.replace( '//', '/' ) + window.location.search + window.location.hash;
|
||||
|
||||
window.location.reload( true );
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
// add class(es) to body
|
||||
$.fn.setCookieNoticeBodyClass = function( classes ) {
|
||||
$( 'body' ).removeClass( 'cookies-revoke cookies-accepted cookies-refused cookies-set cookies-not-set' ).addClass( classes );
|
||||
}
|
||||
|
||||
// get cookie value
|
||||
$.fn.getCookieNotice = function () {
|
||||
var value = "; " + document.cookie,
|
||||
parts = value.split( '; cookie_notice_accepted=' );
|
||||
|
||||
if ( parts.length === 2 )
|
||||
return parts.pop().split( ';' ).shift();
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
// display cookie notice
|
||||
$.fn.showCookieNotice = function( type ) {
|
||||
// trigger custom event
|
||||
$.event.trigger( {
|
||||
type: 'showCookieNotice',
|
||||
value: type,
|
||||
data: cnArgs
|
||||
} );
|
||||
|
||||
var notice = this;
|
||||
|
||||
switch ( type ) {
|
||||
case 0:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
||||
} else {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible' } ).show();
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
// hide revoke button
|
||||
notice.find( '.cookie-notice-revoke-container' ).fadeOut( 400, function () {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
||||
} );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
// hide revoke button
|
||||
notice.find( '.cookie-notice-revoke-container' ).slideUp( 400, function () {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
||||
} );
|
||||
} else {
|
||||
// hide revoke button
|
||||
notice.css( { 'visibility': 'visible' } ).find( '.cookie-notice-revoke-container' ).hide();
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
||||
} else {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible' } );
|
||||
}
|
||||
break;
|
||||
|
||||
case 3:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
// hide revoke button
|
||||
notice.find( '.cookie-notice-revoke-container' ).fadeOut( 400, function () {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
||||
} );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
// hide revoke button
|
||||
notice.find( '.cookie-notice-revoke-container' ).slideUp( 400, function () {
|
||||
// show cookie notice
|
||||
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
||||
} );
|
||||
} else {
|
||||
// hide revoke button
|
||||
notice.css( { 'visibility': 'visible' } ).find( '.cookie-notice-revoke-container' ).hide();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// hide cookie notice
|
||||
$.fn.hideCookieNotice = function ( type ) {
|
||||
// trigger custom event
|
||||
$.event.trigger( {
|
||||
type: 'hideCookieNotice',
|
||||
value: type,
|
||||
data: cnArgs
|
||||
} );
|
||||
|
||||
var notice = this,
|
||||
display = this.css( 'display' );
|
||||
|
||||
switch ( type ) {
|
||||
case 0:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
notice.fadeOut( 400 );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
notice.slideUp( 400 );
|
||||
} else {
|
||||
notice.css( { 'visibility': 'hidden' } );
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
notice.find( '.cookie-notice-revoke-container' ).hide().fadeIn( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
notice.find( '.cookie-notice-revoke-container' ).hide().slideDown( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
} else {
|
||||
notice.find( '.cookie-notice-revoke-container' ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if ( cnArgs.hideEffect === 'fade' ) {
|
||||
notice.fadeOut( 400, function () {
|
||||
// show revoke button
|
||||
notice.css( { 'visibility': 'hidden', 'display': display } ).find( '.cookie-notice-revoke-container' ).hide().fadeIn( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
} );
|
||||
} else if ( cnArgs.hideEffect === 'slide' ) {
|
||||
notice.slideUp( 400, function () {
|
||||
// show revoke button
|
||||
notice.css( { 'visibility': 'hidden', 'display': display } ).find( '.cookie-notice-revoke-container' ).hide().slideDown( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
} );
|
||||
} else {
|
||||
// show revoke button
|
||||
notice.css( { 'visibility': 'hidden' } ).find( '.cookie-notice-revoke-container' ).css( { 'visibility': 'visible', 'display': 'block' } );
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} )( jQuery );
|
||||
1
pole-sbv-content/plugins/cookie-notice/js/front.min.js
vendored
Normal file
|
|
@ -0,0 +1,378 @@
|
|||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Cookie Notice\n"
|
||||
"POT-Creation-Date: 2018-06-11 10:36+0200\n"
|
||||
"PO-Revision-Date: 2015-03-24 11:30+0100\n"
|
||||
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
||||
"Language-Team: dFactory <info@dfactory.eu>\n"
|
||||
"Language: en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.8\n"
|
||||
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;_n\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../cookie-notice.php:134
|
||||
msgid "Top"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:135
|
||||
msgid "Bottom"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:139 ../cookie-notice.php:176
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:140
|
||||
msgid "WordPress"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:141
|
||||
msgid "Bootstrap"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:145
|
||||
msgid "Automatic"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:146
|
||||
msgid "Manual"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:150
|
||||
msgid "Page link"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:151
|
||||
msgid "Custom link"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:160
|
||||
msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:161
|
||||
msgid "Bar color"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:165
|
||||
msgid "An hour"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:166
|
||||
msgid "1 day"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:167
|
||||
msgid "1 week"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:168
|
||||
msgid "1 month"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:169
|
||||
msgid "3 months"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:170
|
||||
msgid "6 months"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:171
|
||||
msgid "1 year"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:172
|
||||
msgid "infinity"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:177
|
||||
msgid "Fade"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:178
|
||||
msgid "Slide"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:182
|
||||
msgid "Header"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:183
|
||||
msgid "Footer"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:189
|
||||
msgid "We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:190
|
||||
msgid "Ok"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:191
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:192 ../cookie-notice.php:394
|
||||
msgid "Revoke cookies"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:193 ../cookie-notice.php:391
|
||||
msgid "Privacy policy"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:335 ../cookie-notice.php:346 ../cookie-notice.php:349
|
||||
msgid "Cookie Notice"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:351
|
||||
msgid "Need support?"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:352
|
||||
#, php-format
|
||||
msgid "If you are having problems with this plugin, please browse it's <a href=\"%s\" target=\"_blank\">Documentation</a> or talk about them in the <a href=\"%s\" target=\"_blank\">Support forum</a>"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:354
|
||||
msgid "Do you like this plugin?"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:355
|
||||
#, php-format
|
||||
msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:356
|
||||
#, php-format
|
||||
msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:357
|
||||
#, php-format
|
||||
msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:372
|
||||
msgid "Reset to defaults"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:388
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:389
|
||||
msgid "Message"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:390
|
||||
msgid "Button text"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:392
|
||||
msgid "Link target"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:393
|
||||
msgid "Refuse cookies"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:395
|
||||
msgid "Script blocking"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:396
|
||||
msgid "Reloading"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:397
|
||||
msgid "On scroll"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:398
|
||||
msgid "Cookie expiry"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:399
|
||||
msgid "Script placement"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:400
|
||||
msgid "Deactivation"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:403
|
||||
msgid "Design"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:404
|
||||
msgid "Position"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:405
|
||||
msgid "Animation"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:406
|
||||
msgid "Button style"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:407
|
||||
msgid "Button class"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:408
|
||||
msgid "Colors"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:423
|
||||
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:435
|
||||
msgid "Enter the cookie notice message."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:448
|
||||
msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:459
|
||||
msgid "Enable to give to the user the possibility to refuse third party non functional cookies."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:463
|
||||
msgid "The text of the button to refuse the usage of the cookies."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:481
|
||||
msgid "Head"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:482
|
||||
msgid "Body"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:485
|
||||
msgid "The code to be used in your site header, before the closing head tag."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:489
|
||||
msgid "The code to be used in your site footer, before the closing body tag."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:493
|
||||
msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after cookies are accepted."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:493
|
||||
msgid "To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:504
|
||||
msgid "Enable to give to the user the possibility to revoke their cookie consent <i>(requires \"Refuse cookies\" option enabled)</i>."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:507
|
||||
msgid "The text of the button to revoke the cookie consent."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:515
|
||||
msgid "Select the method for displaying the revoke button - automatic (in the Cookie Notice container) or manual using <code>[cookies_revoke]</code> shortcode."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:526
|
||||
msgid "Enable to reload the page after cookies are accepted."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:549
|
||||
msgid "Enable privacy policy link."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:550
|
||||
#, php-format
|
||||
msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:553
|
||||
msgid "The text of the privacy policy button."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:565
|
||||
msgid "Select where to redirect user for more information about cookies."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:568
|
||||
msgid "-- select page --"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:579
|
||||
msgid "Select from one of your site's pages."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:585
|
||||
msgid "Synchronize with WordPress Privacy Policy page."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:592
|
||||
msgid "Enter the full URL starting with http(s)://"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:614
|
||||
msgid "Select the privacy policy link target."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:637
|
||||
msgid "The ammount of time that cookie should be stored for."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:655
|
||||
msgid "Select where all the plugin scripts should be placed."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:675
|
||||
msgid "Select location for your cookie notice."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:696
|
||||
msgid "Cookie notice acceptance animation."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:707
|
||||
msgid "Enable cookie notice acceptance when users scroll."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:710
|
||||
msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:731
|
||||
msgid "Choose buttons style."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:744
|
||||
msgid "Enter additional button CSS classes separated by spaces."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:870
|
||||
msgid "Settings restored to defaults."
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:976
|
||||
msgid "Support"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:993
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: ../cookie-notice.php:1060
|
||||
msgid "Are you sure you want to reset these settings to defaults?"
|
||||
msgstr ""
|
||||
267
pole-sbv-content/plugins/cookie-notice/readme.txt
Normal file
|
|
@ -0,0 +1,267 @@
|
|||
=== Cookie Notice for GDPR ===
|
||||
Contributors: dfactory
|
||||
Donate link: http://www.dfactory.eu/
|
||||
Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
|
||||
Requires at least: 3.3
|
||||
Requires PHP: 5.2.4
|
||||
Tested up to: 5.0.3
|
||||
Stable tag: 1.2.46
|
||||
License: MIT License
|
||||
License URI: http://opensource.org/licenses/MIT
|
||||
|
||||
Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
|
||||
|
||||
== Description ==
|
||||
|
||||
[Cookie Notice](http://www.dfactory.eu/plugins/cookie-notice/) allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
|
||||
|
||||
For more information, check out plugin page at [dFactory](http://www.dfactory.eu/) or plugin [support forum](http://www.dfactory.eu/support/forum/cookie-notice/).
|
||||
|
||||
= Features include: =
|
||||
|
||||
* Customizable cookie message
|
||||
* Redirects users to specified page for more cookie information
|
||||
* Multiple cookie expiry options
|
||||
* Link to Privacy Policy page
|
||||
* WordPress Privacy Policy page synchronization
|
||||
* Option to accept cookies on scroll
|
||||
* Option to set on scroll offset
|
||||
* Option to refuse functional cookies
|
||||
* Option to revoke the user consent
|
||||
* Option to manually block scripts
|
||||
* Option to reload the page after cookies are accepted
|
||||
* Select the position of the cookie message box
|
||||
* Animate the message box after cookie is accepted
|
||||
* Select bottons style from None, WordPress and Bootstrap
|
||||
* Set the text and bar background colors
|
||||
* WPML and Polylang compatible
|
||||
* SEO friendly
|
||||
* .pot file for translations included
|
||||
|
||||
= Usage: =
|
||||
|
||||
If you'd like to code a functionality depending on the cookie notice value use the function below:
|
||||
|
||||
`if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) {
|
||||
// Your third-party non functional code here
|
||||
}`
|
||||
|
||||
= Get involved =
|
||||
|
||||
Feel free to contribute to the source code on the [dFactory GitHub Repository](https://github.com/dfactoryplugins).
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Install Cookie Notice either via the WordPress.org plugin directory, or by uploading the files to your server
|
||||
2. Activate the plugin through the 'Plugins' menu in WordPress
|
||||
3. Go to the Cookie Notice settings and set your options.
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
No questions yet.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. screenshot-1.png
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.2.46 =
|
||||
* Tweak: Remove WP Super Cache cookie on deactivation
|
||||
* Tweak: Remove plugin version from the db on deactivation
|
||||
|
||||
= 1.2.45 =
|
||||
* Tweak: Improved WP Super Cache support
|
||||
* Tweak: CSS container style issue and media query for mobile
|
||||
|
||||
= 1.2.44 =
|
||||
* Fix: The text of the revoke button ignored in shortcode
|
||||
* Fix: Revoke consent button not displayed automatically in top position
|
||||
* Tweak: Add shortcode parsing for content of [cookies_accepted], thanks to [dsturm](https://github.com/dsturm)
|
||||
|
||||
= 1.2.43 =
|
||||
* New: Option to revoke the user consent
|
||||
* New: Script blocking extended to header and footer
|
||||
* New: Synchronization with WordPress 4.9.6 Privacy Policy page
|
||||
* New: Custom button class option
|
||||
* Tweak: Added 1 hour cookie expiry option
|
||||
|
||||
= 1.2.42 =
|
||||
* New: Introducing [cookies_accepted][/cookies_accepted] shortcode
|
||||
* Fix: Infinite cookie expiry issue
|
||||
|
||||
= 1.2.41 =
|
||||
* Fix: Infinite redirection loop with scroll enabled
|
||||
|
||||
= 1.2.40 =
|
||||
* Fix: Div align center on some themes
|
||||
* Tweak: Extended list of allowed HTML tags in refuse code
|
||||
* Tweak: Minified CSS and JS
|
||||
|
||||
= 1.2.39 =
|
||||
* New: Option to reload the page after cookies are accepted
|
||||
|
||||
= 1.2.38 =
|
||||
* Tweak: Move frontend cookie js functions before the document ready call, thanks to [fgreinus](https://github.com/fgreinus)
|
||||
* Tweak: Adjust functional javascript code handling
|
||||
* Fix: Chhromium infinity expiration date not valid
|
||||
* Fix: Remove deprecated screen_icon() function
|
||||
|
||||
= 1.2.37 =
|
||||
* Tweak: Add aria landmark role="banner"
|
||||
* Tweak: Extend cn_cookie_notice_args with button class
|
||||
|
||||
= 1.2.36.1 =
|
||||
* Fix: Repository upload issue with 1.2.36
|
||||
|
||||
= 1.2.36 =
|
||||
* Fix: String translation support for WMPL 3.2+
|
||||
* Fix: Global var possible conflict with other plugins
|
||||
* Tweak: Add $options array to "cn_cookie_notice_output" filter, thanks to [chesio](https://github.com/chesio).
|
||||
* Tweak: Removed local translation files in favor of WP repository translations.
|
||||
|
||||
= 1.2.35 =
|
||||
* Tweak: Use html_entity_decode on non-functional code block
|
||||
* Tweak: get_pages() function placement optimization
|
||||
* Tweak: Filterable manage cookie notice capability
|
||||
|
||||
= 1.2.34 =
|
||||
* Fix: Empty href in links HTML validation issue
|
||||
|
||||
= 1.2.33 =
|
||||
* New: Greek translation thanks to Elias Stefanidis
|
||||
|
||||
= 1.2.32 =
|
||||
* Fix: Accept cookie button hidden on acceptance instead of the cookie message container
|
||||
|
||||
= 1.2.31 =
|
||||
* New: Non functional Javascript code field
|
||||
* Fix: Minified Javascript caching issue
|
||||
|
||||
= 1.2.30 =
|
||||
* Fix: jQuery error after accepting cookies
|
||||
|
||||
= 1.2.29 =
|
||||
* Tweak: Add class to body element when displayed
|
||||
* Tweak: Italian translation update
|
||||
|
||||
= 1.2.28 =
|
||||
* New: Option to set on scroll offset
|
||||
|
||||
= 1.2.27 =
|
||||
* Tweak: Correctly remove scroll event, limit possible conflicts
|
||||
* Tweak: Italian translation update
|
||||
|
||||
= 1.2.26 =
|
||||
* Fix: Accept cookies on scroll option working unchecked.
|
||||
* Fix: call_user_func() warning on lower version of WP
|
||||
|
||||
= 1.2.25 =
|
||||
* New: Option to accept cookies on scroll, thanks to [Cristian Pascottini](http://cristian.pascottini.net/)
|
||||
|
||||
= 1.2.24 =
|
||||
* New: Option to refuse to accept cookies
|
||||
* New: setCookieNotice custom jQuery event
|
||||
* Tweak: Italian translation updated, thanks to Luca Speranza
|
||||
|
||||
= 1.2.23 =
|
||||
* New: Finnish translation, thanks to [Daniel Storgards](www.danielstorgards.com)
|
||||
|
||||
= 1.2.22 =
|
||||
* Tweak: Swedish translation updated, thx to Ove Kaufeldt
|
||||
|
||||
= 1.2.21 =
|
||||
* New: Plugin development moved to [dFactory GitHub Repository](https://github.com/dfactoryplugins)
|
||||
* Tweak: Code cleanup
|
||||
|
||||
= 1.2.20 =
|
||||
* New: Option to select scripts placement, header or footer
|
||||
|
||||
= 1.2.19 =
|
||||
* New: Danish translation, thanks to Lui Wallentin Gottler
|
||||
|
||||
= 1.2.18.1 =
|
||||
* Fix: Quick fix for 1.2.18 print_r in code
|
||||
|
||||
= 1.2.18 =
|
||||
* New: More info link target option
|
||||
* Tweak: Additional HTML ids, for more flexible customization
|
||||
|
||||
= 1.2.17 =
|
||||
* New: Hebrew translation, thanks to [Ahrale Shrem](http://atar4u.com/)
|
||||
|
||||
= 1.2.16 =
|
||||
* Tweak: Dutch translation missing due to a typo
|
||||
|
||||
= 1.2.15 =
|
||||
* New: Danish translation, thanks to Hans C. Jorgensen
|
||||
* Fix: Notice bar not visible if no animation selected
|
||||
|
||||
= 1.2.14 =
|
||||
* New: Hungarian translation, thanks to [Surbma](http://surbma.hu)
|
||||
|
||||
= 1.2.13 =
|
||||
* New: Croatian translation, thanks to [Marko Beus](http://www.markobeus.com/)
|
||||
|
||||
= 1.2.12 =
|
||||
* New: Slovenian translation, thanks to Thomas Cuk
|
||||
|
||||
= 1.2.11 =
|
||||
* New: Swedish translation, thanks to [Daniel Storgards](http://www.danielstorgards.com/)
|
||||
|
||||
= 1.2.10 =
|
||||
* New: Italian translation, thanks to [Luca](http://www.lucacicca.it)
|
||||
* Tweak: Confirmed WP 4.0 compatibility
|
||||
|
||||
= 1.2.9.1 =
|
||||
* Tweak: Enable HTML in cookie message text
|
||||
* New: Option to donate this plugin :)
|
||||
|
||||
= 1.2.8 =
|
||||
* New: Czech translation, thanks to [Adam Laita](http://laita.cz)
|
||||
|
||||
= 1.2.7 =
|
||||
* New: French translation, thanks to [Laura Orsal](http://www.traductrice-independante.fr)
|
||||
* New: Deleting plugin settings on deactivation as an option
|
||||
|
||||
= 1.2.6 =
|
||||
* New: German translation, thanks to Alex Ernst
|
||||
|
||||
= 1.2.5 =
|
||||
* New: Spanish translation, thanks to Fernando Blasco
|
||||
|
||||
= 1.2.4 =
|
||||
* New: Added filter hooks to customize where and how display the cookie notice
|
||||
|
||||
= 1.2.3 =
|
||||
* New: Portuguese translation, thanks to Luis Maia
|
||||
|
||||
= 1.2.2 =
|
||||
* Fix: Read more linking to default site language in WPML & Polylang
|
||||
|
||||
= 1.2.1 =
|
||||
* Tweak: UI improvements for WP 3.8
|
||||
|
||||
= 1.2.0 =
|
||||
* Fix: Cookie not saving in IE
|
||||
* Fix: Notice hidden under Admin bar bug
|
||||
* Tweak: Improved WPML & Polylang compatibility
|
||||
|
||||
= 1.1.0 =
|
||||
* New: Rewritten cookie setting method to pure JS
|
||||
* Fix: Compatibility with WP Super Cache and other caching plugins
|
||||
|
||||
= 1.0.2 =
|
||||
* New: Dutch translation, thanks to Heleen van den Bos
|
||||
|
||||
= 1.0.1 =
|
||||
* Tweak: Changed setting cookie mode from AJAX to JS driven
|
||||
|
||||
= 1.0.0 =
|
||||
Initial release
|
||||
|
||||
== Upgrade Notice ==
|
||||
|
||||
= 1.2.46 =
|
||||
* Tweak: Remove WP Super Cache cookie on deactivation
|
||||
* Tweak: Remove plugin version from the db on deactivation
|
||||
|
|
@ -90,14 +90,14 @@ h3 {
|
|||
.schema01 {
|
||||
max-width:100%;
|
||||
background-color:#575756;
|
||||
//display:flex;
|
||||
/* //display:flex; */
|
||||
text-align:center;
|
||||
text-align: -webkit-center;
|
||||
justify-content:center;
|
||||
}
|
||||
|
||||
.schema02 {
|
||||
//display:flex;
|
||||
/* //display:flex; */
|
||||
text-align:center;
|
||||
text-align: -webkit-center;
|
||||
justify-content:center;
|
||||
|
|
@ -242,7 +242,7 @@ h3 {
|
|||
}
|
||||
|
||||
.securityText2 {
|
||||
//width:400px;
|
||||
/* width:400px; */
|
||||
}
|
||||
|
||||
.security p {
|
||||
|
|
@ -1050,3 +1050,150 @@ p {
|
|||
font-weight:600;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*------------------Nos métiers ---------------------*/
|
||||
.btn-beige{
|
||||
background-color: #d0ae88;
|
||||
font-size: 1.2em;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
padding: 5px 15px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: all ease-in-out 0.2s;
|
||||
}
|
||||
.btn-beige:hover, .btn-beige.selected{
|
||||
background-color: #A3896B;
|
||||
}
|
||||
|
||||
.ourjobs-header .btn-beige{
|
||||
margin: 0 auto;
|
||||
width: 170px;
|
||||
display: block;
|
||||
}
|
||||
.ourjobs-type .accelerators-holder{
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 23%;
|
||||
margin: 0 1% 20px 1%;
|
||||
}
|
||||
|
||||
.ourjobs-type .acc-title-holder .acc-title span, .accelerators-block .acc-title-holder .acc-title strong{
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px){
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 30%;
|
||||
}
|
||||
.ourjobs-type .acc-title-holder .acc-title span, .accelerators-block .acc-title-holder .acc-title strong{
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px){
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.jobpage .listPost {text-align: center;}
|
||||
.jobpage .listPost a {display: inline-block; margin-bottom: 10px;}
|
||||
.jobpage .listPost .selectwrapper{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 265px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.jobpage .listPost .selectwrapper:after{
|
||||
content: "▼";
|
||||
font-size: 1em;
|
||||
height: 1em;
|
||||
line-height: 1;
|
||||
top: 19px;
|
||||
right: 19px;
|
||||
position: absolute;
|
||||
color: #ffffff;
|
||||
pointer-events: none;
|
||||
|
||||
}
|
||||
.jobpage .listPost .selectChangePost{display: none; width: 100%; border:0; border-radius:5px; padding: 15px 20px; background-color: #d0ae88; color: #ffffff; -webkit-appearance : none; -moz-appearance: none; overflow: hidden; cursor: pointer;}
|
||||
@media (max-width: 768px){
|
||||
.jobpage .listPost a {display: none;}
|
||||
.jobpage .listPost .selectChangePost{display: block;}
|
||||
}
|
||||
.jobpage .onePost{ opacity: 0;}
|
||||
.jobpage .onePost header{margin: 30px 0 60px 0; text-align: center; position: relative;}
|
||||
.jobpage .onePost header .owl-next, .jobpage .onePost header .owl-prev{-webkit-transition: opacity .3s ease-in-out;-o-transition: opacity .3s ease-in-out;transition: opacity .3s ease-in-out;display: block;position: absolute;width: 40px;height: 54px;right: 55px;left: auto;top: 128px;font-size: 0;background: url('../images/owl-nav-arrow-brown.svg');cursor: pointer;cursor: hand;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}
|
||||
.jobpage .onePost header .owl-prev{left: 55px;;right: auto;-webkit-transform: rotate(180deg);-ms-transform: rotate(180deg);transform: rotate(180deg);}
|
||||
.jobpage .onePost iframe {width: 100%;}
|
||||
.jobpage .onePost .descPost .row {display: flex; flex-direction: row;}
|
||||
.jobpage .onePost .descPost .row > div {margin: 0 1%; margin: 60px 0; width: 50%;}
|
||||
.jobpage .onePost .descPost .btn-beige{margin: 0 auto;width: 170px;display: block;}
|
||||
|
||||
@media (max-width: 768px){
|
||||
.jobpage .onePost .descPost .row {flex-direction: column;}
|
||||
.jobpage .onePost .descPost .row > div {margin: 0; width: 100%;}
|
||||
.jobpage .onePost header .owl-next, .jobpage .onePost header .owl-prev{display:none;}
|
||||
}
|
||||
|
||||
.jobpage h4{color: #d0ae88;font-weight: 900;position: relative;margin-bottom: 32px; border-bottom: 1px solid #d0ae88;}
|
||||
@media (max-width: 768px){
|
||||
.jobpage h4{font-size: 19px; margin-bottom: 10px;}
|
||||
}
|
||||
|
||||
.jobpage .social_share{border: 1px solid #a7a7a7; width: 194px; background-color: #eeeeee; padding: 10px 20px; margin: 20px auto 0 auto;}
|
||||
|
||||
.jobpage .social_share p {font-size: 13px; margin-bottom: 6px;}
|
||||
.jobpage .social_share ul {list-style: none; margin: 0; padding: 0;}
|
||||
.jobpage .social_share li {display: inline-block; cursor: pointer;}
|
||||
|
||||
|
||||
#cookie-notice {
|
||||
color: rgb(0, 0, 0) !important;
|
||||
background-color: rgba(0, 0, 0, 0.4) !important;
|
||||
height: 100% !important;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#cookie-notice .cookie-notice-container {
|
||||
height: 40%;
|
||||
background-color: #FFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
#cn-accept-cookie {
|
||||
transition: color .3s ease-in-out,background-color .3s ease-in-out;
|
||||
display: block;
|
||||
padding: 6.5px 4px;
|
||||
min-width: 150px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
background-color: #e30613 !important;
|
||||
border-top: 2px solid #e30613;
|
||||
border-left: 2px solid #e30613;
|
||||
border-right: 2px solid #e30613;
|
||||
border-bottom: 7px solid #b5050f;
|
||||
text-align: center;
|
||||
background-image: none;
|
||||
box-shadow:none !important;
|
||||
}
|
||||
#cn-accept-cookie:hover {
|
||||
background-color: #FFF !important;
|
||||
color: #e30613;
|
||||
}
|
||||
#cookie-notice .cn-button {
|
||||
margin-left:auto !important;
|
||||
margin-right:auto !important;
|
||||
margin-top:20px;
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ get_header(); ?>
|
|||
</span>
|
||||
</h3>
|
||||
<div>
|
||||
<p>Our three subsidiaries, with 11 sites, employ 2 500 people within the LDC Group.<br/>
|
||||
<p>Our three subsidiaries, with 11 sites, employ 3 600 people within the LDC Group.<br/>
|
||||
Our production sites are located near poultry farmers so that all stakeholders can benefit from an exchange of expertise.</p>
|
||||
</div>
|
||||
<div class="bretagneMap">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ get_header(); ?>
|
|||
</span>
|
||||
</h3>
|
||||
<div>
|
||||
<p>Nos 3 filières, comptant 11 sites, emploient 2 500 personnes au sein du groupe LDC.<br/>
|
||||
<p>Nos 3 filières, comptant 11 sites, emploient 3 600 personnes au sein du groupe LDC.<br/>
|
||||
Nos sites de production évoluent à proximité des éleveurs<br/>
|
||||
ainsi nous encourageons et bénéficions d'un partage d'expérience fort.</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,16 +54,7 @@
|
|||
</script>
|
||||
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/vendor.min.js"></script>
|
||||
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/app.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* Google Analytics */
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-108555037-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/main.css" rel="stylesheet">
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ if (is_admin()){
|
|||
}
|
||||
// ---- Custom post type
|
||||
get_template_part( 'inc/functs', 'custompicto' );
|
||||
get_template_part( 'inc/functs', 'metiers' );
|
||||
|
||||
|
||||
// ------ Upload dans dossier spécifique
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title><?php wp_title(''); ?></title>
|
||||
<title><?php the_title(); ?></title>
|
||||
|
||||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
|
||||
|
||||
|
|
@ -21,12 +21,12 @@
|
|||
<link href="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.fancybox.min.css" rel="stylesheet">
|
||||
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/style.min.css" rel="stylesheet">
|
||||
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/vendor.min.css" rel="stylesheet">
|
||||
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/main.css" rel="stylesheet">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="js/html5shiv.js"></script>
|
||||
<script src="js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/LDCR-favicons_16x16.png">
|
||||
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon/favicon-16x16.png">
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head><!--/head-->
|
||||
|
|
@ -63,6 +63,7 @@
|
|||
<li class="savoir"><a href="<?=custom_get_page_link(338);?>"><?php pll_e("Une histoire de <br> savoir-faire"); ?></a></li>
|
||||
<li class="solutions"> <a href="<?=custom_get_page_link(407);?>"><?php pll_e("Nos solutions au <br> service de nos clients"); ?></a></li>
|
||||
<li class="ourbrands"> <a href="<?=custom_get_page_link(405);?>"><?php pll_e("Nos marques"); ?></a></li>
|
||||
<li class="ourjobs"> <a href="<?=custom_get_page_link(772);?>"><?php pll_e("Nos métiers"); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 73 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/doux.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/fb.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/linkedin.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 34 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/twitter.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/viadeo.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
53
pole-sbv-content/themes/pole-sbv/inc/functs-metiers.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
// ---- CPT Métiers
|
||||
function wp_cpt_metiers() {
|
||||
$labels = array(
|
||||
'name' => _x( 'Métiers', 'Post Type General Name'),
|
||||
'singular_name' => _x( 'Métier', 'Post Type Singular Name'),
|
||||
'menu_name' => __( 'Métiers'),
|
||||
'all_items' => __( 'Toutes les métiers'),
|
||||
'view_item' => __( 'Voir les métiers'),
|
||||
'add_new_item' => __( 'Ajouter un métier'),
|
||||
'add_new' => __( 'Ajouter'),
|
||||
'edit_item' => __( 'Editer le métier'),
|
||||
'update_item' => __( 'Modifier le métier'),
|
||||
'search_items' => __( 'Rechercher un métier'),
|
||||
'not_found' => __( 'Non trouvé'),
|
||||
'not_found_in_trash' => __( 'Non trouvé dans la corbeille'),
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'label' => __( 'Métiers'),
|
||||
'labels' => $labels,
|
||||
'supports' => array( 'title', 'editor'),
|
||||
'hierarchical' => false,
|
||||
'public' => true,
|
||||
'has_archive' => false,
|
||||
'rewrite' => array( 'slug' => 'nos-metiers'),
|
||||
'menu_icon' => 'dashicons-businessman'
|
||||
);
|
||||
|
||||
register_post_type( 'cpt_metiers', $args );
|
||||
}
|
||||
add_action( 'init', 'wp_cpt_metiers', 0 );
|
||||
|
||||
// ---- Taxo : Catégories de métier
|
||||
function taxo_familles_metiers() {
|
||||
$args = array(
|
||||
'label' => __( 'Familles' ),
|
||||
'hierarchical' => true,
|
||||
'rewrite' => array( 'slug' => 'metiers'),
|
||||
'show_admin_column' => true,
|
||||
'meta_box_cb' => false
|
||||
);
|
||||
register_taxonomy( 'familles_metiers',array( 'cpt_metiers'), $args );
|
||||
}
|
||||
add_action( 'init', 'taxo_familles_metiers');
|
||||
|
||||
// ---- Supprime Yoast du CPT
|
||||
function remove_yoast_cpt() {
|
||||
remove_meta_box('wpseo_meta', "cpt_metiers", 'normal');
|
||||
}
|
||||
add_action('add_meta_boxes', 'remove_yoast_cpt', 100);
|
||||
?>
|
||||
|
|
@ -125,6 +125,15 @@ get_header(); ?>
|
|||
</div>
|
||||
</div>
|
||||
<p class="international" style="margin-bottom:0;"><span class='bold'>International : </span></p>
|
||||
<div class="brand">
|
||||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/doux.png" alt="Doux" class="specImg" />
|
||||
<div class=" fixMargin">
|
||||
<p>
|
||||
Doux, expert des produits de volaille pour le grand export.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/prims-150x150.png" alt="Prim's" class="specImg" />
|
||||
<div class=" fixMargin">
|
||||
|
|
|
|||
|
|
@ -76,7 +76,8 @@ get_header(); ?>
|
|||
</h3>
|
||||
<div>
|
||||
<p>Nous accompagnons chaque acteur à tous les niveaux dans ses missions et ses responsabilités. <br/>Nous formons nos salariés et développons leurs compétences.</p>
|
||||
</div>
|
||||
<p>Nous encourageons nos collaborateurs dans leurs perspectives de carrière en privilégiant l’évolution interne. Découvrez tous <a href="<?=custom_get_page_link(772);?>">nos métiers</a> et <a target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">offres d’emploi</a> sur l’espace nous rejoindre.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="text-content">
|
||||
|
|
|
|||
73
pole-sbv-content/themes/pole-sbv/metier_part.php
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<div class="listPost">
|
||||
<?php
|
||||
$nbPost = $query->post_count;
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<a href="#" class="changePost btn-beige" attr-id="<?php echo get_the_ID(); ?>"><?php echo get_the_title(); ?></a>
|
||||
<?php endwhile; ?>
|
||||
<div class="selectwrapper"><select class="selectChangePost" >
|
||||
<?php rewind_posts();
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<option value="<?php echo get_the_ID(); ?>" ><?php echo get_the_title(); ?></option>
|
||||
<?php endwhile; ?>
|
||||
</select></div>
|
||||
</div>
|
||||
<div class="contentPost">
|
||||
<?php rewind_posts();
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<div class="onePost" attr-id="<?php echo get_the_ID(); ?>" style="display:none;">
|
||||
<header>
|
||||
<?php if( get_field('metier_type_presentation') ): ?>
|
||||
<?php if( get_field('metier_video_link') != ""): ?>
|
||||
<iframe src="<?php the_field("metier_video_link"); ?>" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php if( get_field('metier_visuel') != ""): ?>
|
||||
<img src="<?php the_field("metier_visuel"); ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( (get_field('metier_video_link') != "" || get_field('metier_visuel') != "") && $nbPost > 1): ?>
|
||||
<div class="owl-prev">Précédent</div>
|
||||
<div class="owl-next">Suivant</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="social_share">
|
||||
<p>PARTAGEZ CE JOB :</p>
|
||||
<ul>
|
||||
<li class="social-share linkedin"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/linkedin.jpg" alt="LinkedIn" /></li>
|
||||
<li class="social-share viadeo"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/viadeo.jpg" alt="Viadeo" /></li>
|
||||
<li class="social-share facebook"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/fb.jpg" alt="Facebook" /></li>
|
||||
<li class="social-share twitter"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter.jpg" alt="Twitter" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="descPost">
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Missions principales</span>
|
||||
</h3>
|
||||
<?php the_field("metier_mission"); ?>
|
||||
<div class="row">
|
||||
<div>
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Connaissances</span>
|
||||
</h3>
|
||||
<?php the_field("metier_connaissances"); ?>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Compétences</span>
|
||||
</h3>
|
||||
<?php the_field("metier_competences"); ?>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn-beige" target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">Rejoignez-nous</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
76
pole-sbv-content/themes/pole-sbv/metiers_template.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
/**
|
||||
* Template Name: Nos Métiers Template
|
||||
* @package WordPress
|
||||
*/
|
||||
get_header(); ?>
|
||||
|
||||
<div class="banner banner-decor" style="background-image:url(<?php the_field('page_banner') ?>)">
|
||||
<div class="container">
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Accueil</a></li>
|
||||
<li><?php the_title(); ?></li>
|
||||
</ul>
|
||||
<div class="caption-title">
|
||||
<h1>
|
||||
<span class="bold"><?php the_title(); ?></span>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<main id="main">
|
||||
<div id="content">
|
||||
<section class="text-content">
|
||||
<div class="container ourjobs-header">
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
?>
|
||||
<a class="btn-beige" target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">Rejoignez-nous</a>
|
||||
</div>
|
||||
</section>
|
||||
<section class="text-content accelerators-block">
|
||||
<div class="container ourjobs-type">
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">
|
||||
Nos familles de métiers
|
||||
</span>
|
||||
</h3>
|
||||
<div class="accelerators-holder">
|
||||
<?php
|
||||
$termList = get_terms( array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'hide_empty' => false,
|
||||
'orderby' => 'id',
|
||||
'order' => 'DESC',
|
||||
'parent' => 0
|
||||
) );
|
||||
if(!empty($termList)):
|
||||
foreach ($termList as $term):
|
||||
?>
|
||||
<a href="<?php echo get_term_link($term->term_id); ?>" class="accelerator" >
|
||||
<img src="<?php the_field('fammet_vignette', "familles_metiers_".$term->term_id) ?>" class="grayscale grayscale-fade" alt="">
|
||||
<div class="acc-title-holder">
|
||||
<div class="acc-title">
|
||||
<span><?php echo $term->name; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.ourjobs').addClass('current-menu-item');
|
||||
});
|
||||
</script>
|
||||
181
pole-sbv-content/themes/pole-sbv/taxonomy-familles_metiers.php
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WordPress
|
||||
*/
|
||||
get_header();
|
||||
|
||||
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
||||
|
||||
?>
|
||||
|
||||
<div class="banner banner-decor" style="background-image:url(<?php the_field('fammet_banniere', "familles_metiers_".$term->term_id) ?>)">
|
||||
<div class="container">
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Accueil</a></li>
|
||||
<li><a href="<?php echo custom_get_page_link(772); ?>">Nos métiers</a></li>
|
||||
<li><?php echo $term->name; ?></li>
|
||||
</ul>
|
||||
<div class="caption-title">
|
||||
<h1>
|
||||
<span class="bold"><?php echo $term->name; ?></span>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<main id="main">
|
||||
<div id="content" class="jobpage">
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<?php echo term_description(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
$children = get_term_children($term->term_id, get_query_var('taxonomy')); // get children
|
||||
if(sizeof($children)==0){
|
||||
// ---- query
|
||||
$args = array(
|
||||
'post_type' => 'cpt_metiers',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'tax_query' => array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'field' => 'term_id',
|
||||
'terms' => array( $term->term_id),
|
||||
),
|
||||
),
|
||||
);
|
||||
$query = new WP_Query( $args );
|
||||
if ($query->have_posts()) :
|
||||
include(locate_template('metier_part.php'));
|
||||
?>
|
||||
<?php endif;
|
||||
|
||||
}else{
|
||||
foreach ($children as $child) {
|
||||
$childTerm = get_term_by( 'id', $child, 'familles_metiers' );
|
||||
?>
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<h4 class="heading-decoration2"><?php echo $childTerm->name ?></h4>
|
||||
<?php echo term_description($childTerm->term_id); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
// ---- query
|
||||
$args = array(
|
||||
'post_type' => 'cpt_metiers',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'tax_query' => array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'field' => 'term_id',
|
||||
'terms' => array( $childTerm->term_id),
|
||||
),
|
||||
),
|
||||
);
|
||||
$query = new WP_Query( $args );
|
||||
if ($query->have_posts()) :
|
||||
include(locate_template('metier_part.php'));
|
||||
endif;
|
||||
wp_reset_query();
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<script type="text/javascript">
|
||||
|
||||
function socialWindow(url) {
|
||||
var left = (screen.width - 570) / 2;
|
||||
var top = (screen.height - 570) / 2;
|
||||
var params = "menubar=no,toolbar=no,status=no,width=570,height=570,top=" + top + ",left=" + left;
|
||||
window.open(url,"NewWindow",params);
|
||||
}
|
||||
|
||||
function setShareLinks() {
|
||||
var pageUrl = encodeURIComponent(document.URL);
|
||||
var tweet = encodeURIComponent($("meta[property='og:description']").attr("content"));
|
||||
|
||||
$(".social-share.facebook").on("click", function() {
|
||||
url = "https://www.facebook.com/sharer.php?u=" + pageUrl;
|
||||
socialWindow(url);
|
||||
});
|
||||
|
||||
$(".social-share.twitter").on("click", function() {
|
||||
url = "https://twitter.com/intent/tweet?url=" + pageUrl + "&text=" + tweet;
|
||||
socialWindow(url);
|
||||
});
|
||||
|
||||
$(".social-share.linkedin").on("click", function() {
|
||||
url = "https://www.linkedin.com/shareArticle?mini=true&url=" + pageUrl;
|
||||
socialWindow(url);
|
||||
})
|
||||
|
||||
$(".social-share.viadeo").on("click", function() {
|
||||
url = "https://www.viadeo.com/fr/widgets/share/preview?url=" + pageUrl;
|
||||
socialWindow(url);
|
||||
})
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.ourjobs').addClass('current-menu-item');
|
||||
|
||||
var curVideoId = 0;
|
||||
|
||||
$(".changePost").on('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
var $iframe = $(".onePost[attr-id='"+curVideoId+"']").find("iframe");
|
||||
var vidsrc = $iframe.attr('src');
|
||||
$iframe.attr('src','');
|
||||
$iframe.attr('src', vidsrc);
|
||||
|
||||
var IdPost = $(this).attr("attr-id");
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').hide();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').css('opacity', 0);
|
||||
$(".onePost[attr-id='"+IdPost+"']").show().animate({ opacity: 1 });
|
||||
$(this).parent().find('.changePost').removeClass('selected');
|
||||
$(this).addClass('selected');
|
||||
$(this).parent().find(".selectChangePost").val(IdPost);
|
||||
curVideoId = IdPost;
|
||||
});
|
||||
|
||||
$(".selectChangePost").on('change', function(event) {
|
||||
|
||||
var $iframe = $(".onePost[attr-id='"+curVideoId+"']").find("iframe");
|
||||
var vidsrc = $iframe.attr('src');
|
||||
$iframe.attr('src','');
|
||||
$iframe.attr('src', vidsrc);
|
||||
|
||||
var IdPost = $(this).val();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').hide();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').css('opacity', 0);
|
||||
$(".onePost[attr-id='"+IdPost+"']").show().animate({ opacity: 1 });
|
||||
$(this).parent().parent().find('.changePost').removeClass('selected');
|
||||
$(".changePost[attr-id='"+IdPost+"']").addClass('selected');
|
||||
curVideoId = IdPost;
|
||||
});
|
||||
|
||||
$(".owl-next").on('click', function(event) {
|
||||
var selectedLink = $(this).closest(".container").find(".selected");
|
||||
selectedLink.next().trigger("click");
|
||||
});
|
||||
$(".owl-prev").on('click', function(event) {
|
||||
var selectedLink = $(this).closest(".container").find(".selected");
|
||||
selectedLink.prev().trigger("click");
|
||||
});
|
||||
|
||||
if($(".listPost").length == 1){
|
||||
$(this).find(".changePost:first").trigger("click");
|
||||
}
|
||||
setShareLinks();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
define( 'WP_CONTENT_DIR', 'D:/sources/www/pole-sbv/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
define( 'WP_CONTENT_URL', 'http://pole-sbv.dev/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
define( 'WP_CONTENT_URL', 'http://dev.societebretonnedevolaille.test/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
|
||||
|
||||
/** PATH GIT */
|
||||
|
|
@ -45,3 +45,6 @@ define('WP_DEBUG_LOG', true);
|
|||
|
||||
/** Stop du cron WordPress **/
|
||||
define('DISABLE_WP_CRON', true);
|
||||
|
||||
/** Empêche wordpress de contacter l'extèrieur */
|
||||
define('WP_HTTP_BLOCK_EXTERNAL', true);
|
||||
|
|
|
|||