summaryrefslogtreecommitdiffstats
path: root/templates/header.inc
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2006-01-10 05:03:18 +0000
committerxgizzmo <xgizzmo@ampache>2006-01-10 05:03:18 +0000
commit67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (patch)
treec52e3c1c1d9bf75de21b2bc812fa34aa78aa10af /templates/header.inc
parent883cd9e478cf740f7b6bdd5fa089c4eefda97b7a (diff)
downloadampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.gz
ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.bz2
ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.zip
Code clean up
Diffstat (limited to 'templates/header.inc')
-rw-r--r--templates/header.inc68
1 files changed, 31 insertions, 37 deletions
diff --git a/templates/header.inc b/templates/header.inc
index 205c1da2..d0ddff1e 100644
--- a/templates/header.inc
+++ b/templates/header.inc
@@ -19,57 +19,51 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
+$web_path = conf('web_path');
$htmllang = str_replace("_","-",conf('lang'));
$location = get_location();
?>
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
+
<head>
-<link rel="shortcut icon" href="<?php echo conf('web_path'); ?>/favicon.ico" />
+<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" />
<?php
-if (conf('use_rss')){
-?>
-<link rel="alternate" type="application/rss+xml" title="<?php echo conf('rss_main_title'); ?>" href="<?php echo conf('web_path'); ?>/rss.php" />
+if (conf('use_rss')) { ?>
+<link rel="alternate" type="application/rss+xml" title="<?php echo conf('rss_main_title'); ?>" href="<?php echo $web_path; ?>/rss.php" />
<?php } ?>
-
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo conf('site_charset'); ?>" />
-<?php show_template('menustyle'); ?>
-<?php show_template('style'); ?>
+<?php show_template('menustyle'); show_template('style'); ?>
<title><?php echo conf('site_title'); ?> - <?php echo $location['title']; ?></title>
</head>
-<body>
-<script src="<?php echo conf('web_path'); ?>/lib/general.js" language="javascript" type="text/javascript"></script>
+<body>
+<script src="<?php echo $web_path; ?>/lib/general.js" language="javascript" type="text/javascript"></script>
<div id="maincontainer">
-<!-- This is the topbar row -->
-<div id="topbar">
- <div id="topbarleft">
- <a href="http://www.ampache.org">
- <img class="pageheader" src="<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache.gif" border="0" title="Ampache: For the love of music" alt="Ampache: For the love of music" />
- </a>
- </div>
- <div id="topbarright">
+ <div id="topbar"><!-- This is the topbar row -->
+ <div id="topbarleft">
+ <a href="http://www.ampache.org">
+ <img class="pageheader" src="<?php echo $web_path; ?><?php echo conf('theme_path'); ?>/images/ampache.gif" border="0" title="Ampache: For the love of music" alt="Ampache: For the love of music" />
+ </a>
+ </div><!--End topbarleft -->
+ <div id="topbarright">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo conf('version'); ?></a><br />
<b><?php echo _("You are currently logged in as") . " " . $GLOBALS['user']->fullname; ?></b>
<br />
- <?php echo _("Browse"); ?>:
- <form method="post" action="<?php echo conf('web_path'); ?>/browse.php" enctype="multipart/form-data" style="Display:inline;">
- <select name="action">
- <option value="album">Album</option>
- <option value="artist">Artist</option>
- <option value="genre">Genre</option>
- </select>
- <input type="submit" value="<?php echo _("Go!"); ?>" class="button" />
- </form>
- </div>
-</div>
-<!-- This is the row for body + sidebar -->
-<div id="sidebar">
- <!-- This is the sidebar -->
- <?php require_once(conf('prefix') . '/templates/sidebar.inc.php'); ?>
-</div>
+ <?php echo _("Browse"); ?>:
+ <form method="post" action="<?php echo $web_path; ?>/browse.php" enctype="multipart/form-data" style="Display:inline;">
+ <select name="action">
+ <option value="album">Album</option>
+ <option value="artist">Artist</option>
+ <option value="genre">Genre</option>
+ </select>
+ <input type="submit" value="<?php echo _("Go!"); ?>" class="button" />
+ </form>
+ </div><!-- End topbarright -->
+ </div><!-- End topbar -->
+ <div id="sidebar"><!-- This is the sidebar -->
+ <?php require_once(conf('prefix') . '/templates/sidebar.inc.php'); ?>
+ </div><!-- End sidebar -->
<div id="content">
- <table><tr><td>
- <!-- Start Main Page -->
+ <table> <!-- Start Main Page Table-->
+<tr><td> \ No newline at end of file