Revert the icon removal. not needed !
This commit is contained in:
parent
54e7300d75
commit
01dcf3ef0c
19
base.php
19
base.php
|
@ -165,6 +165,15 @@ class Entry
|
||||||
public $localUpdated;
|
public $localUpdated;
|
||||||
private static $updated = NULL;
|
private static $updated = NULL;
|
||||||
|
|
||||||
|
public static $icons = array(
|
||||||
|
Author::ALL_AUTHORS_ID => 'images/author.png',
|
||||||
|
Serie::ALL_SERIES_ID => 'images/serie.png',
|
||||||
|
Book::ALL_RECENT_BOOKS_ID => 'images/recent.png',
|
||||||
|
Tag::ALL_TAGS_ID => 'images/tag.png',
|
||||||
|
CustomColumn::ALL_CUSTOMS_ID => 'images/tag.png',
|
||||||
|
"calibre:books$" => 'images/allbook.png',
|
||||||
|
"calibre:books:letter" => 'images/allbook.png'
|
||||||
|
);
|
||||||
|
|
||||||
public function getUpdatedTime () {
|
public function getUpdatedTime () {
|
||||||
if (!is_null ($this->localUpdated)) {
|
if (!is_null ($this->localUpdated)) {
|
||||||
|
@ -184,6 +193,16 @@ class Entry
|
||||||
$this->contentType = $pcontentType;
|
$this->contentType = $pcontentType;
|
||||||
$this->linkArray = $plinkArray;
|
$this->linkArray = $plinkArray;
|
||||||
|
|
||||||
|
if ($config['cops_show_icons'] == 1)
|
||||||
|
{
|
||||||
|
foreach (self::$icons as $reg => $image)
|
||||||
|
{
|
||||||
|
if (preg_match ("/" . $reg . "/", $pid)) {
|
||||||
|
array_push ($this->linkArray, new Link (getUrlWithVersion ($image), "image/png", Link::OPDS_THUMBNAIL_TYPE));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue