上线 AH 右侧推荐广告列表

hotfix/paypal-note
Jimmy Liow 2 years ago
parent 42b026d0ee
commit 9f9aba02f5

@ -1509,6 +1509,26 @@ class Information extends CI_Controller
if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'><div class='ah_inforight'>" . $template_recommand['Tips Right']->it_content . "</div></div>", $template);
}
// 右侧列表广告
$tipsRightList = [];
for ($i=1; $i <= 36; $i++) {
$key = 'List Tips Right '.$i;
if (array_key_exists($key, $recommand_information)) {
$tipsRightList[] = $recommand_information[$key];
}
}
$tips_right_list_content = $this->load->view(
'mobile_first/ah-tips-right-list',
array(
'tips_right_first' => array_slice($tipsRightList, 0, 12),
'tips_right_second' => array_slice($tipsRightList, 12, 12),
'tips_right_third' => array_slice($tipsRightList, 24, 12)),
true
);
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $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);

@ -286,6 +286,7 @@
</ul>
</div>
<!--@TIPS-RIGHT@-->
<!--@TIPS-RIGHT-LIST@-->
<div class="info_tm_button"><a href="/forms/tailormade" id="create_my_trip_button_pc">Create my trip</a>
</div>
</div>

Loading…
Cancel
Save