Esempio n. 1
0
/**
 * Prints HTML with meta information for the current post-date/time and author.
 * Create your own toolbox_posted_on to override in a child theme
 *
 * @since Toolbox 1.2
 */
function toolbox_posted_on()
{
    $y = get_the_time('Y');
    $m = get_the_time('m');
    $d = get_the_time('d');
    ?>
	<p class="date">
		<span class="implicit-text"><?php 
    echo __('Posted on', 'jan1');
    ?>
</span>
		<time class="entry-date" datetime="<?php 
    echo get_the_time('c');
    ?>
" pubdate>
			<span class="day-month">
				<a href="<?php 
    echo get_day_link($y, $m, $d);
    ?>
" title="<?php 
    echo __('Show all posts of this day', 'jan1');
    ?>
" class="day"><?php 
    the_time('j.');
    ?>
</a>
				<a href="<?php 
    echo get_month_link($y, $m);
    ?>
" title="<?php 
    echo __('Show all posts of this month', 'jan1');
    ?>
" class="month"><?php 
    the_time('M');
    ?>
</a>
			</span>
			<a href="<?php 
    echo get_year_link($y);
    ?>
" title="<?php 
    echo __('Show all posts of this year', 'jan1');
    ?>
" class="year"><?php 
    the_time('Y');
    ?>
</a>
		</time>
	</p>
	<p class="byline">
		<span class="implicit-text"><?php 
    echo __('by', 'jan1');
    ?>
</span>
		<span class="author vcard"><a class="url fn n" href="<?php 
    echo get_author_posts_url(get_the_author_meta('ID'));
    ?>
" title="<?php 
    echo sprintf(__('View all posts by %s', 'jan1'), get_the_author());
    ?>
" rel="author"><?php 
    echo get_the_author();
    ?>
</a></span>
	</p>
	<?php 
    if (!toolbox_show_title()) {
        // no title displayed
        ?>
	<p class="permalink">
		<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        printf(esc_attr__('Permalink to %s', 'jan1'), the_title_attribute('echo=0'));
        ?>
" rel="bookmark">Permalink</a>
	</p>
	<?php 
    }
    edit_post_link(__('Edit', 'jan1'), '<p class="edit-link">', '</p>');
}
Esempio n. 2
0
        ?>
		<div class="entry-content hyphenate"><?php 
        the_content(__('Continue reading', 'jan1'));
        ?>
</div>
		<div class="pre-footer"><?php 
        toolbox_link_pages();
        ?>
</div>
	<?php 
    }
}
?>
	<footer class="entry-meta">
		<?php 
if (toolbox_show_title()) {
    ?>
			<div class="taxonomy">
			<?php 
    /* translators: used between list items, there is a space after the comma */
    $categories_list = get_the_category_list(__(', ', 'jan1'));
    if ($categories_list && toolbox_categorized_blog()) {
        ?>
			<p class="cat-links">
				<?php 
        printf('<span class="implicit-text">%1s</span> %2$s', __('Posted in', 'jan1'), $categories_list);
        ?>
			</p>
			<?php 
    }
    ?>