Files
medicalalert-web-reloaded/wp/wp-content/themes/thbusiness/content.php
Tony Volpe 0825f6bd5f Merged in feature/restore-from-pantheon (pull request #7)
Feature/restore from pantheon

* Updates from pantheon

* Blog updates from pantheon
2023-12-15 15:15:09 +00:00

90 lines
3.2 KiB
PHP

<?php
/**
* @package thbusiness
*/
?>
<?php echo '<a href="'. get_permalink() . '">' ?>
<div class="col-md-12 col-sm-12 col-xs-12">
<article class="blogpostcol" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="row">
<div class="col-md-4 blog-feat-img">
<?php thbusiness_featured_image(); ?>
</div>
<div class="col-md-8">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'thbusiness' ) );
if ( $categories_list && thbusiness_categorized_blog() ) :
?>
<span class="cat-links">
<?php echo $categories_list; ?>
</span>
<?php endif; // End if categories ?>
</span>
<header class="entry-header" id="blogentry">
<?php the_title( sprintf( '<h2 class="blog-title" id="blogtitle"><a href="%s" rel="bookmark">', esc_url( get_permalink()) ), '</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta" id="blogmeta">
<?php //thbusiness_posted_on();
if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'thbusiness' ), __( '1 Comment', 'thbusiness' ), __( '% Comments', 'thbusiness' ) ); ?></span>
<?php endif; ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'thbusiness' ) );
if ( $tags_list ) :
?>
<span class="tags-links">
<?php echo $tags_list; ?>
</span>
<?php endif; // End if $tags_list ?>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content" id="blogcontent">
<?php the_excerpt(); ?>
<?php
// echo '<div><a class="moretag" id="blogread" href="'. get_permalink( get_the_ID() ) . '">' . __( 'Read More ', 'thbusiness') . '</a></div>';
?>
</div><!-- .entry-content -->
</div>
</div>
<?php endif; ?>
<footer class="entry-footer" id="blogfooter">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'thbusiness' ) );
if ( $categories_list && thbusiness_categorized_blog() ) :
?>
<span class="cat-links">
<?php echo $categories_list; ?>
</span>
<?php endif; // End if categories ?>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'thbusiness' ) );
if ( $tags_list ) :
?>
<span class="tags-links">
<?php echo $tags_list; ?>
</span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php edit_post_link( __( 'Edit', 'thbusiness' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## --></div> <?php echo '</a>'; ?>