demo /www/protected/modules/shop/views/admin/settings/_settingsHeader.php

Language PHP Lines 24
MD5 Hash c7bbcb87422e0e078317992beeb2814e Estimated Cost $468 (why?)
Repository https://bitbucket.org/badenkov/demo View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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,
));
Back to Top