amp.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\helpers\Url;
  4. /**
  5. * @var $this \yii\web\View
  6. */
  7. ?>
  8. <?php $this->beginPage() ?>
  9. <!DOCTYPE html>
  10. <html amp lang="<?= Yii::$app->language ?>">
  11. <head>
  12. <meta charset="<?= Yii::$app->charset ?>">
  13. <meta name="robots" content="max-image-preview:large">
  14. <title><?= $this->title ?></title>
  15. <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  16. <link rel="shortcut icon" href="/img/favicon/favicon.svg" type="image/x-icon"/>
  17. <link rel="icon" type="image/svg+xml" href="/img/favicon/favicon.svg">
  18. <link href="https://fonts.googleapis.com/css?family=Roboto:200,300,400,500,700" rel="stylesheet" type="text/css">
  19. <!-- Required for AMP -->
  20. <script async src="https://cdn.ampproject.org/v0.js"></script>
  21. <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
  22. <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
  23. <script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
  24. <?=$this->context->scripts?>
  25. <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style>
  26. <noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  27. <?= str_replace(" ",' ',$this->render('amp/style')); ?>
  28. <!-- Required for AMP -->
  29. <?php $this->head() ?>
  30. </head>
  31. <body>
  32. <?php $this->beginBody() ?>
  33. <div class="main-content">
  34. <header class="amp-header ampstart-headerbar fixed flex justify-start items-center top-0 left-0 right-0 pl2 pr4" >
  35. <div role="button" aria-label="open sidebar" on="tap:header-sidebar.toggle" tabindex="0" class="ampstart-navbar-trigger pr2" >
  36. </div>
  37. <a href="<?= Url::to('/', 'https') ?>" class="amp-logo">
  38. <amp-img src="/img/amic-logo.svg" width="100" height="61.3" layout="fixed" class="my0 mx-auto" alt="The Blog" ></amp-img>
  39. </a>
  40. </header>
  41. <amp-sidebar id="header-sidebar" class="ampstart-sidebar px3" layout="nodisplay" >
  42. <div class="flex justify-start items-center ampstart-sidebar-header">
  43. <div role="button" aria-label="close sidebar" on="tap:header-sidebar.toggle" tabindex="0" class="ampstart-navbar-trigger items-start" >
  44. </div>
  45. </div>
  46. <ul class="list-reset m0 p0 ampstart-label" >
  47. <?= $this->render('amp/menu'); ?>
  48. </ul>
  49. <ul class="ampstart-sidebar-faq list-reset m0">
  50. <li>
  51. <a href="https://fmprod.ru/radiostantsii/item/evropa-plyus/" target="_blank" class="button_grey">
  52. <span class="button__icon">
  53. <span class="button__text tg">▶ Слушать радио</span>
  54. </span>
  55. </a>
  56. </li>
  57. <li>
  58. <a href="https://t.me/amic_ru" target="_blank" class="button_grey">
  59. <span class="button__icon">
  60. <svg style="width: 17px;height: 14px;" class="icon icon-tg"><use xlink:href="/svg/symbol/sprite-styled.svg#tg"></use></svg>
  61. </span>
  62. <span class="button__text tg">&nbsp;Телеграм</span>
  63. </a>
  64. </li>
  65. </ul>
  66. <ul class="ampstart-sidebar-faq list-reset m0">
  67. <li class="ampstart-faq-item">
  68. <a href="/" class="text-decoration-none">О сайте</a>
  69. </li>
  70. <li class="ampstart-faq-item">
  71. <a href="/amic_price_2023.pdf" class="text-decoration-none">Реклама на сайте</a>
  72. </li>
  73. </ul>
  74. </amp-sidebar>
  75. <!-- End Sidebar -->
  76. <!-- End Navbar -->
  77. <main id="content" role="main" class="">
  78. <article class="recipe-article">
  79. <div class="amp-content">
  80. <?= $content ?>
  81. </div>
  82. </article>
  83. </main>
  84. <?= $this->render('amp/ad'); ?>
  85. </div>
  86. <?= $this->render('amp/footer'); ?>
  87. <?= $this->render('amp/analytics'); ?>
  88. <?php $this->endBody() ?>
  89. </body>
  90. </html>
  91. <?php $this->endPage() ?>