Ejemplo n.º 1
0
 function gabfire_postmeta($p_tag = true, $bydate = true, $comment = true, $tags = true, $cats = true, $permalink = true, $editpost = true)
 {
     echo true === $p_tag ? '<p class="postmeta">' : "";
     echo true === $bydate ? gabfire_bycat() : "";
     echo true === $comment ? gabfire_postcomment() : "";
     echo true === $tags ? gabfire_posttags() : "";
     echo true === $cats ? gabfire_cats() : "";
     echo true === $permalink ? gabfire_permalink() : "";
     echo true === $editpost ? gabfire_editpost() : "";
     echo true === $p_tag ? '</p>' : "";
 }
Ejemplo n.º 2
0
function gabfire_postmeta($date = true, $comment = true, $permalink = true, $edit = true)
{
    echo '<p class="postmeta">';
    echo true === $date ? '<span class="meta_date">' . get_the_date() . '</span>' : "";
    echo true === $comment ? gabfire_postcomment() : "";
    echo true === $permalink ? gabfire_permalink() : "";
    true === $edit ? edit_post_link(__('#', 'gabfire'), '<span class="meta_edit">', '</span>') : "";
    echo '</p>';
}