mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix #1389 improve handling of viewport meta tag
- viewport 설정에 빈 값을 저장한 경우 메타 태그를 출력하지 않음 - 단, 아예 설정이 없는 경우(XE 또는 구버전에서 업그레이드한 경우)에는 예외
This commit is contained in:
parent
28d71acffd
commit
82bf017f01
6 changed files with 18 additions and 3 deletions
|
|
@ -5,7 +5,9 @@
|
|||
<!-- META -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="Rhymix">
|
||||
<meta name="viewport" content="{config('mobile.viewport') ?: 'width=device-width, initial-scale=1.0, user-scalable=yes'}" cond="$m" />
|
||||
<!--@if(Mobile::isFromMobilePhone() && $__mv = config('mobile.viewport') ?? HTMLDisplayHandler::DEFAULT_VIEWPORT)-->
|
||||
<meta name="viewport" content="{$__mv}" />
|
||||
<!--@endif-->
|
||||
<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