Add several ways to handle thumbnails. re #5
This commit is contained in:
parent
b82bf8c19f
commit
13b16163d3
4 changed files with 17 additions and 4 deletions
5
book.php
5
book.php
|
@ -632,6 +632,11 @@ function getJson ($complete = false) {
|
|||
"use_fancyapps" => $config ["cops_use_fancyapps"],
|
||||
"max_item_per_page" => $config['cops_max_item_per_page'],
|
||||
"html_tag_filter" => $config['cops_html_tag_filter']));
|
||||
if ($config['cops_thumbnail_handling'] == "1") {
|
||||
$out ["const"]["url"]["thumbnailUrl"] = $out ["const"]["url"]["coverUrl"];
|
||||
} else if (!empty ($config['cops_thumbnail_handling'])) {
|
||||
$out ["const"]["url"]["thumbnailUrl"] = $config['cops_thumbnail_handling'];
|
||||
}
|
||||
}
|
||||
|
||||
$out ["containsBook"] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue