Exemplo n.º 1
0
                            </div>-->


                            <div class="row">
                                <div class="col-md-12">
                                    <div class="comments">
                                        <h2>Latest Comments</h2>
                                        <ul>
                                            <?php 
$widget = ListView::begin(['dataProvider' => $articleCommentsList, 'summary' => '', 'itemOptions' => ['class' => 'item'], 'itemView' => function ($model, $key, $index, $widget) {
    $link = TranslitWidget::widget(['link' => $model['commentOwner']['firstname'] . '_' . $model['commentOwner']['lastname']]) . '-' . $model['commentOwner']['user_id'];
    $content = '<li>
                                                    <div class="thumb" style="width: 70px;">
                                                        <a href="' . Url::base() . '/psychologists/profile/' . $link . '">
                                                        <img class="img-responsive"
                                                        src="' . Image::getUserProfilePhoto($model['commentOwner']['user_id']) . '" alt=""></a>
                                                    </div>
                                                    <div class="text">
                                                        <h4><a href="' . Url::base() . '/psychologists/profile/' . $link . '">
                                                        ' . $model['commentOwner']['firstname'] . ' ' . $model['commentOwner']['lastname'] . '
                                                        </a></h4>
                                                        <p class="date">' . $model['created_at'] . '</p>
                                                        <p>' . $model['text'] . '</p>
                                                    </div>

                                                </li>';
    return $content;
}]);
?>

                                            <?php 
Exemplo n.º 2
0
                <div class="col-md-6">
                    <div class="text-detail">
                        <h2>Организатор</h2>

                        <div class="admin">
                            <div class="thumb">
                                <?php 
$link = TranslitWidget::widget(['link' => $organizer['firstname'] . '_' . $organizer['lastname']]) . '-' . $organizer['user_id'];
?>
                                <a href="<?php 
echo Url::base() . '/psychologists/profile/' . $link;
?>
">
                                    <img alt="" class="thumb"
                                         src="<?php 
echo Image::getUserProfilePhoto($organizer['user_id']);
?>
"
                                         style="max-width: 120px;">
                                </a>
                            </div>
                            <div class="text">
                                <!--                    <div class="social-icons">
                                                        <a title="" data-toggle="tooltip" href="#" data-original-title="Facebook"><i
                                                                class="fa fa-facebook"></i></a>
                                                        <a title="" data-toggle="tooltip" href="#" data-original-title="Linkedin"><i
                                                                class="fa fa-linkedin"></i></a>
                                                        <a title="" data-toggle="tooltip" href="#" data-original-title="Dribbble"><i
                                                                class="fa fa-dribbble"></i></a>
                                                        <a title="" data-toggle="tooltip" href="#" data-original-title="Twitter"><i
                                                                class="fa fa-twitter"></i></a>
Exemplo n.º 3
0
                            <?php 
foreach ($activePsychologists as $psychologist) {
    ?>
                                <?php 
    $link = TranslitWidget::widget(['link' => $psychologist['firstname'] . '_' . $psychologist['lastname']]) . '-' . $psychologist['user_id'];
    ?>
                                <li>
                                    <div class="thumb">
                                        <a href="<?php 
    echo Url::base() . '/psychologists/profile/' . $link;
    ?>
">
                                            <img alt="" class="thumb"
                                                 src="<?php 
    echo Image::getUserProfilePhoto($psychologist['user_id']);
    ?>
">
                                        </a>
                                    </div>
                                    <div class="text">
                                        <h4>
                                            <a href="<?php 
    echo Url::base() . '/psychologists/profile/' . $link;
    ?>
">
                                                <?php 
    echo $psychologist['firstname'] . ' ' . $psychologist['lastname'];
    ?>
                                            </a>
                                        </h4>
Exemplo n.º 4
0
                <?php 
    $link = TranslitWidget::widget(['link' => str_replace(' ', '_', trim($article['title']))]) . '-' . $article['id'];
    $userLink = TranslitWidget::widget(['link' => $article['articleAuthor']['firstname'] . '_' . $article['articleAuthor']['lastname']]) . '-' . $article['articleAuthor']['user_id'];
    $plainBody = strip_tags($article['text']);
    $abrvBody = strlen($plainBody) > 150 ? substr($plainBody, 0, 150) : $plainBody;
    ?>
                <div class="col-md-6">
                    <div class="post">
                        <a href="<?php 
    echo Url::base() . '/psychologists/profile/' . $userLink;
    ?>
">
                            <div class="thumb">
                                <img class="img-responsive"
                                     src="<?php 
    echo Image::getUserProfilePhoto($article['psychologist_id']);
    ?>
" alt="">
                            </div>
                        </a>
                        <div class="header">
                            <div class="post-date">
                                <p><?php 
    echo $article['created_at'];
    ?>
</p>
                            </div>

                            <!-- <div class="icons">
                                 <ul>
                                     <li><a href="#"><i class="fa fa-heart-o"></i></a><span class="notification">25</span>