Exemple #1
0
/**
 * Determine which pages should display the sidebar
 */
function display_sidebar()
{
    static $display;
    isset($display) || ($display = in_array(TRUE, [is_404(), is_front_page(), is_single(), is_singular('projects'), val_get_field('has_sidebar')]));
    return apply_filters('sage/display_sidebar', $display);
}
echo $bg;
?>
);<?php 
echo $padding ? 'padding-top: ' . $padding . 'rem; padding-bottom: ' . $padding . 'rem";' : NULL;
?>
">
  <div class="page-banner__container container">
    <?php 
if (!val_get_field('hide_title')) {
    ?>
    <h1><?php 
    echo Titles\title();
    ?>
</h1>
    <?php 
}
?>
    <?php 
if ($header_content_used = val_get_field('use_content_as_header')) {
    ?>
    <div class="page-banner__content">
      <?php 
    echo apply_filters('the_content', $post->post_content);
    ?>
    </div>
    <?php 
}
?>
  </div>
</div>