当前位置: 首页>>代码示例>>PHP>>正文


PHP qa_user_badge函数代码示例

本文整理汇总了PHP中qa_user_badge函数的典型用法代码示例。如果您正苦于以下问题:PHP qa_user_badge函数的具体用法?PHP qa_user_badge怎么用?PHP qa_user_badge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了qa_user_badge函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_author_posts_url

                <a href="<?php 
echo get_author_posts_url($question->post_author);
?>
">
                    <span class="author-avatar">
                        <?php 
echo et_get_avatar($question->post_author, 30);
?>
                    </span>
                    <span class="author-name"><?php 
echo $question->author_name;
?>
</span>
                </a>                    
                    <?php 
qa_user_badge($question->post_author);
?>
                    <span class="question-time">
                        <?php 
printf(__('Asked %s in', ET_DOMAIN), $et_post_date);
?>
                    </span>

                <span class="question-category">
                    <a href="<?php 
echo $category_link;
?>
"><?php 
echo $category;
?>
.</a>
开发者ID:callmeaatrey,项目名称:zap-query,代码行数:31,代码来源:pending-question-loop.php

示例2: the_title

?>
" class="question-title">
                <?php 
the_title();
?>
            </a>
        </div>
        <div class="q-lbtm-content">
            <div class="question-cat">
                <span class="author-avatar">
                <?php 
echo et_get_avatar($answer->post_author, 30);
?>
                </span>
                <?php 
qa_user_badge($answer->post_author);
?>
                <span class="question-time">
                    <?php 
printf(__('Asked %s in', ET_DOMAIN), $et_post_date);
?>
                </span>
                <span class="question-category">
                    <a href="<?php 
echo $category_link;
?>
"><?php 
echo $category;
?>
.</a>
                </span>
开发者ID:rinodung,项目名称:wp-question,代码行数:31,代码来源:pending-answer-loop.php

示例3: convert

 public static function convert($post)
 {
     global $current_user;
     $result = self::get_instance()->_convert($post);
     $parent = get_post($result->post_parent);
     $result->et_vote_up_authors = is_array($result->et_vote_up_authors) ? $result->et_vote_up_authors : array();
     $result->et_vote_down_authors = is_array($result->et_vote_down_authors) ? $result->et_vote_down_authors : array();
     $result->voted_down = in_array($current_user->ID, (array) $result->et_vote_down_authors);
     $result->voted_up = in_array($current_user->ID, (array) $result->et_vote_up_authors);
     $result->et_vote_count = get_post_meta($post->ID, 'et_vote_count', true) ? get_post_meta($post->ID, 'et_vote_count', true) : 0;
     $result->user_badge = qa_user_badge($post->post_author, false, et_load_mobile());
     $result->et_answers_count = $result->et_answers_count ? $result->et_answers_count : 0;
     $result->et_answer_authors = is_array($result->et_answer_authors) ? $result->et_answer_authors : array();
     $result->avatar = et_get_avatar($result->post_author, 30);
     $result->new_nonce = wp_create_nonce('insert_comment');
     $result->human_date = et_the_time(strtotime($result->post_date));
     $result->content_filter = apply_filters('the_content', $result->post_content);
     $result->content_edit = et_the_content_edit($post->post_content);
     $result->parent_author = $parent->post_author;
     $result->comments = sprintf(__('Comment(%d) ', ET_DOMAIN), $result->comment_count);
     $result->author_name = get_the_author_meta('display_name', $post->post_author);
     $result->author_url = get_author_posts_url($post->post_author);
     $result->reported = in_array($current_user->ID, (array) get_post_meta($post->ID, 'et_users_report', true));
     return $result;
 }
开发者ID:callmeaatrey,项目名称:zap-query,代码行数:25,代码来源:questions.php

示例4: __

echo $user->show_email == "on" ? $user->user_email : __('Email is hidden.', ET_DOMAIN);
?>
                        </span>
                        <div class="clearfix"></div>
                        <div class="description">
                            <?php 
echo nl2br(esc_attr($user->description));
?>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="col-md-8 col-xs-8 padding-right-0">
                	<div class="list-bag-profile-wrapper">
                        <?php 
qa_user_badge($user->ID);
?>
                        <span class="point-profile">
                            <span>
                                <?php 
echo qa_get_user_point($user->ID) ? qa_get_user_point($user->ID) : 0;
?>
                                <i class="fa fa-star"></i>
                            </span><?php 
_e("points", ET_DOMAIN);
?>
                        </span>
                    </div>
                </div>
                <div class="col-md-4 col-xs-4 padding-left-0">
                	 <div class="list-bag-profile-wrapper text-right">
开发者ID:rinodung,项目名称:wp-question,代码行数:31,代码来源:author.php

示例5: the_permalink

echo $post->ID;
?>
">
    <div class="avatar-user">
        <a href="<?php 
the_permalink();
?>
">
            <?php 
echo et_get_avatar($post->post_author, 55);
?>
        </a>
    </div>
    <div class="info-user">
        <?php 
qa_user_badge($post->post_author, true, true);
?>
        <ul class="info-review-question">
            <li>
                <?php 
echo $question->et_view_count;
?>
<i class="fa fa-eye"></i>
            </li>
            <?php 
if ($question->et_best_answer) {
    ?>
            <li class="active">
                <?php 
    echo $question->et_answers_count;
    ?>
开发者ID:rinodung,项目名称:wp-question,代码行数:31,代码来源:answer-loop.php

示例6: get_author_posts_url

        <div class="row">
        	<div class="col-md-12">
            	<div class="content-qna-wrapper">
                    <div class="avatar-user">
                        <a href="<?php 
echo get_author_posts_url($answer->post_author);
?>
">
                            <?php 
echo et_get_avatar($answer->post_author, 55);
?>
                        </a>
                    </div>
                    <div class="info-user">
                        <?php 
qa_user_badge($answer->post_author, true, true);
?>
                    </div>
                    <div class="content-question">
                        <?php 
if ($answer->post_status == "pending") {
    ?>
                        <span class="pending-ans"><?php 
    _e("Pending Answer", ET_DOMAIN);
    ?>
</span>
                        <?php 
}
?>
                        <div class="details">
                        	<?php 
开发者ID:rinodung,项目名称:wp-question,代码行数:31,代码来源:item-answer.php

示例7: get_author_posts_url

            	<div class="col-md-12">
                	<div class="content-qna-wrapper">
                        <div class="avatar-user">
                            <a href="<?php 
echo get_author_posts_url($question->post_author);
?>
">
                                <?php 
echo et_get_avatar($question->post_author, 55);
?>
                            </a>
                        </div>
                        <div class="info-user">
                            <!-- <span title="1" class="user-badge">Newbie</span> -->
                            <?php 
qa_user_badge($question->post_author, true, true);
?>
                        </div>
                        <div class="content-question">
                            <h2 class="title-question">
                                <a href="javascript:void(0)"><?php 
the_title();
?>
</a>
                            </h2>
                            <div class="details">
                            	<?php 
the_content();
?>
                            </div>
                            <div class="info-tag-time">
开发者ID:callmeaatrey,项目名称:zap-query,代码行数:31,代码来源:single-question.php

示例8: et_get_avatar

">
                        <?php 
    echo et_get_avatar($current_user->ID, 65);
    ?>
                    </a>
                </div>
            </div>
            <div class="col-md-9 col-xs-9">
            	<div class="author-info">
                    <span class="author-name"><?php 
    echo $current_user->display_name;
    ?>
</span>
                    <!-- <span class="author-badge">Professor</span> -->
                    <?php 
    qa_user_badge($current_user->ID);
    ?>
                    <a href="<?php 
    echo get_author_posts_url($current_user->ID);
    ?>
" class="setting-author"><i class="fa fa-cog"></i></a>
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="line-menu-push first"></div>
            <ul class="list-categories sign-out-link">
                <li>
                    <a href="<?php 
    echo wp_logout_url(home_url());
    ?>
开发者ID:callmeaatrey,项目名称:zap-query,代码行数:31,代码来源:header.php


注:本文中的qa_user_badge函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。