We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d2e90af2 authored by Mike Sheldon's avatar Mike Sheldon

Rename pageheader to headerfile

Make listen page use new heading system
parent c493ef87
......@@ -24,6 +24,7 @@ require_once('templating.php');
require_once('data/sanitize.php');
require_once('data/Server.php');
$smarty->assign('headerfile', 'welcome-header.tpl');
$smarty->assign('welcome', true);
$smarty->display('welcome.tpl');
?>
......@@ -37,5 +37,6 @@ if(isset($station)) {
$smarty->assign('radio_session', $radio_session);
}
$smarty->assign('pageheading', 'Go ahead, listen all you want');
$smarty->display('listen.tpl');
?>
......@@ -185,7 +185,7 @@ if(isset($this_user->name))
$submenu = user_menu($this_user, 'Edit Profile');
$smarty->assign('submenu', $submenu);
$smarty->assign('me', $this_user);
$smarty->assign('pageheader', 'maxiprofile.tpl');
$smarty->assign('headerfile', 'maxiprofile.tpl');
$smarty->assign('errors', $errors);
$smarty->display('user-edit.tpl');
......
......@@ -78,7 +78,7 @@ if(isset($user->name)) {
$submenu = user_menu($user, 'Overview');
$smarty->assign('submenu', $submenu);
$smarty->assign('pageheader', 'maxiprofile.tpl');
$smarty->assign('headerfile', 'maxiprofile.tpl');
$smarty->display('user-profile.tpl');
} else {
......
......@@ -73,7 +73,7 @@ if(isset($user->name)) {
$submenu = user_menu($user, 'Recent Tracks');
$smarty->assign('submenu', $submenu);
$smarty->assign('pageheader', 'maxiprofile.tpl');
$smarty->assign('headerfile', 'maxiprofile.tpl');
$smarty->display('user-recent-tracks.tpl');
} else {
......
......@@ -88,7 +88,7 @@ try {
$submenu = user_menu($user, 'Stats');
$smarty->assign('submenu', $submenu);
$smarty->assign('pageheader', 'maxiprofile.tpl');
$smarty->assign('headerfile', 'maxiprofile.tpl');
$smarty->assign('stats', true);
$smarty->display('user-stats.tpl');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment