File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/template/module-page/theme-history.php
<?php
/**
* Template: 时间轴
* @Author: 大胡子
* @Email: dahuzi@xintheme.com
* @Link: www.xintheme.com
* @Date: 2023-08-01 07:27:28
* @Last Modified by: dahuzi
* @Last Modified time: 2024-08-18 23:26:38
*/
if(is_array($module_content)){?>
<div class="section"<?php if( !empty($module_setting['module_bg']) ){ echo ' style="background:url('.$module_setting['module_bg'].') no-repeat center 0 / cover;"';}?>>
<div class="container">
<?php
if( !empty($module_setting['title_display']) ){?>
<div class="section-title <?php echo $wow_style;?><?php if( !empty($module_setting['module_bg']) ){ echo ' text-colour-white';}?>">
<?php
if( !empty($module_title) ){
echo '<strong>'.$module_title.'</strong>';
}
if( !empty($module_desc) ){
echo '<p>'.$module_desc.'</p>';
}
?>
</div>
<?php }?>
<div class="main-timeline">
<?php
foreach ($module_content as $value) {
$item_date = $value['item_date'];
$item_title = $value['item_title'];
$item_desc = $value['item_desc'];
echo '<div class="timeline">';
echo '<div class="timeline-content">';
echo '<div class="content">';
if( !empty($item_date) ){
echo '<span class="year">'.$item_date.'</span>';
}
if( !empty($item_title) ){
echo '<h4 class="title">'.$item_title.'</h4>';
}
if( !empty($item_desc) ){
echo '<div class="description">'.wpautop($item_desc).'</div>';
}
echo '<div class="icon"></div>';
echo '</div>';
echo '</div>';
echo '</div>';
}?>
</div>
</div>
</div>
<?php }
//echo wpjam_print_r( $module_setting );
//echo wpjam_print_r( $module_content );
//echo wpjam_print_r( $module_style );