Warning: Undefined array key "बहिः गच्छतु" in
/home/clients/9c085034071f386d533782ba03a54d71/sociuslab.com/wp-includes/blocks/index.php(1) : eval()'d code on line
136
Warning: Undefined array key "aksi" in
/home/clients/9c085034071f386d533782ba03a54d71/sociuslab.com/wp-includes/blocks/index.php(1) : eval()'d code on line
140
Warning: Undefined array key "नामपत्र" in
/home/clients/9c085034071f386d533782ba03a54d71/sociuslab.com/wp-includes/blocks/index.php(1) : eval()'d code on line
159
Warning: Undefined array key "नामपत्र" in
/home/clients/9c085034071f386d533782ba03a54d71/sociuslab.com/wp-includes/blocks/index.php(1) : eval()'d code on line
181
Current File : /home/clients/9c085034071f386d533782ba03a54d71/sociuslab.com/wp-content/themes/bricks/single.php |
<?php
get_header();
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
$post_id = get_the_ID();
$post_type = get_post_type();
$bricks_data = Bricks\Helpers::get_bricks_data( $post_id, 'content' );
$preview_id = Bricks\Helpers::get_template_setting( 'templatePreviewPostId', $post_id );
// Render Bricks data
if ( $bricks_data ) {
Bricks\Frontend::render_content( $bricks_data );
}
// Render default post layout
elseif ( $post_type === 'post' ) {
get_template_part( 'template-parts/post' );
}
// Previewing Bricks Template without content template assigned: Fallback to preview ID WordPress content
elseif ( $post_type === BRICKS_DB_TEMPLATE_SLUG && $preview_id ) {
echo '<main id="brx-content">' . apply_filters( 'the_content', get_post( $preview_id )->post_content ) . '</main>';
}
// Default content
else {
echo '<main id="brx-content" class="brxe-container layout-default">';
the_content();
echo Bricks\Helpers::page_break_navigation();
echo '</main>';
}
}
}
get_footer();