File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/template/module-page/theme-about.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-05-07 13:57:22
*/
if(!empty($module_content)){?>
<div class="section">
<div class="container">
<?php
if( !empty($module_setting['title_display']) ){?>
<div class="section-title <?php echo $wow_style;?>">
<?php
if( !empty($module_title) ){
echo '<strong>'.$module_title.'</strong>';
}
if( !empty($module_desc) ){
echo '<p>'.$module_desc.'</p>';
}
?>
</div>
<?php
}
?>
<div class="md-about <?php echo $module_setting['about_style'];?>">
<?php
if( !empty($module_content['about_img']) ){
$get_image_alt = dahuzi_get_image_alt($module_content['about_img']) ?: '';
echo '<div class="'.$wow_style.' about-img">';
//图片
echo '<img loading="lazy" src="'.$module_content['about_img'].'" alt="'.$get_image_alt.'">';
//视频
if( !empty($module_content['about_video']) && $module_content['about_type'] == 'video' ){
?>
<a data-fancybox data-type="youtube" href="<?php echo $module_content['about_video'];?>" class="play-view" rel="nofollow" aria-label="Play Video">
<span class="video-play-icon"><i class="ri-video-fill"></i></span>
</a>
<?php }
echo '</div>';
}
?>
<div class="<?php echo $wow_style;?> about-text">
<?php
//标题
if( !empty($module_content['about_subtitle']) ){
echo '<h3>'.$module_content['about_subtitle'].'</h3>';
}
//描述
if( !empty($module_content['about_desc']) ){
echo wpautop($module_content['about_desc']);
}
//按钮
if( !empty($module_content['about_btn1_text']) || !empty($module_content['about_btn2_text']) ){
echo '<div class="btn">';
if( !empty($module_content['about_btn1_text']) ){
echo '<a href="'.$module_content['about_btn1_url'].'">'.$module_content['about_btn1_text'].'</a>';
}
if( !empty($module_content['about_btn2_text']) ){
echo '<a href="'.$module_content['about_btn2_url'].'">'.$module_content['about_btn2_text'].'</a>';
}
if( !empty($module_content['about_tel_title']) || !empty($module_content['about_tel_number']) ){
echo '<div class="about-tel">';
if( !empty($module_content['about_tel_title']) ){
echo '<span class="tel-title">'.$module_content['about_tel_title'].'</span>';
}
if( !empty($module_content['about_tel_number']) ){
echo '<span class="tel-number">'.$module_content['about_tel_number'].'</span>';
}
echo '</div>';
}
echo '</div>';
}?>
</div>
</div>
</div>
</div>
<?php }?>
<?php
//echo wpjam_print_r( $module_setting );
//echo wpjam_print_r( $module_content );
//echo wpjam_print_r( $module_style );