Esempio n. 1
0
" rel="author" itemprop="url"><?php 
echo italystrap_get_avatar(get_the_author_meta('ID'), NULL, NULL, get_the_author(), 'img-circle img-responsive');
?>
</a>
		</div>
		<div class="col-md-10">
			<p itemprop="description"><?php 
the_author_meta('description');
?>
</p>
			<h4 itemprop="name"><?php 
the_author_posts_link();
?>
</h4>
			<meta itemprop="image" content="<?php 
echo italystrap_get_avatar_url(get_the_author_meta('email'));
?>
"/>
			<ul class="list-inline">
			<?php 
$twitter = get_the_author_meta('twitter');
if (!empty($twitter)) {
    echo '<li><a href="' . $twitter . '" title="Twitter" rel="me" class="sprite32 twitter32" itemprop="sameAs"></a></li>';
}
$fb_profile = get_the_author_meta('fb_profile');
if (!empty($fb_profile)) {
    echo '<li><a href="' . $fb_profile . '" title="Facebook" rel="me" class="sprite32 facebook32" itemprop="sameAs"></a></li>';
}
$google_profile = get_the_author_meta('google_profile');
if (!empty($google_profile)) {
    echo '<li><a href="' . $google_profile . '" title="Google+" rel="me" class="sprite32 googleplus32" itemprop="sameAs"></a></li>';
Esempio n. 2
0
    function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        $GLOBALS['comment'] = $comment;
        if (!empty($args['callback'])) {
            call_user_func($args['callback'], $comment, $args, $depth);
            return;
        }
        extract($args, EXTR_SKIP);
        global $post;
        ?>

		<span class="clearfix"></span>
		<ul <?php 
        comment_class('media list-unstyled comment-' . get_comment_ID());
        ?>
>

			<?php 
        /**
         * http://codex.wordpress.org/Function_Reference/comment_class
         */
        ?>
			<li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        comment_class('margin-bottom-25 media comment-' . get_comment_ID());
        ?>
 itemscope itemtype="http://schema.org/Comment">

				<span class="pull-left">
					<?php 
        echo italystrap_get_avatar($comment, NULL, NULL, get_comment_author(), 'img-circle img-responsive');
        ?>
				</span>
				<div class="media-body">
					<ul class="list-inline margin-bottom-10">
						<li>
							<h4 class="media-heading">

							<?php 
        if (get_comment_author_url()) {
            ?>

								<a class="url" rel="external nofollow" href="<?php 
            comment_author_url();
            ?>
" itemprop="url"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><?php 
            echo get_comment_author();
            ?>
</span><meta itemprop="image" content="<?php 
            echo italystrap_get_avatar_url(get_comment_author_email());
            ?>
"/></span></a>

							<?php 
        } else {
            ?>

								<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><?php 
            echo get_comment_author();
            ?>
</span><meta itemprop="image" content="<?php 
            echo italystrap_get_avatar_url(get_comment_author_email());
            ?>
"/></span>

							<?php 
        }
        printf($comment->user_id === $post->post_author ? ' <span class="label label-danger"> ' . __('The Boss :-)', 'ItalyStrap') . '</span> ' : '');
        ?>
							</h4>
						</li>
						<li>
							<time datetime="<?php 
        comment_date('Y-m-d', $comment);
        ?>
" itemprop="datePublished"><?php 
        comment_date('j M Y', $comment);
        ?>
</time>
						</li>
						
						<?php 
        if (is_user_logged_in()) {
            ?>
							<a href="<?php 
            echo get_edit_comment_link();
            ?>
" class="btn btn-sm btn-warning pull-right"><?php 
            echo __('Edit', 'ItalyStrap');
            ?>
 <i class="glyphicon glyphicon-pencil"></i></a>
						<?php 
        }
        ?>

					</ul>

					<?php 
        if ($comment->comment_approved == '0') {
            ?>
					<div class="alert alert-info">
						<?php 
            _e('Your comment is awaiting moderation.', 'ItalyStrap');
            ?>
					</div>
					<?php 
        }
        ?>

				<div itemprop="text">
					<?php 
        comment_text($comment->comment_ID);
        ?>
				</div>

				<?php 
        /**
         * If comment type is not pingback and trackback add comment reply button
         *
         * @link http://codex.wordpress.org/Function_Reference/comment_reply_link
         * @see comment_reply.php for customizations
         */
        if ($comment->comment_type === '') {
            $comment_author = $comment->comment_author;
            comment_reply_link(array_merge($args, array('reply_text' => __('Reply to ', 'ItalyStrap') . $comment_author . ' <i class="glyphicon glyphicon-arrow-down"></i>', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        }
    }