Advertisement
Guest User

Untitled

a guest
May 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. @if( isset( $highlights2 ) && count( $highlights2 ) )
  2. <div>
  3. <h2>{{ __('Em destaque','agif') }}</h2>
  4. <div class="home__highlights__cta">
  5. <a href="#" class="agif-button agif-button__wsymbol agif-button__wsymbol--top-right agif-button__wsymbol--green">{{ __('Ver Todos', 'agif') }}</a>
  6. </div>
  7. <div class="row">
  8. <div class="col-12 col-md-8">
  9. <a href="{!! get_permalink($highlights2[0]['detalhe']->ID) !!}">
  10. <picture >
  11. <source srcset="{{ App\imageResize($highlights2[0]['imagem']['url'], 600) }}, {{ App\imageResize($highlights2[0]['imagem']['url'], 1200) }} 2x" media="(min-width:376px)">
  12. <img src="{{ App\imageResize($highlights2[0]['imagem']['url'], 375) }}" srcset="{{ App\imageResize($highlights2[0]['imagem']['url'], 375) }}, {{ App\imageResize($highlights2[0]['imagem']['url'], 750) }} 2x" alt="{{ $highlights2[0]['introducao'] }}">
  13. </picture>
  14. <div>
  15. {!! $highlights2[0]['introducao'] !!}
  16. </div>
  17. </a>
  18. </div>
  19. @foreach ( $highlights2->slice(1) as $highlight2 )
  20. <div class="col-12 col-md-4">
  21. <div class="row no-gutters">
  22. <div class="col-12">
  23. <picture >
  24. <source srcset="{{ App\imageResize($highlight2['imagem']['url'], 600) }}, {{ App\imageResize($highlight2['imagem']['url'], 1200) }} 2x" media="(min-width:376px)">
  25. <img src="{{ App\imageResize($highlight2['imagem']['url'], 375) }}" srcset="{{ App\imageResize($highlight2['imagem']['url'], 375) }}, {{ App\imageResize($highlight2['imagem']['url'], 750) }} 2x" alt="{{ $highlight2['introducao'] }}">
  26. </picture>
  27. </div>
  28. </div>
  29. </div>
  30. @endforeach
  31. </div>
  32. </div>
  33. @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement