Skip to content
Snippets Groups Projects
Commit 1eb28075 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #325 from protich/feature/custom_page_title

Feature/custom page title
parents 0f37f4c8 a7cfad69
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ class osTicket {
var $warning;
var $message;
var $title; //Custom title. html > head > title.
var $headers;
var $config;
......@@ -168,6 +169,14 @@ class osTicket {
return $this->headers;
}
function setPageTitle($title) {
$this->title = $title;
}
function getPageTitle() {
return $this->title;
}
function getErrors() {
return $this->errors;
}
......
......@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>osTicket Staff Control Panel</title>
<title><?php echo ($ost && ($title=$ost->getPageTitle()))?$title:'osTicket :: Staff Control Panel'; ?></title>
<!--[if IE]>
<style type="text/css">
.tip_shadow { display:block !important; }
......@@ -29,7 +29,7 @@
}
?>
</head>
<body onunload="">
<body>
<div id="container">
<div id="header">
<a href="index.php" id="logo">osTicket - Customer Support System</a>
......
......@@ -59,4 +59,7 @@ if($ost->isUpgradePending()) {
//Admin navigation - overwrites what was set in staff.inc.php
$nav = new AdminNav($thisstaff);
//Page title.
$ost->setPageTitle('osTicket :: Admin Control Panel');
?>
......@@ -122,4 +122,7 @@ if($thisstaff->forcePasswdChange() && !$exempt) {
require('profile.php'); //profile.php must request this file as require_once to avoid problems.
exit;
}
$ost->setPageTitle('osTicket :: Staff Control Panel');
?>
......@@ -479,6 +479,7 @@ if($thisstaff->canCreateTickets()) {
$inc = 'tickets.inc.php';
if($ticket) {
$ost->setPageTitle('Ticket #'.$ticket->getNumber());
$nav->setActiveSubMenu(-1);
$inc = 'ticket-view.inc.php';
if($_REQUEST['a']=='edit' && $thisstaff->canEditTickets())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment