Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/main/inc/lib/formvalidator/Element/SelectTheme.php

24 lines
628 B

<?php
/* For licensing terms, see /license.txt */
/**
* A dropdownlist with all themes to use with QuickForm
*/
class SelectTheme extends HTML_QuickForm_select
{
/**
* Class constructor
*/
function SelectTheme($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
11 years ago
parent::__construct($elementName, $elementLabel, $options, $attributes);
// Get all languages
$themes = api_get_themes();
$this->_options = array();
$this->_values = array();
$this->addOption('--',''); // no theme select
for ($i=0; $i< count($themes[0]);$i++) {
$this->addOption($themes[1][$i],$themes[0][$i]);
11 years ago
}
}
11 years ago
}