Revision 1643
Added by darkviper over 12 years ago
index.php | ||
---|---|---|
30 | 30 |
|
31 | 31 |
// Insert values into template list |
32 | 32 |
$template->set_block('main_block', 'template_list_block', 'template_list'); |
33 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' order by name"); |
|
34 |
if($result->numRows() > 0) { |
|
35 |
while($addon = $result->fetchRow()) { |
|
33 |
$sql = 'SELECT `directory`, `name`, `function` FROM `'.TABLE_PREFIX.'addons` ' |
|
34 |
. 'WHERE `type`=\'template\' ORDER BY `name`'; |
|
35 |
if(($result = $database->query($sql))) { |
|
36 |
while($addon = $result->fetchRow(MYSQL_ASSOC)) { |
|
36 | 37 |
$template->set_var('VALUE', $addon['directory']); |
37 |
$template->set_var('NAME', $addon['name']);
|
|
38 |
$template->set_var('NAME', (($addon['function'] == 'theme' ? '[Theme] ' : '').$addon['name']));
|
|
38 | 39 |
$template->parse('template_list', 'template_list_block', true); |
39 | 40 |
} |
40 | 41 |
} |
Also available in: Unified diff
added backend functions to copy themes and import htt-template files according to the the new theme fallback functionality