diff --git a/src/app/controller/module/search.php b/src/app/controller/module/search.php index cf5ea4a..ff1017f 100644 --- a/src/app/controller/module/search.php +++ b/src/app/controller/module/search.php @@ -4,7 +4,20 @@ class AppControllerModuleSearch { public function render() { - $query = empty($_GET['query']) ? false : urldecode($_GET['query']); + $query = empty($_GET['query']) ? false : urldecode($_GET['query']); + $locale = empty($_GET['locale']) ? 'all' : urldecode($_GET['locale']); + + $locales = []; + + foreach (Environment::config('locales') as $key => $value) + { + $locales[$key] = (object) + [ + 'key' => $key, + 'value' => $value[0], + 'active' => $key === $locale // false !== stripos($_SERVER['HTTP_ACCEPT_LANGUAGE'], $key) ? true : false, + ]; + } include __DIR__ . '../../../view/theme/default/module/search.phtml'; } diff --git a/src/app/view/theme/default/module/search.phtml b/src/app/view/theme/default/module/search.phtml index 622292b..1e62af4 100644 --- a/src/app/view/theme/default/module/search.phtml +++ b/src/app/view/theme/default/module/search.phtml @@ -1,4 +1,20 @@
- - + + +
\ No newline at end of file diff --git a/src/public/assets/theme/default/css/framework.css b/src/public/assets/theme/default/css/framework.css index 0c3cb70..2d54030 100644 --- a/src/public/assets/theme/default/css/framework.css +++ b/src/public/assets/theme/default/css/framework.css @@ -413,8 +413,12 @@ a:visited.background-color-hover-night-light:hover { width: 180px; } +.min-width-120-px { + min-width: 120px; +} + .min-width-200-px { - width: 200px; + min-width: 200px; } @media (max-width: 1220px) {