mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 02:57:04 +02:00
@ -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 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
@ -6,7 +6,11 @@ class ControllerMessageHeaders extends Controller {
|
||||
public function index(){
|
||||
|
||||
$this->id = "content";
|
||||
$this->template = "message/headers.tpl";
|
||||
if(MOBILE_DEVICE) {
|
||||
$this->template = "message/headers-mobile.tpl";
|
||||
} else {
|
||||
$this->template = "message/headers.tpl";
|
||||
}
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
$request = Registry::get('request');
|
||||
|
@ -6,7 +6,11 @@ class ControllerMessageView extends Controller {
|
||||
public function index(){
|
||||
|
||||
$this->id = "content";
|
||||
$this->template = "message/view.tpl";
|
||||
if(MOBILE_DEVICE) {
|
||||
$this->template = "message/view-mobile.tpl";
|
||||
} else {
|
||||
$this->template = "message/view.tpl";
|
||||
}
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
$session = Registry::get('session');
|
||||
|
@ -23,7 +23,12 @@ class ControllerSearchHelper extends Controller {
|
||||
public function index(){
|
||||
|
||||
$this->id = "content";
|
||||
$this->template = "search/helper.tpl";
|
||||
if(MOBILE_DEVICE) {
|
||||
$this->template = "search/helper-mobile.tpl";
|
||||
} else {
|
||||
$this->template = "search/helper.tpl";
|
||||
}
|
||||
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user