summaryrefslogtreecommitdiffstats
path: root/templates/header.inc
diff options
context:
space:
mode:
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>