예제 #1
0
            <div class="col-md-3" style="text-align: right">
                                                <span class="glyphicon glyphicon-time bold dark-color"
                                                      aria-hidden="true"></span>
                                    <span
                                        class="dark-color"><?php 
echo ' ' . Yii::$app->formatter->asDate($model->created_at, 'short') . ' ' . Yii::$app->formatter->asTime($model->created_at, 'short');
?>
</span>
                                    <span class="glyphicon glyphicon-eye-open" aria-hidden="true"
                                          style="margin-left:10px">&nbsp;<?php 
//= $model->view
?>
</span>
                                    <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"
                                          style="margin-left:10px">&nbsp;<?php 
echo Comment::getMessagesQuantityByBlogId($model->id);
?>
</span>
            </div>
        </div>


    </div>





</div>

예제 #2
0
                                            <div class="caption time">
                                                <span class="glyphicon glyphicon-time bold dark-color"
                                                      aria-hidden="true"></span>
                                    <span
                                        class="dark-color"><?php 
        echo ' ' . Yii::$app->formatter->asDate($blog->created_at, 'short') . ' ' . Yii::$app->formatter->asTime($blog->created_at, 'short');
        ?>
</span>
                                    <span class="glyphicon glyphicon-eye-open" aria-hidden="true"
                                          style="margin-left:10px"><?php 
        echo $blog->view;
        ?>
</span>
                                    <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"
                                          style="margin-left:10px"><?php 
        echo Comment::getMessagesQuantityByBlogId($blog->id);
        ?>
</span>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                            <?php 
    }
    ?>
                        <?php 
} else {
    ?>
                            <h3>Ничего не найдено</h3>
                        <?php 
}