feat: HTravel增加顾问TA标签

master
LiaoYijun 9 months ago
parent afd8bbb16f
commit 58f116b3e9

@ -2530,6 +2530,30 @@ class Information extends CI_Controller
}
}
// 顾问英文名反馈标签
$feedback_advisor_array = [];
preg_match_all('^<!--@FEEDBACK-advisor_(.*)@-->^', $information->ic_content, $feedback_advisor_array);
if (!empty($feedback_advisor_array)) {
foreach ($feedback_advisor_array[0] as $index => $tag_name) {
$advisor_name = $feedback_advisor_array[1][$index];
$feedback_list = $this->Feedback_model->get_feedback_by_advisor_name($advisor_name);
$feedback_content = $this->load->view(
'mobile_first/htravel-feedback-advisor-list',
array(
'feedback_list' => $feedback_list,
'advisor_name' => $advisor_name
),
true
);
$information->ic_content = str_replace(
$tag_name,
$feedback_content,
$information->ic_content
);
}
}
//主样式表,内联模式
if (is_file('D:/wwwroot/origin-www.highlightstravel.com/css/mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.highlightstravel.com/css/mobile-first.css'));
@ -3721,7 +3745,7 @@ class Information extends CI_Controller
$template_page_daytriplist = $this->load->view($template_path . '-daytrip-list', $dataDayTripList, true); //模板内容
$ic_content = str_replace('<!--@TOUR-LIST-PAGE@-->', $template_page_daytriplist, $ic_content);
//$addonJs .= '<script src="' . $apiweb . '/js/mobile-first/daytriplist.js" defer></script>';
//$addonJs .= '<script src="' . $apiweb . '/js/mobile-first/daytriplist.js" defer></script>';
}

@ -0,0 +1,34 @@
<h3 style="text-align:center">What the Clients Say about <?php echo $advisor_name?></h3>
<div class="visible-xs" style="margin: 20px 20px 110px 20px; ">
<img class="img-responsive" height="69" src="https://images.chinahighlights.com/allpicture/2024/07/22bf1a7554fc4906bdeaa6536ffe514b_cut_175x68_241_1719916246.png" style="float: left; width: 150px; margin: 0 auto;
display: block;" width="175" alt="Trip Advisor 2024 certificate">
<img height="40" src="https://data.asiahighlights.com/image/forms/ah-ch-gh-tp-rating.png" style="width: 120px; height: auto; display: block;
float: right;" width="211" alt="Tour Review">
</div>
<div class="table-responsive" style="margin-bottom: 20px; margin-top: 30px;">
<table style="width: max-content;">
<tbody>
<tr>
<td class="hidden-xs feedback_logo">
<img class="img-responsive" height="69" src="https://images.chinahighlights.com/allpicture/2024/07/22bf1a7554fc4906bdeaa6536ffe514b_cut_175x68_241_1719916246.png" style="margin: 0px auto; " width="175" alt="Tour Review"> <img alt="Tour Review" class="img-responsive" height="278" src="https://images.asiahighlights.com/allpicture/2024/04/0c58b3494bc04eeb9c5d3bdf55e55fad_cut_200x111_241.jpg" style="width: 170px; display: block; margin: 10px auto 0px; " width="1133">
</td>
<?php foreach ($feedback_list as $index => $feedback) {?>
<td class="tour_feedback feedback_content">
<strong>
<?php echo $feedback['title'] ?>
</strong>
<img src="<?php if (strpos($feedback['url'], 'trustpilot.com') == true) { echo 'https://images.asiahighlights.com/allpicture/2024/04/eba8a46e43514b55bb4e1dd15d9b5712_cut_211x40_241.jpg'; } else if (strpos($feedback['url'], 'tripadvisor.com') == true) { echo 'https://images.asiahighlights.com/allpicture/2024/04/8bebcc898ce54b64a46ced58580966d4_cut_104x19_241.jpg'; } ?>" style="height: 17px; width: auto;" alt="Tour Review">
<p>
<?php echo $feedback['content'] ?>
</p>
<a href="<?php echo $feedback['url'] ?>" target="_blank" rel="nofollow">More</a>
<div class="customer_name">
<?php echo $feedback['customer'] ?>, <?php echo $feedback['createdOn'] ?>
</div>
</td>
<?php }?>
</tr>
</tbody>
</table>
</div>
Loading…
Cancel
Save