From 7491e3c44affb89fe28030f8759283bc1b4aa291 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 23 Nov 2008 16:51:06 +0000 Subject: Add a site-config parameter to the config.php file. Created a core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value. --- core/helpers/core_block.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 core/helpers/core_block.php (limited to 'core/helpers') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php new file mode 100644 index 00000000..aecbde47 --- /dev/null +++ b/core/helpers/core_block.php @@ -0,0 +1,35 @@ +item()->title; + if (!empty($site_title)) { + if (substr($site_title, -1) == "-") { + $title = "$site_title $title"; + } else { + $title = $site_title; + } + } else { + $title = _("Browse Photos") . "::$title"; + } + return "$title"; + } +} -- cgit v1.2.3