Commit 2acc1d1509a9236438e7c68f8fcffd27273c9fd8
1 parent
351fa8a5
Поменял новости с партнерами на главной + убрал кнопку в футере
Showing
2 changed files
with
55 additions
and
184 deletions
Show diff stats
frontend/views/layouts/main.php
| @@ -445,18 +445,7 @@ _________________________________________________________ --> | @@ -445,18 +445,7 @@ _________________________________________________________ --> | ||
| 445 | <footer id="footer"> | 445 | <footer id="footer"> |
| 446 | <div class="container"> | 446 | <div class="container"> |
| 447 | <div class="col-md-6 col-sm-12"> | 447 | <div class="col-md-6 col-sm-12"> |
| 448 | - <?php | ||
| 449 | - if (!empty($settings->about)) { | ||
| 450 | - ?> | ||
| 451 | - <h4><?php echo \Yii::t('app', 'About us'); ?></h4> | ||
| 452 | - <p><?php echo $settings->about; ?></p> | ||
| 453 | - <?php | ||
| 454 | - } | ||
| 455 | - ?> | ||
| 456 | - <a href="#" class="btn btn-template-transparent-primary modal-link" data-form="feedback-modal" data-toggle="modal"><?= \Yii::t( | ||
| 457 | - 'app', | ||
| 458 | - 'Contact us!' | ||
| 459 | - ) ?></a> | 448 | + |
| 460 | </div> | 449 | </div> |
| 461 | 450 | ||
| 462 | <div class="col-md-4 col-sm-12 col-md-offset-2"> | 451 | <div class="col-md-4 col-sm-12 col-md-offset-2"> |
frontend/views/site/index.php
| @@ -60,125 +60,65 @@ _________________________________________________________ --> | @@ -60,125 +60,65 @@ _________________________________________________________ --> | ||
| 60 | <!-- *** HOMEPAGE CAROUSEL END *** --> | 60 | <!-- *** HOMEPAGE CAROUSEL END *** --> |
| 61 | </section> | 61 | </section> |
| 62 | <?php }?> | 62 | <?php }?> |
| 63 | +<?php if (!empty($articles)){?> | ||
| 64 | + <section class="bar background-white no-mb"> | ||
| 65 | + <div class="container"> | ||
| 63 | 66 | ||
| 64 | -<!--<section class="bar background-white">--> | ||
| 65 | -<!-- <div class="container">--> | ||
| 66 | -<!-- <div class="col-md-12">--> | ||
| 67 | -<!-- <div class="heading text-center">--> | ||
| 68 | -<!-- <h2>--><?//=\Yii::t('app', 'Our advantages')?><!--</h2>--> | ||
| 69 | -<!-- </div>--> | ||
| 70 | -<!-- --> | ||
| 71 | -<!-- <div class="row">--> | ||
| 72 | -<!-- <div class="col-md-4">--> | ||
| 73 | -<!-- <div class="box-simple">--> | ||
| 74 | -<!-- <div class="icon">--> | ||
| 75 | -<!-- <i class="fa fa-desktop"></i>--> | ||
| 76 | -<!-- </div>--> | ||
| 77 | -<!-- <h3>Webdesign</h3>--> | ||
| 78 | -<!-- <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p>--> | ||
| 79 | -<!-- </div>--> | ||
| 80 | -<!-- </div>--> | ||
| 81 | -<!-- <div class="col-md-4">--> | ||
| 82 | -<!-- <div class="box-simple">--> | ||
| 83 | -<!-- <div class="icon">--> | ||
| 84 | -<!-- <i class="fa fa-print"></i>--> | ||
| 85 | -<!-- </div>--> | ||
| 86 | -<!-- <h3>Print</h3>--> | ||
| 87 | -<!-- <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p>--> | ||
| 88 | -<!-- </div>--> | ||
| 89 | -<!-- </div>--> | ||
| 90 | -<!-- <div class="col-md-4">--> | ||
| 91 | -<!-- <div class="box-simple">--> | ||
| 92 | -<!-- <div class="icon">--> | ||
| 93 | -<!-- <i class="fa fa-globe"></i>--> | ||
| 94 | -<!-- </div>--> | ||
| 95 | -<!-- <h3>SEO and SEM</h3>--> | ||
| 96 | -<!-- <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p>--> | ||
| 97 | -<!-- </div>--> | ||
| 98 | -<!-- </div>--> | ||
| 99 | -<!-- </div>--> | ||
| 100 | -<!-- --> | ||
| 101 | -<!-- <div class="row">--> | ||
| 102 | -<!-- <div class="col-md-4">--> | ||
| 103 | -<!-- <div class="box-simple">--> | ||
| 104 | -<!-- <div class="icon">--> | ||
| 105 | -<!-- <i class="fa fa-lightbulb-o"></i>--> | ||
| 106 | -<!-- </div>--> | ||
| 107 | -<!-- <h3>Consulting</h3>--> | ||
| 108 | -<!-- <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p>--> | ||
| 109 | -<!-- </div>--> | ||
| 110 | -<!-- </div>--> | ||
| 111 | -<!-- <div class="col-md-4">--> | ||
| 112 | -<!-- <div class="box-simple">--> | ||
| 113 | -<!-- <div class="icon">--> | ||
| 114 | -<!-- <i class="fa fa-envelope-o"></i>--> | ||
| 115 | -<!-- </div>--> | ||
| 116 | -<!-- <h3>Email Marketing</h3>--> | ||
| 117 | -<!-- <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p>--> | ||
| 118 | -<!-- </div>--> | ||
| 119 | -<!-- </div>--> | ||
| 120 | -<!-- <div class="col-md-4">--> | ||
| 121 | -<!-- <div class="box-simple">--> | ||
| 122 | -<!-- <div class="icon">--> | ||
| 123 | -<!-- <i class="fa fa-user"></i>--> | ||
| 124 | -<!-- </div>--> | ||
| 125 | -<!-- <h3>UX</h3>--> | ||
| 126 | -<!-- <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p>--> | ||
| 127 | -<!-- </div>--> | ||
| 128 | -<!-- </div>--> | ||
| 129 | -<!-- </div>--> | ||
| 130 | -<!-- </div>--> | ||
| 131 | -<!-- </div>--> | ||
| 132 | -<!--</section>--> | 67 | + <div class="col-md-12"> |
| 68 | + <div class="heading text-center"> | ||
| 69 | + <h2><?=\Yii::t('app', 'News')?></h2> | ||
| 70 | + </div> | ||
| 133 | 71 | ||
| 134 | -<!--<section class="bar background-pentagon no-mb">--> | ||
| 135 | -<!-- <div class="container">--> | ||
| 136 | -<!-- <div class="row showcase">--> | ||
| 137 | -<!-- <div class="col-md-3 col-sm-6">--> | ||
| 138 | -<!-- <div class="item">--> | ||
| 139 | -<!-- <div class="icon"><i class="fa fa-align-justify"></i>--> | ||
| 140 | -<!-- </div>--> | ||
| 141 | -<!-- <h4><span class="counter">580</span><br>--> | ||
| 142 | -<!-- --> | ||
| 143 | -<!-- Websites</h4>--> | ||
| 144 | -<!-- </div>--> | ||
| 145 | -<!-- </div>--> | ||
| 146 | -<!-- <div class="col-md-3 col-sm-6">--> | ||
| 147 | -<!-- <div class="item">--> | ||
| 148 | -<!-- <div class="icon"><i class="fa fa-users"></i>--> | ||
| 149 | -<!-- </div>--> | ||
| 150 | -<!-- <h4><span class="counter">100</span><br>--> | ||
| 151 | -<!-- --> | ||
| 152 | -<!-- Satisfied Clients</h4>--> | ||
| 153 | -<!-- </div>--> | ||
| 154 | -<!-- </div>--> | ||
| 155 | -<!-- <div class="col-md-3 col-sm-6">--> | ||
| 156 | -<!-- <div class="item">--> | ||
| 157 | -<!-- <div class="icon"><i class="fa fa-copy"></i>--> | ||
| 158 | -<!-- </div>--> | ||
| 159 | -<!-- <h4><span class="counter">320</span><br>--> | ||
| 160 | -<!-- --> | ||
| 161 | -<!-- Projects</h4>--> | ||
| 162 | -<!-- </div>--> | ||
| 163 | -<!-- </div>--> | ||
| 164 | -<!-- <div class="col-md-3 col-sm-6">--> | ||
| 165 | -<!-- <div class="item">--> | ||
| 166 | -<!-- <div class="icon"><i class="fa fa-font"></i>--> | ||
| 167 | -<!-- </div>--> | ||
| 168 | -<!-- <h4><span class="counter">923</span><br>--> | ||
| 169 | -<!-- --> | ||
| 170 | -<!-- Magazines and Brochures</h4>--> | ||
| 171 | -<!-- </div>--> | ||
| 172 | -<!-- </div>--> | ||
| 173 | -<!-- </div>--> | ||
| 174 | -<!-- --> | ||
| 175 | -<!-- </div>--> | ||
| 176 | -<!----> | ||
| 177 | -<!--</section>--> | ||
| 178 | 72 | ||
| 73 | + <!-- *** BLOG HOMEPAGE *** | ||
| 74 | + _________________________________________________________ --> | ||
| 179 | 75 | ||
| 180 | -<!-- /.bar --> | 76 | + <div class="row articles-flex"> |
| 77 | + <?php foreach ($articles as $article){?> | ||
| 78 | + <div class="col-md-3 col-sm-6"> | ||
| 79 | + <div class="box-image-text blog"> | ||
| 80 | + <div class="top"> | ||
| 81 | + <div class="image"> | ||
| 82 | + <?=ImageHelper::set($article->image->getPath()) | ||
| 83 | + ->cropResize(255, 191) | ||
| 84 | + ->quality(84) | ||
| 85 | + ->renderImage( | ||
| 86 | + [ | ||
| 87 | + 'alt' => $article->image->lang ? ( $article->image->lang->title || $article->title ) : $article->title, | ||
| 88 | + ] | ||
| 89 | + )?> | ||
| 90 | + </div> | ||
| 91 | + <div class="bg"></div> | ||
| 92 | + <div class="text"> | ||
| 93 | + <p class="buttons"> | ||
| 94 | + <a href="<?=Url::to(['alias' => $article->alias])?>" class="btn btn-template-transparent-primary"><i class="fa fa-link"></i><?=\Yii::t('app', 'Читать далее')?></a> | ||
| 95 | + </p> | ||
| 96 | + </div> | ||
| 97 | + </div> | ||
| 98 | + <div class="content"> | ||
| 99 | + <h4><a href="<?=Url::to(['alias' => $article->alias])?>"><?=$article->title?></a></h4> | ||
| 100 | + <p class="intro"><?=$article->body_preview?></p> | ||
| 101 | + <p class="read-more"><a href="<?=Url::to([ 'alias' => $article->alias])?>" class="btn btn-template-main"><?=\Yii::t('app', 'Читать далее')?></a> | ||
| 102 | + </p> | ||
| 103 | + </div> | ||
| 104 | + </div> | ||
| 105 | + <!-- /.box-image-text --> | ||
| 106 | + | ||
| 107 | + </div> | ||
| 108 | + <?php }?> | ||
| 109 | + </div> | ||
| 110 | + <!-- /.row --> | ||
| 111 | + | ||
| 112 | + <!-- *** BLOG HOMEPAGE END *** --> | ||
| 113 | + | ||
| 114 | + </div> | ||
| 115 | + | ||
| 116 | + </div> | ||
| 117 | + <!-- /.container --> | ||
| 118 | + </section> | ||
| 181 | 119 | ||
| 120 | +<?php }?> | ||
| 121 | +<!-- /.bar --> | ||
| 182 | 122 | ||
| 183 | <section class="bar background-gray no-mb"> | 123 | <section class="bar background-gray no-mb"> |
| 184 | <div class="container"> | 124 | <div class="container"> |
| @@ -195,62 +135,4 @@ _________________________________________________________ --> | @@ -195,62 +135,4 @@ _________________________________________________________ --> | ||
| 195 | </div> | 135 | </div> |
| 196 | </div> | 136 | </div> |
| 197 | </section> | 137 | </section> |
| 198 | -<?php if (!empty($articles)){?> | ||
| 199 | -<section class="bar background-white no-mb"> | ||
| 200 | - <div class="container"> | ||
| 201 | - | ||
| 202 | - <div class="col-md-12"> | ||
| 203 | - <div class="heading text-center"> | ||
| 204 | - <h2><?=\Yii::t('app', 'News')?></h2> | ||
| 205 | - </div> | ||
| 206 | - | ||
| 207 | - | ||
| 208 | - <!-- *** BLOG HOMEPAGE *** | ||
| 209 | -_________________________________________________________ --> | ||
| 210 | - | ||
| 211 | - <div class="row articles-flex"> | ||
| 212 | - <?php foreach ($articles as $article){?> | ||
| 213 | - <div class="col-md-3 col-sm-6"> | ||
| 214 | - <div class="box-image-text blog"> | ||
| 215 | - <div class="top"> | ||
| 216 | - <div class="image"> | ||
| 217 | - <?=ImageHelper::set($article->image->getPath()) | ||
| 218 | - ->cropResize(255, 191) | ||
| 219 | - ->quality(84) | ||
| 220 | - ->renderImage( | ||
| 221 | - [ | ||
| 222 | - 'alt' => $article->image->lang ? ( $article->image->lang->title || $article->title ) : $article->title, | ||
| 223 | - ] | ||
| 224 | - )?> | ||
| 225 | - </div> | ||
| 226 | - <div class="bg"></div> | ||
| 227 | - <div class="text"> | ||
| 228 | - <p class="buttons"> | ||
| 229 | - <a href="<?=Url::to(['alias' => $article->alias])?>" class="btn btn-template-transparent-primary"><i class="fa fa-link"></i><?=\Yii::t('app', 'Читать далее')?></a> | ||
| 230 | - </p> | ||
| 231 | - </div> | ||
| 232 | - </div> | ||
| 233 | - <div class="content"> | ||
| 234 | - <h4><a href="<?=Url::to(['alias' => $article->alias])?>"><?=$article->title?></a></h4> | ||
| 235 | - <p class="intro"><?=$article->body_preview?></p> | ||
| 236 | - <p class="read-more"><a href="<?=Url::to([ 'alias' => $article->alias])?>" class="btn btn-template-main"><?=\Yii::t('app', 'Читать далее')?></a> | ||
| 237 | - </p> | ||
| 238 | - </div> | ||
| 239 | - </div> | ||
| 240 | - <!-- /.box-image-text --> | ||
| 241 | - | ||
| 242 | - </div> | ||
| 243 | - <?php }?> | ||
| 244 | - </div> | ||
| 245 | - <!-- /.row --> | ||
| 246 | - | ||
| 247 | - <!-- *** BLOG HOMEPAGE END *** --> | ||
| 248 | - | ||
| 249 | - </div> | ||
| 250 | - | ||
| 251 | - </div> | ||
| 252 | - <!-- /.container --> | ||
| 253 | -</section> | ||
| 254 | 138 | ||
| 255 | -<?php }?> | ||
| 256 | -<!-- /.bar --> |