右侧顶部广告栏

hotfix/paypal-note
尹诚诚 4 years ago
parent 484be43c5e
commit 584eb6b4e4

@ -647,10 +647,14 @@ class Information extends CI_Controller
$template_recommand = $this->recommand_information($information);
$template = str_replace('<!--@ARTICLENEXT@-->', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template);
// //广告改叫tips防止被插件屏蔽
if (!empty($template_recommand['Tips Right TOP'])) {
$template = str_replace('<!--@TIPS-RIGHT-TOP@-->', "<div class='right_brand_info'><aside>" . $template_recommand['Tips Right TOP']->it_content . "</aside></div>", $template);
}
if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'>" . $template_recommand['Tips Right']->it_content . "</div>", $template);
}
//文中的信息推荐
if (strpos($information->ic_content, '<!--@Content-Recommends-Article@-->') !== false) {
$information->ic_content = str_replace('<!--@Content-Recommends-Article@-->', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content);

@ -8,7 +8,7 @@
<div class="row">
<div class="col-md-16">
<div class="panel panel-default">
<div class="panel-heading">文章内容 </div>
<div class="panel-heading">文章内容</div>
<div class="panel-body">
<!-- 文中信息推荐 begin -->
<p class="text-primary text-center">&lt;!--@Content-Recommends-Article@--&gt;</p>
@ -224,6 +224,19 @@
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">右侧广告-顶<a
href="javascript:void(0);"
onclick="show_bind_info(<?php echo $information->is_id; ?>,'Tips Right TOP')"
> <span
class="pull-right glyphicon glyphicon-cog"></span></a></div>
<div class="panel-body">
<?php echo empty($recommends['Tips Right TOP']) ? '继承上级' : $recommends['Tips Right TOP']->ir_rule; ?>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">右侧广告<a
href="javascript:void(0);"
@ -234,6 +247,8 @@
<?php echo empty($recommends['Tips Right']) ? '继承上级' : $recommends['Tips Right']->ir_rule; ?>
</div>
</div>
</div>
</div>
<!-- 信息推荐 begin -->

@ -21,19 +21,12 @@
<p>完整的右侧广告代码:</p>
<div class="expatstour" style="
margin: 30px 0;
margin: 30px 0; width:auto;
">
<div class="tour_img_title"><a href="/tour/zhangjiajietour/hun-3/" rel="nofollow"><img alt="most classic china tour"
class="img-responsive"
src="https://images.chinahighlights.com/allpicture/2015/03/e47d1ba34f204510962a6c89_cut_600x550_251.jpg"
width="600"
height="415"><span
class="citytourname">Classic Wonders</span></a></div>
<div class="tour_img_title"><a href="/tour/zhangjiajietour/hun-3/" rel="nofollow"><img alt="most classic china tour" class="img-responsive" height="415" src="https://images.chinahighlights.com/allpicture/2015/03/e47d1ba34f204510962a6c89_cut_600x550_251.jpg" width="600" /><span class="citytourname">Classic Wonders</span></a></div>
<div class="tourdetailinfo"><span class="expatstourname"><a href="/tour/zhangjiajietour/hun-3/">11-Day Beijing Xi'an Guilin/Yangshuo Shanghai Tour</a></span>
<div class="tourbutton"><a href="/tour/zhangjiajietour/hun-3/" rel="nofollow">View More<i aria-hidden="true"
class="fa fa-caret-right"></i></a>
</div>
<div class="tourbutton"><a href="/tour/zhangjiajietour/hun-3/" rel="nofollow">View More</a></div>
</div>
</div>
</div>

@ -218,6 +218,7 @@
</div>
</aside>
</div>
<!--@TIPS-RIGHT-TOP@-->
<!--@TIPS-RIGHT@-->
</div>
<div id="main_content_next">

Loading…
Cancel
Save