mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9532] Simplified page titles by removing meaningless text.
Removed View Forum, View Topic, added pagination to forum and topic page titles, also moved the Site Name to the end of title for forum and topic view pages. PHPBB3-9532
This commit is contained in:
parent
e36da18b1c
commit
30035b94f5
5 changed files with 5 additions and 4 deletions
|
@ -416,6 +416,7 @@ $lang = array_merge($lang, array(
|
||||||
'OPTIONS' => 'Options',
|
'OPTIONS' => 'Options',
|
||||||
|
|
||||||
'PAGE_OF' => 'Page <strong>%1$d</strong> of <strong>%2$d</strong>',
|
'PAGE_OF' => 'Page <strong>%1$d</strong> of <strong>%2$d</strong>',
|
||||||
|
'PAGE_TITLE_NUMBER' => 'Page %s',
|
||||||
'PASSWORD' => 'Password',
|
'PASSWORD' => 'Password',
|
||||||
'PIXEL' => 'px',
|
'PIXEL' => 'px',
|
||||||
'PLAY_QUICKTIME_FILE' => 'Play Quicktime file',
|
'PLAY_QUICKTIME_FILE' => 'Play Quicktime file',
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
||||||
{META}
|
{META}
|
||||||
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
|
<title><!-- IF not S_VIEWTOPIC and not S_VIEWFORUM -->{SITENAME} - <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} - <!-- ELSEIF S_IN_UCP -->{L_UCP} - <!-- ENDIF -->{PAGE_TITLE}<!-- IF S_VIEWTOPIC or S_VIEWFORUM --> - {SITENAME}<!-- ENDIF --></title>
|
||||||
|
|
||||||
<!-- IF S_ENABLE_FEEDS -->
|
<!-- IF S_ENABLE_FEEDS -->
|
||||||
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
|
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
||||||
{META}
|
{META}
|
||||||
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
|
<title><!-- IF not S_VIEWTOPIC and not S_VIEWFORUM -->{SITENAME} - <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} - <!-- ELSEIF S_IN_UCP -->{L_UCP} - <!-- ENDIF -->{PAGE_TITLE}<!-- IF S_VIEWTOPIC or S_VIEWFORUM --> - {SITENAME}<!-- ENDIF --></title>
|
||||||
|
|
||||||
<!-- IF S_ENABLE_FEEDS -->
|
<!-- IF S_ENABLE_FEEDS -->
|
||||||
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
|
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
|
||||||
|
|
|
@ -142,7 +142,7 @@ else
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump out the page header and load viewforum template
|
// Dump out the page header and load viewforum template
|
||||||
page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'], true, $forum_id);
|
page_header($forum_data['forum_name'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], floor($start / $config['topics_per_page']) + 1) : ''), true, $forum_id);
|
||||||
|
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
'body' => 'viewforum_body.html')
|
'body' => 'viewforum_body.html')
|
||||||
|
|
|
@ -1744,7 +1744,7 @@ if (empty($_REQUEST['t']) && !empty($topic_id))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output the page
|
// Output the page
|
||||||
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
|
page_header($topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : ''), true, $forum_id);
|
||||||
|
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
|
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
|
||||||
|
|
Loading…
Add table
Reference in a new issue