示例#1
0
    ?>
        <?php 
    if (osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments()) {
        ?>
        <!--<ul id="comment_error_list"></ul>-->
        <?php 
        CommentForm::js_validation();
        ?>
        <div class="post-comments">
            <div class="comment clearfix">
                    <div class="pull-left avatar">
                        <?php 
        if (function_exists("profile_picture_show")) {
            ?>
							<?php 
            current_user_picture();
            ?>
                        <?php 
        } else {
            ?>
                            <img class="img-responsive" src="http://www.gravatar.com/avatar/<?php 
            echo md5(strtolower(trim(osc_logged_user_email())));
            ?>
?s=60&d=<?php 
            echo osc_current_web_theme_url('images/user-default.jpg');
            ?>
" />
                        <?php 
        }
        ?>
                    </div>
示例#2
0
function dd_userpic()
{
    if (function_exists("profile_picture_show")) {
        current_user_picture();
    } else {
        ?>
     <img src="http://www.gravatar.com/avatar/<?php 
        echo md5(strtolower(trim(osc_logged_user_email())));
        ?>
?s=20&d=<?php 
        echo osc_current_web_theme_url('images/user-default.jpg');
        ?>
" />
<?php 
    }
}