<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_theme_include.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
	if (fusion_get_settings('userthemes') == 1 || iADMIN) {
		$theme_files = makefilelist(THEMES, ".|..|admin_templates|templates|.svn", TRUE, "folders");
		array_unshift($theme_files, "Default");
		$theme_opts = array();
		foreach ($theme_files as $theme) {
			$theme_opts[$theme] = $theme;
		}
		$options += array('options' => $theme_opts,
			'inline' => TRUE,
			'callback_check' => 'theme_exists',
			'error_text' => $locale['uf_theme_error']);
		$user_fields = form_select('user_theme', $locale['uf_theme'], $field_value, $options);
	}
	// Display in profile
} elseif ($profile_method == "display") {
	// no to display
}
