mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove notice about moving to mobile site
This commit is contained in:
parent
34922b0d46
commit
028a56a678
1 changed files with 0 additions and 17 deletions
|
|
@ -654,23 +654,6 @@ class ModuleHandler extends Handler
|
|||
$this->module_info->module_type = $type;
|
||||
$oModule->setModuleInfo($this->module_info, $xml_info);
|
||||
|
||||
$skipAct = array(
|
||||
'dispEditorConfigPreview' => 1,
|
||||
'dispLayoutPreviewWithModule' => 1
|
||||
);
|
||||
$db_use_mobile = Mobile::isMobileEnabled();
|
||||
|
||||
$tablet_use = Rhymix\Framework\UA::isTablet();
|
||||
$config_tablet_use = config('mobile.tablets');
|
||||
if($type == "view" && $this->module_info->use_mobile == "Y" && Mobile::isMobileCheckByAgent() && !isset($skipAct[Context::get('act')]) && $db_use_mobile === true && ($tablet_use === true && $config_tablet_use === false) === false)
|
||||
{
|
||||
global $lang;
|
||||
$header = '<style>div.xe_mobile{opacity:0.7;margin:1em 0;padding:.5em;background:#333;border:1px solid #666;border-left:0;border-right:0}p.xe_mobile{text-align:center;margin:1em 0}a.xe_mobile{color:#ff0;font-weight:bold;font-size:24px}@media only screen and (min-width:500px){a.xe_mobile{font-size:15px}}</style>';
|
||||
$footer = '<div class="xe_mobile"><p class="xe_mobile"><a class="xe_mobile" href="' . getUrl('m', '1') . '">' . $lang->msg_pc_to_mobile . '</a></p></div>';
|
||||
Context::addHtmlHeader($header);
|
||||
Context::addHtmlFooter($footer);
|
||||
}
|
||||
|
||||
if(($type === 'view' || $type === 'mobile') && $kind !== 'admin')
|
||||
{
|
||||
$domain_info = Context::get('site_module_info');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue