reanimuotasis
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Missing header on the previewChrome 73, but its not browser depending. I have managed to fix this issue in the acf-table-v5.php on 528 line.
Instead of:
if ( $a[‘p’][‘o’][‘uh’] === 1 ) {
I have used:
if ( $a[‘p’][‘o’][‘uh’] == 1 ) {
and the problem is solved, the table header is showed on preview too.Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Array to string conversionGreat to hear. Waiting for the solution. Thanks
You can insert into your main js file or you can add inline code to you header/footer between <script> tags
I have solved my issue.
In my functions.php file I have inserted this code:
function gdpr_js_extension() { if (!isset($_COOKIE['cookie-helper']) && !isset($_COOKIE['moove_gdpr_popup'])) { setcookie("moove_gdpr_popup", '{"strict":"1","thirdparty":"1","advanced":"0"}', strtotime("+365 days"), '/'); $_COOKIE['moove_gdpr_popup'] = '{"strict":"1","thirdparty":"1","advanced":"0"}'; setcookie("cookie-helper", 1, strtotime("+365 days"), '/'); } } add_action( 'init', 'gdpr_js_extension', 100 );
It creates plugin cookie manually for initial load and creates additional cookie which is used to check if the plugin cookie should be created or not.
Now I can check if third party cookies are enabled with code:
<?php if (isset($_COOKIE['moove_gdpr_popup']) && json_decode(stripslashes($_COOKIE['moove_gdpr_popup']))->thirdparty == 1): ?> <!--YOUR TRACKING CODE --> <?php endif; ?>
In your header insert this snippet and include all the tracking codes inside.
Also I have added the js code. It shows the cookie bar and hides settings button on the initial load.
if (document.cookie.indexOf("moove_gdpr_popup") == 0) { $("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"); $("#moove_gdpr_save_popup_settings_button").hide(); }
- This reply was modified 6 years, 8 months ago by reanimuotasis.
- This reply was modified 6 years, 8 months ago by reanimuotasis.
- This reply was modified 6 years, 8 months ago by reanimuotasis.