<div class="article-widget-item"> <?php cruxstore_post_thumbnail_image('cruxstore_widgets', 'img-responsive'); ?> <div class="content"> <a class="title-link" href="<?php the_permalink(); ?> "><?php get_the_title() ? the_title() : the_ID(); ?> </a> <div class="post-meta"> <?php cruxstore_post_meta_author(); cruxstore_post_meta_comments(); ?> </div> </div> </div>
/** * Display the post meta * @since 1.0.0 */ function cruxstore_entry_meta($arrays = array('categories', 'author')) { if ('post' == get_post_type()) { ?> <div class="entry-post-meta"> <?php foreach ($arrays as $array) { if ($array == 'categories') { cruxstore_post_meta_categories(); } elseif ($array == 'author') { cruxstore_post_meta_author(); } elseif ($array == 'comments') { cruxstore_post_meta_comments(); } elseif ($array == 'date') { cruxstore_post_meta_date(); } elseif ($array == 'social') { cruxstore_entry_share_social(); } } ?> </div> <?php } }