附件地址统一管理
parent
0e44363f67
commit
b111b4ac6f
|
|
@ -24,7 +24,7 @@
|
|||
{{if !empty($data['common_customer_store_qrcode']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="common_customer_store_qrcode" value="{{$data.common_customer_store_qrcode.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.common_customer_store_qrcode.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.common_customer_store_qrcode.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
|
||||
<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
|
||||
<li class="am-dropdown">
|
||||
<a href="{{:__MY_URL__}}" target="_blank" class="tpl-header-list-link">
|
||||
<a href="{{$Think.__MY_URL__}}" target="_blank" class="tpl-header-list-link">
|
||||
<i class="am-icon-home"></i>
|
||||
<span>查看首页</span>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
{{if !empty($data['home_site_logo']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_logo" value="{{$data.home_site_logo.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_logo.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_logo.value)}}" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
{{if !empty($data['home_site_logo_wap']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_logo_wap" value="{{$data.home_site_logo_wap.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_logo_wap.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_logo_wap.value)}}" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
{{if !empty($data['home_site_desktop_icon']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_desktop_icon" value="{{$data.home_site_desktop_icon.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_desktop_icon.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_desktop_icon.value)}}" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
{{if !empty($data['home_site_user_forgetpwd_ad1_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_forgetpwd_ad1_images" value="{{$data.home_site_user_forgetpwd_ad1_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_forgetpwd_ad1_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_forgetpwd_ad1_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
{{if !empty($data['home_site_user_forgetpwd_ad2_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_forgetpwd_ad2_images" value="{{$data.home_site_user_forgetpwd_ad2_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_forgetpwd_ad2_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_forgetpwd_ad2_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
{{if !empty($data['home_site_user_forgetpwd_ad3_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_forgetpwd_ad3_images" value="{{$data.home_site_user_forgetpwd_ad3_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_forgetpwd_ad3_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_forgetpwd_ad3_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
{{if !empty($data['home_site_user_login_ad1_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_login_ad1_images" value="{{$data.home_site_user_login_ad1_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_login_ad1_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_login_ad1_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
{{if !empty($data['home_site_user_login_ad2_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_login_ad2_images" value="{{$data.home_site_user_login_ad2_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_login_ad2_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_login_ad2_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
{{if !empty($data['home_site_user_login_ad3_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_login_ad3_images" value="{{$data.home_site_user_login_ad3_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_login_ad3_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_login_ad3_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
{{if !empty($data['home_site_user_register_bg_images']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_user_register_bg_images" value="{{$data.home_site_user_register_bg_images.value}}" />
|
||||
<img src="{{$Think.__MY_PUBLIC_URL__}}{{$data.home_site_user_register_bg_images.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_user_register_bg_images.value)}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,20 @@
|
|||
|
||||
// 应用公共文件
|
||||
|
||||
/**
|
||||
* 附件地址处理
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2019-10-16
|
||||
* @desc 用于页面展示处理,非绝对路径的情况下自动加上http
|
||||
* @param [string] $value [附件地址]
|
||||
*/
|
||||
function AttachmentPathViewHandle($value)
|
||||
{
|
||||
return app\service\ResourcesService::AttachmentPathViewHandle($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 路径解析指定参数
|
||||
* @author Devil
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ class Common extends Controller
|
|||
$this->assign('common_customer_store_tel', MyC('common_customer_store_tel'));
|
||||
$this->assign('common_customer_store_email', MyC('common_customer_store_email'));
|
||||
$this->assign('common_customer_store_address', MyC('common_customer_store_address'));
|
||||
$this->assign('common_customer_store_qrcode', MyC('common_customer_store_qrcode'));
|
||||
$this->assign('common_customer_store_qrcode', AttachmentPathViewHandle(MyC('common_customer_store_qrcode')));
|
||||
|
||||
// 主题
|
||||
$default_theme = strtolower(MyC('common_default_theme', 'default', true));
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
{{/if}}
|
||||
{{if !empty($common_customer_store_qrcode)}}
|
||||
<li class="qrcode">
|
||||
<img src="{{$attachment_host}}{{$common_customer_store_qrcode}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
<img src="{{$common_customer_store_qrcode}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -5,17 +5,17 @@
|
|||
<title>{{$home_seo_site_title}}</title>
|
||||
<meta name="keywords" content="{{$home_seo_site_keywords}}" />
|
||||
<meta name="description" content="{{$home_seo_site_description}}" />
|
||||
<meta name="generator" content="{{:__MY_URL__}}" />
|
||||
<meta name="generator" content="{{$Think.__MY_URL__}}" />
|
||||
<meta name="application-name" content="{{$home_seo_site_title}}" />
|
||||
<meta name="msapplication-tooltip" content="{{$home_seo_site_title}}" />
|
||||
<meta name="msapplication-starturl" content="{{:__MY_URL__}}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{:__MY_PUBLIC_URL__}}favicon.ico" />
|
||||
<meta name="msapplication-starturl" content="{{$Think.__MY_URL__}}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{$Think.__MY_PUBLIC_URL__}}favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="{{:MyC('home_site_name')}}">
|
||||
<link rel="apple-touch-icon" href="{{$attachment_host}}{{:MyC('home_site_desktop_icon')}}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{$attachment_host}}{{:MyC('home_site_desktop_icon')}}">
|
||||
<link rel="apple-touch-icon" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}" />
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
var __root__ = '{{$Think.__MY_ROOT_PUBLIC__}}';
|
||||
var __my_url__ = '{{:__MY_URL__}}';
|
||||
var __my_url__ = '{{$Think.__MY_URL__}}';
|
||||
var __public__ = '{{$Think.__MY_ROOT_PUBLIC__}}';
|
||||
var __default_theme__ = '{{$default_theme}}';
|
||||
var __modal_login_url__ = '{{:Url("index/user/modallogininfo")}}';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<h1 class="am-topbar-brand wap-logo am-show-sm-only">
|
||||
<a href="{{$Think.__MY_URL__}}">
|
||||
<img src="{{$attachment_host}}{{:MyC('home_site_logo_wap')}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo_wap'))}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
<div class="am-container">
|
||||
<div class="logo am-show-sm-only">
|
||||
<a href="{{$Think.__MY_URL__}}">
|
||||
<img src="{{$attachment_host}}{{:MyC('home_site_logo_wap')}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo_wap'))}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="logo-big am-hide-sm-only">
|
||||
<a href="{{$Think.__MY_URL__}}">
|
||||
<img src="{{$attachment_host}}{{:MyC('home_site_logo')}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo'))}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
{{include file="public/goods_category" /}}
|
||||
|
||||
<!-- conntent start -->
|
||||
<div class="am-g my-content user-register-container" {{if !empty($user_register_bg_images)}}style="background: #FAFAFA url({{$attachment_host}}{{$user_register_bg_images}});"{{/if}}>
|
||||
<div class="am-g my-content user-register-container" {{if !empty($user_register_bg_images)}}style="background: #FAFAFA url({{:AttachmentPathViewHandle($user_register_bg_images)}});"{{/if}}>
|
||||
<div class="am-container">
|
||||
<!-- 用户注册页面顶部钩子 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
<title>ShopXO安装程序</title>
|
||||
<meta name="description" content="ShopXO是国内领先的商城系统提供商,为企业提供php商城系统、微信商城、小程序。" />
|
||||
<meta name="keywords" content="ShopXO,开源电商系统,开源商城,开源B2C,免费商城系统,商城系统,B2C商城,微信商城,支付宝小程序,微信小程序,微信公众号,支付宝生活号" />
|
||||
<meta name="generator" content="{{:__MY_URL__}}" />
|
||||
<meta name="generator" content="{{$Think.__MY_URL__}}" />
|
||||
<meta name="application-name" content="ShopXO" />
|
||||
<meta name="msapplication-tooltip" content="ShopXO" />
|
||||
<meta name="msapplication-starturl" content="{{:__MY_URL__}}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{:__MY_URL__}}favicon.ico" />
|
||||
<meta name="msapplication-starturl" content="{{$Think.__MY_URL__}}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{$Think.__MY_URL__}}favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/assets/css/amazeui.css" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue