예제 #1
0
파일: core.php 프로젝트: nottombrown/vlab
function mystique_list_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount;
    if (!$commentcount) {
        $commentcount = 0;
    }
    ?>

  <!-- comment entry -->
  <li class="<?php 
    mystique_comment_class();
    ?>
" id="comment-<?php 
    comment_ID();
    ?>
">
    <div class="comment-head <?php 
    mystique_comment_class();
    ?>
">

      <?php 
    if (get_option('show_avatars')) {
        ?>
<div class="avatar-box"><?php 
        echo mystique_get_avatar($comment->comment_author_email, 48);
        ?>
</div><?php 
    }
    ?>
      <div class="author">
       <?php 
    if (get_comment_author_url()) {
        $authorlink = '<a class="comment-author" id="comment-author-' . get_comment_ID() . '" href="' . get_comment_author_url() . '" rel="nofollow">' . get_comment_author() . '</a>';
    } else {
        $authorlink = '<b class="comment-author" id="comment-author-' . get_comment_ID() . '">' . get_comment_author() . '</b>';
    }
    $authorlink = apply_filters("mystique_comment_author_link", $authorlink);
    ?>

        <span class="by"><?php 
    printf(__('%1$s written by %2$s', 'mystique'), '<a class="comment-id" href="#comment-' . get_comment_ID() . '">#' . ++$commentcount . '</a>', $authorlink);
    ?>
 </span>
        <br />
        <?php 
    echo mystique_timeSince(abs(strtotime($comment->comment_date . " GMT")));
    ?>
      </div>

      <div class="controls bubble">
        <?php 
    if (get_mystique_option('jquery') && comments_open()) {
        ?>
           <?php 
        if (get_option('thread_comments')) {
            ?>
           <a class="reply" id="reply-to-<?php 
            echo get_comment_ID();
            ?>
" href="<?php 
            echo esc_url(add_query_arg('replytocom', $comment->comment_ID));
            ?>
#respond"><?php 
            _e("Reply", "mystique");
            ?>
</a>
           <?php 
        }
        ?>
           <a class="quote" title="<?php 
        _e('Quote', 'mystique');
        ?>
" href="#respond"><?php 
        _e('Quote', 'mystique');
        ?>
</a>
        <?php 
    }
    ?>
        <?php 
    edit_comment_link('Edit', '', '');
    ?>
      </div>
    </div>
    <div class="comment-body clear-block" id="comment-body-<?php 
    comment_ID();
    ?>
">
      <?php 
    if ($comment->comment_approved == '0') {
        ?>
<p class="error"><?php 
        _e('Your comment is awaiting moderation.', 'mystique');
        ?>
</p><?php 
    }
    ?>
      <div class="comment-text"><?php 
    comment_text();
    ?>
</div>
      <a id="comment-reply-<?php 
    comment_ID();
    ?>
"></a>
    </div>
<?php 
}
예제 #2
0
        ?>


          <?php 
        if ($settings['post_single_author']) {
            ?>
          <div class="about_the_author clear-block">
           <div class="avatar">
             <a href="<?php 
            echo get_author_posts_url(get_the_author_meta('ID'));
            ?>
" title="<?php 
            echo get_the_author();
            ?>
"><?php 
            echo mystique_get_avatar(get_the_author_meta('email'), 80);
            ?>
</a>
           </div>
           <h3><?php 
            _e("About the author", "mystique");
            ?>
</h3>
           <p><?php 
            the_author_meta('description');
            ?>
</p>
          </div>
          <?php 
        }
        ?>
예제 #3
0
       <?php 
if (isset($_GET['author_name'])) {
    $curauth = get_userdatabylogin($author_name);
} else {
    $curauth = get_userdata(intval($author));
}
?>

       <h1 class="title"><?php 
echo $curauth->display_name;
?>
</h1>

       <div class="clear-block">
       <div class="alignleft"><?php 
echo mystique_get_avatar($curauth->user_email, '128');
?>
</div>
       <div>
        <p>
        <?php 
if ($curauth->user_description != '') {
    echo $curauth->user_description;
} else {
    _e("This user hasn't shared any biographical information", "mystique");
}
?>
        </p>
         <?php 
if ($curauth->user_url != 'http://' && $curauth->user_url != '') {
    echo '<p class="im www">' . __('Homepage:', 'mystique') . ' <a href="' . $curauth->user_url . '">' . $curauth->user_url . '</a></p>';
예제 #4
0
    function widget($args, $instance)
    {
        global $user_ID, $user_identity, $user_level, $user_email, $user_login;
        extract($args);
        echo $before_widget;
        echo $before_title;
        if ($user_ID) {
            printf(__("Logged in: %s", "mystique"), $user_identity);
            echo $after_title;
            ?>
        <div class="clear-block">
        <div class="avatar alignleft"><a href="<?php 
            bloginfo('wpurl');
            ?>
/wp-admin/profile.php"><?php 
            echo mystique_get_avatar($user_email, 64);
            ?>
</a></div>
        <ul class="alignleft">
         <li><a href="<?php 
            bloginfo('wpurl');
            ?>
/wp-admin/"><?php 
            _e("Dashboard", "mystique");
            ?>
</a></li>
         <?php 
            if ($user_level >= 1) {
                ?>
         <li><a href="<?php 
                bloginfo('wpurl');
                ?>
/wp-admin/post-new.php"><?php 
                _e("Write", "mystique");
                ?>
</a></li>
         <li><a href="<?php 
                bloginfo('wpurl');
                ?>
/wp-admin/edit-comments.php"><?php 
                _e("Comments", "mystique");
                ?>
</a></li>
         <?php 
            }
            ?>
         <li><a href="<?php 
            echo wp_logout_url();
            ?>
&amp;redirect_to=<?php 
            echo urlencode(mystique_curPageURL());
            ?>
"><?php 
            _e("Log out", "mystique");
            ?>
</a></li>
        </ul>
        </div>
      <?php 
        } else {
            _e("User Login", "mystique");
            echo $after_title;
            ?>
        <form action="<?php 
            bloginfo('wpurl');
            ?>
/wp-login.php" method="post">
         <fieldset>
           <label for="log"><?php 
            _e("User", "mystique");
            ?>
</label><br /><input type="text" name="log" id="log" value="<?php 
            echo wp_specialchars(stripslashes($user_login), 1);
            ?>
" size="20" /><br />
           <label for="pwd"><?php 
            _e("Password", "mystique");
            ?>
</label><br /><input type="password" name="pwd" id="pwd" size="20" /><br />
           <input type="submit" name="submit" value="<?php 
            _e("Login", "mystique");
            ?>
" class="button" />
           <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /><?php 
            _e("Remember me", "mystique");
            ?>
</label><br />
          <input type="hidden" name="redirect_to" value="<?php 
            echo mystique_curPageURL();
            ?>
"/>
         </fieldset>
        </form>
        <ul>
        <?php 
            if (get_option('users_can_register')) {
                ?>
<li><a href="<?php 
                bloginfo('wpurl');
                ?>
/wp-register.php"><?php 
                _e("Register", "mystique");
                ?>
</a></li><?php 
            }
            ?>
            <li><a href="<?php 
            bloginfo('wpurl');
            ?>
/wp-login.php?action=lostpassword"><?php 
            _e("Lost your password?", "mystique");
            ?>
</a></li>
        </ul>
        <?php 
        }
        ?>

      <?php 
        echo $after_widget;
    }