Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Ibochkarev/3fd802b96ab8613564f5158116866a4b to your computer and use it in GitHub Desktop.

Select an option

Save Ibochkarev/3fd802b96ab8613564f5158116866a4b to your computer and use it in GitHub Desktop.
Random chunks
{if $idx == 2}
<div class="maxus-news__item post pull-left" data-news-type="part">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="white"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{elseif $idx == 3}
<div class="maxus-news__item post pull-left" data-news-type="part">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="white"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{elseif $idx == 4}
<div class="maxus-news__item post pull-left" data-news-type="full">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="primary"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info hidden">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{elseif $idx == 5}
<div class="maxus-news__item post pull-left" data-news-type="full">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="danger"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info hidden">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{elseif $idx == 6}
<div class="maxus-news__item post pull-left" data-news-type="part">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="white"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{else}
<div class="maxus-news__item post pull-left" data-news-type="full">
<header class="entry-header maxus-news__img">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">
<img src="[[+medium]]" alt="[[+pagetitle]]">
<span class="maxus-news__overlay" data-color-class="info"></span>
</a>
</header>
<!-- /.entry-header -->
<div class="entry-content maxus-news__content">
<div class="maxus-news__wrap">
<div class="maxus-news__date-post">
<a href="#date" title="[[+publishedon:dateAgo=`{"dateNow":0}`]]">[[+publishedon:dateAgo=`{"dateNow":0}`]]</a>
</div>
<h2 class="maxus-news__title font-600">
<a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>
</h2>
<div class="maxus-news__info hidden">
<p class="maxus-news__desc">[[+introtext]]</p>
<a href="[[~[[+id]]]]" title="Читать далее">
<span>Читать далее</span>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
<!-- /.entry-content -->
</div>
<!-- /.maxus-news__item -->
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment