Example #1
0
 public function run()
 {
     $widget = '<div id="boxgallery" class="boxgallery" data-effect="effect-2">';
     foreach (Carousel::items() as $item) {
         $widget .= '<div class="panel">' . Html::img($item->image) . '</div>';
     }
     $widget .= '</div>';
     return $widget;
 }
Example #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/>
Example #3
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;
?>
Example #4
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) {
    ?>
Example #5
0
    ?>
                        <li>
                            <img src="<?php 
    echo $carouselItem->image;
    ?>
" alt="slide1">
                        </li>
                        <?php 
}
?>
                    </ul>
                </div>
                <div class="navigation">
                    <ul>
                        <?php 
foreach (Carousel::items() as $carouselItem) {
    ?>
                            <li><a href="#" title="<?php 
    echo $carouselItem->title;
    ?>
"></a></li>
                        <?php 
}
?>
                    </ul>
                </div>
                <a href="#" class="prev"><</a>
                <a href="#" class="next">></a>
            </div>
        </div>
    </div>
 public function actionIndex()
 {
     $items = Carousel::itemlist(1306, 460);
     $testmonials = Text::find()->all();
     return $this->render('index', array('items' => $items, 'testmonials' => $testmonials));
 }
Example #7
0
 public function actionIndex()
 {
     $items = Carousel::itemlist(1306, 460);
     $testmonials = PageModel::find()->where("homepage=1  or homepage=2")->desc()->all();
     return $this->render('index', array('items' => $items, 'testmonials' => $testmonials));
 }
Example #8
0
<?php

use yii\easyii\modules\carousel\api\Carousel;
?>

<!-- Home start -->
<section id="home" class="home-section home-parallax home-fade home-full-height" style="height: 911px;">
    <div class="hero-slider">
        <ul class="slides">
            <?php 
foreach (Carousel::items() as $item) {
    ?>
                <li class="bg-dark-30 bg-dark" style="background: url(<?php 
    echo $item->image;
    ?>
);">
                    <div class="hs-caption">
                        <div class="caption-content">
                            <a href="<?php 
    echo $item->link;
    ?>
" class="section-scroll"><?php 
    echo $item->title;
    ?>
</a>
                            <p class="lead"><?php 
    echo $item->text;
    ?>
</p>

                        </div>