Exemple #1
0
                        <img src="<?php 
echo UserHelpers::getProfileImage(Yii::$app->user->identity);
?>
"
                             class="user-image"
                             alt="User Image"/>
                        <span class="hidden-xs"><?php 
echo Yii::$app->user->identity->full_name;
?>
</span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <img src="<?php 
echo UserHelpers::getProfileImage(Yii::$app->user->identity);
?>
" class="img-circle"
                                 alt="User Image"/>

                            <p>
                                <?php 
echo Yii::$app->user->identity->full_name;
?>
                                <small>
                                    <?php 
echo Yii::t('app', 'Member since {0, date, MMM Y}', strtotime(Yii::$app->user->identity->create_date));
?>
                                </small>
                            </p>
                        </li>
Exemple #2
0
use app\helpers\TagHelpers;
use app\helpers\UserHelpers;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
?>
<div class="row">
    <div class="col-md-3">

        <!-- Profile Image -->
        <div class="box box-primary">
            <div class="box-body box-profile">
                <img class="profile-user-img img-responsive img-circle"
                     style="width: 70%;"
                     src="<?php 
echo UserHelpers::getProfileImage($model);
?>
" alt="User profile picture">

                <h3 class="profile-username text-center"><?php 
echo $model->full_name;
?>
</h3>

                <!--                <p class="text-muted text-center">Software Engineer</p>-->

                <ul class="list-group list-group-unbordered">
                    <li class="list-group-item">
                        <b>Followers</b> <a class="pull-right">1,322</a>
                    </li>
                    <li class="list-group-item">