<?php /* @var $this ContentController */ /* @var $model Content */ $this->pageTitle = Yii::app()->name . ' - ' . $Content->title; $this->breadcrumbs = Menu::model('main_menu')->getBreadcrumbTrail($MenuItem); $items = Menu::model('main_menu')->getMenuList($MenuItem, 2); $this->menu = $items; if (empty($this->menu)) { $this->layout = '//layouts/column1'; } $dataProvider = new CActiveDataProvider('Content', array('criteria' => array('condition' => 'type="news"', 'order' => 'created DESC'), 'pagination' => array('pageSize' => 10))); ?> <div class="page-header"> <h1 class="text-muted"><?php echo $Content->title; ?> </h1> </div> <?php echo SnapHtml::editableArea($Content, 'content', $this->isEditable()); $this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'id' => 'news-list', 'itemView' => '/content/_news_view'));
$form = $this->beginWidget('CActiveForm', array('id' => 'extras-form-' . $data->id, 'enableAjaxValidation' => false)); ?> <h3><?php echo CHtml::encode($data->name); ?> </h3> <span class="available-until"> Available until: <?php echo SnapFormat::date($data->customer_available_to); ?> </span> <div class="image"> <?php echo SnapHtml::activeImage($data, 'image', array('w' => 190, 'h' => 100, 'zc' => 1), $data->name, true); ?> </div> <?php if (!empty($data->description)) { ?> <span class="description"><?php echo $data->description; ?> </span> <?php } ?> <span class="price">
<?php foreach ($DeliveryDate->MergedBoxes as $index => $Box) { ?> <div class="col-md-4 view"> <div class="inner"> <h3><?php echo $Box->BoxSize->box_size_name; ?> Box</h3> <span class="available-until"></span> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'box-form-' . $Box->box_id, 'enableAjaxValidation' => false)); ?> <div class="image"> <?php echo SnapHtml::activeImage($Box->BoxSize, 'image', array('w' => 190, 'h' => 100, 'zc' => 1), $Box->BoxSize->box_size_name, true); ?> </div> <span class="price"><?php echo SnapFormat::currency($Box->box_price); ?> </span> <?php echo CHtml::numberField('Order[UserBox][' . $Box->box_id . ']', 1); ?> <?php echo CHtml::submitButton('Add to cart', array('class' => 'btn btn-default btn-xs', 'name' => 'add_to_cart')); ?> <?php $this->endWidget();
<?php $Box = $data->Box; ?> <div class="view inner"> <div class="row"> <div class="col-xs-3"> <?php echo CHtml::numberField('Order[UserBox][' . $Box->box_id . ']', $data->quantity); ?> <!-- <?php echo SnapHtml::activeImage($Box->BoxSize, 'image', array('w' => 70, 'h' => 70, 'zc' => 1), $Box->BoxSize->box_size_label); ?> --> </div> <div class="col-xs-5"> <h3><?php echo CHtml::encode($Box->BoxSize->box_size_label); ?> </h3> <span class="price item-price"> <?php echo SnapFormat::currency($Box->box_price); ?> ea. </span> </div> <div class="col-xs-4 price-col"> <span class="price sub-total"><?php echo CHtml::encode(SnapFormat::currency($data->total_price)); ?>
</div> </div> </div> <div class="large-3 columns"> <h2>Do not like list</h2> <div class="list-view"> <div class="items row"> <?php foreach ($model->DontWant as $Product) { ?> <div class="view large-12 columns end"> <div class="row"> <div class="large-12 columns"> <div class="image"> <?php echo SnapHtml::image($Product, 'image', array('w' => 70, 'h' => 70, 'zc' => 1)); ?> </div> <div class="inner"> <h3><?php echo CHtml::encode($Product->name); ?> </h3> <?php echo CHtml::link('Like', array('user/dontWant', 'id' => Yii::app()->user->id, 'like' => $Product->id, 'cat' => $curCat), array('class' => 'button small')); ?> </div> </div> </div> </div> <?php
$items = Menu::model('main_menu')->getMenuList($MenuItem, 2); $this->menu = $items; if (empty($this->menu)) { $this->layout = '//layouts/column1'; } $UserCreated = $Content->UserCreated; ?> <div class="page-header"> <h1 class="text-muted"><?php echo $Content->title; ?> </h1> </div> <?php echo SnapHtml::activeImage($Content, 'image', 'small', $Content->title); echo SnapHtml::editableArea($Content, 'content', $this->isEditable()); ?> <div class="well pull-left"> <?php echo SnapHtml::activeImage($UserCreated, 'image', 'medium', $UserCreated->full_name); ?> <h4>By <?php echo $UserCreated->full_name; ?> </h4> <?php echo $UserCreated->bio; ?> </div>
<?php /* @var $this ContentController */ /* @var $data Content */ //$image = isset($data->image); ?> <div class="media"> <?php echo SnapHtml::activeImage($data, 'image', 'medium', $data->title, true); ?> <div class="media-body"> <h3 class="media-heading"><?php echo CHtml::link($data->title, array('content/view', 'id' => $data->id)); ?> </h3> <?php echo SnapHtml::editableArea($data, 'intro', $this->isEditable(), 'plain'); ?> </div> </div>