cURL Error: 0
<?php
/**
* The template for displaying all pages.
*
* @package Lawyer
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
if(osetin_is_imaged_header(get_the_ID(), 'background') || osetin_is_imaged_header(get_the_ID(), 'background_no_text') || osetin_is_imaged_header(get_the_ID(), 'background_only_one')){
if(osetin_is_bbpress()){
$page_bg_image_url = get_template_directory_uri().'/assets/img/patterns/flowers_light.jpg';
}else{
$page_bg_image_url = wp_get_attachment_url( get_post_thumbnail_id() );
} ?>
<div class="os-container">
<div class="page-intro-header with-background" style="<?php echo osetin_get_css_prop('background-image', $page_bg_image_url, false, 'background-repeat: repeat;'); ?>">
<?php if(osetin_is_imaged_header(get_the_ID(), 'background') || osetin_is_imaged_header(get_the_ID(), 'background_only_one')) echo '<h1>'.osetin_get_the_title(get_the_ID()).'</h1>'; ?>
</div>
</div>
<?php
}
?>
<?php osetin_output_breadcrumbs(); ?>
<?php $sub_pages_navigation_html = osetin_sub_pages_navigation(); ?>
<div class="os-container">
<div class="page-w <?php if ( osetin_is_active_sidebar( 'sidebar-single-page' ) || $sub_pages_navigation_html != '' ) echo 'with-sidebar sidebar-location-right'; ?>">
<?php
if ( osetin_is_active_sidebar( 'sidebar-single-page' ) || $sub_pages_navigation_html != '' ) { ?>
<div class="page-sidebar">
<?php echo $sub_pages_navigation_html; ?>
<?php dynamic_sidebar( 'sidebar-single-page' ); ?>
</div><?php
}
?>
<div class="page-content">
<article id="page-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if(osetin_is_imaged_header(get_the_ID(), 'above')){
echo '<div class="page-intro-image">'.get_the_post_thumbnail(get_the_ID(), 'full').'</div>';
}
if(osetin_get_field('hide_title', get_the_ID()) != true && osetin_get_field('featured_image_placement', get_the_ID(), 'background') != 'background_only_one'){
echo '<h3 class="page-title">'.get_the_title(get_the_ID()).'</h3>';
}
?>
<?php $sub_title = osetin_get_field('sub_title');
if ( ! empty( $sub_title ) ) { ?>
<h5 class="page-content-sub-title"><?php echo esc_html($sub_title); ?></h5>
<?php } ?>
<?php the_content(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</article>
</div>
</div>
</div>
<?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>