Mobile fixes

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2020-03-15 11:10:24 +01:00
parent ae7e6cfc1d
commit 51a3ee72d7
19 changed files with 548 additions and 472 deletions

View File

@ -1,26 +1,21 @@
<?php
<?php
class ControllerCommonLayoutSearch extends Controller {
protected function index() {
$this->data['title'] = $this->document->title;
$this->template = "common/layout-search.tpl";
if(MOBILE_DEVICE) {
$this->template = "common/layout-search-mobile.tpl";
} else {
$this->template = "common/layout-search.tpl";
}
$this->data['search_args'] = '';
$this->data['open_saved_search_box'] = 0;
/*if(isset($_SERVER['REQUEST_URI'])) {
$this->data['search_args'] = preg_replace("/\/([\w]+)\.php\?{0,1}/", "", $_SERVER['REQUEST_URI']);
if(preg_match("/\&a\=1/", $this->data['search_args'])) { $this->data['open_saved_search_box'] = 1; }
}*/
$this->children = array(
"common/menu",
"search/folder",
@ -34,6 +29,3 @@ class ControllerCommonLayoutSearch extends Controller {
}
?>