From 1c8593c1fa68cd5287c975bb8ef96efce4edbbab Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Dec 2018 21:17:50 +0300 Subject: add hotkey (a N) to toggle night.css --- include/controls.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/controls.php') diff --git a/include/controls.php b/include/controls.php index e64a90a8b..012bcf76c 100755 --- a/include/controls.php +++ b/include/controls.php @@ -233,10 +233,12 @@ function print_feed_cat_select($id, $default_id, } } -function stylesheet_tag($filename) { +function stylesheet_tag($filename, $id = false) { $timestamp = filemtime($filename); - return "\n"; + $id_part = $id ? "id=\"$id\"" : ""; + + return "\n"; } function javascript_tag($filename) { -- cgit v1.2.3