function get_user_theme_options($link) { $t = get_user_theme_path($link); if ($t) { if (is_file("{$t}/theme.ini")) { $ini = parse_ini_file("{$t}/theme.ini", true); if ($ini['theme']['version']) { return $ini['theme']['options']; } } } return false; }
function print_theme_includes($link) { $t = get_user_theme_path($link); $time = time(); if ($t) { print "<link rel=\"stylesheet\" type=\"text/css\"\n\t\t\t\thref=\"{$t}/theme.css?{$time} \">"; if (file_exists("{$t}/theme.js")) { print "<script type=\"text/javascript\" src=\"{$t}/theme.js?{$time}\">\n\t\t\t\t\t</script>"; } } }
"></script> <script type="text/javascript" charset="utf-8" src="prefs.js?<?php echo $dt_add; ?> "></script> <script type="text/javascript" charset="utf-8" src="users.js?<?php echo $dt_add; ?> "></script> <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add; ?> "></script> <?php $user_theme = get_user_theme_path($link); if ($user_theme) { ?> <link rel="stylesheet" type="text/css" href="<?php echo $user_theme; ?> /theme.css?<?php echo $dt_add; ?> "> <?php } ?> <?php print_user_css($link);
function theme_image($link, $filename) { if ($link) { $theme_path = get_user_theme_path($link); if ($theme_path && is_file($theme_path . $filename)) { return $theme_path . $filename; } else { return $filename; } } else { return $filename; } }