Пример #1
0
echo Html::a('Logout', ['site/logout'], ['class' => 'list-group-item', 'data-method' => 'post']);
?>
            </div>
        </div>
        <div class="col-sm-8">
            <div class="media">
                <div class="media-left media-middle">
                        <img class="media-object" class="img-thumbnail" src="<?php 
echo $user->image->url;
?>
" alt="<?php 
$user->username;
?>
" width="200px" height="200px" >
                    <p><?php 
echo RatingWidget::widget(['widgetId' => $user->id, 'rate' => isset($user->profile) ? $user->profile->rate : 0]);
?>
</p>
                </div>
                <div class="media-body">
                    <table class="table description">
                        <tbody>
                        <tr>
                            <td>Login:</td>
                            <td><b><?php 
echo $user->username;
?>
</b></td>
                        </tr>
                        <tr>
                            <td>Email:</td>
Пример #2
0
    foreach ($user->comments as $comment) {
        ?>
                        <div class="media">
                            <div class="media-left">
                                <a href="#">
                                    <a href="#">
                                        <img class="media-object" class="img-thumbnail" src="<?php 
        echo $comment->owner->image->url;
        ?>
" alt="<?php 
        echo $comment->owner->username;
        ?>
" width="100px" height="100px" >
                                    </a>
                                    <p> <?php 
        echo RatingWidget::widget(['widgetId' => $comment->owner->id, 'rate' => isset($comment->owner->profile) ? $comment->owner->profile->rate : 0]);
        ?>
                                    </p>
                                    <p><i class="glyphicon glyphicon-user"></i><?php 
        echo $comment->owner->username;
        ?>
</p>
                                </a>
                            </div>
                            <div class="media-body">
                                <p class="well"><?php 
        echo $comment->description;
        ?>
 </p>
                                <span class="pull-right"><?php 
        echo $comment->createdAt;
Пример #3
0
</h4>
                        <p><?php 
    echo $bulletin->description;
    ?>
</p>
                        <hr style="margin-top: 8px; margin-bottom: 8px;">
                        <div>
                            <span class="pull-right"> <?php 
    echo $bulletin->createdAt;
    ?>
</span>
                            <div class="pull-left"><?php 
    echo Html::a('<span class="glyphicon glyphicon-user"></span> <b>' . $bulletin->user->username . '</b>', ['profile/view', 'id' => $bulletin->user->id]);
    ?>
                            <?php 
    echo RatingWidget::widget(['widgetId' => $bulletin->user->id, 'rate' => $bulletin->user->profile->rate]);
    ?>
</div>
                        </div>
                    </div>
            </div>
            <?php 
}
?>
        </div>
        <div class="row">
            <div class="col-lg-12 text-center">
                <?php 
echo LinkPager::widget(['pagination' => $pagination]);
?>
            </div>