summaryrefslogtreecommitdiffstats
path: root/templates/header.inc
diff options
context:
space:
mode:
authorsigger <sigger@ampache>2006-02-02 04:34:15 +0000
committersigger <sigger@ampache>2006-02-02 04:34:15 +0000
commit1e7684528e28aea6f30e31fa3f674d61e282df30 (patch)
treed43678e0104f8a299663779f0c9d23799d885bc3 /templates/header.inc
parent27847d72ca91c107a1f74cb1e072e58c9cbe7b8f (diff)
downloadampache-1e7684528e28aea6f30e31fa3f674d61e282df30.tar.gz
ampache-1e7684528e28aea6f30e31fa3f674d61e282df30.tar.bz2
ampache-1e7684528e28aea6f30e31fa3f674d61e282df30.zip
mpd mini-control for all pages! final ajax tweak? etc
Diffstat (limited to 'templates/header.inc')
-rw-r--r--templates/header.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/header.inc b/templates/header.inc
index d0ddff1e..514c2310 100644
--- a/templates/header.inc
+++ b/templates/header.inc
@@ -46,6 +46,10 @@ if (conf('use_rss')) { ?>
<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 -->
+ <?php if (($user->prefs['play_type']=='mpd') && ($location['page'] != 'mpd.php')) {
+ $myMpd = init_mpd();
+ show_template ('show_mpdminicontrol');
+ } else { ?>
<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>
@@ -59,11 +63,12 @@ if (conf('use_rss')) { ?>
</select>
<input type="submit" value="<?php echo _("Go!"); ?>" class="button" />
</form>
- </div><!-- End topbarright -->
+ </div> <!-- End topbarright -->
+ <?php } ?>
</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> <!-- Start Main Page Table-->
-<tr><td> \ No newline at end of file
+<tr><td>