|
|
@@ -779,260 +779,7 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- @if (false)
|
|
|
-
|
|
|
- <div class="advertisement carousel slide" data-ride="carousel"
|
|
|
- style="margin-right:0px;padding-top:14px; margin-top:0px;margin-bottom:20px;">
|
|
|
- <div class="desktop-advert carousel-inner">
|
|
|
- @if ($home->banner_first_google != '')
|
|
|
- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
- <ins class="adsbygoogle" style="display:block"
|
|
|
- data-ad-client="ca-pub-0209495346002620"
|
|
|
- data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
|
|
|
- data-full-width-responsive="true"></ins>
|
|
|
- <script>
|
|
|
- (adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
- </script>
|
|
|
- @else
|
|
|
- @php
|
|
|
- $found = false;
|
|
|
- $count = 0;
|
|
|
- @endphp
|
|
|
- @if (isset($home->banner_first) && $home->banner_first != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url }}"><img
|
|
|
- src="/files/{{ $home->banner_first }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $count += 1;
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_2 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_2 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_3 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_3 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_4 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_4 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_5 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_5 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (!$found)
|
|
|
- <div class="widget"
|
|
|
- style="width:300px;height:250px;border:1px solid gray;"></div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div class="tablet-advert carousel-inner">
|
|
|
- @if ($home->banner_first_google != '')
|
|
|
- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
- <ins class="adsbygoogle" style="display:block"
|
|
|
- data-ad-client="ca-pub-0209495346002620"
|
|
|
- data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
|
|
|
- data-full-width-responsive="true"></ins>
|
|
|
- <script>
|
|
|
- (adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
- </script>
|
|
|
- @else
|
|
|
- @php
|
|
|
- $found = false;
|
|
|
- $count = 0;
|
|
|
- @endphp
|
|
|
- @if (isset($home->banner_first) && $home->banner_first != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url }}"><img
|
|
|
- src="/files/{{ $home->banner_first }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $count += 1;
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_2 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_2 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_3 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_3 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_4 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_4 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_5 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_5 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (!$found)
|
|
|
- <div class="widget"
|
|
|
- style="width:300px;height:250px;border:1px solid gray;">
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div class="mobile-advert carousel-inner">
|
|
|
- @if ($home->banner_first_google != '')
|
|
|
- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
- <ins class="adsbygoogle" style="display:block"
|
|
|
- data-ad-client="ca-pub-0209495346002620"
|
|
|
- data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
|
|
|
- data-full-width-responsive="true"></ins>
|
|
|
- <script>
|
|
|
- (adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
- </script>
|
|
|
- @else
|
|
|
- @php
|
|
|
- $found = false;
|
|
|
- $count = 0;
|
|
|
- @endphp
|
|
|
- @if (isset($home->banner_first) && $home->banner_first != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url }}"><img
|
|
|
- src="/files/{{ $home->banner_first }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $count += 1;
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_2 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_2 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_3 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_3 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_4 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_4 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
|
|
|
- <div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->banner_first_url_5 }}"><img
|
|
|
- src="/files/{{ $home->banner_first_5 }}" width="300"
|
|
|
- alt="" style="border:1px solid gray;"></a>
|
|
|
- </div>
|
|
|
- @php
|
|
|
- $found = true;
|
|
|
- @endphp
|
|
|
- @endif
|
|
|
- @if (!$found)
|
|
|
- <div class="widget"
|
|
|
- style="width:300px;height:250px;border:1px solid gray;">
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <!-- slider-caption-box -->
|
|
|
- <div class="slider-caption-box">
|
|
|
- <div class="title-section">
|
|
|
- <h1><span style="font-size:21px;">Video</span></h1>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="slide-video">
|
|
|
- <ul id="lightSlider">
|
|
|
- @foreach ($videos as $idx => $video)
|
|
|
- <li data-thumb="/files/videos/{{ $video->image }}">
|
|
|
- <a href="{{ $video->id }}" class="view-video">
|
|
|
- <img src="/files/videos/{{ $video->image }}"
|
|
|
- style="width:320px;height:200px;" />
|
|
|
- <div class="caption">
|
|
|
- <p>{{ $video->title }}</p>
|
|
|
- <p><small>{{ date('d/m/Y', strtotime($video->date)) }}</small>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- @endforeach
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="center-button" style="margin-top:20px;">
|
|
|
- <a href="/videos">ARCHIVIO VIDEO</a>
|
|
|
- </div>
|
|
|
- <!-- End slider-caption-box -->
|
|
|
- @endif
|
|
|
+
|
|
|
|
|
|
@if ($show_top)
|
|
|
<div class="advertisement carousel slide" data-ride="carousel"
|
|
|
@@ -2102,25 +1849,29 @@
|
|
|
setTimeout(function(){
|
|
|
window.location.reload(1);
|
|
|
}, 180000);*/
|
|
|
- if (max_count > 0) {
|
|
|
- /*$('body.bg-adv').click(function() {
|
|
|
- var url = $("#url" + count).val();
|
|
|
- document.location.href = url;
|
|
|
- })
|
|
|
- $('body>*').click(function(e) {
|
|
|
- e.stopPropagation()
|
|
|
- });*/
|
|
|
- setInterval(function() {
|
|
|
+ if ($( window ).width() > 800)
|
|
|
+ {
|
|
|
+ if (max_count > 0) {
|
|
|
+ /*$('body.bg-adv').click(function() {
|
|
|
+ var url = $("#url" + count).val();
|
|
|
+ document.location.href = url;
|
|
|
+ })
|
|
|
+ $('body>*').click(function(e) {
|
|
|
+ e.stopPropagation()
|
|
|
+ });*/
|
|
|
|
|
|
- count = count + 1;
|
|
|
- if (count == max_count)
|
|
|
- count = 0;
|
|
|
+ setInterval(function() {
|
|
|
|
|
|
- var img = $("#img" + count).val();
|
|
|
- $(".bg-adv").css("background-image", "url('/files/" + img + "')");
|
|
|
+ count = count + 1;
|
|
|
+ if (count == max_count)
|
|
|
+ count = 0;
|
|
|
|
|
|
+ var img = $("#img" + count).val();
|
|
|
+ $(".bg-adv").css("background-image", "url('/files/" + img + "')");
|
|
|
|
|
|
- }, 5000);
|
|
|
+
|
|
|
+ }, 5000);
|
|
|
+ }
|
|
|
}
|
|
|
$(function() {
|
|
|
$('.lazy').Lazy();
|