Example #1
0
?>
>
	<header class="entry-header">
		<h1 class="entry-title">
			<a href="<?php 
echo esc_url(icraft_get_link_url());
?>
"><?php 
the_title();
?>
</a>
		</h1>

		<div class="entry-meta">
			<?php 
icraft_entry_date();
?>
			<?php 
edit_post_link(__('Edit', 'i-craft'), '<span class="edit-link">', '</span>');
?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php 
the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'i-craft'));
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'i-craft') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
	</div><!-- .entry-content -->
Example #2
0
 /**
  * Print HTML with meta information for current post: categories, tags, permalink, author, and date.
  *
  * Create your own icraft_entry_meta() to override in a child theme.
  *
  * @since i-craft 1.0
  *
  * @return void
  */
 function icraft_entry_meta()
 {
     if (is_sticky() && is_home() && !is_paged()) {
         echo '<span class="featured-post">' . __('Sticky', 'i-craft') . '</span>';
     }
     if (!has_post_format('link') && 'post' == get_post_type()) {
         icraft_entry_date();
     }
     // Translators: used between list items, there is a space after the comma.
     $categories_list = get_the_category_list(__(', ', 'i-craft'));
     if ($categories_list) {
         echo '<span class="categories-links">' . $categories_list . '</span>';
     }
     // Translators: used between list items, there is a space after the comma.
     $tag_list = get_the_tag_list('', __(', ', 'i-craft'));
     if ($tag_list) {
         echo '<span class="tags-links">' . $tag_list . '</span>';
     }
     // Post author
     if ('post' == get_post_type()) {
         printf('<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'i-craft'), get_the_author())), get_the_author());
     }
 }