Beispiel #1
0
if ($post->tagLinks) {
    ?>
            <hr>
            <p><span class="glyphicon glyphicon-tags"></span>&nbsp; <?php 
    echo Tags::array2string($post->tagLinks);
    ?>
</p>
        <?php 
}
?>

        <hr>

        <!-- Blog Comments -->
        <?php 
echo CommentsWidget::widget(['title' => Module::t('module', 'TITLE_COMMENTS'), 'material' => $post, 'model' => $modelComments, 'imgUser' => AvatarWidget::widget()]);
?>
    </div>
    <!-- Blog Sidebar Widgets Column -->
    <div class="col-md-4">

        <?php 
Portlet::begin(['title' => '<span class="glyphicon glyphicon-search"></span> ' . Module::t('module', 'TITLE_BLOG_SEARCH'), 'htmlOptions' => ['class' => 'well']]);
?>
        <?php 
echo $this->render('forms/_searchForm', ['text' => '']);
?>
        <?php 
Portlet::end();
?>
Beispiel #2
0
use yii\helpers\Html;
use yii\widgets\DetailView;
use app\modules\user\Module;
use app\modules\user\components\widgets\AvatarWidget;
/* @var $this yii\web\View */
/* @var $model app\modules\user\models\User */
$this->title = Module::t('module', 'TITLE_PROFILE');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-profile">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a(Module::t('module', 'BUTTON_UPDATE'), ['update'], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Module::t('module', 'LINK_PASSWORD_CHANGE'), ['password-change'], ['class' => 'btn btn-primary']);
?>
    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['username', 'email', ['attribute' => 'created_at', 'value' => Yii::$app->formatter->asDate($model->created_at, 'd MMM yyyy г., HH:mm:ss')], ['attribute' => 'updated_at', 'value' => Yii::$app->formatter->asDate($model->updated_at, 'd MMM yyyy г., HH:mm:ss')], ['attribute' => 'role', 'value' => $model->getRoleName($model->role)], ['attribute' => 'status', 'value' => $model->getStatusName($model->status)], ['attribute' => 'avatar', 'format' => 'html', 'value' => Html::img(AvatarWidget::widget(['model' => $model]), ['width' => 100, 'height' => 100, 'class' => 'img-thumbnail', 'alt' => $model->username])], 'profile.name', 'profile.surname']]);
?>

</div>
Beispiel #3
0
/* @var $model \app\modules\user\models\forms\ProfileUpdateForm */
$this->title = Module::t('module', 'TITLE_PROFILE_UPDATE');
$this->params['breadcrumbs'][] = ['label' => Module::t('module', 'TITLE_PROFILE'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-profile-update">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <div class="user-form">
        <div class="form-group">
            <?php 
echo Html::img(AvatarWidget::widget(['model' => $model->getUser()]), ['width' => 100, 'height' => 100, 'class' => 'img-thumbnail', 'alt' => $model->getUser()->username]);
?>
            <p>
                <?php 
echo Html::a(Module::t('module', 'TITLE_AVATAR_UPLOAD'), ['upload'], ['class' => 'btn btn-primary btn-xs']);
?>
            </p>
        </div>

        <?php 
$form = ActiveForm::begin();
?>
        <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>
        <?php