Changeset 5153 for trunk/include
- Timestamp:
- Mar 17, 2010, 1:48:38 AM (14 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r5138 r5153 769 769 // where should the user be guided when there is no photo in his gallery yet? 770 770 $conf['no_photo_yet_url'] = 'admin.php?page=photos_add'; 771 772 // directory with themes inside 773 $conf['themes_dir'] = PHPWG_ROOT_PATH.'themes'; 771 774 ?> -
trunk/include/constants.php
r5014 r5153 25 25 define('PHPWG_VERSION', 'Colibri'); 26 26 define('PHPWG_DEFAULT_LANGUAGE', 'en_UK'); 27 define('PHPWG_DEFAULT_TEMPLATE', 'yoga/Sylvia'); 27 define('PHPWG_DEFAULT_TEMPLATE', 'Sylvia'); 28 29 define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/'); 28 30 29 31 // Required versions … … 98 100 if (!defined('OLD_PERMALINKS_TABLE')) 99 101 define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); 102 if (!defined('THEMES_TABLE')) 103 define('THEMES_TABLE', $prefixeTable.'themes'); 100 104 101 105 ?> -
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.