You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

footer_content.tmpl 6.4 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <footer style="border-top:none;">
  2. <div class="ui container">
  3. <div class="ui grid">
  4. <div class="sixteen wide mobile wide tablet three wide computer column mobile-text-align-center">
  5. <img style="width:166px;height:66px;margin-top:24px;" src="/img/logo-footer.svg" />
  6. </div>
  7. <div class="sixteen wide mobile wide tablet seven wide computer column" style="padding-left:20px;">
  8. <div class="ui three column grid">
  9. <div class="column ui vertical text menu">
  10. <div class="header item">{{.i18n.Tr "custom.head.community"}}</div>
  11. <a href="https://openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.council"}}</a>
  12. <a href="https://openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.technical_committee"}}</a>
  13. <a href="https://openi.org.cn/html/Club/2019/0228/17.html" class="item">{{.i18n.Tr "custom.foot.join"}}</a>
  14. <a href="{{AppSubUrl}}/home/term/" class="item">{{.i18n.Tr "custom.foot.agreement"}}</a>
  15. </div>
  16. <div class="column ui vertical text menu">
  17. <div class="header item">{{.i18n.Tr "custom.foot.news"}}</div>
  18. <a href="https://openi.org.cn/html/news/dongtai/" class="item">{{.i18n.Tr "custom.foot.community_news"}}</a>
  19. <a href="https://openi.org.cn/html/news/huodong/" class="item">{{.i18n.Tr "custom.foot.member_news"}}</a>
  20. <a href="https://openi.org.cn/html/news/zixun/" class="item">{{.i18n.Tr "custom.foot.industry_advisory"}}</a>
  21. </div>
  22. <div class="column ui vertical text menu">
  23. <div class="header item">{{.i18n.Tr "custom.foot.help"}}</div>
  24. <div class="ui language bottom floating slide up dropdown link item">
  25. <i class="globe icon"></i>
  26. <div class="text">{{.LangName}}</div>
  27. <div class="menu">
  28. {{range .AllLangs}}
  29. <!-- <a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a> -->
  30. <a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="javascript:;" olang="{{$.Lang}}" lang="{{.Lang}}" >{{.Name}}</a>
  31. {{end}}
  32. </div>
  33. </div>
  34. <script>
  35. ;(function() {
  36. document.addEventListener('DOMContentLoaded', function() {
  37. $('.ui.language .menu .item').on('click', function() {
  38. var lang = $(this).attr('lang');
  39. var oLang = $(this).attr('olang');
  40. if (oLang === lang) return;
  41. var origin = window.location.origin;
  42. var pathname = window.location.pathname;
  43. var search = window.location.search;
  44. var hash = window.location.hash;
  45. var oHref = window.location.href;
  46. var urlSearchParams = new URLSearchParams(search);
  47. urlSearchParams.set('lang', lang);
  48. window.location.href = origin + pathname + '?' + urlSearchParams.toString() + hash;
  49. });
  50. });
  51. })();
  52. </script>
  53. <a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class="item" target="_blank"><i class="compass icon" ></i> {{.i18n.Tr "custom.Platform_Tutorial"}}</a>
  54. {{if .EnableSwagger}}<a href="/api/swagger" class="item"><i class="plug icon"></i> API</a>{{end}}
  55. {{if .IsSigned}}
  56. <a href="https://git.openi.org.cn/zeizei/OpenI_Learning/issues/new" class="item" target="_blank"><i class="envelope icon"></i> {{.i18n.Tr "custom.foot.advice_feedback"}}</a>
  57. {{else}}
  58. <a href="{{AppSubUrl}}/user/login" class="item"><i class="envelope icon"></i> {{.i18n.Tr "custom.foot.advice_feedback"}}</a>
  59. {{end}}
  60. <a href="{{AppSubUrl}}/resource_desc" class="item" target="_blank"><i class="server icon"></i> {{.i18n.Tr "custom.resource_description"}}</a>
  61. {{template "custom/extra_links_footer" .}}
  62. </div>
  63. </div>
  64. </div>
  65. <style>
  66. .contacts-qr-code-c {
  67. margin:2.0rem 0;
  68. display:flex !important;
  69. justify-content:flex-end;
  70. }
  71. </style>
  72. <div class="sixteen wide mobile wide tablet six wide computer column contacts-qr-code-c mobile-justify-content-center">
  73. <div style="text-align:center;">
  74. <div style="width:80px;height:80px;display:inline-block;
  75. background-image: url('https://openi.pcl.ac.cn/zeizei/OpenI_Learning/raw/branch/master/img/official_account_mini.png');
  76. background-repeat: no-repeat;
  77. background-attachment: scroll;
  78. background-position: -2px -2px;
  79. background-size: 84px 84px;
  80. background-color: transparent;"
  81. ></div>
  82. <p style="margin-top:4px;color:rgb(16, 16, 16);">{{.i18n.Tr "custom.foot.openi_subscription_number"}}</p>
  83. </div>
  84. <div style="text-align:center;margin-left:40px;">
  85. <div style="width:80px;height:80px;display:inline-block;
  86. background-image: url('https://openi.pcl.ac.cn/zeizei/OpenI_Learning/raw/branch/master/img/wechatgroup.jpg');
  87. background-repeat: no-repeat;
  88. background-attachment: scroll;
  89. background-position: -7px -25px;
  90. background-size: 94px 117px;
  91. background-color: transparent;"
  92. ></div>
  93. <p style="margin-top:4px;color:rgb(16, 16, 16);">{{.i18n.Tr "custom.foot.user_communication_group"}}</p>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="ui grid" style="margin-top:2rem;margin-bottom:2rem;border-top:1px solid #d6d6d6;">
  98. <div class="sixteen wide mobile sixteen wide tablet wide computer column" style=" margin:1.0rem 0;text-align:center;">
  99. {{.i18n.Tr "custom.foot.copyright"}} <a href="http://beian.miit.gov.cn/" target="_blank">京ICP备18004880号</a>
  100. <br>
  101. {{.i18n.Tr "home.powerdby"}}<a href="https://www.trustie.net/" target="_blank">Trustie确实</a>{{.i18n.Tr "、Gitea"}}
  102. <br>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="__go-top" style="display:none;z-index:100;width:44px;height:44px;bottom:50px;right:50px;background:rgba(16, 16, 16, 0.1);position:fixed;cursor:pointer;border-radius:5px;">
  107. <div style="display:flex;align-items:center;justify-content:center;height:100%;">
  108. <svg xmlns="http://www.w3.org/2000/svg" class="styles__StyledSVGIconPathComponent-sc-16fsqc8-0 mHEdk svg-icon-path-icon fill" viewBox="0 0 32 32" width="30" height="30"><defs data-reactroot=""></defs><g><path fill="rgba(16, 16, 16, 0.6)" d="M17.333 10.437v16.229h-2.667v-16.229l-7.152 7.152-1.885-1.885 10.371-10.371 10.371 10.371-1.885 1.885-7.152-7.152z"></path></g></svg>
  109. </div>
  110. </div>
  111. </footer>