diff options
-rw-r--r-- | config.php-dist | 3 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | js/tt-rss.js | 6 | ||||
-rw-r--r-- | prefs.php | 2 | ||||
-rw-r--r-- | register.php | 2 |
5 files changed, 11 insertions, 4 deletions
diff --git a/config.php-dist b/config.php-dist index a5a7fc3e2..4414e77d3 100644 --- a/config.php-dist +++ b/config.php-dist @@ -183,6 +183,9 @@ // Users may enable other user plugins from Preferences/Plugins but may not // disable plugins specified in this list. + define('PAGE_TITLE','Tiny Tiny RSS'); + // Change this value to customize the HTML page title + define('CONFIG_VERSION', 26); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). @@ -53,7 +53,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>Tiny Tiny RSS</title> + <title><?php echo PAGE_TITLE ?></title> <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?> <?php echo stylesheet_tag("tt-rss.css"); ?> diff --git a/js/tt-rss.js b/js/tt-rss.js index eaa1f3daf..1d6540dbb 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -178,7 +178,11 @@ function search() { } function updateTitle() { - var tmp = "Tiny Tiny RSS"; + var tmp = document.title; + if (tmp.indexOf('(')>0) + { + tmp = tmp.substr(0,tmp.lastIndexOf('(')); + } if (global_unread > 0) { tmp = "(" + global_unread + ") " + tmp; @@ -23,7 +23,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title> + <title><?php echo PAGE_TITLE ?> : <?php echo __("Preferences") ?></title> <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?> <?php echo stylesheet_tag("tt-rss.css"); ?> diff --git a/register.php b/register.php index 678b3c317..d7ba7da5f 100644 --- a/register.php +++ b/register.php @@ -27,7 +27,7 @@ print '<?xml version="1.0" encoding="utf-8"?>'; print "<feed xmlns=\"http://www.w3.org/2005/Atom\"> <id>".htmlspecialchars(SELF_URL_PATH . "/register.php")."</id> - <title>Tiny Tiny RSS registration slots</title> + <title><?php echo PAGE_TITLE ?> registration slots</title> <link rel=\"self\" href=\"".htmlspecialchars(SELF_URL_PATH . "/register.php?format=feed")."\"/> <link rel=\"alternate\" href=\"".htmlspecialchars(SELF_URL_PATH)."\"/>"; |