2020-03-15 11:10:24 +01:00
|
|
|
<?php
|
2012-02-08 23:14:28 +01:00
|
|
|
|
2013-02-11 20:24:19 +01:00
|
|
|
class ControllerCommonLayoutSearch extends Controller {
|
2012-02-08 23:14:28 +01:00
|
|
|
|
|
|
|
protected function index() {
|
|
|
|
|
|
|
|
$this->data['title'] = $this->document->title;
|
|
|
|
|
2020-03-15 11:39:40 +01:00
|
|
|
if(ENABLE_MOBILE_PREVIEW && MOBILE_DEVICE) {
|
2020-03-15 11:10:24 +01:00
|
|
|
$this->template = "common/layout-search-mobile.tpl";
|
|
|
|
} else {
|
|
|
|
$this->template = "common/layout-search.tpl";
|
|
|
|
}
|
2012-02-08 23:14:28 +01:00
|
|
|
|
|
|
|
$this->data['search_args'] = '';
|
|
|
|
|
|
|
|
$this->data['open_saved_search_box'] = 0;
|
|
|
|
|
|
|
|
$this->children = array(
|
|
|
|
"common/menu",
|
2012-09-06 15:27:20 +02:00
|
|
|
"search/folder",
|
2012-02-08 23:14:28 +01:00
|
|
|
"common/footer"
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->render();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|