Beispiel #1
0
</div>                
    </td>
    <td class="center">
        <div><?php 
echo $model->order->activity->status;
?>
</div>
    </td>    
    <td class="center">
        <?php 
echo count($model->order->bids);
?>
    </td>
    <td class="center">
        <div class="gray-color"><i class="fa fa-clock-o"></i> <?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => $model->activity->time, 'language' => 'en-short']);
?>
</div>   
        <div class="label label-primary fs_11"><i class="fa fa-building"></i> <?php 
echo $model->activity->type;
?>
</div>             
        <div class="margin-top-5"><?php 
echo Html::a('#' . sprintf("%'07d\n", $model->id), Url::to('/bid/' . $model->id), ['class' => '']);
?>
</div>       
        
    </td>
    <td>
        <div><?php 
echo $model->price;
Beispiel #2
0
                <div class="avatar">
                    <?php 
echo Html::img('@web/images/cards/default_avatar.jpg');
?>
          
                </div>
                <div class="title">
                    <div class="head second">Masterplan</div>
                    <div class="subhead"><?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => date('U')]);
?>
</div> 
                </div>
                <div class="subaction">
                    <?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => date('U')]);
?>
    
                </div>
            </div>
            <div class="media-area">                
                <div class="image">
                    <?php 
echo Html::img('@web/images/cards/info/info_docs' . rand(0, 9) . '.jpg');
?>
                    
                </div>
            </div>
            <div class="primary-context">
                <div class="head">Heading</div>
                <div class="subhead">Lorem ipsum</div>
Beispiel #3
0
  <div class="media-left">

      <img class="media-object" style ="width: 54px; height: 54px;" src="<?php 
    echo $avatar;
    ?>
" >

  </div>
  <div class="media-body">
    <div class="media-heading">
        <span class="author"><?php 
    echo HtmlPurifier::process($username);
    ?>
</span>
        <span class="time dot-left dot-right"><?php 
    echo TimeAgo::widget(['timestamp' => $model->created_at]);
    ?>
</span>
    </div>

    <div class="comment-content">
        <?php 
    echo HtmlPurifier::process($model->content);
    ?>
    </div>
     <?php 
    if ($nestedLevel < $maxNestedLevel) {
        ?>
    <div class="comment-footer">
         <a class="reply-button" data-parent-id="<?php 
        echo $model->comment_id;
Beispiel #4
0
<div class="comment-wrap <?php 
echo $class;
?>
">
    <table>
        <tr>
            <td class="avatar"><?php 
echo Html::img('@web/images/cards/' . $comment->user->avatar->ime);
?>
</td>
            <td class="body">
                <table>
                    <tr>
                        <td class="head second"><?php 
echo $comment->user->username;
?>
</td>
                        <td class="subaction"><i class="fa fa-clock-o"></i> <?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => $comment->update_time]);
?>
</td>                       
                    </tr>
                </table>
                <p><?php 
echo $comment->text;
?>
</p> 
            </td>
        </tr>                        
    </table>
</div><?php 
Beispiel #5
0
echo \yii\bootstrap\Html::submitButton('Фильтр', ['class' => 'btn btn-success btn-lg']);
?>
            </div>


        <?php 
$form->end();
?>
        </div>
    </div>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'formatter' => ['class' => 'yii\\i18n\\Formatter'], 'columns' => ['id', 'name', ['label' => 'Изображение', 'format' => 'raw', 'value' => function ($model) {
    $url = $model->preview;
    return Html::a(Html::img($url, ['class' => 'img-responsive', 'style' => 'height:150px;']), $url, ['data-lightbox' => "image-" . $model->id]);
}], ['attribute' => 'author', 'label' => 'Автор', 'value' => 'author.fullName'], ['attribute' => 'date', 'format' => ['date', 'php:d F Y']], ['attribute' => 'date_create', 'format' => 'raw', 'value' => function ($model) {
    return \yii\timeago\TimeAgo::widget(['timestamp' => $model->date_create, 'language' => 'ru']);
}], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view}{update}{delete}', 'buttons' => ['view' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $url, ['title' => Yii::t('app', 'New Action1'), 'class' => 'view_book']);
}]]]]);
?>

</div>
<?php 
\yii\bootstrap\Modal::begin(['id' => 'book-info', 'closeButton' => ['id' => 'close-button']]);
\yii\bootstrap\Modal::end();
?>
<script>
    window.onload = function(){
        $('.view_book').click(function(e){
            e.preventDefault();
            var url = $(this).attr('href');
Beispiel #6
0
    ?>
        <div class="comments-main-form">
            <?php 
    echo CommentsForm::widget();
    ?>
        </div>
    <?php 
}
?>

    <?php 
if ($this->beginCache($cacheKey, $cacheProperties)) {
    ?>
        <?php 
    echo CommentsList::widget(compact('model', 'model_id', 'comment'));
    ?>
        <?php 
    $this->endCache();
    ?>
    <?php 
} else {
    ?>
        <?php 
    TimeAgo::widget(['language' => substr(\Yii::$app->language, 0, 2)]);
    //SIMONE
    ?>
    <?php 
}
?>
</div>
Beispiel #7
0
>
				<div class="timeline-badge">
					<i class="fa <?php 
    echo $model->type;
    ?>
"></i>
				</div>
				<div class="timeline-panel">
					<div class="timeline-heading">
						<h4 class="timeline-title"><?php 
    echo $model->title;
    ?>
</h4>
						<p>
							<small class="text-muted"><i class="glyphicon glyphicon-time"></i> <?php 
    echo TimeAgo::widget(["timestamp" => $model->published_at]);
    ?>
</small>
						</p>
					</div>
					<div class="timeline-body">
                    <?php 
    echo $model->content;
    ?>
            </div>
				</div>
			</li>


        <?php 
}
Beispiel #8
0
    
    <div class="header-context padding-bottom-0 gray">                
        <div class="avatar center gray-color">
            <i class="fa fa-shopping-cart fa-3x"></i>    
        </div>
        <div class="title">
            <div class="head second gray-color"><?php 
echo Html::a('Porudžbina #' . sprintf("%'09d\n", $model->id), Url::to('/order/' . $model->id), ['class' => '']);
?>
</div>
            <div class="subhead">                 
                <?php 
echo $model->activity->user->location->city . ', ' . $model->activity->user->location->country;
?>
 <span class=""></span> <i class="fa fa-clock-o"></i> <?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => $model->activity->time]);
?>
                <span class="label label-default"><i class="fa fa-bookmark"></i> Aukcijska porudžbina</span> <?php 
echo $countDown;
?>
            </div>
        </div>
        <div class="action right">
            <?php 
echo Html::a(Yii::t('app', '<i class="fa fa-bookmark"></i>'), Url::to(), ['class' => 'btn btn-default btn-sm']);
?>
            <?php 
echo Html::a(Yii::t('app', 'Ponudi'), Url::to(), ['class' => 'btn btn-success btn-sm']);
?>
    
        </div>
Beispiel #9
0
    /**
     * Renders the widget
     */
    public function run()
    {
        $model = $this->model;
        $formatter = $this->formatter;
        $this->viewerRole = $model->userType;
        $this->orderStatus = $model->order->activity->status;
        ?>

            <div class="bid-wrap">
                <div class="header-context gray" style="height:64px;">              
                    <div class="avatar"><?php 
        echo Html::img('@web/images/cards/' . $model->user->avatar->ime);
        ?>
</div>
                    <div class="title">
                        <div class="head second"><?php 
        echo $model->user->username;
        ?>
<span class="fs_11 margin-left-10 gray-color"><i class="fa fa-clock-o"></i> <?php 
        echo \yii\timeago\TimeAgo::widget(['timestamp' => $model->time]);
        ?>
</span></div>
                        <div class="subhead"><?php 
        echo $model->user->location->city;
        ?>
</div>                                   
                    </div>
                    <div class="subaction right no-padding no-margin">
                    	<div class="btn-group btn-group-sm" role="group" aria-label="...">
		                    <?php 
        if ($this->viewerRole == self::VIEWER_BIDDER && $this->orderStatus == self::ORDER_STATUS_ACTIVE && $this->type == self::TYPE_FULL) {
            ?>
		                        <?php 
            echo Html::a('<i class="fa fa-ban"></i>&nbsp;' . Yii::t('app', 'Reject'), Url::to(), ['class' => 'btn btn-default']);
            ?>
		                        <?php 
            echo Html::a('<i class="fa fa-envelope-o"></i>&nbsp;' . Yii::t('app', 'Message'), Url::to(), ['class' => 'btn btn-default']);
            ?>
		                        <?php 
            echo Html::a('<i class="fa fa-check"></i>&nbsp;' . Yii::t('app', 'Select'), Url::to(), ['class' => 'btn btn-success']);
            ?>
		                    <?php 
        } elseif ($this->viewerRole == self::VIEWER_SENDER && $this->orderStatus == self::ORDER_STATUS_ACTIVE && $this->type == self::TYPE_FULL) {
            ?>
		                    	<?php 
            echo Html::a('<i class="fa fa-pencil"></i>&nbsp;' . Yii::t('app', 'Update'), Url::to(), ['class' => 'btn btn-default']);
            ?>
		                        <?php 
            echo Html::a('<i class="fa fa-times"></i>&nbsp;' . Yii::t('app', 'Delete'), Url::to(), ['class' => 'btn btn-danger']);
            ?>
 
		                    <?php 
        }
        ?>
                    	</div>
                    </div>
                </div>
			<?php 
        if ($model->note) {
            ?>
                <div class="secondary-context">
                	<p><?php 
            echo $model->note;
            ?>
</p>
                </div>
			<?php 
        }
        ?>
                <div class="secondary-context">                    
                    <div class="row">
                        <div class="col-sm-4 center border-right">
                            <table>
                            	<tr><td class="gray-color fs_10 bold"><?php 
        echo Yii::t('app', 'CENA');
        ?>
</td></tr>
                                <tr><td class="center">
                                        <div class="head major"><?php 
        echo $formatter->asCurrency($model->price, $model->currency->code);
        ?>
                                        </div>
                                    </td>
                                </tr>
                                <tr><td class="center gray-color bold">
                                        <?php 
        echo $formatter->asCurrency($model->price_per, $model->currency->code);
        ?>
/<?php 
        echo $model->currency->code;
        ?>
                                    </td>
                                </tr>
                            </table>
                        </div>                        
                        <div class="col-sm-4 center border-right">
                            <table>
                            	<tr><td class="gray-color fs_10 bold"><?php 
        echo Yii::t('app', 'START');
        ?>
</td></tr>
                                <tr>
                                    <td class="center">
                                        <div class="head major"><?php 
        echo $formatter->asDatetime($model->delivery_starts, 'php:j. M y @H:i');
        ?>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="center gray-color bold">
                                        <?php 
        echo Yii::t('app', 'za');
        ?>
 
                                        <?php 
        echo \russ666\widgets\Countdown::widget(['datetime' => $model->delivery_starts, 'format' => '%-D<span class=\\"fs_10\\">d</span> %H<span class=\\"fs_10\\">h</span> %M<span class=\\"fs_10\\">m</span>', 'events' => ['finish' => 'function(){$(this).closest("td").html("Due now!");}']]);
        ?>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="col-sm-4 center">
                            <table>
                                <tr><td class="gray-color fs_10 bold"><?php 
        echo Yii::t('app', 'TRAJANJE');
        ?>
</td></tr>
                                <tr>
                                    <td class="center">
                                        <div class="head major"><?php 
        echo $model->period;
        echo $model->periodUnit->oznaka;
        ?>
</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="center gray-color bold">
                                        <?php 
        echo Yii::t('app', 'cca do');
        ?>
 <?php 
        echo $model->delivery_starts;
        ?>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div> 
                </div>                 
            </div>

    <?php 
    }
Beispiel #10
0
            <?php 
    echo CommentsForm::widget();
    ?>
        </div>
    <?php 
}
?>

    <?php 
if ($this->beginCache($cacheKey, $cacheProperties)) {
    ?>
        <?php 
    Pjax::begin();
    echo ListView::widget(['dataProvider' => $dataProvider, 'emptyText' => CommentsModule::t('comments', 'No Comments'), 'itemView' => function ($model, $key, $index, $widget) {
        $nested_level = 1;
        return $this->render('comment', compact('model', 'widget', 'nested_level'));
    }, 'options' => ['class' => 'comments'], 'itemOptions' => ['class' => 'comment'], 'layout' => '{items}<div class="text-center">{pager}</div>', 'pager' => ['class' => yii\widgets\LinkPager::className(), 'options' => ['class' => 'pagination pagination-sm']]]);
    Pjax::end();
    $this->endCache();
    ?>
    <?php 
} else {
    ?>
        <?php 
    TimeAgo::widget();
    ?>
    <?php 
}
?>
</div>
Beispiel #11
0
 /**
  * Renders one comment.
  * @return string the rendered comment element.
  */
 public function renderOneComment($commentModel, $replies)
 {
     // The comment to build
     $comment = '';
     // Make the Author Profile Pic
     $authorProfilePicture = Yii::getAlias('@web') . "/images/def_avatar.png";
     $authorImage = Html::img($commentModel->createdBy->getImage()->getUrl('100x100'), $this->imageOptions);
     $comment .= Html::a($authorImage, ['/profile/', 'id' => $commentModel->createdBy->id], ['class' => 'pull-left']);
     // Make the Author Name with Date
     $authorName = Html::tag('h5', $commentModel->createdBy->username, ['class' => 'media-heading reviews']);
     $commentDate = TimeAgo::widget(['timestamp' => $commentModel->created_at]);
     $commentDate = Html::tag('p', $commentDate, ['class' => 'media-date text-uppercase reviews list-inline']);
     // Make the actual Comment
     $commentText = Html::tag('p', $commentModel->text, ['class' => 'comment']);
     // Make the Reply Button
     $replyGlyph = Html::tag('span', '', ['class' => 'glyphicon glyphicon-share-alt']);
     $replyButton = Html::a($replyGlyph . ' Reply', '#ReplyTo' . $commentModel->id, ['class' => 'btn btn-sm btn-success btn-circle text-uppercase pull-right reply-btn', 'data' => ['toggle' => 'collapse']]);
     // Make the Show Replies Button if replies do exist
     $repliesGlyph = Html::tag('span', '', ['class' => 'glyphicon glyphicon-comment']);
     if (count($replies) == 1) {
         $howManyReplies = ' 1 reply';
     } else {
         $howManyReplies = ' ' . count($replies) . ' replies';
     }
     $repliesButton = Html::a($repliesGlyph . $howManyReplies, '#RepliesTo' . $commentModel->id, ['class' => 'btn btn-sm btn-primary btn-circle text-uppercase pull-right reply-btn', 'data' => ['toggle' => 'collapse']]);
     // Make the Wrapper for all the above
     $wellDiv = Html::tag('div', $authorName . $commentDate . $commentText . $replyButton . $repliesButton, ['class' => 'well well-lg']);
     // Attach all above into the Comment
     $comment .= Html::tag('div', $wellDiv, ['class' => 'media-body']);
     $this->model->api = $commentModel->api;
     $this->model->object = $commentModel->object;
     $this->model->property = $commentModel->property;
     $this->model->reply_to_comment = $commentModel->id;
     $replyForm = $this->render('//comments/_replyForm', ['model' => $this->model]);
     // Attach all above into the Comment
     $comment .= Html::tag('div', $replyForm, ['class' => 'collapse', 'id' => 'ReplyTo' . $commentModel->id]);
     // Make the Replies if they exist
     $repliesUl = '';
     foreach ($replies as $reply) {
         $repliesUl .= Html::ul([$this->renderCommentWithReplies($reply)], ['encode' => false, 'class' => 'media-list', 'item' => function ($item) {
             return "<li class='media media-replied'>{$item}</li>";
         }]);
     }
     // Attach replies into the Comment
     $comment .= Html::tag('div', $repliesUl, ['class' => 'collapse', 'id' => 'RepliesTo' . $commentModel->id]);
     return $comment;
 }
Beispiel #12
0
    /**
     * Renders the widget
     */
    public function run()
    {
        ?>

        <div class="card_container record-full" id="card_container" style="float:none;"> 
            <?php 
        /* creator and product details */
        ?>
                   
            <div class="header-context gray">                
                <div class="avatar">
                    <?php 
        echo Html::img('@web/images/cards/default_avatar.jpg');
        ?>
    
                </div>
                <div class="title">
                    <div class="head second"><?php 
        echo $this->productData['creator']['name'];
        ?>
</div>
                    <div class="subhead"><?php 
        echo $this->productData['creator']['location'];
        ?>
</div> 
                </div>
                <div class="subaction right">                        
                    <i class="fa fa-clock-o"></i> <?php 
        echo \yii\timeago\TimeAgo::widget(['timestamp' => date('U')]);
        ?>
                </div>
                
            </div>           
            <hr class="no-margin">
            <div class="header-context">
                <div class="avatar center gray-color">
                    <i class="fa fa-shopping-cart fa-3x"></i>        
                </div>
                <div class="title">
                    <div class="head second gray-color">Porudžbina br. #<?php 
        echo sprintf("%'09d\n", $this->productData['activity']['id']);
        ?>
</div>
                    <span class="label label-primary margin-right-10"><i class="fa fa-bookmark"></i> <?php 
        echo $this->productData['activity']['type'];
        ?>
</span> 
                        
                </div> 
                <div class="right fs_30">                        
                    <i class="fa fa-refresh fa-spin"></i> 
                    <?php 
        echo \russ666\widgets\Countdown::widget(['datetime' => $this->productData['activity']['validity'], 'format' => '%d<span class=\\"fs_11\\">d</span> %H<span class=\\"fs_11\\">h</span> %M<span class=\\"fs_11\\">m</span> %S<span class=\\"fs_11\\">s</span>', 'events' => []]);
        ?>
                        <?php 
        echo Html::a('<i class="fa fa-sticky-note"></i>&nbsp;' . Yii::t('app', 'Pošalji ponudu'), Url::to(), ['class' => 'btn btn-danger btn-xs no-margin']);
        ?>
                </div>                
            </div>           
            <hr class="no-margin">
            <?php 
        /* service */
        ?>
            <?php 
        $productCount = count($this->productData['product']);
        ?>
            <?php 
        foreach ($this->productData['product'] as $product) {
            ?>
            <div class="hidden-content-container hovering" style="position:relative;">
                <div class="header-context head">              
                    <div class="avatar">
                        <?php 
            echo Html::img('@web/images/cards/' . $product['avatar'] . '.jpg');
            ?>
          
                    </div>
                    <div class="title">
                        <div class="head" style="color:#2196F3; font-weight:300;"><?php 
            echo $product['head'];
            ?>
<span class="margin-left-10 fs_11"><?php 
            echo Html::a('<i class="fa fa-external-link"></i>', Url::to(''), []);
            ?>
</span></div>
                        <div class="subhead">
                            <div class="label label-success fs_11 margin-right-15"><i class="fa fa-building"></i> Izdavanje nekretnina</div>
                            <?php 
            echo $product['qty'] ? '<span class="margin-right-15"><i class="fa fa-signal fa-rotate-270 margin-right-5"></i>' . $product['qty'] . '</span>' : null;
            ?>
                            <?php 
            echo $product['consumer'] ? '<span class="margin-right-15"><i class="fa fa-user"></i> ' . $product['consumer'] . '</span>' : null;
            ?>
                        </div>                                   
                    </div>

                    <?php 
            echo Html::a('<i class="fa ' . ($productCount > 1 ? 'fa-chevron-right' : 'fa-chevron-down') . '"></i>', null, ['class' => 'btn btn-link float-right show-more']);
            ?>

                </div>
                <div class="secondary-context avatar-padded <?php 
            echo $productCount > 1 ? 'hidden' : '';
            ?>
 hidden-content fadeIn animated">
                    <?php 
            echo $product['note'] ? '<p><b><i class="fa fa-sticky-note"></i> Note:</b> ' . $product['note'] . '</p>' : null;
            ?>
                
                </div>
                <div class="secondary-context cont avatar-padded <?php 
            echo $productCount > 1 ? 'hidden' : '';
            ?>
 hidden-content fadeIn animated">
                    <?php 
            echo TabsX::widget(['items' => $product['details'], 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false, 'containerOptions' => ['class' => 'product-nav-tabs']]);
            ?>
                          
                </div>
                <?php 
            if ($product['media']) {
                ?>
                <div class="media-area <?php 
                echo $productCount > 1 ? 'hidden' : '';
                ?>
 hidden-content">
                    <?php 
                foreach ($product['media'] as $media) {
                    ?>
                        <?php 
                    echo Html::img('@web/images/cards/' . $media . '.jpg');
                    ?>
                    <?php 
                }
                ?>
                </div>
                <?php 
            }
            ?>
 
                <hr class="no-margin">                 
            </div>
            <?php 
        }
        ?>

            
                      
            <?php 
        /* time/loc */
        ?>
                <div class="header-context">  
                    <div class="avatar center gray-color">
                        <i class="fa fa-calendar fa-3x"></i>    
                    </div>
                    <div class="title">
                        <div class="subhead"><?php 
        echo Yii::t('app', 'vreme');
        ?>
</div> 
                        <div class="head second"><?php 
        echo $this->productData['activity']['time'];
        ?>
</div>                           
                    </div>
                </div>
            <?php 
        /* time/loc */
        ?>
            <div class="hidden-content-container">
                <div class="header-context">                    
                    <div class="avatar center gray-color">
                        <i class="fa fa-map-marker fa-3x"></i>    
                    </div>
                    <div class="title">
                        <div class="subhead"><?php 
        echo Yii::t('app', 'delivery location');
        ?>
</div> 
                        <div class="head second"><?php 
        echo $this->productData['activity']['location'];
        ?>
</div>                           
                    </div>
                    <?php 
        echo Html::a('<i class="fa fa-chevron-right"></i>', null, ['class' => 'btn btn-link float-right show-more', 'id' => 'mapShowTrigger']);
        ?>
                </div>
                <div class="media-screen hidden hidden-content no-margin" id="map_container">                   
                    <?php 
        echo $this->productData['maps'];
        ?>
                </div>
            </div>
            

        
             <?php 
        /* price/action */
        ?>
            <div class="secondary-context" style="height:84px;">
                <div class="float-left" style="">
                    <div class="avatar center gray-color">
                        <i class="fa fa-barcode fa-3x"></i>    
                    </div>
                    <div class="title">
                        <div class="subhead"><?php 
        echo Yii::t('app', 'cena');
        ?>
</div> 
                        <div class="head black no-padding"><?php 
        echo Yii::$app->formatter->asCurrency(12750, 'EUR');
        ?>
</div>
                        <span class="strikethrough"><?php 
        echo Yii::$app->formatter->asCurrency(13499.99, 'EUR');
        ?>
</span> <span class="label label-warning">popust 25%</span>
                    </div>
                </div>
                <div class="float-right action-area no-margin no-padding" style="">
                    <div class="head second padding-bottom-5 right gray-color">
                        <?php 
        echo \russ666\widgets\Countdown::widget(['datetime' => $this->productData['activity']['validity'], 'format' => '%d<span class=\\"fs_11\\">' . Yii::t('app', 'd') . '</span> %H<span class=\\"fs_11\\">h</span> %M<span class=\\"fs_11\\">m</span> %S<span class=\\"fs_11\\">s</span>', 'events' => []]);
        ?>
                    </div>
                    <?php 
        echo Html::a('<i class="fa fa-eye"></i>&nbsp;' . Yii::t('app', 'Prati'), Url::to(), ['class' => 'btn btn-link']);
        ?>
                    <?php 
        echo Html::a('<i class="fa fa-sticky-note"></i>&nbsp;' . Yii::t('app', 'Pošalji ponudu'), Url::to(), ['class' => 'btn btn-danger no-margin']);
        ?>
                            
                </div>                     
            </div>                                                             
        </div>
        <?php 
    }
Beispiel #13
0
    }
    // if ($log->action=='provider_reviewed')
    // provider_recommended
    if ($log->action == 'provider_recommended') {
        $icon = '<i class="fa fa-thumbs-o-up fa-lg"></i>';
        $color = '#e66021;';
        $pre = '';
        $pro = \common\models\Provider::findOne($log->alias);
        $log_text = Yii::t('app', 'recommended') . $suff . ' <a href="' . Url::to('provider/' . $pro->user->username . '/i') . '"><i class="fa fa-users"></i> ' . Yii::t('app', 'a service provider') . '</a>';
    }
    // if ($log->action=='provider_recommended')
    // renderuj ticker
    echo '<li>
				            <table>
				            	<tr>
						            <td class="feed-icon" style="background: ' . $color . ' ">
						            	<span>' . $icon . '</span>
						            </td>
						            <td class="feed-content">
						            	<b>' . $pre . ' ' . $user->username . '</b> ' . $log_text . ' | <span><i class="fa fa-clock-o"></i> ' . \yii\timeago\TimeAgo::widget(['timestamp' => $log->time]) . '</span>
						            </td>
						        </tr>
					        </table>
			            </li>';
}
// foreach ($logs as $log)
?>
	
			</ul>

		</div>
Beispiel #14
0
        <a class="author"><?php 
echo HtmlPurifier::process($model->getAuthor());
?>
</a>
        <a class="author">
        <?php 
if ($model->user[0]->is_artist) {
    echo '<i class="fa fa-graduation-cap orange"></i>&nbsp;';
}
if ($model->user[0]->is_owner) {
    echo '<i class="fa fa-map-marker cyan"></i>';
}
?>
        </a>
        <span class="time dot-left dot-right"><?php 
echo TimeAgo::widget(['timestamp' => $model->created_at, 'language' => substr(\Yii::$app->language, 0, 2)]);
//SIMONE
?>
</span>
    </div>
    <div class="comment-text">
        <?php 
echo HtmlPurifier::process($model->content);
?>
    </div>
    <?php 
if ($nested_level < Comments::getInstance()->maxNestedLevel) {
    ?>
        <div class="comment-footer">
            <?php 
    if (!Comments::getInstance()->onlyRegistered || !Yii::$app->user->isGuest) {
Beispiel #15
0
        	<span style="color:<?php 
echo $model->is_read == 0 ? $color : 'gray';
?>
"><?php 
echo $icon;
?>
</span>
            <?php 
echo $notify_title;
?>
            <?php 
echo $model->cc > 1 ? '&nbsp;(' . $model->cc . ')' : '';
?>
            <div class="subaction">
                <i class="fa fa-clock-o"></i> <?php 
echo \yii\timeago\TimeAgo::widget(['timestamp' => $model->notification_time]);
?>
            </div>
        </div>
        <div class="subhead"><?php 
echo $notify_title;
?>
</div>
    </div>
    <div class="secondary-context tease">
        <?php 
echo $notify_text;
?>
    </div>
    <div class="action-area">
    	<?php