function thesis_byline($post_count = false) { global $thesis_site; if (thesis_show_byline()) { if (is_page()) { $author = $thesis_site->display['byline']['page']['author']; $date = $thesis_site->display['byline']['page']['date']; if (!$thesis_site->comments['disable_pages'] && comments_open() && $thesis_site->display['byline']['num_comments']['show']) { $show_comments = true; } } else { $author = $thesis_site->display['byline']['author']['show']; $date = $thesis_site->display['byline']['date']['show']; if ($thesis_site->display['byline']['num_comments']['show'] && (comments_open() || get_comments_number() > 0)) { $show_comments = true; } } } elseif ($thesis_site->display['admin']['edit_post'] && is_user_logged_in()) { $edit_link = true; } elseif ($_GET['template']) { $author = $date = true; } if ($author || $date || $show_comments || $edit_link) { ?> <p class="headline_meta"><?php if ($author) { thesis_author(); } if ($author && $date) { echo ' ' . __('on', 'thesis') . ' '; } if ($date) { echo '<abbr class="published" title="' . get_the_time('Y-m-d') . '">' . get_the_time(get_option('date_format')) . '</abbr>'; } if ($show_comments) { if ($author || $date) { $sep = ' · '; } echo $sep . '<span><a href="' . get_permalink() . '#comments" rel="nofollow">'; comments_number(__('0 comments', 'thesis'), __('1 comment', 'thesis'), __('% comments', 'thesis')); echo '</a></span>'; } thesis_hook_byline_item($post_count); if (($author || $date || $show_comments) && $thesis_site->display['admin']['edit_post']) { edit_post_link(__('edit', 'thesis'), '<span class="edit_post pad_left">[', ']</span>'); } elseif ($thesis_site->display['admin']['edit_post']) { edit_post_link(__('edit', 'thesis'), '<span class="edit_post">[', ']</span>'); } ?> </p> <?php } }
function thesis_teaser_author($post_count, $post_image) { echo '<span class="teaser_author">'; thesis_author(); echo "</span>\n"; }