settings.phtml 687 Bytes
<?php
$action = N2Request::getCmd('nextendaction', 'default');


$settings = array(
    array(
        'id'    => 'index',
        'title' => n2_('General settings')
    )
);
$settings[] = array(
    'id'    => 'aviary',
    'title' => n2_('Adobe Creative SDK - Aviary')
);


$settings[] = array(
    'id'    => 'fonts',
    'title' => n2_('Fonts')
);

$dl = array();

foreach ($settings AS $setting) {

    $dl[] = array(
        'title' => $setting['title'],
        'link'  => $this->appType->router->createUrl("settings/{$setting['id']}"),
        'class' => ($setting['id'] == $action ? 'active ' : '')
    );
}

echo $this->widget->init("definitionlist", array(
    "dl" => $dl
));