Modified to allow multilingual html <title> support, if set appropriately in app_languages.php.

This commit is contained in:
Nate Jones
2013-05-04 00:39:58 +00:00
parent f6aeae53e3
commit c78fbbcdd3
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ require_once "includes/require.php";
//prepare the template to display the output
$custom_head = '';
$output = str_replace ("<!--{title}-->", $custom_title, $template); //<!--{title}--> defined in each individual page
$output = str_replace ("<!--{title}-->", $page["title"], $template); //<!--{title}--> defined in each individual page
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
if (strlen($v_menu) > 0) {
$output = str_replace ("<!--{menu}-->", $v_menu, $output); //defined in /includes/menu.php

View File

@@ -104,21 +104,21 @@ require_once "includes/require.php";
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$result_count = count($result);
$custom_title = '';
$page["title"] = '';
foreach($result as $row) {
$template_rss_sub_category = $row['rss_sub_category'];
if (strlen($row['rss_group']) == 0) {
//content is public
$content_from_db = &$row['rss_description'];
if (strlen($row['rss_title']) > 0) {
$custom_title = $row['rss_title'];
$page["title"] = $row['rss_title'];
}
}
else {
if (if_group($row[rss_group])) { //viewable only to designated group
$content_from_db = &$row[rss_description];
if (strlen($row['rss_title']) > 0) {
$custom_title = $row['rss_title'];
$page["title"] = $row['rss_title'];
}
}
}