<?php get_header(); ?> <div class="g"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div id="main" class="main"> <?php theme_functions::singular_content(); ?> <?php theme_functions::adjacent_posts(); ?> <?php /** * ad */ if (class_exists('theme_adbox') && !empty(theme_adbox::display_frontend('below-adjacent-post'))) { ?> <div class="ad-container ad-below-adjacent-post"><?php echo theme_adbox::display_frontend('below-adjacent-post'); ?> </div> <?php }