diff --git a/templates/Header.php b/templates/Header.php index 395efb4f..b4c6a12e 100644 --- a/templates/Header.php +++ b/templates/Header.php @@ -4,6 +4,11 @@ $title = $title ?? ''; $highlight = $highlight ?? ''; $description = $description ?? ''; $manual = $manual ?? false; + +if(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], "Kobo") !== false || strpos($_SERVER['HTTP_USER_AGENT'], "Kindle") !== false)){ + $ereader = true; +} + $colorScheme = $_COOKIE['color-scheme'] ?? 'auto'; $isXslt = $isXslt ?? false; $feedUrl = $feedUrl ?? null; @@ -35,10 +40,14 @@ if(!$isXslt){ + + + + diff --git a/www/css/ereader.css b/www/css/ereader.css new file mode 100644 index 00000000..e69de29b