?>

<div class="post-box columns large-8 column-box">
    <article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>


        <header class="entry-header">
            <div class="top-meta">
                <?php 
maxflat_category_line();
?>

            </div>
            <h2 class="entry-title">
                <a href="<?php 
the_permalink();
?>
"
                   title="<?php 
echo esc_attr(sprintf(__('Permalink to %s', 'maxflat'), the_title_attribute('echo=0')));
?>
"
                   rel="bookmark"><?php 
the_title();
?>
Exemplo n.º 2
0
/**
 *
 * Display meta line under post title
 *
 * @param string $type author|category|date
 */
function maxflat_display_meta_post($type = 'author')
{
    global $post;
    ?>


<p class="meta-line">
       <?php 
    echo maxflat_get_date();
    ?>

	<?php 
    $post_format = get_post_format($post->ID);
    $speacial_formats = array('gallery', 'video');
    if (in_array($post_format, $speacial_formats)) {
        ?>

		<span class="meta-label smartlib-postformat-info"><?php 
        maxflat_get_awesome_ico($post_format);
        ?>
 <?php 
        echo ucfirst($post_format);
        ?>
</span>
			<?php 
    }
    if ($type == 'author') {
        maxflat_author_line();
    } else {
        if ($type == 'category') {
            maxflat_category_line();
        }
    }
    ?>



</p>
		<?php 
}