Пример #1
0
/**
 * @package Gazette
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<div class="entry-meta">
			<?php 
gazette_entry_meta();
?>
		</div><!-- .entry-meta -->

		<a class="post-link" href="<?php 
echo esc_url(gazette_get_link_url());
?>
" target="_blank"><span class="genericon genericon-link"><span class="screen-reader-text"><?php 
printf(__('External link to %s', 'gazette'), the_title('', '', false));
?>
</span></span></a>

		<?php 
the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark" target="_blank">', esc_url(gazette_get_link_url())), '</a></h1>');
?>
Пример #2
0
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function gazette_entry_footer()
 {
     gazette_posted_on();
     if (has_post_format('aside')) {
         gazette_entry_meta();
     }
     // Hide category and tag text for pages.
     if ('post' == get_post_type()) {
         /* translators: used between list items, there is a space after the comma */
         $tags_list = get_the_tag_list('', __(', ', 'gazette'));
         if ($tags_list) {
             printf('<span class="tags-links">%1$s</span>', $tags_list);
         }
     }
     edit_post_link(__('Edit', 'gazette'), '<span class="edit-link">', '</span>');
 }