@@ -6,19 +6,19 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | class SelectTheme extends HTML_QuickForm_select |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Class constructor |
|
| 11 | - */ |
|
| 9 | + /** |
|
| 10 | + * Class constructor |
|
| 11 | + */ |
|
| 12 | 12 | public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null) |
| 13 | 13 | { |
| 14 | - parent::__construct($elementName, $elementLabel, $options, $attributes); |
|
| 15 | - // Get all languages |
|
| 16 | - $themes = api_get_themes(); |
|
| 17 | - $this->_options = array(); |
|
| 18 | - $this->_values = array(); |
|
| 19 | - $this->addOption('--',''); // no theme select |
|
| 20 | - for ($i=0; $i < count($themes[0]); $i++) { |
|
| 21 | - $this->addOption($themes[1][$i],$themes[0][$i]); |
|
| 22 | - } |
|
| 23 | - } |
|
| 14 | + parent::__construct($elementName, $elementLabel, $options, $attributes); |
|
| 15 | + // Get all languages |
|
| 16 | + $themes = api_get_themes(); |
|
| 17 | + $this->_options = array(); |
|
| 18 | + $this->_values = array(); |
|
| 19 | + $this->addOption('--',''); // no theme select |
|
| 20 | + for ($i=0; $i < count($themes[0]); $i++) { |
|
| 21 | + $this->addOption($themes[1][$i],$themes[0][$i]); |
|
| 22 | + } |
|
| 23 | + } |
|
| 24 | 24 | } |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | $themes = api_get_themes(); |
| 17 | 17 | $this->_options = array(); |
| 18 | 18 | $this->_values = array(); |
| 19 | - $this->addOption('--',''); // no theme select |
|
| 20 | - for ($i=0; $i < count($themes[0]); $i++) { |
|
| 21 | - $this->addOption($themes[1][$i],$themes[0][$i]); |
|
| 19 | + $this->addOption('--', ''); // no theme select |
|
| 20 | + for ($i = 0; $i < count($themes[0]); $i++) { |
|
| 21 | + $this->addOption($themes[1][$i], $themes[0][$i]); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | } |