增加标签 NEWEST_FEEDBACK_10

master
Jimmy Liow 2 years ago
parent b9eaff1db5
commit 8fc3933256

@ -1930,6 +1930,18 @@ class Information extends CI_Controller
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $template);
//
$feedback_newest_10 = $this->Feedback_model->get_feedback_newest(10);
$feedback_newest_10_content = $this->load->view(
'mobile_first/ah-feedback-newest-10',
array('feedback_list' => $feedback_newest_10),
true
);
str_replace(
'<!--@NEWEST_FEEDBACK_10@-->',
$feedback_newest_10_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);
@ -2100,9 +2112,10 @@ class Information extends CI_Controller
}
}
//
$feedback_newest = $this->Feedback_model->get_feedback_newest();
$feedback_newest_content = $this->load->view(
$template_path . '-feedback-newest',
'mobile_first/ah-feedback-newest',
array('feedback_list' => $feedback_newest),
true
);

@ -0,0 +1,23 @@
<div class="right_tour">
<div class="feedback_logo" style="width: auto; display: flex;">
<img height="65" style="margin: 0px auto; " width="150"
src="https://data.asiahighlights.com/image/forms/ah-ta-2023-certificate.png" />
<img alt="Tour Review" class="img-responsive" height="278"
style="width: 140px; display: block; margin: 0 auto; " width="1133"
src="https://data.asiahighlights.com/image/forms/ah-ch-gh-tp-rating.png" />
</div>
<?php foreach ($feedback_list as $index => $feedback) {?>
<div class="tour_feedback">
<div class="feedback_content">
<strong><?php echo $feedback['title'] ?></strong>
<p><?php echo $feedback['content'] ?></p>
<a href="<?php echo $feedback['url'] ?>" target="_blank">more</a>
<div class="customer_name">
<?php echo $feedback['customer'] ?>,
<?php echo $feedback['createdOn'] ?>
</div>
</div>
</div>
<?php }?>
</div>
Loading…
Cancel
Save