mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Adjust how tags URLs are calculated to support tags with non-ASCII characters like 'children’s'
This commit is contained in:
parent
c5b686636b
commit
6c267497cc
5 changed files with 14 additions and 20 deletions
|
@ -5,9 +5,8 @@ $allSelected = sizeof($tags) == 0 || in_array('all', $tags);
|
|||
<label class="tags">Subjects
|
||||
<select multiple="multiple" name="tags[]" size="1">
|
||||
<option value="all">All</option>
|
||||
<? foreach(Library::GetTags() as $tag){
|
||||
$lcTag = mb_strtolower($tag); ?>
|
||||
<option value="<?= Formatter::ToPlainText($lcTag) ?>"<? if(!$allSelected && in_array($lcTag, $tags)){ ?> selected="selected"<? } ?>><?= Formatter::ToPlainText($tag) ?></option>
|
||||
<? foreach(Library::GetTags() as $tag){ ?>
|
||||
<option value="<?= $tag->UrlName ?>"<? if(!$allSelected && in_array($tag->UrlName, $tags)){ ?> selected="selected"<? } ?>><?= Formatter::ToPlainText($tag->Name) ?></option>
|
||||
<? } ?>
|
||||
</select>
|
||||
</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue