Advertisement
svab0ni

Untitled

Dec 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.71 KB | None | 0 0
  1. <article class="b-article article-{{ $size }} @if($type['desktop'] == 'box')article-box @endif @if($type['desktop'] == 'inline')article-inline @endif @if($type['desktop'] == 'inline-image')article-inline-image @endif @if($type['mobile'] == 'box')article-box-xs @endif @if($type['mobile'] == 'inline')article-inline-xs @endif @if($color)color-{{ strtolower($color) }} @endif @if($active)article-active @endif">
  2.  
  3.     <?php
  4.         $href = "#";
  5.         if (isset($ads) && $ads)
  6.             $href = '';
  7.         if (isset($url))
  8.             $href = $url;
  9.     ?>
  10.         @if($type['desktop'] != 'inline')
  11.         <a href="{{ $href }}">
  12.             <div class="image">
  13.                 @if ($image['lazy'])
  14.                     @if (isset($image["url"]))
  15.                         @include('common.image-lazy', [
  16.                         "url" => $image["url"],
  17.                         "responsive" => $image["responsive"],
  18.                         "height" => $image["height"],
  19.                         "width" => $image["width"]
  20.                     ])
  21.                     @else
  22.                         @include('layouts.partials.misc.image-lazy', [
  23.                         "width" => $image['width'],
  24.                         "height" => $image['height'],
  25.                         "responsive" => $image['responsive'],
  26.                         "text" => $image['text'],
  27.                     ])
  28.                     @endif
  29.                 @else
  30.                     @if (isset($image["url"]))
  31.                         @include('common.image', [
  32.                         "url" => $image["url"],
  33.                         "responsive" => $image["responsive"],
  34.                         "width" => $image['width'],
  35.                         "height" => $image['height'],
  36.                     ])
  37.                     @else
  38.                         @include('layouts.partials.misc.image', [ "width" => $image['width'], "height" => $image['height'], "responsive" => $image['responsive'], "text" => $image['text'] ])
  39.                     @endif
  40.                 @endif
  41.                 @if($media['gallery'])
  42.                     <div class="media">
  43.                         @if(count($media['photo']) > 3 && $media['video'])
  44.                             <span>Foto / Video</span>
  45.                         @elseif(count($media['photo']) > 3)
  46.                             <span>Foto</span>
  47.                         @elseif($media['video'])
  48.                             <span>Video</span>
  49.                         @endif
  50.                     </div>
  51.                 @endif
  52.                 @if (isset($ads) && $ads)
  53.                     <div class="category"></div>
  54.                 @endif
  55.  
  56.             </div>
  57.         </a>
  58.     @endif
  59.     <div class="content">
  60.         @if($subtitle)
  61.             <h4 class="subtitle">{{ $subtitle }}</h4>
  62.         @endif
  63.         @if($title)
  64.             <h3 class="title"><a href="{{ (isset($url) && $url) ? $url : '#' }}">{{ $title }}</a></h3>
  65.         @endif
  66.  
  67.         @if (isset($ads) && $ads)
  68.             @if (isset($price))
  69.             <div class="price">{{ $price }} KM</div>
  70.             @endif
  71.         @endif
  72.     </div>
  73.     @if (isset($ads) && $ads)
  74.         @if (isset($reader_name))
  75.             <span class="user"><i class="icon icon-account"></i> <strong>{{ $reader_name }}</strong></span>
  76.         @endif
  77.     @endif
  78.     {{--@if($date)--}}
  79.         {{--<span class="date" data-date="{{ humanDate(str_replace('T', ' ', $date['format'])) }}">{{ humanDate(str_replace('T', ' ', $date['format'])) }}</span>--}}
  80.     {{--@endif--}}
  81.     @if (isset($live) && $live)
  82.         <span class="live">Live</span>
  83.     @endif
  84. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement