page.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. @extends('layouts.page')
  2. @section('meta')
  3. <meta property="og:url" content="{{url()->full()}}" />
  4. <meta property="og:type" content="website" />
  5. @if(isset($news))
  6. <meta property="og:title" content="{!! str_replace("''", '“', str_replace('"', '“', $news->title)) !!}" />
  7. <meta property="og:description" content="{{strip_tags($news->text)}}" />
  8. <meta property="og:image" content="{{env('APP_URL')}}/files/news/{{$news->image}}" />
  9. <meta property="og:image:secure_url" content="{{env('APP_URL')}}/files/news/{{$news->image}}" />
  10. @else
  11. <meta property="og:title" content="{{$page->title}}" />
  12. <meta property="og:description" content="" />
  13. <meta property="og:image" content="{{url()->current()}}/files/pages/{{$page->image}}" />
  14. @endif
  15. @stop
  16. @section('banner_top')
  17. @include('partials.page_adv', ['advs' => $page->getAdvs(), 'position' => 'Sopra'])
  18. @stop
  19. @section('content')
  20. <div class="container" style="min-height: 450px;margin-top:50px;">
  21. <div class="row">
  22. <div class="col-sm-9 single-page">
  23. @if(isset($news))
  24. @if($news->image != '')
  25. <div class="row">
  26. <img src="/files/news/{{$news->image}}" align="left" style="width:95%;margin-left:15px;">
  27. </div>
  28. @endif
  29. <p>{{date("d/m/Y H:i", strtotime($news->date))}}</p>
  30. <h1 style="font-size:30px;margin-top:20px;">{{$news->title}}</h1>
  31. <h5>{!!$news->text_short!!}</h5>
  32. <p>{!!$news->text!!}</p>
  33. @if(sizeof($aImages) > 0)
  34. <br>
  35. <div class="title-section">
  36. <h1 style="width: 90%"><span>Galleria</span></h1>
  37. </div>
  38. @endif
  39. <div class="row gallery">
  40. @foreach($aImages as $idx => $img)
  41. <div class="col-sm-2 ">
  42. <a href="/files/news/{{$img}}"><img src="/files/news/{{$img}}" class="img-responsive"></a>
  43. </div>
  44. @endforeach
  45. </div>
  46. @if($news->video != '')
  47. <br>
  48. <div class="title-section">
  49. <h1 style="width: 90%"><span>Video</span></h1>
  50. </div>
  51. <div class="row" style="margin-top:30px">
  52. <iframe width="560" height="315" src="{{$news->video}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  53. </div>
  54. @endif
  55. @endif
  56. <div class="fb-share-button" data-href="{{url()->full()}}" data-layout="button_count"></div>
  57. </div>
  58. <div class="col-sm-3 text-center" >
  59. @if ($page->image != '')
  60. <br><img src="/files/pages/{{$page->image}}" style="max-width:100px" />
  61. @endif
  62. <h4>{{$page->title}}</h4>
  63. @if($page->web != '')
  64. <p style:><a href="{{$page->web}}">{{$page->web}}</a></p>
  65. @endif
  66. @if($page->email != '')
  67. <p><a href="mailto:{{$page->email}}">{{$page->email}}</a></p><br />
  68. @endif
  69. @if($page->facebook != '')
  70. <a href="{{$page->facebook}}" class="fa fa-facebook" style="background: #3B5998;padding:10px;color:white;border-radius: 50%;width:35px; margin: 10px;"></a>
  71. @endif
  72. @if($page->twitter != '')
  73. <a href="{{$page->twitter}}" class="fa fa-twitter" style="background: #55ACEE;padding:10px;color:white;border-radius: 50%; margin: 10px;"></a>
  74. @endif
  75. @if($page->youtube != '')
  76. <a href="{{$page->youtube}}" class="fa fa-youtube" style="background: #bb0000;padding:10px;color:white;border-radius: 50%; margin: 10px;"></a>
  77. @endif
  78. @if($page->instagram != '')
  79. <a href="{{$page->instagram}}" class="fa fa-instagram" style="background: #125688;padding:10px;color:white;border-radius: 50%; margin: 10px;"></a>
  80. @endif
  81. <div class="item text-left" style="margin-top:20px;">
  82. <div class="title-section">
  83. <h1><span class="no-border">ALTRE NOTIZIE</span></h1>
  84. </div>
  85. <ul class="list-posts">
  86. @foreach($elements as $e)
  87. <li>
  88. <div class="row">
  89. <div class="post-content col-md-12">
  90. <a href="/{{$e->slug}}"><img src="/files/news/{{$e->image}}" alt=""></a>
  91. <ul class="post-tags">
  92. <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($e->date))}}</li>
  93. </ul>
  94. <h2 style="font-size: 14px"><a href="/{{$e->slug}}">{{strlen($e->title) <= 40 ? $e->title : substr($e->title, 0, 40) . '...'}}</a></h2>
  95. </div>
  96. </div>
  97. </li>
  98. @endforeach
  99. </ul>
  100. <div class="center-button">
  101. <a href="/{{$page->slug}}/elenco">ARCHIVIO NEWS</a>
  102. </div>
  103. <br><br>
  104. <div class="title-section">
  105. <h4><span class="no-border">SEGUI CALCIO A 5 ANTEPRIMA SU</span></h4>
  106. </div>
  107. <div class="row">
  108. <div class="col-md-2">
  109. <a href="https://it-it.facebook.com/calcioa5anteprima/"><img src="/images/facebook.png"></a>
  110. </div>
  111. <div class="col-md-2">
  112. <a href="https://twitter.com/ca5anteprima"><img src="/images/twitter.png"></a>
  113. </div>
  114. <div class="col-md-2">
  115. <a href="#"><img src="/images/instagram.png"></a>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <br><br>
  123. @stop
  124. @section('banner_bottom')
  125. @include('partials.page_adv', ['advs' => $page->getAdvs(), 'position' => 'Sotto'])
  126. @stop
  127. @section('extra_css')
  128. <style>
  129. .fa-p {
  130. padding: 15px;
  131. font-size: 15px;
  132. width: 20px;
  133. text-align: center;
  134. text-decoration: none;
  135. border-radius: 50%;
  136. }
  137. .fa-p:hover {
  138. opacity: 0.7;
  139. }
  140. .facebook {
  141. background: #3B5998;
  142. color: white;
  143. }
  144. .twitter {
  145. background: #55ACEE;
  146. color: white;
  147. }
  148. .fa-youtube-p {
  149. background: #bb0000;
  150. color: white;
  151. }
  152. .fa-instagram-p {
  153. background: #125688;
  154. color: white;
  155. }
  156. </style>
  157. @stop
  158. @section('extra_js')
  159. <script>
  160. $(function () {
  161. //$('.carouselSopra2').carousel()
  162. /*
  163. $('.carousello').owlCarousel({
  164. loop:true,
  165. nav:true
  166. })
  167. */
  168. });
  169. </script>
  170. @stop