diff options
author | Andrew Dolgov <[email protected]> | 2014-01-28 01:39:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-01-28 01:39:24 +0400 |
commit | cdbcb2778a8aef8ad4677056c42cb3caad18cd0c (patch) | |
tree | 4277aa50d15ef5e300128e5c52ff59c6e6f532b6 /include/functions.php | |
parent | 8d6fd8be85fb00ccc2e63af39ceb11f90f411147 (diff) |
move Zoom stylesheet to a separate file
update stylesheet/javascript tag helpers to return output instead of
printing it
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php index 7cdeae3b6..6c6bf2661 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3260,8 +3260,10 @@ header("Content-Type: text/html"); $rv['content'] .= "<html><head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/> - <title>Tiny Tiny RSS - ".$line["title"]."</title> - <link rel=\"stylesheet\" type=\"text/css\" href=\"css/tt-rss.css\"> + <title>Tiny Tiny RSS - ".$line["title"]."</title>". + stylesheet_tag("css/tt-rss.css"). + stylesheet_tag("css/zoom.css")." + <link rel=\"shortcut icon\" type=\"image/png\" href=\"images/favicon.png\"> <link rel=\"icon\" type=\"image/png\" sizes=\"72x72\" href=\"images/favicon-72px.png\"> @@ -4306,7 +4308,7 @@ function stylesheet_tag($filename) { $timestamp = filemtime($filename); - echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$filename?$timestamp\"/>\n"; + return "<link rel=\"stylesheet\" type=\"text/css\" href=\"$filename?$timestamp\"/>\n"; } function javascript_tag($filename) { @@ -4321,7 +4323,7 @@ if ($query) $timestamp .= "&$query"; - echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"$filename?$timestamp\"></script>\n"; + return "<script type=\"text/javascript\" charset=\"utf-8\" src=\"$filename?$timestamp\"></script>\n"; } function calculate_dep_timestamp() { |