Files
Testing/tbb/wp-content/themes/bblog/single.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

78 lines
5.2 KiB
PHP

<?php get_header(); ?>
<div class="row">
<div class="col-xs-12 breadcrumb">
<?php if(function_exists('bcn_display')){bcn_display();}?>
</div>
<div class="clearfix"></div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="featured-box-inner">
<div class="featured-content-inner" style="padding: 0;">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="page-title"><?php the_title();?></h1>
<div class="col-sm-12 post-meta-info" style="margin: 0;">
<div class="hidden-xs hidden-sm visible-md visible-lg">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" title="<?php the_author(); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?></a>
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" title="<?php the_author(); ?>" class="dark"><i class="fas fa-user"></i> <?php the_author(); ?></a> &nbsp;&nbsp;|&nbsp;&nbsp;
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;|&nbsp;&nbsp;
<i class="fas fa-folder-open"></i>&nbsp; <?php the_category( ' ' ); ?>
</div>
<div class="visible-xs visible-sm hidden-md hidden-lg">
<table class="post-meta-mobile">
<tr>
<td valign="middle" class="col-xs-2 nopadding"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" title="<?php the_author(); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), '50', $default, $alt, array( 'class' => array( 'img-responsive', 'center-block' ) ) ); ?></a></td>
<td valign="middle" class="col-xs-10 nopadding-right">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" title="<?php the_author(); ?>" class="dark"><?php the_author(); ?></a>
<div><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" title="<?php the_author(); ?>" class="dark-small">View Author Bio &amp; Posts</a></div>
</td>
</tr>
</table>
<div class="spacing-1x"></div>
<table class="post-meta-table">
<tr>
<td valign="middle" class="col-xs-5 nopadding-left"><i class="fas fa-calendar"></i> &nbsp; <strong>Posted on:</strong> </td>
<td valign="middle" class="col-xs-7 nopadding-left"><?php the_time("F d, Y");?></td>
</tr>
<tr>
<td valign="top" class="col-xs-5 nopadding-left"><i class="fas fa-folder-open"></i>&nbsp; <strong>Categorized:</strong></td>
<td valign="top" class="col-xs-7 nopadding-left"><?php the_category( ' ' ); ?></td>
</tr>
</table>
</div>
</div>
<div class="clearfix"></div>
<div class="featured-content-inner" style="padding: 12px;">
<div class="hidden-xs hidden-sm visible-md visible-lg">
<img src="<?php the_post_thumbnail_url(); ?>" class="img-responsive pull-left" style="margin: 0 15px 15px 0; max-width: 40%;">
<?php the_content();?>
<div class="clearfix"></div>
</div>
<div class="visible-xs visible-sm hidden-md hidden-lg">
<img src="<?php the_post_thumbnail_url(); ?>" class="img-responsive center-block" style="margin: 10px 0;">
<?php the_content();?>
</div>
</div>
<hr style="margin: 15px;">
<?php comments_template(); // Get wp-comments.php template */?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if(function_exists('wp_paginate')) {wp_paginate();} ?>
</div>
</div>
</div>
<div class="col-sm-4">
<?php get_sidebar();?>
</div>
<div class="clearfix"></div>
<div class="spacing-2x"></div>
</div>
<?php get_footer(); ?>