/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
template-parts
/
main
/
Upload File
HOME
<?php /** * The template part for displaying results in search pages * * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ ?> <article id="post-<?php the_ID(); ?>" class="post-search col-md-6 col-xl-4"> <div class="post-entry"> <div class="post-entry__body"> <div class="post-entry__title"> <?php // Cut title (... after 150 symbols) $title = get_the_title(); $maxPos = 80; if (strlen($title) > $maxPos) { $lastPos = ($maxPos - 3) - strlen($title); $title = substr($title, 0, strrpos($title, ' ', $lastPos)) . '...'; } ?> <h3><a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" title="<?php echo esc_attr($title); ?>"><?php echo esc_html($title); ?></a></h3> </div> <div class="post-entry__info"><?php covercase_entry_date(); ?></div> <?php edit_post_link( __( 'Edit', 'covercase' ), '<div class="post-entry__edit">', '</div>' ); ?> </div> </div> </article><!-- #post-## -->