From b5d4716a52aab283e1d3e0527d036134c5787095 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Mar 2013 20:33:46 +0400 Subject: [PATCH] optimize loading of external libraries a bit fix bold text in Unread articles --- cdm.css | 4 ++++ include/functions.php | 21 +++++++++++++++++++++ index.php | 27 +++++++++++++++------------ lib/position.js | 31 ------------------------------- prefs.php | 25 ++++++++++++++----------- tt-rss.css | 8 ++++---- 6 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 lib/position.js diff --git a/cdm.css b/cdm.css index 0d0a007b..b793ee05 100644 --- a/cdm.css +++ b/cdm.css @@ -151,3 +151,7 @@ div.cdmHeader div.hlFeed, div.cdmHeader div.hlFeed a { div.cdmContentInner p { max-width : 650px; } + +.Unread div.cdmHeader { + font-weight : bold; +} diff --git a/include/functions.php b/include/functions.php index 66054c23..d9a3a596 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4070,4 +4070,25 @@ return $rv; } + function stylesheet_tag($filename) { + $timestamp = filemtime($filename); + + echo "\n"; + } + + function javascript_tag($filename) { + $query = ""; + + if (!(strpos($filename, "?") === FALSE)) { + $query = substr($filename, strpos($filename, "?")+1); + $filename = substr($filename, 0, strpos($filename, "?")); + } + + $timestamp = filemtime($filename); + + if ($query) $timestamp .= "&$query"; + + echo "\n"; + } + ?> diff --git a/index.php b/index.php index 68d6fc75..6d9608a3 100644 --- a/index.php +++ b/index.php @@ -44,8 +44,6 @@ login_sequence($link); - $dt_add = time(); - no_cache_incantation(); header('Content-Type: text/html; charset=utf-8'); @@ -56,9 +54,10 @@ Tiny Tiny RSS - - - + + + + @@ -74,14 +73,18 @@ - - - - - + "> - + } ?> - - - - - + "> + } ?>