mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:51:59 +01:00
enable preview of mobile search
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
75337bf47f
commit
18b709659e
@ -357,6 +357,8 @@ if($session->get("theme") && preg_match("/^([a-zA-Z0-9\-\_]+)$/", $session->get(
|
|||||||
|
|
||||||
include("system/helper/detectmobilebrowser.php");
|
include("system/helper/detectmobilebrowser.php");
|
||||||
|
|
||||||
|
$config['ENABLE_MOBILE_PREVIEW'] = 0;
|
||||||
|
|
||||||
// make sure auditors are restricted in a saas environment
|
// make sure auditors are restricted in a saas environment
|
||||||
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
|
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
|
||||||
if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; }
|
if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; }
|
||||||
|
@ -6,7 +6,7 @@ class ControllerCommonLayoutSearch extends Controller {
|
|||||||
|
|
||||||
$this->data['title'] = $this->document->title;
|
$this->data['title'] = $this->document->title;
|
||||||
|
|
||||||
if(MOBILE_DEVICE) {
|
if(ENABLE_MOBILE_PREVIEW && MOBILE_DEVICE) {
|
||||||
$this->template = "common/layout-search-mobile.tpl";
|
$this->template = "common/layout-search-mobile.tpl";
|
||||||
} else {
|
} else {
|
||||||
$this->template = "common/layout-search.tpl";
|
$this->template = "common/layout-search.tpl";
|
||||||
|
@ -6,7 +6,7 @@ class ControllerMessageHeaders extends Controller {
|
|||||||
public function index(){
|
public function index(){
|
||||||
|
|
||||||
$this->id = "content";
|
$this->id = "content";
|
||||||
if(MOBILE_DEVICE) {
|
if(ENABLE_MOBILE_PREVIEW && MOBILE_DEVICE) {
|
||||||
$this->template = "message/headers-mobile.tpl";
|
$this->template = "message/headers-mobile.tpl";
|
||||||
} else {
|
} else {
|
||||||
$this->template = "message/headers.tpl";
|
$this->template = "message/headers.tpl";
|
||||||
|
@ -6,7 +6,7 @@ class ControllerMessageView extends Controller {
|
|||||||
public function index(){
|
public function index(){
|
||||||
|
|
||||||
$this->id = "content";
|
$this->id = "content";
|
||||||
if(MOBILE_DEVICE) {
|
if(ENABLE_MOBILE_PREVIEW && MOBILE_DEVICE) {
|
||||||
$this->template = "message/view-mobile.tpl";
|
$this->template = "message/view-mobile.tpl";
|
||||||
} else {
|
} else {
|
||||||
$this->template = "message/view.tpl";
|
$this->template = "message/view.tpl";
|
||||||
|
@ -23,7 +23,7 @@ class ControllerSearchHelper extends Controller {
|
|||||||
public function index(){
|
public function index(){
|
||||||
|
|
||||||
$this->id = "content";
|
$this->id = "content";
|
||||||
if(MOBILE_DEVICE) {
|
if(ENABLE_MOBILE_PREVIEW && MOBILE_DEVICE) {
|
||||||
$this->template = "search/helper-mobile.tpl";
|
$this->template = "search/helper-mobile.tpl";
|
||||||
} else {
|
} else {
|
||||||
$this->template = "search/helper.tpl";
|
$this->template = "search/helper.tpl";
|
||||||
|
Loading…
Reference in New Issue
Block a user