templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.     {#<!-- Stylesheets
  3.     ============================================= -->#}
  4.     {% block stylesheets %}
  5.         {{ parent() }}
  6.     {% endblock stylesheets %}
  7.     {#<!-- Document Title
  8.     ============================================= -->#}
  9.     {% block title %}{{ parent() }} {% endblock title %}
  10.     {% block navigation %}
  11.         {{ parent() }}
  12.     {% endblock navigation %}
  13.     {#<!-- Slider
  14.         ============================================= -->#}
  15.     {# SLIDER #}
  16.     {% block slider %}
  17.         {{ parent() }}
  18.     {% endblock slider %}
  19.     {#<!-- Content
  20.         ============================================= -->#}
  21.             {% block body %}
  22.                 {% include 'home/_slider.html.twig' %}
  23.                 <div class="container clearfix" style="margin-top: -50px; margin-bottom: -40px;">
  24.                     <div class="row clearfix">
  25.                         <div class="col-lg-12">
  26.                             <p style="font-family: Cormorant_Garamond_italic, serif;{# /*Cormorant Garamond*/ #}
  27.                                     color:#232d23;
  28.                                     font-size:30px;
  29.                                     line-height:50px;
  30.                                     text-align:center">
  31.                                 D’une superficie de 2236 Km2, les Comores, situées au débouché du canal de Mozambique au nord de Madagascar,
  32.                                 sont composées de quatre îles qui ne se sont pas formées en même temps,
  33.                                 mais suite à un phénomène migratoire du volcanisme il y a huit millions d’années, de l’Est à l’Ouest.
  34.                             </p>
  35.                         </div>
  36.                     </div>
  37.                 </div>
  38.                 {# Section testimoniale #}
  39.                 <section id="section-testimonials" class="section parallax mb-0 page-section dark"
  40.                          style="background-image: url('{{ asset('medel_assets/images/comores_office_du_tourisme.jpg') }}'); padding: 140px 0; background-size: cover"  data-bottom-top="background-position:0px 300px;" data-top-bottom="background-position:0px -300px;">
  41.                     <div class="container clearfix">
  42.                         <div class="row">
  43.                             <div class="col-lg-6">
  44.                                 <div class="heading-block border-bottom-0">
  45.                                     <h3
  46.                                         style="font-family: Cormorant_Garamond_italic, serif;
  47.                                         color:#ffae00;
  48.                                         text-shadow: 2px 2px 2px black;
  49.                                         font-size:30px;
  50.                                         line-height:50px;
  51.                                         text-align:center">
  52.                                         Une destination
  53.                                         à ne pas négliger</h3>
  54.                                 </div>
  55.                                 <div class="fslider restaurant-reviews" data-arrows="false" data-animation="slide">
  56.                                     <div class="flexslider">
  57.                                         <div class="slider-wrap">
  58.                                             <div class="slide">
  59.                                                 <p class="lead"
  60.                                                    style="font-family: Cormorant_Garamond_italic, serif;
  61.                                                             color:#ffffff;
  62.                                                             text-shadow: 2px 2px 2px black;
  63.                                                             font-size:30px;
  64.                                                             line-height:50px;
  65.                                                             text-align:center">
  66.                                                     "L’archipel des Comores ou les îles de la Lune, ressemble à un paysage
  67.                                                     sorti des contes des mille et une nuit.
  68.                                                     Un voyage dans le temps, dans les récits des Sultans venus de
  69.                                                     Perse et dans l'histoire d'une dynastie qui ne demande qu'à être découverte.
  70.                                                     <br/>
  71.                                                     Il y en a pour tous les goûts et de toutes les couleurs. Les âmes nomades qui veulent perdre pieds peuvent partir à la découverte de ses innombrables plages sauvages et sa richesse sous• marine.
  72.                                                     "
  73.                                                 </p>
  74.                                                 {#
  75.                                                 <span class="font-primary"><strong>John Doe</strong>, New York Magazine</span><br>
  76.                                                 <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star-half-full"></i>
  77.                                                 #}
  78.                                                 </div>
  79.                                             <div class="slide" style="font-family: Cormorant_Garamond_italic, serif;
  80.                                         color:#ffffff;
  81.                                         text-shadow: 2px 2px 2px black;
  82.                                         font-size:30px;
  83.                                         line-height:50px;
  84.                                         text-align:center">
  85.                                                 <p class="lead">"Les aventuriers en soif de découvertes peuvent
  86.                                                     S’enivrer dans ses terres et en découvrir les particularités à
  87.                                                     travers des randonnées sur les sentiers des rêves et de l'impossible.
  88.                                                     Les amoureux de l'histoire et de l'architecture peuvent se perdre dans ses Médinas et ses villes à l'allure de vieux comptoirs portuaires.
  89.                                                     "
  90.                                                 </p>
  91.                                             {# <span class="font-primary"><strong>Mary Jane</strong>, Chicago News</span><br>
  92.                                                 <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star-half-full"></i> <i class="icon-star-empty"></i>
  93.                                             #}
  94.                                             </div>
  95.                                             {#
  96.                                             <div class="slide">
  97.                                                 <p class="lead">"Healthcare forward-thinking public service, social innovation making progress. Arab Spring social analysis, equality treatment, diversification."</p>
  98.                                                 <span class="font-primary"><strong>Luis Frank</strong>, France</span><br>
  99.                                                 <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star3"></i> <i class="icon-star-empty"></i>
  100.                                             </div>
  101.                                             #}
  102.                                         </div>
  103.                                     </div>
  104.                                 </div>
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                 </section>
  109.                 <div class="container clearfix" style="margin-top: 40px;">
  110.                     <div class="row clearfix">
  111.                         <div class="col-lg-12">
  112.                             <!-- Tab Menu
  113.                             ============================================= -->
  114.                             <nav class="navbar navbar-expand-lg navbar-light p-0">
  115.                                 <h4 class="mb-0 pr-2 ls1 text-uppercase font-weight-bold">{% trans %}Visitez l'archipel des Comores{% endtrans %}</h4>
  116.                             </nav>
  117.                             <div class="line line-xs line-dark"></div>
  118.                             <!-- Articles
  119.                             ============================================= -->
  120.                             <div class="row col-mb-50 mb-0">
  121.                                 {% for img in imagesiles %}
  122.                                 <div class="col-md-3 mt-4">
  123.                                     <!-- Post Article -->
  124.                                     <div class="posts-md">
  125.                                         <div class="entry">
  126.                                             <div class="entry-image">
  127.                                                 {#{{ path('page_single', {id:entite_eco.id, 'nature_page':'entiteeconomique',slug: entite_eco.getSlug()}) }}#}
  128.                                                 {% if img.imagemenu %}
  129.                                                     <a href="
  130.                                                     {% if img.entiteeconomique %}
  131.                                                         {{ path('page_single', {id:img.entiteeconomique.id, 'nature_page':'entiteeconomique',slug: img.entiteeconomique.getSlug()}) }}
  132.                                                         {% else %}#{% endif %}">
  133.                                                         <img src="{{ vich_uploader_asset(img, 'imagemenuFile') | imagine_filter('format_ile_pg_accueil') }}" alt="{{ img.designation }}">
  134.                                                     </a>
  135.                                                 {% else %}
  136.                                                     <a href="{% if img.entiteeconomique %}
  137.                                                         {{ path('page_single', {id:img.entiteeconomique.id, 'nature_page':'entiteeconomique',slug: img.entiteeconomique.getSlug()}) }}
  138.                                                         {% else %}#{% endif %}">
  139.                                                         <img src="{{ asset('medel_assets/images/ontc_site/ile.png') }}" alt="Image 3">
  140.                                                     </a>
  141.                                                 {% endif %}
  142.                                                 <div class="entry-categories">
  143.                                                     <a href="{{ path('page_by_ile',{'ile':img.id}) }}" class="bg-lifestyle">
  144.                                                         {% trans %}Voir tout de l'île{% endtrans %}
  145.                                                     </a>
  146.                                                 </div>
  147.                                             </div>
  148.                                             <div class="entry-title title-sm nott">
  149.                                                 <h3 class="mb-2"><a href="#">{{ img.designation }}</a></h3>
  150.                                             </div>
  151.                                         </div>
  152.                                     </div>
  153.                                 </div>
  154.                                 {% endfor %}
  155.                             </div>
  156.                         </div>
  157.                     </div>
  158.                     <div class="row clearfix">
  159.                         <!-- Second Posts Area
  160.                         ============================================= -->
  161.                         <div class="col-lg-8">
  162.                             <!-- Gallery Slider
  163.                             ============================================= -->
  164.                             <div class="clearfix">
  165.                                 <h4 class="mb-2 ls1 text-uppercase font-weight-bold">À Découvrir</h4>
  166.                                 <div class="line line-xs line-market"></div>
  167.                                 <!-- Flex Thumbs Slider
  168.                                 ============================================= -->
  169.                                 <div class="fslider flex-thumb-grid grid-8 mt-4" data-pagi="false" data-speed="650" data-pause="3500" data-animation="fade" data-arrows="true" data-thumbs="true">
  170.                                     <div class="flexslider">
  171.                                         <div class="slider-wrap">
  172.                                             {% for carousel in carouselaccueil %}
  173.                                             <div class="slide" {% if carouselaccueil | length > 3 %}data-thumb="{{ vich_uploader_asset(carousel, 'imageFile') | imagine_filter('format_miniaturecarousel_accueil') }}"{% endif %}>
  174.                                                 <!-- Post Article -->
  175.                                                 <div class="entry mb-0">
  176.                                                     <img src="{{ vich_uploader_asset(carousel, 'imageFile') | imagine_filter('format_carousel_accueil') }}" alt="{{ carousel.designation }}">
  177.                                                     <div class="bg-overlay">
  178.                                                         <div class="bg-overlay-content text-overlay-mask dark desc-sm align-items-end justify-content-start p-4">
  179.                                                             <div class="position-relative w-100">
  180.                                                                 {% if carousel.categorie or carousel.enCategorie %}
  181.                                                                 <div class="entry-categories">
  182.                                                                     <a href="#" class="{{ carousel.couleurcategorie ? carousel.couleurcategorie : 'bg-tech' }}">
  183.                                                                         {% if app.request.locale == 'en' %}
  184.                                                                             {{ carousel.getEnCategorie() ? carousel.getEnCategorie() : carousel.categorie }}
  185.                                                                         {% else %}
  186.                                                                             {{ carousel.categorie ? carousel.categorie :'' }}
  187.                                                                         {% endif %}
  188.                                                                     </a>
  189.                                                                 </div>
  190.                                                                 {% endif %}
  191.                                                                 <div class="entry-title nott">
  192.                                                                     <h3 class="font-weight-semibold mb-2 ls0">
  193.                                                                         <a href="#" class="text-light">
  194.                                                                             {{ carousel.designation }}
  195.                                                                         </a>
  196.                                                                     </h3>
  197.                                                                 </div>
  198.                                                                 <div class="entry-meta no-separator">
  199.                                                                     <ul>
  200.                                                                         {#vérifions si c'est une URL ou c'est une entite econom#}
  201.                                                                         {% if carousel.url  %}
  202.                                                                             <li><i class="icon-check-circle"></i><a target="_blank" href="http://{{ carousel.url }}">{{ carousel.url ? carousel.url : carousel.entiteeconomique.designation }}</a></li>
  203.                                                                         {% elseif carousel.entiteeconomique %}
  204.                                                                             {#{{ path('page_single', {id:entite_eco.id, 'nature_page':'entiteeconomique',slug: entite_eco.getSlug()}) }}#}
  205.                                                                             <li><i class="icon-check-circle"></i>
  206.                                                                                 <a href="{{ path('page_single', {id:carousel.entiteeconomique.id, 'nature_page':'entiteeconomique',slug: carousel.entiteeconomique.getSlug()}) }}">
  207.                                                                                     {{ carousel.url ? carousel.url : carousel.entiteeconomique.designation }}
  208.                                                                                 </a>
  209.                                                                             </li>
  210.                                                                         {% else %}
  211.                                                                             <li><i class="icon-check-circle"></i><a target="_blank" href="{{ carousel.url ? carousel.url : '' }}">{{ carousel.url ? carousel.url : carousel.entiteeconomique.designation }}</a></li>
  212.                                                                         {% endif %}
  213.                                                                     </ul>
  214.                                                                 </div>
  215.                                                                 <ul class="entry-icons d-none d-sm-block">
  216.                                                                     {#<li><a href="#" class="icon-bookmark-empty"></a></li>#}
  217.                                                                     {% if is_granted('ROLE_SUPERADMIN') and getConnectedUser().email == "medel.youssouf@gmail.com" %}
  218.                                                                     <li><a href="#" class="icon-heart-empty"><span>18</span></a></li>
  219.                                                                     {% endif %}
  220.                                                                     {#<li><a href="#" class="icon-comment-alt"><span>3</span></a></li>#}
  221.                                                                     {% if is_granted("ROLE_ADMIN") %}
  222.                                                                     <li><a target="_blank" href="{{ path('admin_carouselaccueil_edit',{id:carousel.id}) }}" class="icon-pencil-alt"></a></li>
  223.                                                                     {% endif %}
  224.                                                                 </ul>
  225.                                                             </div>
  226.                                                         </div>
  227.                                                     </div>
  228.                                                 </div>
  229.                                             </div>
  230.                                             {% endfor %}
  231.                                         </div>
  232.                                     </div>
  233.                                 </div> <!-- Flex Slider End -->
  234.                             </div>
  235.                         </div>
  236.                         <!-- Second Sidebar
  237.                         ============================================= -->
  238.                         <div class="col-lg-4 sticky-sidebar-wrap mt-5 mt-lg-0">
  239.                             <div class="sticky-sidebar">
  240.                                 <!-- Sidebar Widget 1
  241.                                 ============================================= -->
  242.                                 <div class="widget widget_links clearfix" style="margin-bottom: -20px;">
  243.                                     <h4 class="mb-2 ls1 text-uppercase font-weight-bold">{% trans %}Accès rapide{% endtrans %}</h4>
  244.                                     <div class="line line-xs line-sports"></div>
  245.                                     <ul>
  246.                                         {% for lien in lien_par_nbr_click %}
  247.                                         <li class="d-flex align-items-center">
  248.                                             <a href="{{ path('page_redirect', {'number':'AINFCbYAAAAAYPmUMbFhnXYhV4N4roangXp4l3DUkNdD&oq' ,'parametremenu': lien.parametremenu}) }}" class="flex-fill">
  249.                                                 {% if app.request.locale == "en" %}
  250.                                                     {{ lien.getEnDesignation() ? lien.getEnDesignation() : lien.designation }}
  251.                                                 {% else %}
  252.                                                     {{ lien.designation }}
  253.                                                 {% endif %}
  254.                                             </a>
  255.                                             <span class="badge text-light bg-{{ lien.getCouleurtitre() }}">{{ lien.nombreclick }}</span>
  256.                                         </li>
  257.                                         {% endfor %}
  258.                                         </ul>
  259.                                 </div>
  260.                                 <!-- Sidebar Widget 2
  261.                                 ============================================= -->
  262.                                 <div class="widget clearfix">
  263.                                     <h4 class="mb-2 ls1 text-uppercase font-weight-bold">
  264.                                         {% trans %}Dans l'actu{% endtrans %}
  265.                                         {% if is_granted('ROLE_ADMIN') %}
  266.                                             <a target="_blank"
  267.                                                href="{{ path('admin_article_new') }}"
  268.                                                class="icon-plus-sign"
  269.                                                style="position: absolute; right: 0px;">
  270.                                             </a>
  271.                                         {% endif %}
  272.                                     </h4>
  273.                                     <div class="line line-xs line-lifestyle"></div>
  274.                                     <div class="posts-sm row col-mb-15">
  275.                                         {% for article in articles %}
  276.                                         <div class="entry col-12">
  277.                                             <div class="grid-inner row align-items-center no-gutters">
  278.                                                 <div class="col-auto">
  279.                                                     <div class="entry-image">
  280.                                                         {% set images = article.articleImages %}
  281.                                                         {% for image in images | filter(image => image.pourLaDescription == true) %}
  282.                                                             <a href="{{ path('evenement_single', {id : article.id, 'slug':article.getSlug()}) }}">
  283.                                                                 <img src="{{ vich_uploader_asset(image, 'imageFile') }}" alt="Image"></a>
  284.                                                         {% else %}
  285.                                                             <a href="{{ path('evenement_single', {id : article.id, 'slug':article.getSlug()}) }}">
  286.                                                                 <img src="{{ asset('medel_assets/images/ontc_site/evenements/small128x128.png') }}" alt="Image"></a>
  287.                                                         {% endfor %}
  288.                                                     </div>
  289.                                                 </div>
  290.                                                 <div class="col pl-3">
  291.                                                     <div class="entry-title">
  292.                                                         <h4 class="font-weight-semibold">
  293.                                                             <a href="{{ path('evenement_single', {id : article.id, 'slug':article.getSlug()}) }}">
  294.                                                                 {{ article.titre }}
  295.                                                             </a>
  296.                                                             {% if is_granted('ROLE_ADMIN') %}
  297.                                                                 <a href="{{ path('admin_article_edit', {id:article.id}) }}"
  298.                                                                    target="_blank"
  299.                                                                    class="color-sports">
  300.                                                                     <i class="icon-pencil-alt"></i>
  301.                                                                 </a>
  302.                                                             {% endif %}
  303.                                                         </h4>
  304.                                                     </div>
  305.                                                     <div class="entry-meta">
  306.                                                         <ul>
  307.                                                             <li><i class="icon-time"></i><a href="#">{{ article.DateAjoutAt | date('d-m-Y') }}</a></li>
  308.                                                             <li><i class="icon-affiliatetheme"></i>
  309.                                                                 <a href="{{ path('evenement_all', {'theme_id':article.theme.id}) }}">
  310.                                                                     {{ article.theme }}
  311.                                                                 </a>
  312.                                                             </li>
  313.                                                         </ul>
  314.                                                     </div>
  315.                                                 </div>
  316.                                             </div>
  317.                                         </div>
  318.                                         {% endfor %}
  319.                                         {% if articles | length >3 %}
  320.                                         <div class="entry col-12" style="margin-top: -10px;">
  321.                                             <small style="margin-left: 300px;"><a href=""> {% trans %}Voir plus +{% endtrans %}</a></small>
  322.                                         </div>
  323.                                         {% endif %}
  324.                                     </div>
  325.                                 </div>
  326.                                 {# NOUS SUIVRE #}
  327.                                 <div class="widget clearfix" >
  328.                                     <h4 class="mb-2 ls1 text-uppercase font-weight-bold">{% trans %}Nous suivre{% endtrans %}</h4>
  329.                                     <div class="line line-xs line-market"></div>
  330.                                     <div class="row center mt-4 clearfix">
  331.                                         <div class="col-3">
  332.                                             <a href="{{ getOptionssystem().getUrlFacebook() }}" target="_blank" class="social-icon si-dark float-none m-auto si-colored si-facebook">
  333.                                                 <i class="icon-facebook"></i>
  334.                                                 <i class="icon-facebook"></i>
  335.                                             </a>
  336.                                         </div>
  337.                                         <div class="col-3">
  338.                                             <a href="{{ getOptionssystem().getUrlTwitter() }}" target="_blank" class="social-icon si-dark float-none m-auto si-colored si-twitter">
  339.                                                 <i class="icon-twitter"></i>
  340.                                                 <i class="icon-twitter"></i>
  341.                                             </a>
  342.                                         </div>
  343.                                         <div class="col-3">
  344.                                             <a href="{{ getOptionssystem().getUrlInstagram() }}" target="_blank" class="social-icon si-dark float-none m-auto si-colored si-instagram">
  345.                                                 <i class="icon-instagram"></i>
  346.                                                 <i class="icon-instagram"></i>
  347.                                             </a>
  348.                                         </div>
  349.                                         <div class="col-3">
  350.                                             <a href="{{ getOptionssystem().getUrlYoutube() }}" target="_blank" class="social-icon si-dark float-none m-auto si-colored si-youtube">
  351.                                                 <i class="icon-youtube"></i>
  352.                                                 <i class="icon-youtube"></i>
  353.                                             </a>
  354.                                         </div>
  355.                                     </div>
  356.                                 </div>
  357.                                 <!-- Sidebar Widget 3
  358.                                 ============================================= -->
  359.                             </div>
  360.                         </div>
  361.                     </div>
  362.                 </div>
  363.             {% endblock body %}
  364.     {#<!-- #content end -->#}
  365.     {#<!-- Footer
  366.         ============================================= -->#}
  367.     {% block footer %}
  368.         {{ parent() }}
  369.     {% endblock footer %}
  370.     {#<!-- #footer end -->#}
  371.     {#<!-- JavaScripts
  372.     ============================================= -->#}
  373.     {% block javascripts %}
  374.         {{ parent() }}
  375.         {#<!-- SLIDER REVOLUTION 5.x SCRIPTS  -->#}
  376.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/jquery.themepunch.tools.min.js') }}"></script>
  377.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/jquery.themepunch.revolution.min.js') }}"></script>
  378.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.actions.min.js') }}"></script>
  379.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.carousel.min.js') }}"></script>
  380.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.kenburn.min.js') }}"></script>
  381.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.layeranimation.min.js') }}"></script>
  382.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.migration.min.js') }}"></script>
  383.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.navigation.min.js') }}"></script>
  384.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.parallax.min.js') }}"></script>
  385.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.slideanims.min.js') }}"></script>
  386.         <script type="text/javascript" src="{{ asset('medel_assets/include/rs-plugin/js/extensions/revolution.extension.video.min.js') }}"></script>
  387.         {#<!-- ADD-ONS JS FILES -->#}
  388.         <script>
  389.             var tpj=jQuery;
  390.             var revapi206;
  391.             tpj(document).ready(function() {
  392.                 if(tpj("#rev_slider_206_1").revolution == undefined){
  393.                     revslider_showDoubleJqueryError("#rev_slider_19_1");
  394.                 }else{
  395.                     revapi19 = tpj("#rev_slider_206_1").show().revolution({
  396.                         sliderType:"standard",
  397.                         jsFileLocation: "{{ asset('medel_assets/include/rs-plugin/js/') }}",
  398.                         sliderLayout:"fullwidth",
  399.                         dottedOverlay:"none",
  400.                         delay:9000,
  401.                         navigation: {
  402.                             keyboardNavigation:"off",
  403.                             keyboard_direction: "horizontal",
  404.                             mouseScrollNavigation:"off",
  405.                             onHoverStop:"off",
  406.                             touch: {
  407.                                 touchenabled: "on",
  408.                                 swipe_threshold: 75,
  409.                                 swipe_min_touches: 50,
  410.                                 swipe_direction: "horizontal",
  411.                                 drag_block_vertical: false
  412.                             }
  413.                             ,
  414.                             tabs: {
  415.                                 style:"metis",
  416.                                 enable:true,
  417.                                 width:250,
  418.                                 height:40,
  419.                                 min_width:249,
  420.                                 wrapper_padding:25,
  421.                                 wrapper_color:"",
  422.                                 wrapper_opacity:"0",
  423.                     {#tmp: '<div class="tp-tab-wrapper"><div class="tp-tab-number">{param1}</div>' +
  424.                                 '<div class="tp-tab-divider"></div><div class="tp-tab-title-mask">' +
  425.                                 '<div class="tp-tab-title">{title}</div></div></div>',#}
  426.                                 visibleAmount: 5,
  427.                                 hide_onmobile: true,
  428.                                 hide_under:480,
  429.                                 hide_onleave:false,
  430.                                 hide_delay:200,
  431.                                 direction:"vertical",
  432.                                 span:true,
  433.                                 position:"inner",
  434.                                 space:0,
  435.                                 h_align:"left",
  436.                                 v_align:"center",
  437.                                 h_offset:0,
  438.                                 v_offset:0
  439.                             }
  440.                         },
  441.                         carousel: {
  442.                             horizontal_align: "center",
  443.                             vertical_align: "center",
  444.                             fadeout: "on",
  445.                             vary_fade: "on",
  446.                             maxVisibleItems: 3,
  447.                             infinity: "on",
  448.                             space: 0,
  449.                             stretch: "off",
  450.                             showLayersAllTime: "off",
  451.                             easing: "Power3.easeInOut",
  452.                             speed: "800"
  453.                         },
  454.                         responsiveLevels:[1140,992,768,576],
  455.                         visibilityLevels:[1140,992,768,576],
  456.                         gridwidth:[850,700,400,300],
  457.                         gridheight:[580,600,500,400],
  458.                         lazyType:"single",
  459.                         shadow:0,
  460.                         spinner:"off",
  461.                         stopLoop:"on",
  462.                         stopAfterLoops:-1,
  463.                         stopAtSlide:-1,
  464.                         shuffle:"off",
  465.                         autoHeight:"off",
  466.                         disableProgressBar:"off",
  467.                         hideThumbsOnMobile:"off",
  468.                         hideSliderAtLimit:0,
  469.                         hideCaptionAtLimit:0,
  470.                         hideAllCaptionAtLilmit:0,
  471.                         debugMode:false,
  472.                         fallbacks: {
  473.                             simplifyAll:"off",
  474.                             nextSlideOnWindowFocus:"off",
  475.                             disableFocusListener:false,
  476.                         }
  477.                     });
  478.                 }
  479.             });    /* Revolution Slider End */
  480.             // Navbar on hover
  481.             $('.nav.tab-hover a.nav-link').hover(function() {
  482.                 $(this).tab('show');
  483.             });
  484.             // Current Date
  485.             var weekday = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
  486.                 month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  487.                 a = new Date();
  488.             jQuery('.date-today').html( weekday[a.getDay()] + ', ' + month[a.getMonth()] + ' ' + a.getDate() );
  489.             // Infinity Scroll
  490.             jQuery(window).on( 'load', function(){
  491.                 var $container = $('.infinity-wrapper');
  492.                 $container.infiniteScroll({
  493.                     path: '.load-next-portfolio',
  494.                     button: '.load-next-portfolio',
  495.                     scrollThreshold: false,
  496.                     history: false,
  497.                     status: '.page-load-status'
  498.                 });
  499.                 $container.on( 'load.infiniteScroll', function( event, response, path ) {
  500.                     var $items = $( response ).find('.infinity-loader');
  501.                     // append items after images loaded
  502.                     $items.imagesLoaded( function() {
  503.                         $container.append( $items );
  504.                         $container.isotope( 'insert', $items );
  505.                         setTimeout( function(){
  506.                             SEMICOLON.widget.loadFlexSlider();
  507.                         }, 1000 );
  508.                     });
  509.                 });
  510.             });
  511.             $('#oc-news').owlCarousel({
  512.                 items: 1,
  513.                 margin: 20,
  514.                 dots: false,
  515.                 nav: true,
  516.                 navText: ['<i class="icon-angle-left"></i>','<i class="icon-angle-right"></i>'],
  517.                 responsive:{
  518.                     0:{ items: 1,dots: true, },
  519.                     576:{ items: 1,dots: true },
  520.                     768:{ items: 2,dots:true },
  521.                     992:{ items: 2 },
  522.                     1200:{ items: 3 }
  523.                 }
  524.             });
  525.         </script>
  526.     {% endblock javascripts %}