public function fetchElement($name, $value, &$node, $control_name)
 {
     // Check for the T3 framework
     if (!function_exists('t3_import')) {
         return '- No configuration needed -';
     }
     // Add the control name
     if (!empty($control_name)) {
         $name = $control_name . '[' . $name . ']';
     }
     t3_import('core/admin/util');
     $adminutil = new JAT3_AdminUtil();
     $template = $adminutil->get_active_template();
     $layouts = $adminutil->getLayouts();
     foreach ($layouts as $layoutIndex => $layoutObject) {
         $options[] = array('value' => $layoutIndex, 'label' => $layoutIndex);
     }
     return JHTML::_('select.genericlist', $options, $name, null, 'value', 'label', $value);
 }
示例#2
0
                if ($language != 'All' || !empty($pages)) {
                    $arr_values[] = array($language, implode(', ', $pages), $profile);
                }
            }
        }
    }
}
$paramsFile = dirname(__FILE__) . DS . 'params.xml';
if (file_exists($paramsFile)) {
    /* For General Tab */
    $paramsForm = JForm::getInstance('params', $paramsFile, array('control' => 'jform'));
}
/* For Themes Tab */
$themes = $obj->getThemes();
/* For Layouts Tab*/
$layouts = $obj->getLayouts();
/* Set tab default */
switch (JRequest::getCmd('tab')) {
    case 'profile':
        $numbertab = 2;
        break;
    case 'layout':
        $numbertab = 3;
        break;
    case 'theme':
        $numbertab = 4;
        break;
    case 'update':
        $numbertab = 5;
        break;
    case 'global':