|
|
@ -9,14 +9,15 @@ class SelectTheme extends HTML_QuickForm_select |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Class constructor |
|
|
|
* Class constructor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function SelectTheme($elementName=null, $elementLabel=null, $options=null, $attributes=null) { |
|
|
|
public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null) |
|
|
|
|
|
|
|
{ |
|
|
|
parent::__construct($elementName, $elementLabel, $options, $attributes); |
|
|
|
parent::__construct($elementName, $elementLabel, $options, $attributes); |
|
|
|
// Get all languages |
|
|
|
// Get all languages |
|
|
|
$themes = api_get_themes(); |
|
|
|
$themes = api_get_themes(); |
|
|
|
$this->_options = array(); |
|
|
|
$this->_options = array(); |
|
|
|
$this->_values = array(); |
|
|
|
$this->_values = array(); |
|
|
|
$this->addOption('--',''); // no theme select |
|
|
|
$this->addOption('--',''); // no theme select |
|
|
|
for ($i=0; $i< count($themes[0]);$i++) { |
|
|
|
for ($i=0; $i < count($themes[0]); $i++) { |
|
|
|
$this->addOption($themes[1][$i],$themes[0][$i]); |
|
|
|
$this->addOption($themes[1][$i],$themes[0][$i]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|