page.blade.php 7.7 KB

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