<?php
$rooten_author_desc = get_the_author_meta('description');
?>

<?php if(!is_single() or is_single()) :?>

		<?php if(!is_single()) :?>
		<p><?php echo wp_kses_post(rooten_custom_excerpt(50)); ?></p>

		<?php elseif(is_single()) :?>
		    <?php the_content(); ?>

		    <?php if(empty($rooten_author_desc) or have_comments()) : ?>
		    	<hr class="bdt-margin-large-top bdt-margin-large-bottom">
			<?php endif ?>
		<?php endif ?>

		<?php
		wp_link_pages( array(
			'before'      => '<div class="page-links"><span>' . esc_html__( 'Pages:', 'rooten' ).'</span>',
			'after'       => '</div>',
			'link_before' => '<span class="page-number">',
			'link_after'  => '</span>',
		) );

		?>

<?php endif ?>