} ?> <?php $tabs = array(); if (count($on)) { $tabs[] = array('label' => Yii::t('YupeModule.yupe', 'Active') . " " . CHtml::tag('span', array('class' => 'label label-success flash'), CHtml::tag('small', array(), count($on))), 'content' => modulesTable($on, $updates, $modules, $this), 'active' => true); } if (count($has)) { $tabs[] = array('label' => Yii::t('YupeModule.yupe', 'Have updates') . " " . CHtml::tag('span', array('class' => 'label label-waring'), CHtml::tag('small', array(), count($has))), 'content' => modulesTable($has, $updates, $modules, $this)); } if (count($off)) { $tabs[] = array('label' => Yii::t('YupeModule.yupe', 'Disabled') . " " . CHtml::tag('span', array('class' => 'label'), CHtml::tag('small', array(), count($off))), 'content' => modulesTable($off, $updates, $modules, $this)); } if (count($dis)) { $tabs[] = array('label' => Yii::t('YupeModule.yupe', 'Not installed') . " " . CHtml::tag('span', array('class' => 'label'), CHtml::tag('small', array(), count($dis))), 'content' => modulesTable($dis, $updates, $modules, $this)); } $tabs[0]['active'] = true; $this->widget('bootstrap.widgets.TbTabs', array('type' => 'tabs', 'tabs' => $tabs, 'encodeLabel' => false)); } function moduleRow($module, &$updates, &$modules) { ?> <tr class="<?php echo $module->getIsActive() ? is_array($module->checkSelf()) ? 'error' : '' : 'muted'; ?> "> <td><?php echo $module->icon ? "<i class='icon-" . $module->getIcon() . "'> </i> " : ""; ?> </td>
} ?> <?php $tabs = []; if (count($on)) { $tabs[] = ['label' => Yii::t('YupeModule.yupe', 'Active') . " " . CHtml::tag('span', ['class' => 'badge alert-success flash'], CHtml::tag('small', [], count($on))), 'content' => modulesTable($on, $updates, $modules, $this), 'active' => true]; } if (count($has)) { $tabs[] = ['label' => Yii::t('YupeModule.yupe', 'Have updates') . " " . CHtml::tag('span', ['class' => 'badge alert-warning'], CHtml::tag('small', [], count($has))), 'content' => modulesTable($has, $updates, $modules, $this)]; } if (count($off)) { $tabs[] = ['label' => Yii::t('YupeModule.yupe', 'Disabled') . " " . CHtml::tag('span', ['class' => 'badge alert-danger'], CHtml::tag('small', [], count($off))), 'content' => modulesTable($off, $updates, $modules, $this)]; } if (count($dis)) { $tabs[] = ['label' => Yii::t('YupeModule.yupe', 'Not installed') . " " . CHtml::tag('span', ['class' => 'badge'], CHtml::tag('small', [], count($dis))), 'content' => modulesTable($dis, $updates, $modules, $this)]; } //$tabs[0]['active'] = true; $this->widget('bootstrap.widgets.TbTabs', ['type' => 'tabs', 'tabs' => $tabs, 'encodeLabel' => false]); } function moduleRow($module, &$updates, &$modules) { ?> <tr class="<?php echo $module->getIsActive() ? is_array($module->checkSelf()) ? 'danger' : '' : 'text-muted'; ?> "> <td><?php echo $module->icon ? "<i class='" . $module->getIcon() . "'> </i> " : ""; ?> </td>