function wm_entry_bottom() { //Post meta if (in_array(get_post_type(), apply_filters('wmhook_wm_entry_bottom_meta_post_types', array('post')))) { if (is_single()) { echo wm_post_meta(apply_filters('wmhook_wm_entry_bottom_meta', array('class' => 'entry-meta entry-meta-bottom', 'meta' => array('edit', 'tags')))); } else { echo wm_post_meta(apply_filters('wmhook_wm_entry_bottom_meta', array('class' => 'entry-meta', 'meta' => array('date', 'comments', 'likes'), 'date_format' => 'j M Y'))); } } //Post navigation if (in_array(get_post_type(), apply_filters('wmhook_wm_entry_bottom_post_nav', array('post')))) { wm_post_nav(); } //Comments if (!(is_page() && is_front_page())) { comments_template('', true); } }
if (has_post_thumbnail($helper['post_id'])) { echo '<div class="wm-posts-element wm-html-element image image-container"' . wm_schema_org('image') . '>'; echo $link_output[0]; the_post_thumbnail($helper['image_size'], array('title' => esc_attr(get_the_title(get_post_thumbnail_id($helper['post_id']))))); echo $link_output[1]; echo '</div>'; } ?> <div class="wm-posts-element wm-html-element title"><?php echo '<' . $helper['atts']['heading_tag'] . wm_schema_org('name') . '>'; echo $link_output[0]; the_title(); echo $link_output[1]; echo '</' . $helper['atts']['heading_tag'] . '>'; ?> </div> <?php echo wm_post_meta(apply_filters('wmhook_widget_posts_meta_info', array('class' => 'wm-posts-element wm-html-element meta entry-meta', 'date_format' => trim(str_replace(array('Y'), '', get_option('date_format')), ', '), 'meta' => array('date', 'comments')))); ?> <?php /* if ( 0 < $helper['excerpt_length'] ) { echo '<div class="wm-posts-element wm-html-element excerpt"' . wm_schema_org( 'description' ) . '>' . wp_trim_words( get_the_excerpt(), $helper['excerpt_length'], '…' ) . '</div>'; } */ ?> </article>
the_post_thumbnail($helper['image_size'], array('title' => esc_attr(get_the_title(get_post_thumbnail_id($helper['post_id']))))); echo $link_output[1]; echo '</div>'; } ?> <div class="wm-posts-element wm-html-element title"><?php echo '<' . $helper['atts']['heading_tag'] . wm_schema_org('name') . '>'; echo $link_output[0]; the_title(); echo $link_output[1]; echo '</' . $helper['atts']['heading_tag'] . '>'; ?> </div> <?php if (get_the_content()) { ?> <div class="wm-posts-element wm-html-element content"><?php the_content(); ?> </div> <?php } ?> <?php echo wm_post_meta(apply_filters('wmhook_shortcode_posts_meta_info_forum', array('class' => 'wm-posts-element wm-html-element meta entry-meta', 'date_format' => 'd M', 'meta' => array('forum-update', 'forum-topics', 'forum-replies'), 'post_id' => $helper['post_id']))); ?> </article>
*/ if (have_posts()) { wmhook_postslist_before(); echo '<div id="list-articles" class="list-articles list-search clearfix"' . wm_schema_org('item_list') . '>'; wmhook_postslist_top(); while (have_posts()) { the_post(); $output = '<article class="search-item"' . wm_schema_org('article') . '>'; $output .= '<header class="entry-header"><h1 class="entry-title"' . wm_schema_org('name') . '>'; if (has_post_thumbnail()) { $thumb_size = !function_exists('wma_amplifier') ? array(100, 100) : 'admin-thumbnail'; $output .= '<a href="' . get_permalink() . '" title="' . esc_attr(get_the_title()) . '">'; $output .= get_the_post_thumbnail(get_the_ID(), $thumb_size); $output .= '</a>'; } $output .= '<a href="' . get_permalink() . '">'; $output .= get_the_title(); $output .= '</a>'; $output .= '</h1></header>'; $output .= wm_excerpt(); $output .= 'page' === get_post_type() ? wm_post_meta(apply_filters('wmhook_search_page_meta', array('meta' => array('permalink')))) : wm_post_meta(); $output .= '</article>'; echo $output; } wmhook_postslist_bottom(); echo '</div>'; wmhook_postslist_after(); } else { wm_not_found(); } wp_reset_query();
function wm_entry_bottom() { //Helper variables $is_full_posts = is_home() && apply_filters('wmhook_enable_blog_full_posts', false); $is_single = $is_full_posts ? true : is_singular('post'); //Post tags if ($is_single) { echo wm_post_meta(apply_filters('wmhook_wm_entry_bottom_meta', array('class' => 'entry-meta entry-meta-bottom clearfix', 'meta' => array('tags')))); } //Comments comments_template(null, true); //Preparing output if ($is_full_posts || in_array(get_post_format(), array('link', 'quote', 'status'))) { echo '</div> <!-- /full-post-content -->'; } }
function wm_entry_bottom() { //Post meta if (in_array(get_post_type(), apply_filters('wmhook_wm_entry_bottom_meta_post_types', array('post')))) { if (is_single()) { echo wm_post_meta(apply_filters('wmhook_wm_entry_bottom_meta', array('class' => 'entry-meta entry-meta-bottom', 'meta' => array('edit', 'tags')))); } else { echo wm_post_meta(apply_filters('wmhook_wm_entry_bottom_meta', array('class' => 'entry-meta', 'meta' => array('date', 'comments', 'likes'), 'date_format' => 'j M Y'))); } } }