解决静态更新日期错误问题,应该用信息修改时间而不是当前时间

hotfix/paypal-note
尹诚诚 3 years ago
parent 10901428f0
commit 651c55b7bd

@ -667,6 +667,7 @@ class Information extends CI_Controller
$data_H1['ic_photo'] = $information->ic_photo; $data_H1['ic_photo'] = $information->ic_photo;
$data_H1['breadcrumb_data'] = $breadcrumb_data; $data_H1['breadcrumb_data'] = $breadcrumb_data;
$data_H1['ads_by_google'] = $ads_by_google; $data_H1['ads_by_google'] = $ads_by_google;
$data_H1['ic_datetime'] = $information->ic_datetime;
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE); $template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template); $template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);

@ -15,7 +15,7 @@
</div> </div>
<div class="infotoptitle"> <div class="infotoptitle">
<h1 class="whitefont"><?php echo !empty($information->ic_title)?$information->ic_title:'H1 title asiahighlights mobile first template'; ?></h1> <h1 class="whitefont"><?php echo !empty($information->ic_title)?$information->ic_title:'H1 title asiahighlights mobile first template'; ?></h1>
<div class="authorupdate">By <strong><?php echo !empty($author)?$author->OPI_FirstName:'author nickname'; ?></strong>Updated <?php echo date("M. j, Y",time()); ?></div> <div class="authorupdate">By <strong><?php echo !empty($author)?$author->OPI_FirstName:'author nickname'; ?></strong>Updated <?php echo date("M. j, Y",$information->ic_datetime); ?></div>
</div> </div>
</div> </div>
</div> </div>

@ -15,7 +15,7 @@
</div> </div>
<h1><?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?></h1> <h1><?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?></h1>
<!--<p class="subheadline">to do</p> --> <!--<p class="subheadline">to do</p> -->
<div class="authorupdate">Written by <strong><?php echo !empty($author)?$author->OPI_FirstName:'author nickname'; ?></strong>Updated <?php echo date("M. j, Y",time()); ?></div> <div class="authorupdate">Written by <strong><?php echo !empty($author)?$author->OPI_FirstName:'author nickname'; ?></strong>Updated <?php echo date("M. j, Y",ic_datetime); ?></div>
<?php if ($ads_by_google) { ?> <?php if ($ads_by_google) { ?>
<style> <style>
#adsense-head-ads { #adsense-head-ads {

Loading…
Cancel
Save