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

423 lines
27 KiB
PHP

<?php get_header(); /* Template Name: Home - Latest */?>
<div class="row">
<!-- Upper -->
<div class="col-sm-12 col-md-6 nopadding-right mobile-pad-add">
<div class="col-sm-12 nopadding">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1013,801,1012',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="imagebox" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="clickable">
<div class="imagebox-bg largestfeature" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="largestfeature-blank" /></a></div>
<div class="imagebox-desc">
<div class="meta-categories hidden-xs hidden-sm visible-md visible-lg">
<?php the_category( ' ' ); ?>
</div>
<div class="meta-title"><a href="<?php the_permalink();?>" class="whitelink"><?php the_title();?></a></div>
<div class="meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'whitelink'); ?>
</div>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
</div>
<div class="col-sm-12 col-md-6">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 4,
'offset' => '1',
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1013,801,1012,168',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="col-sm-6 nopadding mb8 mr4">
<div class="imagebox" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="clickable">
<div class="imagebox-bg smallerfeatured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="smallerfeatured-blank" /></a></div>
<div class="imagebox-desc">
<div class="meta-title"><a href="<?php the_permalink();?>" class="whitelink"><?php the_title();?></a></div>
<div class="meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'whitelink'); ?>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<!-- / -->
</div>
<div class="spacing-2x"></div>
<!-- Lower -->
<div class="row">
<div class="col-sm-12 col-md-8">
<h2 class="widget-title-orange"><span>Featured Articles</span> <span class="viewall"><a class="darklink" href="<?php bloginfo('url');?>/featured-articles">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<div class="col-sm-6 nopadding-left mobile-pad">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1013',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="featured-box" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="imagebox-bg contentboxed-featured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="contentboxed-featured-blank" /></a></div>
<div class="meta-categories-featured">
<?php the_category( ' ' ); ?>
</div>
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
<div class="featured-excerpt">
<?php the_excerpt();?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="col-sm-6 nopadding-right mobile-pad-leftadjust">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 5,
'offset' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1013',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="post-box-side" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<table class="table table-posts">
<tr>
<td class="col-xs-4" valign="middle" style="vertical-align: middle;"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img alt="<?php the_title();?>" src="<?php the_post_thumbnail_url(); ?>" class="img-responsive" style="width: 100%; height: 90px;"></a></td>
<td class="col-xs-8" valign="top" style="vertical-align: top; padding: 0 10px;">
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-side">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
</td>
</tr>
</table>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="clearfix"></div>
<div class="spacing-2x"></div>
<!-- MHNO -->
<h2 class="widget-title-orange"><span>Masturbation Has No Orientation</span><span class="viewall"><a class="darklink" href="<?php bloginfo('url');?>/masturbation-has-no-orientation/">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<div class="col-sm-6 nopadding-left mobile-pad">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '801',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="featured-box" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="imagebox-bg contentboxed-featured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="contentboxed-featured-blank" /></a></div>
<div class="meta-categories-featured">
<?php the_category( ' ' ); ?>
</div>
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
<div class="featured-excerpt">
<?php the_excerpt();?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="col-sm-6 nopadding-right mobile-pad-leftadjust">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 5,
'offset' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '801',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="post-box-side" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<table class="table table-posts">
<tr>
<td class="col-xs-4" valign="middle" style="vertical-align: middle;"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img alt="<?php the_title();?>" src="<?php the_post_thumbnail_url(); ?>" class="img-responsive" style="width: 100%; height: 90px;"></a></td>
<td class="col-xs-8" valign="top" style="vertical-align: top; padding: 0 10px;">
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-side">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
</td>
</tr>
</table>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="clearfix"></div>
<div class="spacing-2x"></div>
<!-- /MHNO -->
<!-- Bator Life DESKTOP -->
<div class="hidden-xs hidden-sm visible-md visible-lg">
<div class="col-md-6 nopadding-left mobile-pad">
<h2 class="widget-title-orange"><span>Bator Life</span><span class="viewall"><a class="darklink" href="<?php bloginfo('url');?>/bator-life/">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1012',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="featured-box" style="margin-bottom: 15px;" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="imagebox-bg contentboxed-featured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="contentboxed-featured-blank" /></a></div>
<div class="meta-categories-featured">
<?php the_category( ' ' ); ?>
</div>
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
<div class="featured-excerpt">
<?php the_excerpt();?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 5,
'offset' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1012',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="post-box-side" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<table class="table table-posts">
<tr>
<td class="col-xs-4" valign="middle" style="vertical-align: middle;"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img alt="<?php the_title();?>" src="<?php the_post_thumbnail_url(); ?>" class="img-responsive" style="width: 100%; height: 90px;"></a></td>
<td class="col-xs-8" valign="top" style="vertical-align: top; padding: 0 10px;">
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-side">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
</td>
</tr>
</table>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
</div>
<!-- / Bator Life -->
<!-- Bator Life MOBILE -->
<div class="visible-xs visible-sm hidden-md hidden-lg">
<h2 class="widget-title-orange"><span>Bator Life</span><span class="viewall"><a class="darklink" href="<?php bloginfo('url');?>/bator-life/">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<div class="col-xs-12 col-sm-6 nopadding-left mobile-pad">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1012',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="featured-box" style="margin-bottom: 15px;" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="imagebox-bg contentboxed-featured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="contentboxed-featured-blank" /></a></div>
<div class="meta-categories-featured">
<?php the_category( ' ' ); ?>
</div>
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
<div class="featured-excerpt">
<?php the_excerpt();?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-6 nopadding-right mobile-pad-leftadjust">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 5,
'offset' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '1012',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="post-box-side" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<table class="table table-posts">
<tr>
<td class="col-xs-4" valign="middle" style="vertical-align: middle;"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img alt="<?php the_title();?>" src="<?php the_post_thumbnail_url(); ?>" class="img-responsive" style="width: 100%; height: 90px;"></a></td>
<td class="col-xs-8" valign="top" style="vertical-align: top; padding: 0 10px;">
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-side">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
</td>
</tr>
</table>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
</div>
<!-- / Bator Life -->
<div class="col-sm-12 col-md-6 nopadding-left mobile-pad">
<div class="visible-xs visible-sm hidden-md hidden-lg"><div class="spacing-2x"></div></div>
<h2 class="widget-title-orange" style="margin-bottom: 8px;"><span>Around The Web</span><span class="viewall"><a href="<?php bloginfo('url');?>/around_web_archive/" class="darklink">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('main_sidebar') ) : ?>
<?php endif; ?>
</div>
<div class="clearfix"></div>
<div class="spacing-2x"></div>
</div>
<div class="col-sm-12 col-md-4">
<h2 class="widget-title-orange"><span>Ask the Batemaster</span><span class="viewall"><a href="<?php bloginfo('url');?>/bate-facts/ask-the-batemaster/" class="darklink">View All <i class="fa fa-chevron-right"></i></a></span></h2>
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'publish_date',
'order' => 'DESC',
'cat' => '168',
) );
if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="featured-box" style="margin-bottom: 15px;" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
<div class="imagebox-bg contentboxed-featured" style="background-image: url('<?php the_post_thumbnail_url(); ?>');"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('stylesheet_directory');?>/images/blank.gif" class="contentboxed-featured-blank" /></a></div>
<div class="meta-categories-featured">
<?php the_category( ' ' ); ?>
</div>
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<div class="featured-meta-info">
<i class="fas fa-calendar"></i> &nbsp; <?php the_time("F d, Y");?> &nbsp;&nbsp;&nbsp;
<i class="fas fa-comments"></i> &nbsp; <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
</div>
<div class="featured-excerpt">
<?php the_excerpt();?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
<hr>
<?php get_sidebar();?>
</div>
</div>
<div class="clearfix"></div>
<div class="spacing-3x"></div>
</div>
<?php get_footer();?>