| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/data/wwwroot/2025_10_31_03/runtime/index/temp/ |
Upload File : |
<?php /*a:1:{s:81:"/www/data/wwwroot/2025_10_31_03/app/index/view/default/public/header_top_nav.html";i:1745821923;}*/ ?>
<?php if(MyC('home_main_top_header_status', 1) == 1): ?>
<!-- 顶部导航条 start -->
<div class="header-top">
<div class="am-container header">
<ul class="top-nav-left top-nav-left-content am-hide-sm-only">
<div class="top-nav-items">
<div class="menu-hd">
<!-- 公共顶部小导航钩子-左侧前面 -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_begin</span>
</div>
<?php endif; if(!empty($plugins_view_header_navigation_top_left_begin_data) and is_array($plugins_view_header_navigation_top_left_begin_data)): foreach($plugins_view_header_navigation_top_left_begin_data as $hook): if(is_string($hook) or is_int($hook)): ?>
<?php echo $hook; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; if(empty($user)): ?>
<em class="first"><?php echo MyLang('common.header_top_nav_left_not_login_first'); ?></em>
<em class="site-name"><?php echo htmlentities((string) $home_site_name); ?></em>
<?php if(!empty($home_user_login_type)): ?>
[<a href="<?php echo MyUrl('index/user/logininfo'); ?>"><?php echo MyLang('common.login_title'); ?></a>]
<?php endif; if(!empty($home_user_reg_type)): ?>
[<a href="<?php echo MyUrl('index/user/reginfo'); ?>"><?php echo MyLang('common.register_title'); ?></a>]
<?php endif; else: ?>
<em class="first"><?php echo MyLang('common.header_top_nav_left_login_first'); ?></em>
<?php if(!empty($user['icon'])): ?>
<img src="<?php echo htmlentities((string) $user['icon']); ?>" class="common-user-icon" <?php if(!empty($user['icon_title'])): ?>title="<?php echo htmlentities((string) $user['icon_title']); ?>"<?php endif; ?> />
<?php endif; if(!empty($user['user_name_view'])): ?>
<em class="user"><?php echo htmlentities((string) $user['user_name_view']); ?></em>
<?php endif; ?>
<em class="last"><?php echo MyLang('common.header_top_nav_left_login_last'); ?></em>
<em class="site-name"><?php echo htmlentities((string) $home_site_name); ?></em>
<em class="logout"><a href="<?php echo MyUrl('index/user/logout'); ?>">[<?php echo MyLang('common.logout_title'); ?>]</a></em>
<?php endif; ?>
<!-- 公共顶部小导航钩子-左侧后面 -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_end</span>
</div>
<?php endif; if(!empty($plugins_view_header_navigation_top_left_end_data) and is_array($plugins_view_header_navigation_top_left_end_data)): foreach($plugins_view_header_navigation_top_left_end_data as $hook): if(is_string($hook) or is_int($hook)): ?>
<?php echo $hook; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</ul>
<div class="top-nav-left top-nav-left-site-logo am-show-sm-only">
<a href="<?php echo htmlentities((string) $home_url); ?>">
<img class="am-height" src="<?php echo htmlentities((string) $home_site_logo_wap); ?>" alt="<?php echo htmlentities((string) $home_site_name); ?>" />
</a>
</div>
<ul class="top-nav-right">
<!-- 公共顶部小导航钩子-右侧前面 -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_begin</span>
</div>
<?php endif; if(!empty($plugins_view_header_navigation_top_right_begin_data) and is_array($plugins_view_header_navigation_top_right_begin_data)): foreach($plugins_view_header_navigation_top_right_begin_data as $hook): if(is_string($hook) or is_int($hook)): ?>
<?php echo $hook; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<!-- 非首页则展示首页入口 -->
<?php if(MyC('home_header_top_is_home', 0) == 1 and $module_name.$controller_name.$action_name != 'indexindexindex'): ?>
<div class="top-nav-items top-nav-items-home">
<div class="menu-hd">
<a href="<?php echo htmlentities((string) $home_url); ?>">
<i class="iconfont icon-index"></i>
<span><?php echo MyLang('common.shop_home_title'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<!-- 右侧导航 -->
<?php if(!empty($common_nav_top_right_list) and is_array($common_nav_top_right_list)): foreach($common_nav_top_right_list as $nav): if(empty($nav['items'])): ?>
<div class="top-nav-items <?php if(!empty($nav['type'])): ?>top-nav-items-<?php echo htmlentities((string) $nav['type']); ?><?php endif; ?>">
<div class="menu-hd <?php if(isset($nav['is_login']) and $nav['is_login'] == 1 and empty($user)): ?>login-event<?php endif; ?>">
<a href="<?php if(empty($user)): ?>javascript:;<?php else: ?><?php echo htmlentities((string) $nav['url']); ?><?php endif; ?>">
<?php if(IsUrl($nav['icon'])): ?>
<img src="<?php echo htmlentities((string) $nav['icon']); ?>" class="nav-icon am-vertical-align-middle" />
<?php else: ?>
<i class="iconfont <?php echo htmlentities((string) $nav['icon']); ?> am-vertical-align-middle"></i>
<?php endif; ?>
<span class="am-vertical-align-middle"><?php echo htmlentities((string) $nav['name']); ?></span>
<?php if(isset($nav['badge']) and $nav['badge'] > -1): if($nav['badge'] > 0): ?>
<strong class="am-badge am-badge-danger am-round am-badge-tips <?php if(isset($nav['type']) and $nav['type'] == 'cart'): ?>common-cart-total<?php endif; ?>"><?php echo htmlentities((string) $nav['badge']); ?></strong>
<?php else: ?>
<strong class="am-round <?php if(isset($nav['type']) and $nav['type'] == 'cart'): ?>common-cart-total<?php endif; ?>"><?php echo htmlentities((string) $nav['badge']); ?></strong>
<?php endif; ?>
<?php endif; ?>
</a>
</div>
</div>
<?php else: ?>
<div class="top-nav-items <?php if(!empty($nav['type'])): ?>top-nav-items-<?php echo htmlentities((string) $nav['type']); ?><?php endif; ?>">
<div class="am-dropdown menu-hd" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" data-am-dropdown-toggle>
<?php if(IsUrl($nav['icon'])): ?>
<img src="<?php echo htmlentities((string) $nav['icon']); ?>" class="nav-icon am-vertical-align-middle" />
<?php else: ?>
<i class="iconfont <?php echo htmlentities((string) $nav['icon']); ?> am-vertical-align-middle"></i>
<?php endif; ?>
<span class="am-vertical-align-middle"><?php echo htmlentities((string) $nav['name']); ?></span>
<i class="am-icon-angle-down am-vertical-align-middle"></i>
</a>
<ul class="am-dropdown-content am-radius">
<?php foreach($nav['items'] as $navs): ?>
<!-- 是否为事件类型和事件值数据格式 -->
<?php if(isset($navs['event_type']) and isset($navs['event_value'])): ?>
<li class="nav-event-item" <?php if(!empty($navs['data_value'])): ?>data-value="<?php echo htmlentities((string) $navs['data_value']); ?>"<?php endif; ?>>
<?php if(isset($navs['event_type']) and isset($navs['event_value']) and in_array($navs['event_type'], [3,4])): switch($navs['event_type']): case "3": ?>
<!-- 地图 -->
<a href="javascript:;" <?php if(!empty($navs['event_value_data']) and isset($navs['event_value_data'][2]) and isset($navs['event_value_data'][3]) and $navs['event_value_data'][2] != 0 and $navs['event_value_data'][3] != 0): ?>class="submit-map-popup am-flex am-flex-items-center" data-lng="<?php echo htmlentities((string) $navs['event_value_data'][2]); ?>" data-lat="<?php echo htmlentities((string) $navs['event_value_data'][3]); ?>"<?php endif; ?>>
<p class="nav-images am-margin-right-xs" style="<?php if(!empty($navs['bg_color'])): ?>background:<?php echo htmlentities((string) $navs['bg_color']); ?>;<?php endif; ?>">
<?php if((!empty($navs['icon']) or !empty($navs['images_url'])) and !empty($navs['name'])): ?>
<img src="<?php if(!empty($navs['icon'])): ?><?php echo htmlentities((string) $navs['icon']); else: ?><?php echo htmlentities((string) $navs['images_url']); ?><?php endif; ?>" alt="<?php echo htmlentities((string) $navs['name']); ?>" class="am-width am-block" />
<?php endif; ?>
</p>
<?php break; case "4": ?>
<!-- 电话 -->
<a <?php if(!empty($navs['event_value'])): ?>href="tel:<?php echo htmlentities((string) $navs['event_value']); ?>"<?php else: ?>href="javascript:;"<?php endif; ?> class="am-flex am-flex-items-center">
<p class="nav-images am-margin-right-xs" style="<?php if(!empty($navs['bg_color'])): ?>background:<?php echo htmlentities((string) $navs['bg_color']); ?>;<?php endif; ?>">
<?php if((!empty($navs['icon']) or !empty($navs['images_url'])) and !empty($navs['name'])): ?>
<img src="<?php if(!empty($navs['icon'])): ?><?php echo htmlentities((string) $navs['icon']); else: ?><?php echo htmlentities((string) $navs['images_url']); ?><?php endif; ?>" alt="<?php echo htmlentities((string) $navs['name']); ?>" class="am-width am-block" />
<?php endif; ?>
</p>
<?php break; ?>
<?php endswitch; else: ?>
<!-- 默认url地址 -->
<a <?php if(!empty($navs['event_value'])): ?>href="<?php echo htmlentities((string) $navs['event_value']); ?>"<?php else: ?>href="javascript:;"<?php endif; ?> class="am-flex am-flex-items-center">
<p class="nav-images am-margin-right-xs" style="<?php if(!empty($navs['bg_color'])): ?>background:<?php echo htmlentities((string) $navs['bg_color']); ?>;<?php endif; ?>">
<?php if((!empty($navs['icon']) or !empty($navs['images_url'])) and !empty($navs['name'])): ?>
<img src="<?php if(!empty($navs['icon'])): ?><?php echo htmlentities((string) $navs['icon']); else: ?><?php echo htmlentities((string) $navs['images_url']); ?><?php endif; ?>" alt="<?php echo htmlentities((string) $navs['name']); ?>" class="am-width am-block" />
<?php endif; ?>
</p>
<?php endif; ?>
<p class="am-text-truncate"><?php echo htmlentities((string) $navs['name']); ?></p>
</a>
</li>
<?php else: ?>
<!-- 默认为标准名称和url格式 -->
<?php if(!empty($navs['name'])): ?>
<li class="<?php if(((isset($nav['is_login']) and $nav['is_login'] == 1) or (isset($navs['is_login']) and $navs['is_login'] == 1)) and empty($user)): ?>login-event<?php endif; ?>">
<a class="am-flex am-flex-items-center" href="<?php if(((isset($nav['is_login']) and $nav['is_login'] == 1) or (isset($navs['is_login']) and $navs['is_login'] == 1)) and empty($user)): ?>javascript:;<?php else: ?><?php echo htmlentities((string) $navs['url']); ?><?php endif; ?>">
<?php if(!empty($navs['icon']) or !empty($navs['images_url'])): ?>
<p class="nav-images am-margin-right-xs" >
<img src="<?php if(!empty($navs['icon'])): ?><?php echo htmlentities((string) $navs['icon']); else: ?><?php echo htmlentities((string) $navs['images_url']); ?><?php endif; ?>" alt="<?php echo htmlentities((string) $navs['name']); ?>" class="am-width am-block" />
</p>
<?php endif; ?>
<p class="am-text-truncate"><?php echo htmlentities((string) $navs['name']); ?></p>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<!-- 公共顶部小导航钩子-右侧后面 -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_end</span>
</div>
<?php endif; if(!empty($plugins_view_header_navigation_top_right_end_data) and is_array($plugins_view_header_navigation_top_right_end_data)): foreach($plugins_view_header_navigation_top_right_end_data as $hook): if(is_string($hook) or is_int($hook)): ?>
<?php echo $hook; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>
</div>
<!-- 顶部导航条 end -->
<?php endif; ?>