This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); | |
/** | |
* Conditional notices for fields | |
* | |
* @param array $notices | |
* | |
* @return array | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
** 3. Title only | |
*/ | |
@media (max-width: 425px) { | |
.cmplz-cookiebanner | |
.cmplz-header | |
.cmplz-title { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
** 2. Title and Logo | |
*/ | |
@media (max-width: 425px) { | |
.cmplz-cookiebanner | |
.cmplz-header | |
.cmplz-title { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
** 1. Title and Close Button | |
*/ | |
@media (max-width: 425px) { | |
.cmplz-cookiebanner | |
.cmplz-header | |
.cmplz-title { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Override cookiebanner template html | |
* @param string $html | |
* | |
* @return string | |
*/ | |
function cmplz_custom_banner_file($path, $filename){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
** Remove line 1 when you're NOT using a MU plugin | |
** YouTube custom placeholder will replace all YouTube placeholders | |
*/ | |
function cmplz_my_custom_youtube_placeholder($new_src, $src){ | |
$new_src = 'https://mydomain.com/my-incredible-placeholder.jpg'; | |
return $new_src; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Completely override CSS generated by Complianz | |
* @param string $css | |
* | |
* @return string | |
*/ | |
function my_custom_banner_css($css){ | |
ob_start(); | |
//add css below |
NewerOlder