mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Refactor functions out of Library
This commit is contained in:
parent
1449148989
commit
b7b63a4be5
24 changed files with 419 additions and 444 deletions
|
@ -12,7 +12,7 @@ $isAllSelected = sizeof($tags) == 0 || in_array('all', $tags);
|
|||
<label class="tags">Subjects
|
||||
<select <? if(!Template::IsEreaderBrowser()){ ?> multiple="multiple"<? } ?> name="tags[]" size="1">
|
||||
<option value="all">All</option>
|
||||
<? foreach(Library::GetTags() as $tag){ ?>
|
||||
<? foreach(EbookTag::GetAll() as $tag){ ?>
|
||||
<option value="<?= $tag->UrlName ?>"<? if(!$isAllSelected && in_array($tag->UrlName, $tags)){ ?> selected="selected"<? } ?>><?= Formatter::EscapeHtml($tag->Name) ?></option>
|
||||
<? } ?>
|
||||
</select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue