</td> <td> <button class="tel-search-res"> <img src="/themes/atlas/temp/images/icon-telephone.png"/> <span>показать</span> </button> <span class="hide"><?php echo $item->phone; ?> </span> </td> <td> <?php $additionFields = HFormEditor::getExtendedFields(); $existValue = HFormEditor::existValueInRows($additionFields, $item); $item->references = $item->getFullInformation($item->id, $item->type, $category->id); $firstTabsItems = array('content' => Yii::app()->controller->renderPartial('//modules/apartments/views/_bt_tab_addition', array('data' => $item, 'additionFields' => $additionFields), true)); ?> <?php echo $firstTabsItems['content']; ?> </td> <td> <?php $date = $item->date_created; $date = strtotime($date);
<div class="b_item_aux__tabs"> <?php $firstTabsItems = array(); $generalContent = $this->renderPartial('//modules/apartments/views/_tab_general', array('data' => $model), true); if ($generalContent) { $firstTabsItems[tc('General')] = array('content' => $generalContent, 'id' => 'tabs1_1', 'active' => false); } if (!param('useBootstrap')) { Yii::app()->clientScript->scriptMap = array('jquery-ui.css' => false); } if (issetModule('bookingcalendar') && $model->type == Apartment::TYPE_RENT) { Bookingcalendar::publishAssets(); $firstTabsItems[tt('The periods of booking apartment', 'bookingcalendar')] = array('content' => $this->renderPartial('//modules/bookingcalendar/views/calendar', array('apartment' => $model), true), 'id' => 'tabs1_2', 'active' => false); } $additionFields = HFormEditor::getExtendedFields(); $existValue = HFormEditor::existValueInRows($additionFields, $model); if ($existValue) { $firstTabsItems[tc('Additional info')] = array('content' => $this->renderPartial('//modules/apartments/views/_tab_addition', array('data' => $model, 'additionFields' => $additionFields), true), 'id' => 'tab_3', 'active' => false); } if (param('enableCommentsForApartments', 1)) { if (!isset($comment)) { $comment = null; } $firstTabsItems[Yii::t('module_comments', 'Comments') . ' (' . Comment::countForModel('Apartment', $model->id) . ')'] = array('content' => $this->renderPartial('//modules/apartments/views/_tab_comments', array('model' => $model), true), 'id' => 'tabs1_4', 'active' => false); } ?> <?php if (count($firstTabsItems) > 0) { ?> <?php