news_event.blade.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @extends('layouts.frontend')
  2. @section('title')- {!! $news->meta_title != '' ? $news->meta_title : $news->title !!}@stop
  3. @section('meta')
  4. @if($news->meta_description != "")
  5. <meta name="description" content="{{$news->meta_description}}">
  6. @endif
  7. @if($news->meta_keywords != "")
  8. <meta name="keywords" content="{{$news->meta_keywords}}">
  9. @endif
  10. <meta property="og:url" content="{{url()->full()}}" />
  11. <meta property="og:type" content="website" />
  12. <meta property="og:title" content="{!! $news->title !!}" />
  13. <meta property="og:description" content="{{strip_tags($news->text)}}" />
  14. <meta property="og:image" content="{{env('APP_URL')}}/files/news/{{$news->image}}" />
  15. @stop
  16. @section('content')
  17. <div class="container" style="min-height: 450px;margin-top:50px;background-color: white;">
  18. <div class="row">
  19. <div class="col-sm-9 single-news">
  20. <img src="/files/news/{{$news->image}}" align="left" class="img-responsive">
  21. <h1>{{$news->title}}</h1>
  22. <h4>{!!$news->text_short!!}</h4>
  23. <p style="font-size:16px">{!!$news->text!!}</p>
  24. @if(sizeof($aImages) > 0)
  25. <br>
  26. <div class="title-section">
  27. <h1 style="width: 90%"><span>Galleria</span></h1>
  28. </div>
  29. @endif
  30. <div class="row gallery">
  31. @foreach($aImages as $idx => $img)
  32. <div class="col-sm-2 ">
  33. <a href="/files/news/{{$img}}"><img src="/files/news/{{$img}}" class="img-responsive"></a>
  34. </div>
  35. @endforeach
  36. </div>
  37. @if($news->video != '')
  38. <br>
  39. <div class="title-section">
  40. <h1 style="width: 90%"><span>Video</span></h1>
  41. </div>
  42. <div class="row" style="margin-top:30px">
  43. <iframe width="560" height="315" src="{{$news->video}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  44. </div>
  45. @endif
  46. @if($news->pdf != '')
  47. <br>
  48. <div class="title-section">
  49. <h1 style="width: 90%"><span>Documenti</span></h1>
  50. </div>
  51. <div class="center-button" style="float:left">
  52. <a href="/files/news/{{$news->pdf}}" target="_blank">VISUALIZZA</a>
  53. </div>
  54. @endif
  55. <br><br><br>
  56. <div class="fb-share-button" data-href="{{url()->full()}}" data-layout="button_count"></div>
  57. <a class="twitter-share-button" href="https://twitter.com/intent/tweet">Tweet</a>
  58. </div>
  59. <div class="col-sm-3" >
  60. <div class="title-section">
  61. <h1><span class="no-border">ULTIME NEWS</span></h1>
  62. </div>
  63. <div class="item">
  64. <ul class="list-posts">
  65. @foreach($elements as $e)
  66. <li>
  67. <div class="row">
  68. <a href="/{{$event->slug}}/{{$e->slug}}"><img src="/files/news/{{$e->image}}" alt=""></a>
  69. <div class="post-content">
  70. <h2><a href="/{{$event->slug}}/{{$e->slug}}">{{$e->title}}</a></h2>
  71. </div>
  72. </div>
  73. <div class="row">
  74. <ul class="post-tags">
  75. <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($e->date))}}</li>
  76. </ul>
  77. </div>
  78. </li>
  79. @endforeach
  80. </ul>
  81. </div>
  82. <div class="center-button">
  83. <a href="#">ARCHIVIO NEWS</a>
  84. </div>
  85. <br><br>
  86. <div class="title-section">
  87. <h4><span class="no-border">SEGUI CALCIO A 5 ANTEPRIMA SU</span></h4>
  88. </div>
  89. <div class="row">
  90. <div class="col-md-2">
  91. <a href="https://it-it.facebook.com/calcioa5anteprima/"><img src="/images/facebook.png"></a>
  92. </div>
  93. <div class="col-md-2">
  94. <a href="https://twitter.com/ca5anteprima"><img src="/images/twitter.png"></a>
  95. </div>
  96. <div class="col-md-2">
  97. <a href="#"><img src="/images/instagram.png"></a>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <br><br>
  104. @stop
  105. @section('extra_js')
  106. <script type="text/javascript">
  107. $(document).ready(function() {
  108. $('.gallery').magnificPopup({
  109. delegate: 'a',
  110. type: 'image',
  111. closeOnContentClick: false,
  112. closeBtnInside: false,
  113. mainClass: 'mfp-with-zoom mfp-img-mobile',
  114. image: {
  115. verticalFit: true
  116. },
  117. gallery: {
  118. enabled: true
  119. },
  120. zoom: {
  121. enabled: true,
  122. duration: 300, // don't foget to change the duration also in CSS
  123. opener: function(element) {
  124. return element.find('img');
  125. }
  126. }
  127. });
  128. });
  129. </script>
  130. @stop