File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/template/module-page/theme-form.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-17 23:51:34
*/
if(is_array($module_content)){?>
<div class="section" <?php if( !empty($module_setting['bg_img']) ){ echo 'style="background: url('.$module_setting['bg_img'].') no-repeat center 0 / cover;"'; }?>>
<div class="container">
<?php
if( !empty($module_setting['title_display']) && $module_content['item_style'] == 'img' ){?>
<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="form-box <?php echo $wow_style;?><?php if($module_content['item_style'] == 'img'){echo ' form-img-style';}?>"<?php if(!empty($module_setting['radius'])){ echo ' style="--btn-radius:4px;--border-radius:'.$module_setting['radius'].'px;"';}?>>
<div class="form-left">
<?php
if($module_content['item_style'] == 'img'){
echo '<div class="form-img">';
echo '<img loading="lazy" src="'.$module_content['item_img'].'" alt="'.$module_title.'" />';
echo '</div>';
}
if($module_content['item_style'] == 'text'){
echo '<div class="form-text">';
if( !empty($module_setting['title_display']) && !empty($module_title) ){
echo '<h3>'.$module_title.'</h3>';
}
if( !empty($module_content['item_desc']) ){
echo wpautop($module_content['item_desc']);
}
echo '</div>';
}?>
</div>
<div class="form-right">
<?php
$form_title = $module_content['form_title'];
$form_id = $module_content['form_id'];
wpjam_render_form($form_id, $form_title);
?>
</div>
</div>
</div>
</div>
<?php }?>
<?php
//echo wpjam_print_r( $module_setting );
//echo wpjam_print_r( $module_content );
//echo wpjam_print_r( $module_style );