1 //// Dynamic titles for news pages
2 // BOF
3 case 'news':
4 if (isset($_GET['date']) && zen_not_null($_GET['date'])) {
5 define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . SECONDARY_SECTION : '') . zen_date_long($date) . PRIMARY_SECTION . TITLE . TAGLINE);
6 } else {
7 define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE . TAGLINE);
8 }
9
10 define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE . SECONDARY_SECTION . KEYWORDS);
11 define('META_TAG_KEYWORDS', KEYWORDS . ' ' . NAVBAR_TITLE);
12 break;
13
14 case 'news_article':
15 define('META_TAG_TITLE', $article->fields['news_article_name'] . PRIMARY_SECTION . TITLE . TAGLINE);
16 define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE . SECONDARY_SECTION . KEYWORDS);
17 define('META_TAG_KEYWORDS', KEYWORDS . ' ' . NAVBAR_TITLE);
18 break;
19
20 case 'news_comments':
21 define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . SECONDARY_SECTION : '') . $article->fields['news_article_name'] . SECONDARY_SECTION . NAVBAR_TITLE_COMMENTS . PRIMARY_SECTION . TITLE . TAGLINE);
22 define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE . SECONDARY_SECTION . KEYWORDS);
23 define('META_TAG_KEYWORDS', KEYWORDS . ' ' . NAVBAR_TITLE);
24 break;
25
26 case 'news_archive':
27 define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . SECONDARY_SECTION : '') . news_date_archive($archive_date) . PRIMARY_SECTION . TITLE . TAGLINE);
28 define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE . SECONDARY_SECTION . KEYWORDS);
29 define('META_TAG_KEYWORDS', KEYWORDS . ' ' . NAVBAR_TITLE);
30 break;
31 // EOF
32 //// Dynamic titles for news pages