| @@ 92-101 (lines=10) @@ | ||
| 89 | break; |
|
| 90 | ||
| 91 | case 'theme': |
|
| 92 | case 'theme_multi': |
|
| 93 | $ele = ($config[$i]->getVar('conf_formtype') !== 'theme_multi') |
|
| 94 | ? new Xoops\Form\Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()) |
|
| 95 | : new Xoops\Form\Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true); |
|
| 96 | $dirlist = XoopsLists::getThemesList(); |
|
| 97 | if (!empty($dirlist)) { |
|
| 98 | asort($dirlist); |
|
| 99 | $ele->addOptionArray($dirlist); |
|
| 100 | } |
|
| 101 | break; |
|
| 102 | ||
| 103 | case 'tplset': |
|
| 104 | $ele = new Xoops\Form\Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
| @@ 176-183 (lines=8) @@ | ||
| 173 | break; |
|
| 174 | ||
| 175 | case 'theme': |
|
| 176 | case 'theme_multi': |
|
| 177 | $ele = ($obj[$i]->getVar('conf_formtype') !== 'theme_multi') ? new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput()) : new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput(), 5, true); |
|
| 178 | $dirlist = XoopsLists::getThemesList(); |
|
| 179 | if (!empty($dirlist)) { |
|
| 180 | asort($dirlist); |
|
| 181 | $ele->addOptionArray($dirlist); |
|
| 182 | } |
|
| 183 | break; |
|
| 184 | case 'tplset': |
|
| 185 | $ele = new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput()); |
|
| 186 | $tplset_handler = $xoops->getHandlerTplSet(); |
|
| @@ 130-137 (lines=8) @@ | ||
| 127 | break; |
|
| 128 | ||
| 129 | case 'theme': |
|
| 130 | case 'theme_multi': |
|
| 131 | $ele = ($obj[$i]->getVar('conf_formtype') !== 'theme_multi') ? new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput()) : new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput(), 5, true); |
|
| 132 | $dirlist = XoopsLists::getThemesList(); |
|
| 133 | if (!empty($dirlist)) { |
|
| 134 | asort($dirlist); |
|
| 135 | $ele->addOptionArray($dirlist); |
|
| 136 | } |
|
| 137 | break; |
|
| 138 | case 'tplset': |
|
| 139 | $ele = new Xoops\Form\Select($title, $obj[$i]->getVar('conf_name'), $obj[$i]->getConfValueForOutput()); |
|
| 140 | $tplset_handler = $xoops->getHandlerTplSet(); |
|