allow = $cloudAppService->getCloudAppStatus('search'); if($this->allow) { include_once template('cloudsearch:module'); if(!function_exists('tpl_global_header_mobile')) { $this->allow = false; return; } if (!$searchparams) { $searchHelper = Cloud::loadClass('Cloud_Service_SearchHelper'); $searchparams = $searchHelper->makeSearchSignUrl(); } } } function global_header_mobile() { if (!$this->allow) { return; } global $_G, $searchparams; $srchotquery = ''; if(!empty($searchparams['params'])) { foreach($searchparams['params'] as $key => $value) { $srchotquery .= '&' . $key . '=' . rawurlencode($value); } } return tpl_global_header_mobile($searchparams, $srchotquery); } }