/www/protected/modules/shop/views/admin/settings/_settingsHeader.php
PHP | 23 lines | 22 code | 1 blank | 0 comment | 5 complexity | c7bbcb87422e0e078317992beeb2814e MD5 | raw file
Possible License(s): Apache-2.0, MIT, LGPL-2.1, BSD-2-Clause, CC-BY-SA-3.0, BSD-3-Clause
- <?php
- $items = array();
- $items[] = array(
- 'label' => 'Общие',
- 'url' => array('/shop/admin/settings'),
- 'active' => !isset($_GET['s']),
- );
- foreach ($paymentsConfig->getSafeAttributeNames() as $name) {
- if (false == $paymentsConfig->{$name} || !method_exists($this, 'settings'.ucwords($name))) {
- continue;
- }
- $items[] = array(
- 'label' => $paymentsConfig->getAttributeLabel($name),
- 'url' => array('/shop/admin/settings', 's' => $name),
- 'active' => isset($_GET['s']) && $_GET['s'] == $name,
- );
- }
- $this->widget('ext.bootstrap.widgets.BootMenu', array(
- 'type' => 'tabs',
- 'stacked' => false,
- 'items' => $items,
- ));