Files
medicalalert-web-reloaded/wp/wp-content/themes/thbusiness/content.php
Tony Volpe be83910651 Merged in feature/280-dev-dev01 (pull request #21)
auto-patch  280-dev-dev01-2024-01-19T16_41_58

* auto-patch  280-dev-dev01-2024-01-19T16_41_58
2024-01-19 16:44:43 +00:00

61 lines
2.3 KiB
PHP

<?php
/**
* @package thbusiness
*/
?>
<div class="col-md-4 col-sm-4 col-xs-12">
<article class="blogpostcol" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php thbusiness_featured_image(); ?>
<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 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 -->
<?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>