With Kindle browser reduce a little the text-size, seems to help. re #165
This commit is contained in:
parent
76bec03895
commit
3aebffc217
2 changed files with 6 additions and 0 deletions
|
@ -48,11 +48,15 @@
|
|||
$data = array("title" => $config['cops_title_default'],
|
||||
"version" => VERSION,
|
||||
"opds_url" => $config['cops_full_url'] . "feed.php",
|
||||
"customHeader" => "",
|
||||
"template" => getCurrentTemplate (),
|
||||
"server_side_rendering" => useServerSideRendering (),
|
||||
"current_css" => getCurrentCss (),
|
||||
"favico" => $config['cops_icon'],
|
||||
"getjson_url" => "getJSON.php?" . addURLParameter (getQueryString (), "complete", 1));
|
||||
if (preg_match("/Kindle/", $_SERVER['HTTP_USER_AGENT'])) {
|
||||
$data ["customHeader"] = '<style media="screen" type="text/css"> html { font-size: 75%; -webkit-text-size-adjust: 75%; -ms-text-size-adjust: 75%; }</style>';
|
||||
}
|
||||
$headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html');
|
||||
$template = new doT ();
|
||||
$dot = $template->template ($headcontent, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue