page-footer.php 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. if (!isset($ShowPageFooter)) {
  3. $ShowPageFooter = true;
  4. }
  5. ?>
  6. </div>
  7. <?php if ($ShowPageFooter): ?>
  8. <div class="uoj-footer">
  9. <div class="btn-group dropright mb-3">
  10. <button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-toggle="dropdown">
  11. <span class="glyphicon glyphicon-globe"></span> <?= UOJLocale::get('_common_name') ?>
  12. </button>
  13. <div class="dropdown-menu">
  14. <a class="dropdown-item" href="<?= HTML::url(UOJContext::requestURI(), array('params' => array('locale' => 'zh-cn'))) ?>">中文</a>
  15. <a class="dropdown-item" href="<?= HTML::url(UOJContext::requestURI(), array('params' => array('locale' => 'en'))) ?>">English</a>
  16. </div>
  17. </div>
  18. <ul class="list-inline"><li class="list-inline-item"><?= UOJConfig::$data['profile']['oj-name'] ?></li></ul>
  19. <?php if (UOJConfig::$data['profile']['ICP-license'] != '' && preg_match_all('/(\d+\.?\d+)/', UOJConfig::$data['profile']['ICP-license'], $ICP_number)): ?>
  20. <p><a target="_blank" href="https://beian.miit.gov.cn" style="text-decoration:none;"><?= UOJConfig::$data['profile']['ICP-license'] ?></a></p>
  21. <?php endif ?>
  22. <p><?= UOJLocale::get('server time') ?>: <?= UOJTime::$time_now_str ?> | <a href="https://github.com/UniversalOJ/UOJ-System" target="_blank"><?= UOJLocale::get('opensource project') ?></a></p>
  23. </div>
  24. <?php endif ?>
  25. </div>
  26. </div>
  27. <!-- /container -->
  28. </body>
  29. </html>