Пример #1
0
	<div class="entry-content <?php 
    cryptum_metro_tile_class(cryptum_metro_get_color(), true);
    ?>
">
		<?php 
    the_content();
    ?>
		<h1 class="entry-title"><?php 
    cryptum_seperator_html();
    the_title();
    ?>
</h1>
	</div><!-- .entry-content -->
	
	<footer class="entry-meta <?php 
    cryptum_metro_tile_class(cryptum_metro_get_color(), true);
    ?>
">
		<div class="entry-meta">
			<?php 
    cryptum_posted_on();
    ?>
		</div><!-- .entry-meta -->
		<?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'cryptum'), 'after' => '</div>'));
    ?>
		
		<?php 
    $category_list = cryptum_get_categories();
    $tag_list = cryptum_get_tags();
    if (!cryptum_categorized_blog()) {
Пример #2
0
/**
 * The default template for displaying content
 * This should NEVER be used alone, instead a content-xxx template should be loaded
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 * 
 * @package Cryptum
 * @since Cryptum 1.0
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class(cryptum_metro_tile_class(cryptum_metro_get_color()));
?>
>
	<header class="entry-header">
		<h1 class="entry-title"><a href="<?php 
the_permalink();
?>
" title="<?php 
printf(esc_attr__('Permalink to %s', 'cryptum'), the_title_attribute('echo=0'));
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h1>
	</header><!-- .entry-header -->
	
Пример #3
0
    /**
     * Template for comments and pingbacks.
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     *
     * @since Cryptum 1.0
     */
    function cryptum_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li class="post pingback">
		<p><?php 
                _e('Pingback:', 'cryptum');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('(Edit)', 'cryptum'), ' ');
                ?>
</p>
	<?php 
                break;
            default:
                ?>
	<li <?php 
                comment_class();
                ?>
 id="li-comment-<?php 
                comment_ID();
                ?>
">
		<article id="comment-<?php 
                comment_ID();
                ?>
" class="comment <? cryptum_metro_tile_class( cryptum_metro_get_color(), true) ?>">
			<header>
				<div class="comment-author vcard">
					<?php 
                echo get_avatar($comment, 32);
                ?>
					<?php 
                printf(__('%s', 'cryptum'), sprintf('<cite class="fn">%s</cite>' . cryptum_get_seperator(), get_comment_author_link()));
                ?>
				</div><!-- .comment-author .vcard -->
				<?php 
                if ($comment->comment_approved == '0') {
                    ?>
					<em><?php 
                    _e(cryptum_get_seperator() . 'Your comment is awaiting moderation.', 'cryptum');
                    ?>
</em>
					<br />
				<?php 
                }
                ?>

				<div class="comment-meta commentmetadata">
					<a href="<?php 
                echo esc_url(get_comment_link($comment->comment_ID));
                ?>
"><time pubdate datetime="<?php 
                comment_time('c');
                ?>
">
					<?php 
                /* translators: 1: date, 2: time */
                printf(__('%1$s at %2$s', 'cryptum'), get_comment_date(), get_comment_time());
                ?>
					</time></a>
					<?php 
                edit_comment_link(__('Edit', 'cryptum'), cryptum_get_seperator());
                ?>
				</div><!-- .comment-meta .commentmetadata -->
			</header>

			<div class="comment-content"><?php 
                comment_text();
                ?>
</div>

			<div class="reply">
				<?php 
                comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
                ?>
			</div><!-- .reply -->
		</article><!-- #comment-## -->

	<?php 
                break;
        }
    }