| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/queenofbradgate.co.uk/wp-content/themes/enfold/ |
Upload File : |
<?php
global $avia_config, $post;
if ( post_password_required() )
{
get_template_part( 'page' ); exit();
}
/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();
// set up post data
setup_postdata( $post );
//check if we want to display breadcumb and title
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
//filter the content for content builder elements
$content = apply_filters('avia_builder_precompile', get_post_meta(get_the_ID(), '_aviaLayoutBuilderCleanData', true));
//check first builder element. if its a section or a fullwidth slider we dont need to create the default openeing divs here
$first_el = isset(ShortcodeHelper::$tree[0]) ? ShortcodeHelper::$tree[0] : false;
$last_el = !empty(ShortcodeHelper::$tree) ? end(ShortcodeHelper::$tree) : false;
if(!$first_el || !in_array($first_el['tag'], AviaBuilder::$full_el ) )
{
echo avia_new_section(array('close'=>false,'main_container'=>true));
}
$content = apply_filters('the_content', $content);
echo $content;
//only close divs if the user didnt add fullwidth slider elements at the end. also skip sidebar if the last element is a slider
if(!$last_el || !in_array($last_el['tag'], AviaBuilder::$full_el_no_section ) )
{
$cm = avia_section_close_markup();
echo "</div>";
echo "</div>$cm";
//get the sidebar
$avia_config['currently_viewing'] = 'page';
get_sidebar();
}
else
{
echo "<div><div>";
}
echo ' </div><!--end builder template-->';
echo '</div><!-- close default .container_wrap element -->';
get_footer();