人人商城

header-module.tpl.php 1.2KB

12345678910111213141516171819202122232425
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php global $_W;?>
  2. <?php if(file_exists(IA_ROOT. "/addons/". $_W['current_module']['name']. "/icon-custom.jpg")) { ?>
  3. <img src="<?php echo tomedia("addons/".$_W['current_module']['name']."/icon-custom.jpg")?>" class="head-app-logo" onerror="this.src='./resource/images/gw-wx.gif'">
  4. <?php } else { ?>
  5. <img src="<?php echo tomedia("addons/".$_W['current_module']['name']."/icon.jpg")?>" class="head-app-logo" onerror="this.src='./resource/images/gw-wx.gif'">
  6. <?php } ?>
  7. <span class="font-lg"><?php echo $_W['current_module']['title'];?></span>
  8. <div class="pull-right related-info module-related-info">
  9. </div>
  10. <?php if(!defined('SYSTEM_WELCOME_MODULE')) { ?>
  11. <script>
  12. $.post('./index.php?c=module&a=display&do=accounts_dropdown_menu', {'module_name': "<?php echo $_W['current_module']['name']?>", 'version_id': "<?php echo $_GPC['version_id']?>"}, function(data){
  13. $('.module-related-info').html(data);
  14. }, 'html');
  15. </script>
  16. <?php } ?>
  17. <!-- 兼容历史性问题:模块内获取不到模块信息$module的问题-start -->
  18. <?php if(defined('CRUMBS_NAV') && CRUMBS_NAV == 1) { ?>
  19. <?php global $module;?>
  20. <?php } ?>
  21. <!-- end -->