header-module.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <span class="menu-title">
  2. <i class="wi wi-apply"></i>应用
  3. </span>
  4. <span class="module-info-name">
  5. {if file_exists(IA_ROOT. "/addons/". $_W['current_module']['name']. "/icon-custom.jpg")}
  6. <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'">
  7. {else}
  8. <img src="{php echo tomedia("addons/".$_W['current_module']['name']."/icon.jpg")}" class="head-app-logo" onerror="this.src='./resource/images/gw-wx.gif'">
  9. {/if}
  10. <span class="name">{$_W['current_module']['title']}</span>
  11. </span>
  12. <div class="related-info dropdown module-related-info">
  13. </div>
  14. <script>
  15. $.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){
  16. $('.module-related-info').html(data);
  17. }, 'html');
  18. </script>
  19. <div class="related-info dropdown hidden">
  20. <div class="dropdown-toggle top-view" id="dropdownMenu" data-toggle="dropdown"><a href="javascript:;">公众号公众号</a><span class="caret"></span></div>
  21. <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
  22. <li>
  23. <a href="javascript:;">这是app</a>
  24. <span class="pipe">+</span>
  25. <a href="javascript:;">公众号</a>
  26. <span class="pipe">+</span>
  27. <a href="javascript:;">小程序</a>
  28. </li>
  29. </ul>
  30. </div>
  31. <!-- 兼容历史性问题:模块内获取不到模块信息$module的问题-start -->
  32. {if defined('CRUMBS_NAV') && CRUMBS_NAV == 1}
  33. {php global $module;}
  34. {/if}
  35. <!-- end -->