Beispiel #1
0
<?php

use yii\easyii\modules\page\api\Page;
use yii\helpers\Url;
use yii\easyii\modules\text\api\Text;
$page = Page::get('page-index');
$this->title = $page->seo('title', $page->model->title);
?>

<main class="page-main">

    <?php 
$carousel_items = \yii\easyii\modules\carousels\api\Carousel::carousel_items('home-page');
?>
    <?php 
//$carousel_items = yii\easyii\modules\carousel\models\Carousel::find()->where(['status'=>1])->orderBy(['order_num'=> SORT_DESC])->all();
?>

    <?php 
if (isset($carousel_items) && !empty($carousel_items)) {
    ?>
        <ul class="slider slider-features">
            <?php 
    foreach ($carousel_items as $item) {
        ?>
                <li>
                    <img src="<?php 
        echo Url::base() . $item->image;
        ?>
" alt="">
                    <div class="container info-wrapper">
Beispiel #2
0
$this->title = $page->seo('title', $page->model->title);
?>

<main class="page-platform">
    <div class="container">
        <h1><?php 
echo $page->title;
?>
</h1>

        <?php 
echo $page->text;
?>

        <?php 
$carousel_items = \yii\easyii\modules\carousels\api\Carousel::carousel_items('platform-page');
?>

        <?php 
if (isset($carousel_items) && !empty($carousel_items)) {
    ?>
            <ul class="slider slider-advantages">
                <?php 
    foreach ($carousel_items as $item) {
        ?>
                    <li>
                        <img src="<?php 
        echo Url::base() . $item->image;
        ?>
" alt="">
                        <div class="wrap">
Beispiel #3
0
        <h1><?php 
echo $page->title;
?>
</h1>

        <?php 
echo $page->text;
?>

        <h2><?php 
echo Text::get('marketing-page-label');
?>
</h2>

        <?php 
$carousel_items = \yii\easyii\modules\carousels\api\Carousel::carousel_items('marketing-page');
?>

        <?php 
if (isset($carousel_items) && !empty($carousel_items)) {
    ?>
            <ul class="slider slider-marketing">
                <?php 
    foreach ($carousel_items as $item) {
        ?>
                    <li>
                        <img src="<?php 
        echo Url::base() . $item->image;
        ?>
" alt="">
                        <p><?php 
        <h1><?php 
echo $page->title;
?>
</h1>

        <?php 
echo $page->text;
?>

        <h2><?php 
echo Text::get('bitcoin-casino-label');
?>
</h2>

        <?php 
$carousel_items = \yii\easyii\modules\carousels\api\Carousel::carousel_items('bitcoin-casino-page');
?>

        <?php 
if (isset($carousel_items) && !empty($carousel_items)) {
    ?>
            <ul class="slider slider-advantages">
                <?php 
    foreach ($carousel_items as $item) {
        ?>
                    <li>
                        <img src="<?php 
        echo Url::base() . $item->image;
        ?>
" alt="">
                        <p><?php