mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add content locale filter #14
This commit is contained in:
parent
0c26c0ac9b
commit
bbd54b3a14
3 changed files with 37 additions and 4 deletions
|
|
@ -1,4 +1,20 @@
|
|||
<form class="margin-t-8" name="search" method="get" action="search">
|
||||
<input class="min-width-200-px" type="text" name="query" value="<?php echo $query ?>" placeholder="<?php echo _('keyword, file, extension, hash...') ?>" />
|
||||
<input type="submit" value="<?php echo _('search') ?>" />
|
||||
<input class="min-width-200-px" type="text" name="query" value="<?php echo $query ?>" placeholder="<?php echo _('Keyword, file, extension, hash...') ?>" />
|
||||
<select class="min-width-120-px" type="text" name="locale">
|
||||
<option value="">
|
||||
<?php echo _('All languages') ?>
|
||||
</option>
|
||||
<?php foreach ($locales as $locale) { ?>
|
||||
<?php if ($locale->active) { ?>
|
||||
<option value="<?php echo $locale->key ?>" selected="selected">
|
||||
<?php echo $locale->value ?>
|
||||
</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?php echo $locale->key ?>">
|
||||
<?php echo $locale->value ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="submit" value="<?php echo _('Search') ?>" />
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue