Changeset 5153 for trunk/include/functions.inc.php
- Timestamp:
- Mar 17, 2010, 1:48:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r5138 r5153 714 714 function get_pwg_themes() 715 715 { 716 global $conf;717 716 $themes = array(); 718 717 719 $template_dir = PHPWG_ROOT_PATH.'themes'; 720 721 foreach (get_dirs($template_dir) as $theme) 722 { 723 if ( $theme != 'default' ) 724 { 725 array_push($themes, $theme); 726 } 718 $query = ' 719 SELECT 720 id, 721 name 722 FROM '.THEMES_TABLE.' 723 ORDER BY name ASC 724 ;'; 725 $result = pwg_query($query); 726 while ($row = pwg_db_fetch_assoc($result)) 727 { 728 $themes[ $row['id'] ] = $row['name']; 727 729 } 728 730 729 731 // plugins want remove some themes based on user status maybe? 730 732 $themes = trigger_event('get_pwg_themes', $themes); 733 731 734 return $themes; 732 735 }
Note: See TracChangeset
for help on using the changeset viewer.