+ $profile_in_net_dir = '';
+
+ $loc_checked = (($a->user['allow_location'] == 1) ? " checked=\"checked\" " : "");
+
+ $invisible = (((! $profile['publish']) && (! $profile['net-publish']))
+ ? true : false);
+
+ if($invisible)
+ notice( t('Profile is <strong>not published</strong>.') . EOL );
+
+ $nickname_block = load_view_file("view/settings_nick_set.tpl");
+
+ $nickname_subdir = '';
+ if(strlen($a->get_path())) {
+ $subdir_tpl = load_view_file('view/settings_nick_subdir.tpl');
+ $nickname_subdir = replace_macros($subdir_tpl, array(
+ '$baseurl' => $a->get_baseurl(),
+ '$nickname' => $nickname,
+ '$hostname' => $a->get_hostname()
+ ));
+ }
+
+ $theme_selector = '<select name="theme" id="theme-select" >';
+ $files = glob('view/theme/*');
+ if($files) {
+ foreach($files as $file) {
+ $f = basename($file);
+ $selected = (($f == $_SESSION['theme']) || ($f === 'default' && (! x($_SESSION,'theme')))
+ ? ' selected="selected" ' : '' );
+ $theme_selector .= '<option val="' . basename($file) . '"' . $selected . '>' . basename($file) . '</option>';
+ }
+ }
+ $theme_selector .= '</select>';
+