news.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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="{!! str_replace("''", '“', str_replace('"', '“', $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. <meta property="og:image:secure_url" content="{{env('APP_URL')}}/files/news/{{$news->image}}" />
  16. @stop
  17. @section('banner_top')
  18. @if(isset($news->page))
  19. @include('partials.page_adv', ['advs' => $news->page->getAdvs(), 'position' => 'Sopra'])
  20. @endif
  21. @stop
  22. @section('content')
  23. <style>
  24. .single-news p{
  25. margin-left:15px!important
  26. }
  27. </style>
  28. <div class="container" style="min-height: 450px;margin-top:50px;background-color: white;">
  29. <div class="row single-news">
  30. <div class="col-sm-9 single-news">
  31. <div class="row" style="margin-right:15px;">
  32. <img src="/files/news/{{$news->image}}" align="left" class="img-responsive" style="margin-left:15px; margin-right:15px;">
  33. <p>{{date("d/m/Y H:i", strtotime($news->date))}}</p>
  34. <h1 style="font-size:30px;margin-left:15px;">{{$news->title}}</h1>
  35. <p style="font-size:16px;">{!!$news->text!!}</p>
  36. </div>
  37. <h4>{!!$news->text_short!!}</h4>
  38. @if(sizeof($aImages) > 0)
  39. <br>
  40. <div class="title-section">
  41. <h1 style="width: 90%"><span>Galleria</span></h1>
  42. </div>
  43. @endif
  44. <div class="row gallery" style="margin-bottom: 15px;">
  45. @foreach($aImages as $idx => $img)
  46. <div class="col-sm-2 ">
  47. <a href="/files/news/{{$img}}"><img src="/files/news/{{$img}}" class="img-responsive"></a>
  48. </div>
  49. @endforeach
  50. </div>
  51. @if($news->video != '')
  52. <br>
  53. <div class="title-section">
  54. <h1 style="width: 90%"><span>Video</span></h1>
  55. </div>
  56. <div class="row" style="margin-top:30px; margin-left:0px;">
  57. {!! $news->video !!}
  58. </div>
  59. @endif
  60. @if($news->pdf != '')
  61. <br>
  62. <div class="title-section">
  63. <h1 style="width: 90%"><span>Documenti</span></h1>
  64. </div>
  65. <div class="center-button" style="float:left">
  66. <a href="/files/news/{{$news->pdf}}" target="_blank">VISUALIZZA</a>
  67. </div>
  68. @endif
  69. <div class="row" style="margin-top:30px;">
  70. <div class="col-md-2 col-xs-3">
  71. <div class="fb-share-button" data-href="{{url()->full()}}" data-layout="button_count"></div>
  72. </div>
  73. <div class="col-md-2 col-xs-6">
  74. <a class="twitter-share-button" href="https://twitter.com/intent/tweet">Tweet</a>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="col-sm-3" >
  79. <div class="title-section">
  80. <h1><span class="no-border">ULTIME NEWS</span></h1>
  81. </div>
  82. <div class="item">
  83. <ul class="list-posts">
  84. @foreach($elements as $e)
  85. <li>
  86. <div class="row">
  87. <div class="post-content col-md-12">
  88. <a href="/{{$e->slug}}"><img src="/files/news/{{$e->image}}" alt=""></a>
  89. <ul class="post-tags">
  90. <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($e->date))}}</li>
  91. </ul>
  92. <h2><a href="/{{$e->slug}}">{{$e->title}}</a></h2>
  93. </div>
  94. </div>
  95. </li>
  96. @endforeach
  97. </ul>
  98. </div>
  99. <div class="center-button">
  100. @if(isset($news->section))
  101. <a href="/{{$news->section->slug}}">ARCHIVIO NEWS</a>
  102. @else
  103. @if(isset($news->region_1))
  104. <a href="/{{$news->region_1->slug}}">ARCHIVIO NEWS</a>
  105. @else
  106. @if(isset($news->region_2))
  107. <a href="/{{$news->region_2->slug}}">ARCHIVIO NEWS</a>
  108. @else
  109. @endif
  110. @endif
  111. @endif
  112. </div>
  113. <br><br>
  114. <div class="title-section">
  115. <h4><span class="no-border">SEGUI CALCIO A 5 ANTEPRIMA SU</span></h4>
  116. </div>
  117. <div class="row">
  118. <div class="col-md-2 col-xs-4 text-center">
  119. <a href="https://it-it.facebook.com/calcioa5anteprima/"><img src="/images/facebook.png"></a>
  120. </div>
  121. <div class="col-md-2 col-xs-4 text-center">
  122. <a href="https://twitter.com/ca5anteprima"><img src="/images/twitter.png"></a>
  123. </div>
  124. <div class="col-md-2 col-xs-4 text-center">
  125. <a href="#"><img src="/images/instagram.png"></a>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <br><br>
  132. @stop
  133. @section('banner_bottom')
  134. @if(isset($news->page))
  135. @include('partials.page_adv', ['advs' => $news->page->getAdvs(), 'position' => 'Sotto'])
  136. @endif
  137. @stop
  138. @section('extra_js')
  139. <script type="text/javascript">
  140. $(document).ready(function() {
  141. $('.gallery').magnificPopup({
  142. delegate: 'a',
  143. type: 'image',
  144. closeOnContentClick: false,
  145. closeBtnInside: false,
  146. mainClass: 'mfp-with-zoom mfp-img-mobile',
  147. image: {
  148. verticalFit: true
  149. },
  150. gallery: {
  151. enabled: true
  152. },
  153. zoom: {
  154. enabled: true,
  155. duration: 300, // don't foget to change the duration also in CSS
  156. opener: function(element) {
  157. return element.find('img');
  158. }
  159. }
  160. });
  161. });
  162. </script>
  163. @stop