Exemplo n.º 1
1
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->alias === null) {
         throw new InvalidConfigException('Property "alias" must be set.');
     }
     $this->model = models\Slider::findByAlias($this->alias);
     if (!$this->model->active) {
         $this->model = null;
     }
     if (empty($this->items)) {
         $this->prepareItems();
     }
     $this->registerClientScript();
 }
Exemplo n.º 2
1
<?php

/* @var $this yii\web\View */
use kartik\helpers\Html;
use yii\bootstrap\Carousel;
$this->title = 'My Yii Application';
?>

<!-- CROUSEL Author: -ptr.nov- !-->
			<?php 
echo Carousel::widget(['items' => [['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider1.jpg" style="width:100%; height:100%"/>'], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider2.jpg" style="width:100%; height:100%"/>'], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider3.jpg" style="width:100%;height:100%"/>'], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider4.jpg" style="width:100%;height:100%"/>']]]);
?>
<div class="content">
			<div class="content">			
				 <div class="row">
					<div class="col-md-12">						
						<h4 class="page-head-line">Customer Relationship Management</h4>
						<p>Lukison group considered being one of the largest premium food court in the city and it is a great mix of old favorites and new restaurants. With the large space more than 2000m2 and futuristic and old style design, Lukison offered a coz/ambiance and warm place to enjoy your dinning experiences.

							complete with 3D lenticular light box and vintage wood plank will make the visitors feel relax and chill with new ambiance that they can’t discover in another place. With all variety of different kinds of food, Lukison give you many choices to eat and simplicity payment that will save your time

							And that’s where you come in. You’re an experienced professional with a passion for people and hospitality; someone who will proudly promote our brands while always striving to create the ultimate guest experience. At Prime you’ll enjoy competitive compensation and benefits, and advance your career with a team that values your contributions and helps you reach your goals.
						</p>
					</div>
				</div>
				 <!--<div class="row">
					<div class="col-md-12">
						<h4 class="page-head-line">CONTACT</h4>	!-->				
						<?php 
/* echo Html::well(Html::address(
			'Ruko De Mansion Blok C No.12',
Exemplo n.º 3
0
 public function api_widget($width, $height, $clientOptions = [])
 {
     if (!count($this->_items)) {
         return LIVE_EDIT ? Html::a(Yii::t('easyii/carousel/api', 'Create carousel'), ['/admin/carousel/a/create'], ['target' => '_blank']) : '';
     }
     if (count($clientOptions)) {
         $this->clientOptions = array_merge($this->clientOptions, $clientOptions);
     }
     $items = [];
     foreach ($this->_items as $item) {
         $temp = ['content' => Html::img($item->thumb($width, $height)), 'caption' => ''];
         if ($item->link) {
             $temp['content'] = Html::a($temp['content'], $item->link);
         }
         if ($item->title) {
             $temp['caption'] .= '<h3>' . $item->title . '</h3>';
         }
         if ($item->text) {
             $temp['caption'] .= '<p>' . $item->text . '</p>';
         }
         $items[] = $temp;
     }
     $widget = \yii\bootstrap\Carousel::widget(['options' => ['class' => 'slide'], 'clientOptions' => $this->clientOptions, 'items' => $items]);
     return LIVE_EDIT ? API::liveEdit($widget, Url::to(['/admin/carousel']), 'div') : $widget;
 }
Exemplo n.º 4
0
 public function api_widget()
 {
     if (!count($this->_items)) {
         return '<a href="' . Url::to(['/admin/carousel/a/create']) . '" target="_blank">' . Yii::t('easyii/carousel/api', 'Create carousel') . '</a>';
     }
     $widget = \yii\bootstrap\Carousel::widget(['options' => ['class' => 'slide', 'style' => 'width: ' . Yii::$app->getModule('admin')->activeModules['carousel']->settings['imageWidth'] . 'px'], 'clientOptions' => $this->clientOptions, 'items' => $this->_items]);
     return LIVE_EDIT ? $this->wrapLiveEdit($widget, '', 'div') : $widget;
 }
Exemplo n.º 5
0
 private function renderBlock()
 {
     // return \app\widgets\blueimp\BlueimpGallery::widget(['items'=>$items, 'mode'=>2]);
     $config['items'] = $this->getItems();
     $config['clientOptions'] = ['interval' => intval($this->_config['interval']) * 1000];
     if (!$this->_config['controls']) {
         $config['controls'] = false;
     }
     return Carousel::widget($config);
 }
Exemplo n.º 6
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     if (ctype_digit($this->album)) {
         $condition = $this->album;
     } elseif (is_string($this->album)) {
         $condition = ['slug' => $this->album];
     } else {
         throw new \yii\base\InvalidParamException('Invalid album parameter passed to a method.');
     }
     $album = Album::findOne($condition);
     if (!$album) {
         throw new \yii\web\NotFoundHttpException('Album was not found.');
     }
     $media = $album->getMedia()->all();
     foreach ($media as $image) {
         $this->items[] = ['content' => $this->render($this->contentView, ['image' => $image]), 'caption' => $this->render($this->captionView, ['image' => $image]), 'options' => $this->itemsOptions];
     }
 }
Exemplo n.º 7
0
use yii\bootstrap\Carousel;
use yii\helpers\Html;
use yii\widgets\ListView;
use common\models\Slide;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('frontend/site', 'Home');
$slides = [];
foreach (Slide::find()->orderBy('sortOrder')->all() as $slide) {
    /** @var $slide common\models\Slide */
    $slides[] = ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/uploads/slide/' . $slide->id . '.jpg'), 'caption' => Html::tag('h1', $slide->title) . $slide->body];
}
?>

<?php 
echo Carousel::widget(['id' => 'home-slider', 'items' => $slides, 'options' => ['class' => 'slide'], 'controls' => ['<span class="icon-prev"></span>', '<span class="icon-next"></span>']]);
?>

<div class="container">

    <h1 class="page-header text-center">
        <?php 
echo Yii::t('frontend/site', 'Last products');
?>
    </h1>

    <?php 
echo ListView::widget(['layout' => "<div class=\"row\">{items}</div>", 'dataProvider' => $dataProvider, 'itemView' => '/catalog/_product', 'viewParams' => ['class' => 'col-lg-3 col-md-3 col-sm-4 col-xs-6'], 'summaryOptions' => ['class' => 'alert alert-info']]);
?>

</div>
Exemplo n.º 8
0
<?php

use kartik\helpers\Html;
use yii\bootstrap\Carousel;
echo Carousel::widget(['items' => [['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/chart1.jpg" style="width:100%; height:100%"/>', 'options' => ['style' => 'width: 100%; height: 250px;']], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider2.jpg" style="width:100%; height:100%"/>', 'options' => ['style' => 'width: 100%; height: 250px;']], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider3.jpg" style="width:100%;height:100%"/>', 'options' => ['style' => 'width: 100%; height: 250px;']], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/Lukison-Slider4.jpg" style="width:100%;height:100%"/>', 'options' => ['style' => 'width: 100%; height: 250px;']]], 'options' => ['style' => 'width: 100%!important; height: 250px;']]);
Exemplo n.º 9
0
        $carouselData[] = $item;
    }
}
*/
foreach ($avisos as $key => $aviso) {
    $item = [];
    $sumInterval = $sumInterval + $aviso->tempo_exibicao;
    if ($aviso->hasImage()) {
        $item['content'] = "<div class='aviso_image'><h2 class='titulo_carousel'>{$aviso->titulo}</h2><img src='" . $aviso->getImageUrl() . "' class='image_aviso'><p class='caption_carousel'>{$aviso->descricao}</p></div>";
    } else {
        $item['content'] = "<div class='aviso_texto'><h2 class='titulo_aviso'>{$aviso->titulo}</h2><p class='descricao_aviso'>{$aviso->descricao}</p></div>";
    }
    $item['options'] = ['data-interval' => $aviso->tempo_exibicao * 1000, 'controls' => false];
    $carouselData[] = $item;
}
echo Carousel::widget(['id' => 'myCarousel', 'items' => $carouselData, 'options' => ['class' => 'slide'], 'clientOptions' => ['interval' => false]]);
?>
            </div>
            <p class="pull-right align-right">
                <a href="http://www.redware.com.br"><img src="images/redware.png" class="redware"></a>
            </p>
            
        </div>

    </div>
</div>

<?php 
if ($sumInterval * 1000 < 30000) {
    $avisosRefresh = 60000;
} else {
Exemplo n.º 10
0
$this->beginBody();
?>
    <header id="navbar-main">
      <?php 
NavBar::begin(['brandLabel' => 'Karateverein <br> Samurai Maximiliansau', 'options' => ['class' => 'navbar-default navbar-static-top header-top', 'tag' => 'div'], 'containerOptions' => ['tag' => 'nav']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => require __DIR__ . '/menu.php']);
NavBar::end();
?>
      <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'options' => ['class' => 'container breadcrumb']]);
?>
    </header>
    <?php 
$index = false;
if (Yii::$app->controller->id === 'site' && (Yii::$app->controller->action->id === 'index' || Yii::$app->controller->action->id === 'page' && (!array_key_exists(Yii::$app->controller->action->viewParam, $_GET) || $_GET[Yii::$app->controller->action->viewParam] === 'index'))) {
    echo Carousel::widget(['items' => [['content' => '<img src="http://localhost/cms2/web/img/1900x1080.gif"/>', 'caption' => '<h2>Capiton 1</h2><p>This is the caption text</p>', 'options' => ['style' => 'height: 300px;']], ['content' => '<img src="http://localhost/cms2/web/img/1900x1080.gif"/>', 'caption' => '<h2>Capiton 2</h2><p>This is the caption text</p>', 'options' => ['style' => 'height: 300px;']], ['content' => '<img src="http://localhost/cms2/web/img/1900x1080.gif"/>', 'caption' => '<h2>Capiton 3</h2><p>This is the caption text</p>', 'options' => ['style' => 'height: 300px;']]], 'options' => ['class' => 'slide']]);
    $index = true;
}
?>
        
    <div class="container">
      <div class="main-content">
        <?php 
echo $content;
?>
      </div>
    </div>

    <footer class="footer">
      <div class="footer-top">
        <div class="container">
Exemplo n.º 11
0
/* @var $this yii\web\View */
$this->title = 'АРМ ГИД веб версия';
?>

<script>

</script>

<div class="site-index">

    <div class="jumbotron">
        <h1>МП АСДЦ - АРМ ГИД!</h1>

        <p class="lead">Добро пожаловать в веб версию АРМ ГИД</p>
        <?php 
echo Html::a("Просмотр графика", ["/design/designer"], ['class' => 'btn btn-lg btn-success']);
?>
    


       
    </div>

    <div align="center">
<?php 
echo Carousel::widget(['items' => [['content' => '<img  src="img/g20407925_8b1070717ff6e3faaddcd6a7e36abff6.jpg"/>', 'caption' => '<h2></p>', 'options' => []], ['content' => '<img  src="img/8d3941178af9a63cac2b71278de.png"/>', 'caption' => '<h2></p>', 'options' => []], ['content' => '<img  src="img/20140418_10_54_04876.jpg"/>', 'caption' => '<h2></p>', 'options' => []]], 'options' => ['style' => 'width:630px;']]);
?>
</div>

</div>
<?php 
echo \yii\bootstrap\Carousel::widget(['items' => $items, 'controls' => $controls, 'showIndicators' => $showIndicators, 'options' => $containerOptions]);
Exemplo n.º 13
0
                                        <?php 
    echo $obj->name;
    ?>
                                    </a>
                                </h1>
                                <h2>Описание</h2>
                                <?php 
    echo $obj->description;
    ?>
                                <h2>Цена</h2>
                                <?php 
    echo $obj->price;
    ?>
                            </div><!-- /.col-sm-4 -->
                        </div><!-- /.item -->
                        <?php 
}
?>
                </div><!-- /.col-sm-12 -->
            </div><!-- /.row -->
        </div><!-- /.objreservation-content -->
    </div>
    <?php 
$carouselOptions = ['style' => 'height: 700px;', 'class' => 'item-background-carousel'];
$itemsCarousel = [['content' => '<div style="background: url(' . Url::to('@web/images/slider/slider01.JPG') . ');background-repeat: no-repeat;background-size: cover; height: 100%;"></div>', 'caption' => '', 'options' => $carouselOptions], ['content' => '<div style="background: url(' . Url::to('@web/images/slider/slider02.JPG') . ');background-repeat: no-repeat;background-size: cover; height: 100%;"></div>', 'caption' => '', 'options' => $carouselOptions], ['content' => '<div style="background: url(' . Url::to('@web/images/slider/slider03.JPG') . ');background-repeat: no-repeat;background-size: cover; height: 100%;"></div>', 'caption' => '', 'options' => $carouselOptions]];
echo Carousel::widget(['items' => $itemsCarousel, 'options' => ['class' => 'carousel-background']]);
?>
</div>


Exemplo n.º 14
0
													   
							</div>
							 <h5>RT EMPAT</h5>
						</div>
					</div>
				</a>
            </div>
	</div>
</div>
<?php 
$carouselEvent = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselInformasi = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselArtikel = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselKalenderRw = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/kalender_rw/ubudsatu.png', ['width' => '150px', 'height' => '100%'])]]]);
$carouselKalenderRt = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/kalender_rt/ubudsatu.png', ['width' => '150px', 'height' => '100%'])]]]);
$carouselKalenderOlahraga = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_3.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_4.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$calenderRw = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'rw-calender', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar'])]);
$calenderRt = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'rt-calender', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar'])]);
?>
<div class="row">
	<div class="col-md-12">
		<h4 class="page-head-line"></h4>
		<!-- Carausel !-->
		<div class="row" style="padding-left:5px;padding-right:5px">
			<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
				<?php 
echo Html::panel(['heading' => 'Event ', 'body' => $carouselEvent], Html::TYPE_INFO);
?>
			</div>
			<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
				<?php 
Exemplo n.º 15
0
    <?php 
foreach ($items as $key => $val) {
    ?>
    <td style="<?php 
    echo $pic->visibility($model->id)[0];
    ?>
; text-align: right; max-width: 130px; border: solid; border-color: #c0c0c0; border-width: thin">
        <?php 
    echo $val;
    ?>
        <br><br><br>
        <div>
            <div style="position: relative; width: 30px; height: 30px;">
                <?php 
    Modal::begin(['header' => 'Picture', 'toggleButton' => ['label' => '<span class="glyphicon glyphicon-eye-open"></span>']]);
    echo Carousel::widget(['items' => $items]);
    Modal::end();
    ?>
            </div>

            <div style="position: relative; width: 30px; height: 30px; margin-top: -30px; margin-left: 30px;">
                <?php 
    $value = $pic->value($model->id)[0];
    ?>
                <?php 
    $span = '<span class="glyphicon glyphicon-remove"></span>';
    ?>
                <form action="" method="post" style="position: relative">
                    <?php 
    echo Html::submitButton($span, ['name' => 'delete', 'value' => $value]);
    ?>
Exemplo n.º 16
0
    if ($image) {
        ?>
            <?php 
        $items[] = '<img class="img-responsive" src="' . $image->getUrl('750x300') . '" alt="">';
        ?>
        <?php 
    }
    ?>
    <?php 
}
?>
    <?php 
if ($items) {
    ?>
        <?php 
    echo Carousel::widget(['items' => $items, 'controls' => ['<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span><span class="sr-only">Previous</span>', '<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span><span class="sr-only">Next</span>']]);
    ?>

    <?php 
}
?>

    <span class="label label-info"><?php 
echo $model->category->name;
?>
</span>
    <!--    <img class="img-responsive" src="http://placehold.it/900x300" alt="">-->
    <p><?php 
echo \yii\helpers\StringHelper::truncate($model->text, 200, '...');
?>
</p>
Exemplo n.º 17
0
<?php

/* @var $this yii\web\View */
use yii\bootstrap\Carousel;
$this->title = 'Sistema Administrativo de Solicitudes';
echo Carousel::widget(['items' => [['content' => '<img src="../images/slide2.jpg"/>', 'caption' => '<h1>Bienvenido</h1><p>Al Sistema Administrativo de Solicitudes (SAS) donde puedes registrar dudas, peticiones,
                quejas, etc. sobre la Facultad de Matemáticas y se te responderá a la brevedad posible.</p>'], ['content' => '<img src="../images/slide3.jpg"/>', 'caption' => '<h1>Bienvenido</h1><p>Al Sistema Administrativo de Solicitudes (SAS) donde puedes registrar dudas, peticiones,
                quejas, etc. sobre la Facultad de Matemáticas y se te responderá a la brevedad posible.</p>'], ['content' => '<img src="../images/slide4.jpg"/>', 'caption' => '<h1>Bienvenido</h1><p>Al Sistema Administrativo de Solicitudes (SAS) donde puedes registrar dudas, peticiones,
                quejas, etc. sobre la Facultad de Matemáticas y se te responderá a la brevedad posible.</p>']]]);
?>
<div class="site-index">
    <div class="body-content">
        <div class="steps row">
            <div class="col-lg-4">

                <p><span class="home-icon glyphicon glyphicon-list-alt"
                                                 aria-hidden="true"></span><span
                        class="home-icon-small glyphicon glyphicon-pencil" aria-hidden="true"></span></p>
                <h3> Registra tu solicitud</h3>
            </div>
            <div class="col-lg-4">
                <p><span class="home-icon glyphicon glyphicon-envelope" aria-hidden="true"></span></p>
                <h3>Recibe un correo cuando vayas a ser atendido</h3>

            </div>
            <div class="col-lg-4">

                <p><span class="home-icon glyphicon glyphicon-comment" aria-hidden="true"></span></p>
                <h3>Intercambia información sobre el avance de tu solicitud</h3>

            </div>
Exemplo n.º 18
0
use yii\bootstrap\Carousel;
use yii\helpers\Html;
use yii\widgets\ListView;
use yii\widgets\Pjax;
use frontend\widgets\Panel;
use yii\helpers\Url;
/* @var $this yii\web\View */
$this->title = 'Sistem Pakar';
?>
        <div class="row">
            <div class="col-md-9">
               <?php 
$cap = '<p class="lead">Untuk mengetahui penyakit lebih awal dan agar lebih cepat bisa ditangani.</p>';
$cap2 = '<p class="lead">pilihan dan solusi yang tepat untuk anda.</p>';
$cap3 = '<p class="lead">Bisa diakses kapan saja dan dimana saja.</p>';
echo Carousel::widget(['items' => [['content' => '<img src="/adm/uploads/carousel/aa.jpg" width="1170px" height="300px"/>', 'caption' => $cap], ['content' => '<img src="/adm/uploads/carousel/dokter.png" width="1170px" height="300px"/>', 'caption' => $cap2], ['content' => '<img src="/adm/uploads/carousel/dokter-ayu.jpg" width="1170px" height="300px"/>', 'caption' => $cap3]]]);
?>
            </div>  
            <div class="col-md-3">     
                <div class="media">
                  <div class="media-left media-middle">
                    <a href="#">
                      <img data-holder-rendered="true" src='/adm/uploads/carousel/aa.jpg' style="width: 64px; height: 64px;" class="media-object" data-src="holder.js/64x64" alt="64x64">
                    </a>
                  </div>
                  <div class="media-body">
                    <h4 class="media-heading">
                                        <?php 
echo Html::a('Apa itu penyakit THT?', ['info', 'id' => 3], ['data-toggle' => "modal", 'data-target' => "#myModal", 'data-title' => "<i class='glyphicon glyphicon-hand-right'></i> Apa itu penyakit THT?"]);
?>
                    </h4>                    
Exemplo n.º 19
0
echo Yii::t('references', $header);
?>
</h1><p><?php 
echo $address;
?>
</p>
            </div>
        </div>
        <div class="col-md-12">
            <?php 
if ($items) {
    ?>
                <div class="col-xs-12 block-padding-bottom">
                    <?php 
    if (count($items) > 1) {
        echo Carousel::widget(['items' => $items, 'options' => ['class' => 'slide', 'style' => 'width:100%;'], 'controls' => ['&lsaquo;', '&rsaquo;'], 'showIndicators' => true]);
    } else {
        echo $items;
    }
    ?>
                </div>
                <?php 
}
?>
        </div>
        <div class="col-md-6">
            <div class="col-xs-12">
                <?php 
echo $content;
?>
            </div>
Exemplo n.º 20
0
 public function carousel($id)
 {
     if (file_exists('img/page_' . $id) && count(scandir('img/page_' . $id)) > 2) {
         $items = [];
         for ($i = 2; $i < count(scandir('img/page_' . $id)); $i++) {
             $n = $i - 2;
             $items[$n] = '<img src="/img/page_' . $id . '/' . scandir('img/page_1')[$i] . '">';
         }
         return Carousel::widget(['items' => $items]);
     }
     return null;
 }
Exemplo n.º 21
0
highlight_string("\n<?php\nuse hscstudio\\adminlte\\widgets\\Tabs;\necho Tabs::widget([\n\t'navType' => 'nav-tabs pull-right',\n\t'items' => [\n\t\t[\n\t\t\t'label' => 'One',\n\t\t\t'content' => 'Anim pariatur cliche...',\n\t\t\t'active' => true\n\t\t],\n\t\t[\n\t\t\t'label' => 'Two',\n\t\t\t'content' => 'Anim pariatur cliche...',\n\t\t\t'options' => ['id' => 'myveryownID'],\n\t\t],\n\t\t[\n\t\t\t'label' => '<i class=\"fa fa-th\"></i> Custom Tabs',\n\t\t\t'encode' => false,\n\t\t\t'url' => '#',\n\t\t\t'headerOptions' => [\n\t\t\t\t'class'=> 'pull-left header',\n\t\t\t],\n\t\t],\n\t\t[\n\t\t\t'label' => 'Dropdown',\n\t\t\t'items' => [\n\t\t\t   [\n\t\t\t\t   'label' => 'DropdownA',\n\t\t\t\t   'content' => 'DropdownA, Anim pariatur cliche...',\n\t\t\t   ],\n\t\t\t   [\n\t\t\t\t   'label' => 'DropdownB',\n\t\t\t\t   'content' => 'DropdownB, Anim pariatur cliche...',\n\t\t\t   ],\n\t\t\t],\n\t\t],\n\t],\n]);\n?>\n\t\t\t");
?>
		<?php 
Box::end();
?>
		</div><!-- /.col (LEFT) -->
	</div>
	<div class="row">
		<div class="col-md-6">
		<?php 
Box::begin(['header' => 'Yii 2.0 Carousel']);
?>
			<?php 
use hscstudio\adminlte\assets\AdminLTEAsset;
$AdminLTEAsset = AdminLTEAsset::register($this);
echo Carousel::widget(['options' => ['class' => 'slide'], 'controls' => ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'], 'items' => ['<img src="' . $AdminLTEAsset->baseUrl . '/img/photo1.png"/>', ['content' => '<img src="' . $AdminLTEAsset->baseUrl . '/img/photo2.png"/>'], ['content' => '<img src="' . $AdminLTEAsset->baseUrl . '/img/photo1.png"/>', 'caption' => '<h4>This is title</h4><p>This is the caption text</p>']]]);
?>
			<?php 
highlight_string("\n<?php\nuse yii\\bootstrap\\Carousel;\necho Carousel::widget([\n\t'options' => [\n\t\t'class' => 'slide'\n\t],\n\t'controls' => [\n\t\t'<span class=\"fa fa-angle-left\"></span>',\n\t\t'<span class=\"fa fa-angle-right\"></span>',\n\t],\n\t'items' => [\n\t\t// the item contains only the image\n\t\t'<img src=\"img/photo1.png\"/>',\n\t\t// equivalent to the above\n\t\t[\n\t\t\t'content' => '<img src=\"img/photo2.png\"/>',\n\t\t],\n\t\t// the item contains both the image and the caption\n\t\t[\n\t\t\t'content' => '<img src=\"img/photo1.png\"/>',\n\t\t\t'caption' => '<h4>This is title</h4><p>This is the caption text</p>',\n\t\t\t//'options' => [...],\n\t\t],\n\t],\n]);\n?>\n\t\t\t");
?>
		<?php 
Box::end();
?>
		</div><!-- /.col (LEFT) -->
		<div class="col-md-6">
		<?php 
Box::begin(['header' => 'Yii 2.0 Collapse']);
?>
			<?php 
echo Collapse::widget(['items' => [['label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', 'contentOptions' => ['class' => 'in']], ['label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...'], ['label' => 'Collapsible Group Item #1', 'content' => ['Anim pariatur cliche...', 'Anim pariatur cliche...'], 'footer' => 'Footer']]]);
?>
Exemplo n.º 22
0
?>
            </div>

            <div class="col-md-9">

                <?php 
$items = [];
foreach (\common\models\Product::find()->limit(3)->all() as $product) {
    /** @var \common\models\Product $product */
    $items[] = ['content' => Html::a(Html::img($product->getImage(), ['alt' => $product->name]), ['site/product', 'id' => $product->id]), 'caption' => $product->name . ' $' . $product->price];
}
?>
                <div class="row carousel-holder">
                    <div class="col-md-12">
                        <?php 
echo \yii\bootstrap\Carousel::widget(['items' => $items, 'options' => ['class' => 'slide'], 'controls' => [Html::tag('span', '', ['class' => 'glyphicon glyphicon-chevron-left']), Html::tag('span', '', ['class' => 'glyphicon glyphicon-chevron-right'])]]);
?>
                    </div>
                </div>

                <div class="row">

                    <?php 
foreach ($dataProvider->getModels() as $product) {
    ?>
                        <div class="col-sm-4 col-lg-4 col-md-4">
                            <div class="thumbnail">
                                <?php 
    echo Html::img($product->getImage(), ['alt' => $product->name]);
    ?>
Exemplo n.º 23
0
/* @var $model common\models\Product */
/* @var $one common\models\ImagesOfObject */
use yii\bootstrap\Carousel;
use common\widgets\ImageLoad\assets\backendImagesAsset;
use yii\helpers\Html;
if (Yii::$app->user->can('Редактор')) {
    Yii::$app->assetManager->forceCopy = true;
}
$asset = backendImagesAsset::register($this);
?>
<h1><?php 
echo $model->name;
?>
</h1>
<?php 
if (count($model->imagesOfObjects) > 1) {
    foreach ($model->imagesOfObjects as $one) {
        $items[] = ['content' => Html::img($asset->baseUrl . '/' . $one->image->path_small_image, ['style' => 'width: 100%']), 'options' => ['style' => 'width:100%;'], 'active' => false];
    }
    echo Carousel::widget(['items' => $items, 'options' => ['data-interval' => 0, 'class' => 'slide', 'style' => 'width:100%;'], 'controls' => ['', ''], 'showIndicators' => true]);
} else {
    foreach ($model->imagesOfObjects as $one) {
        echo Html::img($asset->baseUrl . '/' . $one->image->path_small_image, ['style' => 'width: 100%']);
    }
}
?>
<p><?php 
echo $model->desc . ' (' . $model->category->name . ')';
?>
</p>
Exemplo n.º 24
0
for ($i = 0; $i < 3; $i++) {
    ?>
    <div class="border" style="<?php 
    echo $border;
    ?>
">
        <!-- <img src="<?php 
    echo $pic->imgList(30)[$i];
    ?>
" style="max-width: 150px; max-height: 150px;" -->

        <div id="view">
            <?php 
    Modal::begin(['size' => 'modal-lg', 'toggleButton' => ['label' => '', 'style' => 'background: url(' . $pic->imgList(30)[$i] . ') no-repeat 50%;' . $s, 'class' => 'carousel-but', 'onclick' => 'carouselOpen(' . $i . ')']]);
    $items = $pic->carouselItems($i, 30);
    echo Carousel::widget(['id' => 'car' . $i, 'items' => $items, 'options' => ['style' => 'width: 80%; height: 400px; margin: 0 auto;', 'data-interval' => 'false']]);
    Modal::end();
    ?>
        </div>
    </div>
<?php 
}
?>
</div>

<?php 
echo '<pre>';
print_r(scandir('img/page_3'));
echo '</pre>';
for ($i = 2; $i < 6; $i++) {
    $img[$i] = 'img/page_3/' . scandir('img/page_3')[$i];
Exemplo n.º 25
0
 protected function launch()
 {
     echo \yii\bootstrap\Carousel::widget(['items' => $this->items]);
 }
Exemplo n.º 26
0
		<div class="">
			<!Refrensi:bg-light-blue|bg-green|bg-yellow|bg-red|bg-aqua|bg-purple|bg-blue|bg-navy|bg-teal|bg-maroon|bg-black|bg-gray|bg-olive|bg-lime|bg-orange|bg-fuchsia>
			<header >			
					<div class="row">
						<div class="col-md-11">
							Under Construction !
							<strong>Email: </strong>info@lukison.com
							&nbsp;&nbsp;
							<strong>Support: </strong>(021) 3044-85-98/99
						</div>
					</div>
								
			 </header>
			<!-- CROUSEL Author: -ptr.nov- !-->
			<?php 
echo Carousel::widget(['items' => [['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/test1.jpg" style="width:100%; height:100%"/>'], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/test2.jpg" style="width:100%; height:100%"/>'], ['content' => '<img src="' . Yii::getAlias('@path_carousel') . '/test1.jpg" style="width:100%;height:100%"/>']]]);
?>
			<div>
			<?php 
// echo  \yii\helpers\Json::encode($menuItems);
if (Yii::$app->user->isGuest) {
    //$menuItemsNoLogin[] = ['label' => '<a data-toggle="modal" data-target="#modal" style="cursor: pointer">Click me gently!</a>' , 'url'=> ['/site/login5']];
    $menuItemsNoLogin[] = ['label' => Icon::show('home') . 'Perusahaan', 'url' => ['/site/']];
    $menuItemsNoLogin[] = ['label' => Icon::show('shopping-cart') . 'e-Procurement', 'url' => ['/site/loginc'], 'items' => [['label' => Icon::show('book') . 'Catalog', 'url' => '#'], ['label' => Icon::show('bar-chart-o') . 'Supplier', 'url' => '#']]];
    $menuItemsNoLogin[] = ['label' => Icon::show('sitemap') . 'e-Recruitment', 'url' => ['/site/login7']];
    $menuItemsNoLogin[] = ['label' => Icon::show('comments') . 'e-Helpdesk', 'url' => ['/site/login8']];
    $menuItemsNoLogin[] = ['label' => Icon::show('info-circle') . 'FAQ', 'url' => ['/site/login8']];
    $menuItemsNoLogin[] = ['label' => Icon::show('user') . 'User', 'url' => ['/site/login']];
    NavBar::begin(['options' => ['class' => 'navbar navbar-inverse set-radius-zero #000000 ']]);
    echo NavX::widget(['options' => ['class' => 'nav navbar-nav navbar-left'], 'items' => $menuItemsNoLogin, 'activateParents' => true, 'encodeLabels' => false]);
    NavBar::end();
Exemplo n.º 27
0
            <?php 
        echo ShowMapModal::widget(['modal' => true, 'address' => $address]);
        ?>
        </div>
    </div>
    <?php 
    }
    ?>
    <div class="col-md-12">
        <?php 
    if ($items) {
        ?>
            <div class="col-xs-12 block-padding-bottom">
                <?php 
        if (count($items) > 1) {
            echo Carousel::widget(['id' => 'carouser-modal-' . $id, 'items' => $items, 'options' => ['data-interval' => 0, 'class' => 'slide', 'style' => 'width:100%;'], 'controls' => ['&lsaquo;', '&rsaquo;'], 'showIndicators' => true]);
        } else {
            echo $items;
        }
        ?>
            </div>
            <?php 
    }
    ?>
    </div>

</div>
<?php 
    Modal::end();
}
Pjax::end();
Exemplo n.º 28
0
<?php

/* @var $this yii\web\View */
use yii\bootstrap\Carousel;
use yii\helpers\url;
$this->title = '主页';
$this->params['no_container'] = true;
echo Carousel::widget(['items' => $slider, 'options' => ['class' => 'slide']]);
?>
<div class="site-index container" style="overflow-x:hidden;">
    <div class="body-content">

        <div class="text-center row">
            <div class="col-lg-7">
                <h2>北京师范大学 官方微博</h2>
				<iframe width="100%" height="768" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=768&fansRow=1&ptype=1&speed=0&skin=4&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1875088617&verifier=7ef13898&dpc=1"></iframe>
				<h3>其它组织机构微博</h3>
				<ul class="weibo clearfix">
					<li><a href="http://weibo.com/bnuedu" target="_blank">
					<img class="weibo-logo" src="images/0.jpeg">
					北京师范大学招生办微博
					</a></li>
					<li><a href="http://weibo.com/BNUAA" target="_blank">
					<img class="weibo-logo" src="images/1.jpeg">
					北京师范大学校友会微博
					</a></li>
					<li><a href="http://weibo.com/bnucist" target="_blank">
					<img class="weibo-logo" src="http://tp4.sinaimg.cn/2709653783/180/5738634862/1">
					信息科学与技术学院微博
					</a></li>
				</ul>
Exemplo n.º 29
0
                        s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
                        var h=d[g]('body')[0];
                        h.appendChild(s);
                      }})();</script>
                    <div class="pluso" data-background="transparent" data-options="small,round,line,horizontal,nocounter,theme=04" data-services="vkontakte,facebook,twitter" data-url="<?php 
echo 'aic.s-vfu.ru/' . Url::toRoute('article/view?id=') . $model->id;
?>
" data-title="<?php 
echo $model->articleLan->title;
?>
" data-description="<?php 
echo $model->articleLan->description;
?>
" data-image="<?php 
echo 'aic.s-vfu.ru' . $photo->photo_path;
?>
"></div>
                    </div>
                </h6>
            </div>
            <div class="col-5 align-top">
                <div class="image-spotlight parbase image">
                    <?php 
echo Carousel::widget(['items' => $images, 'options' => ['style' => 'min-width:300px; max-width:600px; width:100%; float: left; margin-right:20px;']]);
?>
                </div>
            </div>
        </div>
    </section>

</div>
Exemplo n.º 30
-1
 /**
  * @throws InvalidConfigException
  */
 public function init()
 {
     if (!$this->key) {
         throw new InvalidConfigException();
     }
     $cacheKey = [WidgetCarousel::className(), $this->key];
     $items = \Yii::$app->cache->get($cacheKey);
     if ($items === false) {
         $items = [];
         $query = WidgetCarouselItem::find()->joinWith('carousel')->where(['{{%widget_carousel_item}}.status' => 1, '{{%widget_carousel}}.status' => WidgetCarousel::STATUS_ACTIVE, '{{%widget_carousel}}.key' => $this->key])->orderBy(['order' => SORT_ASC]);
         foreach ($query->all() as $k => $item) {
             /** @var $item \common\models\WidgetCarouselItem */
             if ($item->path) {
                 $items[$k]['content'] = Html::img($item->getImageUrl());
             }
             if ($item->url) {
                 $items[$k]['content'] = Html::a($items[$k]['content'], $item->url, ['target' => '_blank']);
             }
             if ($item->caption) {
                 $items[$k]['caption'] = $item->caption;
             }
         }
         \Yii::$app->cache->set($cacheKey, $items, 60 * 60 * 24 * 365);
     }
     $this->items = $items;
     parent::init();
 }