/** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own twentyeleven_comment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since Twenty Eleven 1.0 */ function meme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { case 'pingback': case 'trackback': ?> <li class="post pingback"> <p><?php _e('Pingback:', 'twentyeleven'); ?> <?php comment_author_link(); edit_comment_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> </p> <?php break; default: $author = get_comment_author(); //now let's see if this is a character list($name, $class, $thumbnail) = get_character_info($author); ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> " class="comment"> <div class="comment-meta"> <div class="comment-author vcard" style="height:60px;"> <img src="<?php echo $thumbnail; ?> " width="60" height="60" alt=""> </div><!-- .comment-author .vcard --> </div> <div class="comment-content"> <div class="comment-info"><?php $elapsed = time_elapsed(get_comment_time('U')); ?> <strong class="the-comment-author class-<?php echo $class; ?> "><?php echo $name; ?> </strong> <span class="the-comment-time"><?php echo $elapsed; ?> </span></div> <?php if ($comment->comment_approved == '0') { ?> <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'twentyeleven'); ?> </em> <?php } else { comment_text(); } ?> </div> <?php if (ext_smf_logged_in()) { ?> <div class="reply"> <?php edit_comment_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'twentyeleven'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div><!-- .reply --> <?php } ?> </div><!-- #comment-## --> <?php break; } }
<?php } ?> <li class="nohover" style="background: none;"> <div class="def-icon" style="background-position: 0 -265px; margin-top: 7px;"></div> <a href="/link-your-character" class="wrapper"> <div style="color:#00B6FF">Manage Characters</div> <div style="color: #5b616a;font-size: 11px;">Add characters to your list!</div> </a> </li> </ul> </div> <!-- .submenu --> </div> <?php if (!ext_smf_logged_in()) { ?> <script type="text/javascript"> $('#login-button .text-content a').attr('href', "javascript: void(0);").click(function() { $('#modal-wrapper').fadeIn(1000); $('#modal-wrapper .modal-header a').click(function() { $('#modal-wrapper').fadeOut(300); }); }); </script> <?php } else { ?> <script type="text/javascript"> $('#charname').click(function() { $('#char-submenu').show();