feat: CH 增加自定义 Html head

master
LiaoYijun 1 year ago
parent 4ef6a7bcc5
commit f980259ffb

@ -1380,6 +1380,13 @@ class Information extends CI_Controller
$template $template
); );
} }
// 自定义 Html Head
$meta_custom_head = get_meta($information->ic_id, 'meta_custom_head');
if (!empty($meta_custom_head)) {
$template = str_replace('<!--@Custom-Head@-->', $meta_custom_head, $template);
}
//额外样式 //额外样式
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css'); $meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
if (!empty($meta_addon_css)) { if (!empty($meta_addon_css)) {

@ -1108,6 +1108,19 @@ if (!empty($setting_website_nav)) {
<textarea class="form-control" id="meta_construction_code" <textarea class="form-control" id="meta_construction_code"
name="meta_construction_code"><?php echo get_meta($information->ic_id, 'meta_construction_code'); ?></textarea> name="meta_construction_code"><?php echo get_meta($information->ic_id, 'meta_construction_code'); ?></textarea>
<label>
自定义 Head
<a href="javascript:void(0);"
onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_custom_head', $('#meta_custom_head').val())"><i
class="text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove"></i></a>
<a href="javascript:void(0);"
onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_custom_head', $('#meta_custom_head').val())"><i
class="text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd"></i></a>
</label>
<textarea class="form-control" id="meta_custom_head"
name="meta_custom_head"><?php echo get_meta($information->ic_id, 'meta_custom_head'); ?></textarea>
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">
<label>展示列表图片 <label>展示列表图片

@ -28,6 +28,7 @@
<link rel="dns-prefetch" href="https://www.google-analytics.com"> <link rel="dns-prefetch" href="https://www.google-analytics.com">
<!--@MAIN-CSS@--> <!--@MAIN-CSS@-->
<!--@ADDON-CSS@--> <!--@ADDON-CSS@-->
<!--@Custom-Head@-->
<!--@CHINA-TRAINS-CSS@--> <!--@CHINA-TRAINS-CSS@-->
<!-- Google Tag Manager --> <!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) { <script>(function (w, d, s, l, i) {

@ -25,6 +25,7 @@
<link rel="shortcut icon" href="https://data.chinahighlights.com/favicon.ico"> <link rel="shortcut icon" href="https://data.chinahighlights.com/favicon.ico">
<!--@MAIN-CSS@--> <!--@MAIN-CSS@-->
<!--@ADDON-CSS@--> <!--@ADDON-CSS@-->
<!--@Custom-Head@-->
<!--@CHINA-TRAINS-CSS@--> <!--@CHINA-TRAINS-CSS@-->
<!-- Google Tag Manager --> <!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) { <script>(function (w, d, s, l, i) {
@ -382,7 +383,7 @@
</div> </div>
<footer> <footer>
<div class="infotailor"> <div class="infotailor">
<span class="infotailorword">Start planning your tailor-made tour with 1-1 help <span class="infotailorword">Start planning your tailor-made tour with 1-1 help
from our travel advisors. from our travel advisors.
@ -513,7 +514,7 @@
<a href="https://www.trustpilot.com/review/chinahighlights.com" target="_blank" rel="noopener">Trustpilot</a> <a href="https://www.trustpilot.com/review/chinahighlights.com" target="_blank" rel="noopener">Trustpilot</a>
</div> </div>
<!-- End TrustBox widget --> <!-- End TrustBox widget -->
<div class="bottommedia"> <div class="bottommedia">
<span class="followtitle">Follow Us</span> <span class="followtitle">Follow Us</span>
<ul> <ul>
@ -526,7 +527,7 @@
d="M17.252,11.106V8.65c0-0.922,0.611-1.138,1.041-1.138h2.643V3.459l-3.639-0.015 c-4.041,0-4.961,3.023-4.961,4.961v2.701H10v4.178h2.336v11.823h4.916V15.284h3.316l0.428-4.178H17.252z"> d="M17.252,11.106V8.65c0-0.922,0.611-1.138,1.041-1.138h2.643V3.459l-3.639-0.015 c-4.041,0-4.961,3.023-4.961,4.961v2.701H10v4.178h2.336v11.823h4.916V15.284h3.316l0.428-4.178H17.252z">
</path> </path>
</svg>Facebook </svg>Facebook
</a></li> </a></li>
<li><a href="https://twitter.com/Chinahighlights" title="Share us on Twitter" class="tw" target="_blank" <li><a href="https://twitter.com/Chinahighlights" title="Share us on Twitter" class="tw" target="_blank"
rel="nofollow"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" rel="nofollow"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
@ -545,13 +546,13 @@
</path> </path>
</svg> </svg>
Instagram </a></li> Instagram </a></li>
</ul> </ul>
</div> </div>
<div class="bottomlinks"> <div class="bottomlinks">
<span class="followtitle"><a href="/aboutus/">About Us</a></span> <span class="followtitle"><a href="/aboutus/">About Us</a></span>

Loading…
Cancel
Save