select_categories($categories, 0, $current_cat_id, $exclude); ?> </select> </div> <?php if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) { ?> <div class="row"> <label for="category_theme"><?php echo _AT('cat_theme'); ?> </label><br /> <select name="cat_theme" id="category_theme"><?php echo '<option value="0"> [ ' . _AT('cats_none') . ' ] </option>'; $_themes = get_enabled_themes(); foreach ($_themes as $theme) { $theme = trim($theme); $theme_dir = get_folder($theme); if ($theme_dir == $categories[$cat_id]['theme']) { echo '<option value="' . $theme_dir . '" selected="selected">' . $theme . '</option>'; } else { echo '<option value="' . $theme_dir . '">' . $theme . '</option>'; } } ?> </select> <?php if ($cat_id && is_array($categories[$cat_id]['children']) && count($categories[$cat_id]['children'])) { ?> <br />
if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) { echo _AT('themes_disabled'); } else { // $desktop_theme is passed from preferences.tmpl.php // which is inherited from users/perferences.php or // mods/_core/users/default_preferences.php $_themes = get_enabled_themes(DESKTOP_DEVICE); $desktop_theme = $_SESSION['prefs']['PREF_THEME']; print_theme_selectbox($_themes, $desktop_theme, DESKTOP_DEVICE); if (isset($_POST['mobile_theme'])) { $selected_theme = $_REQUEST['mobile_theme']; } else { $selected_theme = $_SESSION['prefs']['PREF_MOBILE_THEME']; } // $selected_mobile_theme is passed from users/perferences.php $_themes = get_enabled_themes(MOBILE_DEVICE); print_theme_selectbox($_themes, $selected_mobile_theme, MOBILE_DEVICE); } ?> <div class="row"> <?php echo _AT('time_zone'); ?> <br /> <?php // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.2+ echo '<select name="time_zone" id="time_zone">'; echo '<option value="0">' . _AT('none') . '</option>'; for ($i = -14.25; $i <= 14; $i += 0.25) { if ($i == $_SESSION['prefs']['PREF_TIMEZONE']) {