File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/template/module-page/theme-search.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-22 17:04:28
*/
if(!empty($module_content)){?>
<div class="container clearfix <?php echo $wow_style;?>">
<div class="hot">
<?php
//标题
if( !empty($module_title) && !empty($module_setting['title_display']) ){
echo '<strong>'.$module_title.'</strong>';
}
//关键词
foreach( $module_content as $tag){
echo '<a href="'.$tag['url'].'" target="_blank">'.$tag['text'].'</a>';
}?>
</div>
<?php
$remove_search = wpjam_theme_get_setting('remove_search');
if( !empty($module_setting['search']) && empty($remove_search) ){?>
<div class="hform">
<form name="formsearch" action="<?php echo esc_url(home_url('/'));?>">
<input name="s" type="text" placeholder="<?php echo __( '输入关键词进行搜索...', 'modular_theme' );?>">
<button type="submit" aria-label="search"><i class="ri-search-line"></i></button>
</form>
</div>
<?php }?>
</div>
<?php }?>
<?php
//echo wpjam_print_r( $module_setting );
//echo wpjam_print_r( $module_content );
//echo wpjam_print_r( $module_style );