Beispiel #1
0
use yii\helpers\Url;
use yii\easyii\modules\page\api\Page;
use yii\easyii\modules\text\api\Text;
use yii\easyii\modules\carousel\api\Carousel;
$page = Page::get($page);
if (!is_null($page)) {
    $this->title = $page->title;
}
?>
 



<header  id="myCarousel" class="carousel slide">
    <?php 
echo Carousel::widget('3000', '520', []);
?>
</header>



<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h1><?php 
echo $page->title;
?>
</h1>
            <p><?php 
echo $page->text;
?>
Beispiel #2
0
<?php

use yii\easyii\modules\article\api\Article;
use yii\easyii\modules\carousel\api\Carousel;
use yii\easyii\modules\gallery\api\Gallery;
use yii\easyii\modules\guestbook\api\Guestbook;
use yii\easyii\modules\news\api\News;
use yii\easyii\modules\page\api\Page;
use yii\easyii\modules\text\api\Text;
use yii\helpers\Html;
$page = Page::get('page-index');
$this->title = $page->seo('title', $page->model->title);
?>

<?php 
echo Carousel::widget(1140, 520);
?>

<div class="text-center">
    <h1><?php 
echo Text::get('index-welcome-title');
?>
</h1>
    <p><?php 
echo $page->text;
?>
</p>
</div>

<br/>
<hr/>
Beispiel #3
0
<?php

/* @var $this yii\web\View */
use yii\easyii\modules\news\api\News;
use yii\easyii\modules\carousel\api\Carousel;
use yii\easyii\modules\article\api\Article;
$this->title = 'ЕШСС - спортивное служение';
?>
<div class="jumbotron">
    <?php 
echo Carousel::widget('1020', '300', ['interval' => 6000]);
?>
</div>

<h1><?php 
echo Article::get('home-about')->model->title;
?>
</h1>

<p>
    <?php 
echo News::get('main-page')->text;
?>
</p>

<div class="row marketing">

    <?php 
foreach (Article::last(2, ['category_id' => 3]) as $item) {
    ?>