diff --git a/include/client/login.inc.php b/include/client/login.inc.php index 321668e24d55f7df8a20da3ca6962d00580daa1e..fd1d7bc80abac91077654ae8a58d2cfc285b0444 100644 --- a/include/client/login.inc.php +++ b/include/client/login.inc.php @@ -6,9 +6,18 @@ $passwd=Format::input($_POST['lpasswd']?:$_GET['t']); $content = Page::lookup(Page::getIdByType('banner-client')); +if ($content) { + list($title, $body) = $ost->replaceTemplateVariables( + array($content->getName(), $content->getBody())); +} else { + $title = 'Sign In'; + $body = 'To better serve you, we encourage our clients to register for + an account and verify the email address we have on record.'; +} + ?> -<h1><?php echo Format::display($content->getName()); ?></h1> -<p><?php echo Format::viewableImages($content->getBody()); ?></p> +<h1><?php echo Format::display($title); ?></h1> +<p><?php echo Format::display($body); ?></p> <form action="login.php" method="post" id="clientLogin"> <?php csrf_token(); ?> <div style="display:table-row"> diff --git a/include/client/register.confirm.inc.php b/include/client/register.confirm.inc.php index 2f70d5c5494862fe36c06820758ce44ea04cfd04..a0628c0bcd287ed760cc95d48b44f8b1dae380bd 100644 --- a/include/client/register.confirm.inc.php +++ b/include/client/register.confirm.inc.php @@ -1,7 +1,9 @@ -<?php if ($content) { ?> -<h1><?php echo Format::display($content->getName()); ?></h1> +<?php if ($content) { + list($title, $body) = $ost->replaceTemplateVariables( + array($content->getName(), $content->getBody())); ?> +<h1><?php echo Format::display($title); ?></h1> <p><?php -echo Format::display($content->getBody()); ?> +echo Format::display($body); ?> </p> <?php } else { ?> <h1>Account Registration</h1> diff --git a/include/client/register.confirmed.inc.php b/include/client/register.confirmed.inc.php index 5a739aac1ff2261d4be3f5b7bd24a698771a1400..5bba31e8c539699fa2834be37c03a86a3cca30e6 100644 --- a/include/client/register.confirmed.inc.php +++ b/include/client/register.confirmed.inc.php @@ -1,7 +1,9 @@ -<?php if ($content) { ?> -<h1><?php echo Format::display($content->getName()); ?></h1> +<?php if ($content) { + list($title, $body) = $ost->replaceTemplateVariables( + array($content->getName(), $content->getBody())); ?> +<h1><?php echo Format::display($title); ?></h1> <p><?php -echo Format::display($content->getBody()); ?> +echo Format::display($body); ?> </p> <?php } else { ?> <h1>Account Registration</h1> diff --git a/include/i18n/en_US/templates/page/banner-client.yaml b/include/i18n/en_US/templates/page/banner-client.yaml index 95c4d51ac46895edef7a43fd9b2830c613396417..5bab4cd11c11027a3ca93740d481cb6f040a2a35 100644 --- a/include/i18n/en_US/templates/page/banner-client.yaml +++ b/include/i18n/en_US/templates/page/banner-client.yaml @@ -7,8 +7,7 @@ notes: > This forms the header on the staff login page. It can be useful to inform your clients about your login and registration policies. -name: "Sign In" +name: "Sign in to %{company.name}" body: > - This help desk is for registered customers only. Please contact our - support team directly to have an account created so you can access the - help desk to submit tickets. + To better serve you, we encourage our clients to register for an account + and verify the email address we have on record. diff --git a/include/i18n/en_US/templates/page/pwreset-client.yaml b/include/i18n/en_US/templates/page/pwreset-client.yaml index 29ad10eab1918d266456fc56d97e58f58530bc98..d3ea3a3917f4754e3c1e0eab805e8a60bde72bbb 100644 --- a/include/i18n/en_US/templates/page/pwreset-client.yaml +++ b/include/i18n/en_US/templates/page/pwreset-client.yaml @@ -21,7 +21,7 @@ body: > Follow the link below to login to the help desk and change your password.<br /> <br /> - <a href="%{reset_link}">%{reset_link}</a><br /> + <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System <br /> diff --git a/include/i18n/en_US/templates/page/pwreset-staff.yaml b/include/i18n/en_US/templates/page/pwreset-staff.yaml index b742ff5b3de69a27fb31bdb9acd0ea50e67b4d74..ff8c8c157fc1143848281f13c2fa4e0630ad7eba 100644 --- a/include/i18n/en_US/templates/page/pwreset-staff.yaml +++ b/include/i18n/en_US/templates/page/pwreset-staff.yaml @@ -21,7 +21,7 @@ body: > Follow the link below to login to the help desk and change your password.<br /> <br /> - <a href="%{reset_link}">%{reset_link}</a><br /> + <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System</em> <br /> diff --git a/include/i18n/en_US/templates/page/registration-staff.yaml b/include/i18n/en_US/templates/page/registration-staff.yaml index 0c458fb4b536a226a45e0b830b7a6bd93918754c..c544a06f0e537ddcabffba8fafc4907b07820784 100644 --- a/include/i18n/en_US/templates/page/registration-staff.yaml +++ b/include/i18n/en_US/templates/page/registration-staff.yaml @@ -16,7 +16,7 @@ body: > Please follow the link below to confirm your account and gain access to your tickets.<br /> <br /> - <a href="%{reset_link}">%{confirmation_link}</a><br /> + <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System <br />%{company.name}</em> diff --git a/include/staff/login.tpl.php b/include/staff/login.tpl.php index c0cbbb5b7d72248706fde58ab1a627f8cab53e44..d65aeea471a03ae27b7748e8fa82468ce5a73e35 100644 --- a/include/staff/login.tpl.php +++ b/include/staff/login.tpl.php @@ -5,7 +5,7 @@ $info = ($_POST && $errors)?Format::htmlchars($_POST):array(); <div id="loginBox"> <h1 id="logo"><a href="index.php">osTicket Staff Control Panel</a></h1> <h3><?php echo Format::htmlchars($msg); ?></h3> - <div><small><?php echo ($content) ? Format::viewableImages($content->getBody()) : ''; ?></small></div> + <div><small><?php echo ($content) ? Format::display($content->getBody()) : ''; ?></small></div> <form action="login.php" method="post"> <?php csrf_token(); ?> <input type="hidden" name="do" value="scplogin">