Skip to content

Commit

Permalink
[gh-732] Use ndash in title tag rather than actual character
Browse files Browse the repository at this point in the history
  • Loading branch information
ericras committed Jun 7, 2013
1 parent 40e8038 commit 3058d8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions color/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h1 id="preview-page-title">Lorem ipsum dolor</h1>
</div>

<div id="preview-footer-wrapper">
<p>Copyright University of NebraskaLincoln | Lincoln, NE 68588 | 402-472-7211 | <a>About UNL</a></p>
<p>Copyright University of Nebraska&ndash;Lincoln | Lincoln, NE 68588 | 402-472-7211 | <a>About UNL</a></p>
<p>UNL is an equal opportunity employer with a comprehensive plan for diversity.</p>
</div>

</div>
</div>
6 changes: 3 additions & 3 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ function unl_wdn_preprocess_html(&$vars, $hook) {
}

if (!module_exists('metatag')) {
// Set the <title> tag to UNL format: Page Title | Site Name | University of NebraskaLincoln
// Set the <title> tag to UNL format: Page Title | Site Name | University of Nebraska&ndash;Lincoln
if ($vars['is_front']) {
unset($vars['head_title_array']['title']);
}
if (variable_get('site_name') != 'University of NebraskaLincoln') {
$vars['head_title_array'] = array_merge($vars['head_title_array'], array('UNL' => 'University of NebraskaLincoln'));
if (variable_get('site_name') != 'University of Nebraska&ndash;Lincoln') {
$vars['head_title_array'] = array_merge($vars['head_title_array'], array('UNL' => 'University of Nebraska&ndash;Lincoln'));
}
$vars['head_title'] = implode(' | ', $vars['head_title_array']);
}
Expand Down

0 comments on commit 3058d8d

Please sign in to comment.