amic 1 year ago
parent
commit
f7d14a188b

+ 7 - 0
views/layouts/lenta/lenta.php

@@ -21,6 +21,13 @@ $keyadd = News::keyFilter();
 </div>
 ';
 */
+$lenta .= '<style>.lenta .list-wrapper .lenta_fix:hover{background:#60b740;}</style>
+<div class="lenta_fix"><h3>
+    <a href="https://%D0%BD%D0%B0%D1%80%D0%BE%D0%B4%D0%BD%D1%8B%D0%B9%D0%B7%D0%BD%D0%B0%D0%BA%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B0.%D1%80%D1%84" title="Народный знак качества"><img src="/img/nzk_button.png" width="275px" height="80px" alt="Народный знак качества"></a><div class="published_at"></div>
+</h3>
+</div>
+';
+
         $index = 0;
         foreach (News::findFilter()->andWhere(["(flags & 1)"=>0])->limit(70)->all() as $model){
             $index++;

+ 2 - 2
views/news/view.php

@@ -111,8 +111,8 @@ $GLOBALS['type_long'] = ($model->type == 6); //лонгрид
             <picture class="w-100 youtube-iframe-placeholder" data-link="<?=$model->getYoutubeEmbedLink()?>">
                 <source srcset="<?=$preview->getUrl(Image::SIZE_1040x586,"jpg")?>" media="(min-width: 600px)">
                 <source srcset="<?=$preview->getUrl(Image::SIZE_841x473,"webp")?>" media="(min-width: 600px)">
-                <source srcset="<?=$preview->getUrl(Image::SIZE_680x383,"webp")?>" media="(min-width: 400px)">
-                <img src="<?=$preview->getUrl(Image::SIZE_841x473)?>" alt="<?=$model->photo_title?>" srcset="<?=$preview->getUrl(Image::SIZE_841x473)?>, <?=$preview->getUrl(Image::SIZE_1040x586)?> 2x" class="w-100" loading="lazy">
+                <source srcset="<?=$preview->getUrl(Image::SIZE_680x383,"webp")?>" media="(min-width: 500px)">
+                <img src="<?=$preview->getUrl(Image::SIZE_841x473)?>" alt="<?=$model->photo_title?>" srcset="<?=$preview->getUrl(Image::SIZE_841x473)?> 841w, <?=$preview->getUrl(Image::SIZE_1040x586)?> 2x, <?=$preview->getUrl(Image::SIZE_680x383,"webp")?> 680w" class="w-100" loading="lazy">
             </picture>
         </div>
     </div>

+ 1 - 2
views/site/index/_main_view_item_slider.php

@@ -28,8 +28,7 @@ $className = 'main';
         <div class="picture-cont-16x9" >
             <a href="<?=$model->url?>" title="<?=htmlentities($model->title,ENT_QUOTES)?>">
                 <picture class="w-100" id="fimgb<?=$index?>" >
-                    <source srcset="<?=$preview->getUrl(Image::SIZE_841x473)?>?v=<?=$model->rev?>" media="(min-width: 600px)">
-                    <img src="<?=$preview->getUrl(Image::SIZE_841x473)?>?v=<?=$model->rev?>" srcset="<?=$preview->getUrl(Image::SIZE_320x180)?>?v=<?=$model->rev?> 320w,<?=$preview->getUrl(Image::SIZE_500x282)?>?v=<?=$model->rev?> 500w,<?=$preview->getUrl(Image::SIZE_680x383)?>?v=<?=$model->rev?> 680w" alt="<?=htmlentities($model->photo_title,ENT_QUOTES)?>" class="w-100" loading="lazy" id='mainphoto' <?=$sstr?>>
+                    <img src="<?=$preview->getUrl(Image::SIZE_841x473,'jpg')?>?v=<?=$model->rev?>" srcset="<?=$preview->getUrl(Image::SIZE_841x473,'webp')?>?v=<?=$model->rev?> 841w,<?=$preview->getUrl(Image::SIZE_320x180)?>?v=<?=$model->rev?> 320w,<?=$preview->getUrl(Image::SIZE_500x282)?>?v=<?=$model->rev?> 500w,<?=$preview->getUrl(Image::SIZE_680x383)?>?v=<?=$model->rev?> 680w" alt="<?=htmlentities($model->photo_title,ENT_QUOTES)?>" class="w-100" loading="lazy" id='mainphoto' <?=$sstr?>>
                 </picture>
             </a>
         </div>

BIN
web/img/nzk_button.jpg


BIN
web/img/nzk_button.png


+ 1 - 1
web/robots.txt

@@ -6,7 +6,7 @@ Disallow: /search
 Disallow: /go/*
 
 User-agent: Yandex
-Clean-param: news_id&archiv&NC&dd&mm&yy&C&id&email&amp_lite /*
+Clean-param: news_id&archiv&NC&dd&mm&yy&C&id&email&amp_lite&per-page /*
 Disallow: /news/preview
 
 Host: https://www.amic.ru