function wb_clear_months_cache() { if (file_exists($file = wb_get('cache_months'))) { unlink($file); } }
?> </div> <div class="page-body"> <?php get_template_part('blocks/edit-buttons'); ?> <div class="content"> <?php the_content(); ?> </div> </div> <?php if (!wb_get('is_block')) { ?> </div><!-- /.container --> <?php } ?> </div><!-- /.page --> <?php } ?> </div><!-- /.main --> <?php
<?php /** * Single post */ get_template_part('blocks/header'); ?> <div class="main"> <?php while (have_posts()) { the_post(); $is_block = wb_get('is_block'); ?> <div <?php post_class(); ?> > <?php get_template_part('blocks/carousel', 'single'); ?> <?php if (!$is_block) { ?> <div class="container"> <?php }
/** * Is layout enabled * * @return boolean */ function wb_has_layout() { return wb_get('has_layout'); }
/** * Ugly hack to force URL * * @param boolean $enable */ function wb_link_hack($enable = true) { static $original = null; if (!($url = wb_get('current_url'))) { return; } if ($enable) { $path = parse_url($url, PHP_URL_PATH); $original = $_SERVER['REQUEST_URI']; $_SERVER['REQUEST_URI'] = $path; } else { $_SERVER['REQUEST_URI'] = $original; } }