/www/protected/modules/shop/views/admin/settings/_settingsHeader.php
https://bitbucket.org/badenkov/demo · PHP · 23 lines · 22 code · 1 blank · 0 comment · 5 complexity · c7bbcb87422e0e078317992beeb2814e MD5 · raw file
- <?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,
- ));