<?php /*a:1:{s:66:"D:\phpstudy\WWW\12xz\app\index\view/default\public\nav_search.html";i:1782629701;}*/ ?>
<?php if(MyC('home_main_logo_search_status', 1) == 1): ?>
    <!-- 搜索框 start -->
    <div class="nav-search white am-hide-sm-only">
        <div class="am-container">
            <div class="logo-big theme-data-edit-event" data-module="site_base">
                <a href="<?php echo htmlentities((string) $home_url); ?>">
                    <img src="<?php echo htmlentities((string) $home_site_logo); ?>" alt="<?php echo htmlentities((string) $home_site_name); ?>" />
                </a>
            </div>
            <!-- logo右侧 -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span>plugins_view_common_logo_right</span>
                </div>
            <?php endif; if(!empty($plugins_view_common_logo_right_data) and is_array($plugins_view_common_logo_right_data)): foreach($plugins_view_common_search_right_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                        <?php echo $hook; ?>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>

            <div class="search-bar">
                <!-- 公共搜索框内左侧 -->
                <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                    <div class="plugins-tag">
                        <span>plugins_view_common_search_inside_left</span>
                    </div>
                <?php endif; if(!empty($plugins_view_common_search_inside_left_data) and is_array($plugins_view_common_search_inside_left_data)): foreach($plugins_view_common_search_inside_left_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                            <?php echo $hook; ?>
                        <?php endif; ?>
                    <?php endforeach; ?>
                <?php endif; ?>

                <!-- 搜索框 -->
                <form action="<?php echo MyUrl('index/search/index'); ?>" method="POST">
                    <div class="search-group am-radius am-nbfc">
                        <input id="search-input" name="wd" type="text" placeholder="<?php echo MyLang('common.search_input_placeholder'); ?>" value="<?php if(!empty($params['wd'])): ?><?php echo htmlentities((string) $params['wd']); ?><?php endif; ?>" autocomplete="off" data-is-clearout="0" />
                        <button type="submit" id="ai-topsearch" class="submit am-btn-primary">
                            <span><?php echo MyLang('search_title'); ?></span>
                        </button>
                    </div>
                    <?php if(!empty($home_search_keywords)): ?>
                        <ul class="search-hot-keywords">
                            <?php foreach($home_search_keywords as $v): ?>
                                <li><a href="<?php echo MyUrl('index/search/index', ['wd'=>StrToAscii($v)]); ?>" target="_blank" rel="noopener noreferrer"><?php echo htmlentities((string) $v); ?></a></li>
                            <?php endforeach; ?>
                        </ul>
                    <?php endif; ?>
                </form>

                <!-- 公共搜索框内右侧 -->
                <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                    <div class="plugins-tag">
                        <span>plugins_view_common_search_inside_right</span>
                    </div>
                <?php endif; if(!empty($plugins_view_common_search_inside_right_data) and is_array($plugins_view_common_search_inside_right_data)): foreach($plugins_view_common_search_inside_right_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                            <?php echo $hook; ?>
                        <?php endif; ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </div>

            <!-- 公共搜索框右侧 -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span>plugins_view_common_search_right</span>
                </div>
            <?php endif; if(!empty($plugins_view_common_search_right_data) and is_array($plugins_view_common_search_right_data)): foreach($plugins_view_common_search_right_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                        <?php echo $hook; ?>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
    </div>
    <!-- 搜索框 end -->
<?php endif; ?>