Cron settings
particledefine( ‘ALTERNATE_WP_CRON’, true ); define( ‘WP_CRON_LOCK_TIMEOUT’, 1 );
define( ‘ALTERNATE_WP_CRON’, true ); define( ‘WP_CRON_LOCK_TIMEOUT’, 1 );
function example_function() { if ( is_user_logged_in() ) { // code } } add_action(‘init’, ‘example_function’);
if ( Cookies.get(‘lb1′) != ’true’ && $(‘#lb1’).length > 0) { var lity_popup = lity($(‘#lb1’)); $(‘#lb1’).on(‘lity:close’, function(event, instance) { Cookies.set(‘lb1′, ’true’); }); } $(‘#lb1 a’).on(‘click’, function(){ Cookies.set(‘lb1′, ’true’); });
if(jQuery(‘body’).hasClass(‘logged-in’)){ // Do something }
order deny,allow deny from all allow from 82.73.70.133 order deny,allow Deny from all # whitelist – 82.73.70.133 allow from 82.73.70.133
.wrapper-medewerker { background: $heling_light_grey; padding-top: 30px; //common block settings position: relative; min-height: rem-calc(900); // stripe // ———- &.stripe { overflow: hidden; &:before { content: ”; width: 0; height: 0; border-style: solid; border-color: $heling_lightest_grey transparent transparent transparent; position: absolute; top: 0px; left: 0; right: 0; border-width: 0 100vw 25px 0; //include – breakpoint specificks @include breakpoint(768 […]
// get posts $posts = get_posts(array( ‘post_type’ => ‘event’, ‘posts_per_page’ => -1, ‘meta_key’ => ‘start_date’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’ ));
$address = get_field(‘company_address’, ‘option’); // bezoekadres
/******************************************************Full page-cover (home)******************************************************/var AdminBar = $(‘#wpadminbar’).height();var TotalHeight = $(window).height();var RemainingHeight = TotalHeight – AdminBar – MainHeaderHeight – 120; // Extra white spaceif (RemainingHeight < 490){ RemainingHeight = 490; } $(‘.home section.page-header’).css({ “height”: RemainingHeight + ‘px’}); $(‘.home section.page-header .full-height’).css({ “height”: RemainingHeight + ‘px’, }); $(‘.home section.page-header .image-overlay’).css({ “height”: RemainingHeight + ‘px’, }); // Slider $(‘.home section.page-cover-slider […]
/* * Replace all SVG images with inline SVG */ $(“img.icon”).each(function() { var $img = $(this); var imgID = $img.attr(“id”); var imgClass = $img.attr(“class”); var imgURL = $img.attr(“src”); $.get( imgURL, function(data) { // Get the SVG tag, ignore the rest var $svg = $(data).find(“svg”); // Add replaced image’s ID to the new SVG if (typeof […]