mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
Fix #832 make the viewport setting customizable
모바일 접속시 <meta name="viewport"> 태그에 들어가는 내용을 시스템 설정 메뉴에서 커스터마이징할 수 있도록 변경함.
This commit is contained in:
parent
2f10d5c0b5
commit
17ca61eed3
7 changed files with 15 additions and 1 deletions
|
|
@ -111,6 +111,7 @@ return array(
|
|||
'mobile' => array(
|
||||
'enabled' => true,
|
||||
'tablets' => false,
|
||||
'viewport' => 'width=device-width, initial-scale=1.0, user-scalable=yes',
|
||||
),
|
||||
'use_prepared_statements' => true,
|
||||
'use_rewrite' => true,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!-- META -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="Rhymix">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" cond="$m" />
|
||||
<meta name="viewport" content="{config('mobile.viewport') ?: 'width=device-width, initial-scale=1.0, user-scalable=yes'}" cond="$m" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<block loop="Context::getMetaTag() => $no, $val">
|
||||
<meta http-equiv="{$val['name']}"|cond="$val['is_http_equiv']" name="{$val['name']}"|cond="!$val['is_http_equiv']" content="{$val['content']}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue