Ejemplo n.º 1
0
    the_permalink();
    ?>
" title="Permalink to <?php 
    the_title();
    ?>
" rel="bookmark"><?php 
    the_title();
    ?>
</a></h2>

            <div class="byline">
                Posted <abbr class="published" title="<?php 
    the_time('Y-m-d\\TH:i:sO');
    ?>
"><?php 
    the_relative_date();
    ?>
</abbr> by <?php 
    the_author_link();
    ?>
            </div>

            <div class="excerpt">
                <?php 
    the_excerpt();
    ?>
            </div>

            <div class="meta">
                <span class="categories"><?php 
    sourdough_get_categories();
Ejemplo n.º 2
0
    function sourdough_comment($comment, $args, $depth)
    {
        /*
        Comment template
        */
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case '':
                ?>
        <li <?php 
                comment_class();
                ?>
 id="li-comment-<?php 
                comment_ID();
                ?>
">
            <div id="comment-<?php 
                comment_ID();
                ?>
">
            <div class="comment-author vcard">
                <?php 
                echo get_avatar($comment, 125);
                ?>
                <?php 
                printf(__('%s', 'sourdough'), sprintf('<cite class="fn">%s</cite>', get_comment_author_link()));
                ?>
            </div><!-- .comment-author .vcard -->
            <?php 
                if ($comment->comment_approved == '0') {
                    ?>
                <em><?php 
                    _e('Your comment is awaiting moderation.', 'sourdough');
                    ?>
</em>
                <br />
            <?php 
                }
                ?>

            <div class="comment-meta commentmetadata">
                <a href="<?php 
                echo esc_url(get_comment_link($comment->comment_ID));
                ?>
"><?php 
                the_relative_date();
                ?>
</a>

                <?php 
                edit_comment_link(__('(Edit)', 'sourdough'), ' ');
                ?>
            </div><!-- .comment-meta .commentmetadata -->

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

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

        <?php 
                break;
            case 'pingback':
            case 'trackback':
                ?>
        <li class="post pingback">
            <p><?php 
                _e('Pingback:', 'sourdough');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('(Edit)', 'sourdough'), ' ');
                ?>
</p>
        <?php 
                break;
        }
    }