main.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. use common\helpers\Html;
  3. use addons\TinyBlog\frontend\widgets\nav\NavWidget;
  4. use addons\TinyBlog\frontend\assets\AppAsset;
  5. AppAsset::register($this);
  6. /** @var \addons\TinyBlog\common\forms\SettingForm $setting */
  7. $setting = Yii::$app->tinyBlogService->config->setting();
  8. ?>
  9. <?php $this->beginPage() ?>
  10. <!DOCTYPE html>
  11. <html lang="<?= Yii::$app->language ?>">
  12. <head>
  13. <meta charset="<?= Yii::$app->charset ?>">
  14. <meta name="keywords" content="">
  15. <meta name="description" content="">
  16. <meta name="format-detection" content="telephone=no" />
  17. <meta name="format-detection" content="address=no" />
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <?php $this->registerCsrfMetaTags() ?>
  21. <title><?= Html::encode($setting->title . ' - ' . $this->title) ?></title>
  22. <?php $this->head() ?>
  23. </head>
  24. <body class="index">
  25. <?php $this->beginBody() ?>
  26. <div class="wrapper">
  27. <?= NavWidget::widget([]) ?>
  28. <?= $content ?>
  29. <!--页面底部-->
  30. <div class="footer">
  31. <div class="fademask"></div>
  32. <div class="wrap">
  33. <h3><a href="https://beian.miit.gov.cn" target="_blank"><?= $setting->web_site_icp; ?></a></h3>
  34. <h4><?= $setting->web_copyright; ?></h4>
  35. </div>
  36. </div>
  37. </div>
  38. <?php $this->endBody() ?>
  39. </body>
  40. <script type="text/javascript">
  41. $(".is-search").click(function () {
  42. $(".schfixed").toggleClass("on");
  43. });
  44. $(".menuico").click(function () {
  45. $(".menu").toggleClass("on");
  46. });
  47. $(".menuico").click(function () {
  48. $(".menuico").toggleClass("on");
  49. });
  50. var height = $(window).height() - 180;
  51. $(".main").css({
  52. 'min-height': height + 'px'
  53. });
  54. </script>
  55. </html>
  56. <?php $this->endPage() ?>
粤ICP备19079148号