src/Notaris/FrontendBundle/Resources/views/subsite/detail.html.twig line 1

Open in your IDE?
  1. {% extends '@NotarisFrontend/layout2017.html.twig' %}
  2.     {%  set headtitle = '' %}
  3.     {% if notaryId is defined %}
  4.         {% set headtitle = info.header1  | replace({"<BR />":" "}) ~ " - " ~ subsite.pageTitle ~ " > " ~ titlesection.navigation %}
  5.     {% else %}
  6.         {% if section.meta.ogTitle %}
  7.             {% set headtitle = section.meta.ogTitle | raw ~ " | " %}
  8.         {% endif %}
  9.             {% set headtitle = headtitle ~ subsite.pageTitle ~ ' ' ~ 'alg_basetitle' | trans %}
  10.     {% endif %}
  11. {% if subsite.languageLinkSubsite is not null %}
  12.     {% if locale == 'nl' %}
  13.         {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite', {slug: subsite.slug}) %}
  14.         {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite', {slug: subsite.languageLinkSubsite.slug}) %}
  15.         {% if section.slug == 'privacy-policy-1' or  section.slug == 'privacy-policy' %}
  16.             {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite_detail', {slug: subsite.slug, slugdetail: 'privacy-policy-1'}) %}
  17.             {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite_detail', {slug: subsite.languageLinkSubsite.slug, slugdetail: 'privacy-policy'}) %}
  18.         {% endif %}
  19.         {% if section.slug == 'cookiebeleid' or section.slug == 'politique-des-cookies' %}
  20.             {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite_detail', {slug: subsite.slug, slugdetail: 'cookiebeleid'}) %}
  21.             {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite_detail', {slug: subsite.languageLinkSubsite.slug, slugdetail: 'politique-des-cookies'}) %}
  22.         {% endif %}
  23.     {% else %}
  24.         {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite', {slug: subsite.languageLinkSubsite.slug}) %}
  25.         {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite', {slug: subsite.slug}) %}
  26.         {% if section.slug == 'privacy-policy-1' or  section.slug == 'privacy-policy' %}
  27.             {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite_detail', {slug: subsite.languageLinkSubsite.slug, slugdetail: 'privacy-policy-1'}) %}
  28.             {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite_detail', {slug: subsite.slug, slugdetail: 'privacy-policy'}) %}
  29.         {% endif %}
  30.         {% if section.slug == 'cookiebeleid' or section.slug == 'politique-des-cookies' %}
  31.             {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite_detail', {slug: subsite.languageLinkSubsite.slug, slugdetail: 'cookiebeleid'}) %}
  32.             {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite_detail', {slug: subsite.slug, slugdetail: 'politique-des-cookies'}) %}
  33.         {% endif %}
  34.     {% endif %}
  35. {% endif %}
  36. {% if section.slug == 'notaris-be-contact' or section.slug == 'contact' %}
  37.     {% set linked_url_nl = url_nl ~ path('notaris_frontend_subsite_detail', {slug: 'contact', slugdetail: 'notaris-be-contact'}) %}
  38.     {% set linked_url_fr = url_fr ~ path('notaris_frontend_subsite_detail', {slug: 'nouveautes', slugdetail: 'contact'}) %}
  39. {% endif %}
  40. {% block title %}
  41.     <title>{{ headtitle }}</title>
  42. {% endblock %}
  43. {% if currentslug3 != '' %}
  44.     {% set canonicallink = url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_subsite_detail3', {slug: subsite.slug, slugdetail: currentslug, slugdetail2: currentslug2, slugdetail3: currentslug3}) %}
  45. {% elseif currentslug2 != '' %}
  46.     {% set canonicallink = url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_subsite_detail2', {slug: subsite.slug, slugdetail: currentslug, slugdetail2: currentslug2}) %}
  47. {% else %}
  48.     {% set canonicallink = url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_subsite_detail', {slug: subsite.slug, slugdetail: currentslug}) %}
  49. {% endif %}
  50. {% block extralinks %}
  51.     <link rel="canonical" href="{{ canonicallink }}"  />
  52. {% endblock %}
  53. {% block extrameta %}
  54.     {{ parent() }}
  55.     <meta name="keywords" content="{{ section.meta.metaKeywords }}"/>
  56.     <meta name="description" lang="{{ locale }}" content="{{ section.meta.metaDescription }}"/>
  57.     <meta property="og:type" content="website"/>
  58.     <meta property="og:url" content="{{ canonicallink }}"/>
  59.     {% if subsite.meta.ogTitle != '' %}
  60.         <meta property="og:title" content="{{ section.meta.ogTitle }}"/>
  61.     {% else %}
  62.         <meta property="og:title" content="{{ headtitle }}" />
  63.     {% endif %}
  64.     {% if section.meta.ogDescription != '' %}
  65.         <meta property="og:description" content="{{ section.meta.ogDescription }}"/>
  66.     {% else %}
  67.         <meta property="og:description" content="{{ subsite.meta.ogDescription }}" />
  68.     {% endif %}
  69. {% endblock %}
  70. {% block robots %}
  71.     {% if notaryId is not defined and (
  72.         (subsite.slug == 'gebruiksvoorwaarden' and section.slug == 'gdpr-gedragscode') or
  73.         (subsite.slug == 'conditions-dutilisation' and section.slug == 'code-de-conduite-rgpd')
  74.     ) %}
  75.         <meta name='robots' content='noindex,nofollow' />
  76.     {% else %}
  77.         {{ parent() }}
  78.     {% endif %}
  79. {% endblock %}
  80. {% block body %}
  81.     <section class="content u-padding-top-large">
  82.         {% set isPreview = false %}
  83.         {% if preview is defined %}
  84.             {% set isPreview = true %}
  85.         {% endif %}
  86.         {% if isPreview %}
  87.             <div id="preview-label">PREVIEW</div>
  88.         {% endif %}
  89.         {{ include('@NotarisFrontend/module/sidenav.html.twig', {'subsite': subsite, 'preview': isPreview }) }}
  90.         {% if subsite.slug == 'cookie_subsite' | trans and section.slug == 'cookie_section' | trans  %}
  91.         <div id="content-center-cookie" class="content-center-large {{ subsite.stylesheet }}">
  92.             <div id="content-center-header-cookie">
  93.                 <article class="niveau1">
  94.                     <div class="article-header u-padding-small u-word-wrap u-word-wrap-hyphens@mobile">
  95.                         <h1 class="u-text-lineheight-semilarge u-h2@desktop">{{ 'cookie_title' | trans }}</h1>
  96.                     </div>
  97.                     <div class="article-content js-cookie-form">
  98.                         <div class="o-layout__item u-1/1 u-margin-top-small u-padding-bottom-none">
  99.                             <div class="o-layout u-margin-bottom">
  100.                                 <div class="o-layout__item u-1/1 u-padding-bottom-tiny">
  101.                                     <div class="c-checkbox c-checkbox--disabled">
  102.                                         <div class="c-checkbox__wrapper u-margin-bottom-none">
  103.                                             <div class="c-dib">
  104.                                                 <input type="checkbox" name="cookies" id="functional" value="1" checked disabled>
  105.                                                 <label class="c-label js-required-label u-color-white" for="functional">
  106.                                                 <span class="c-checkbox__label">
  107.                                                     {{'alg_necessary_cookies'|trans|raw}}
  108.                                                 </span>
  109.                                                 </label>
  110.                                             </div>
  111.                                             <a href="#cookie-necessary" class="u-margin-left js-smooth-anchor">{{ 'cookie_more_info' | trans }}</a>
  112.                                         </div>
  113.                                     </div>
  114.                                 </div>
  115.                                 <div class="o-layout__item u-1/1 u-padding-bottom-tiny">
  116.                                     <div class="c-checkbox">
  117.                                         <div class="c-checkbox__wrapper u-margin-bottom-none">
  118.                                             <div class="c-dib">
  119.                                                 <input type="checkbox" name="cookies" id="statistic" value="2">
  120.                                                 <label class="c-label js-required-label u-color-white" for="statistic">
  121.                                                 <span class="c-checkbox__label">
  122.                                                     {{ 'alg_statistical_cookies'|trans|raw }}
  123.                                                 </span>
  124.                                                 </label>
  125.                                             </div>
  126.                                             <a href="#cookie-statistical" class="u-margin-left js-smooth-anchor">{{ 'cookie_more_info' | trans }}</a>
  127.                                         </div>
  128.                                     </div>
  129.                                 </div>
  130.                                 <div class="o-layout__item u-1/1 u-padding-bottom-tiny">
  131.                                     <div class="c-checkbox">
  132.                                         <div class="c-checkbox__wrapper u-margin-bottom-none">
  133.                                             <div class="c-dib">
  134.                                                 <input type="checkbox" name="cookies" id="social" value="3">
  135.                                                 <label class="c-label js-required-label u-color-white" for="social">
  136.                                                 <span class="c-checkbox__label">
  137.                                                     {{ 'alg_social_cookies'|trans|raw }}
  138.                                                 </span>
  139.                                                 </label>
  140.                                             </div>
  141.                                             <a href="#cookie-social" class="u-margin-left js-smooth-anchor">{{ 'cookie_more_info' | trans }}</a>
  142.                                         </div>
  143.                                     </div>
  144.                                 </div>
  145.                             </div>
  146.                             <div class="o-layout__item u-padding-left-none u-padding-bottom-none c-w-fc">
  147.                                 <a href="#" title="{{'alg_save_cookies'|trans|raw}}" class="js-cookies-all c-bar__action c-btn c-btn--default c-btn--small u-padding-custom">
  148.                                     <b>{{'alg_save_cookies'|trans|raw}}</b>
  149.                                 </a>
  150.                                     <p class="js-cookie-result u-hidden u-margin-left-none u-margin-top c-va">{{ 'cookie_save_result' | trans }}</p>
  151.                             </div>
  152.                         </div>
  153.                     </div>
  154.                 </article>
  155.                 <div id="cookie-intro"></div>
  156.             </div>
  157.         </div>
  158.         {% endif %}
  159.         <div id="content-center" class="content-right content-center-large {{ subsite.stylesheet }}">
  160.             {% if section.title != '' or section.description != '' %}
  161.                 <div id="content-center-header">
  162.                     {% set niveau = 'niveau1' %}
  163.                     {% if currentslug3 != '' %}
  164.                         {% set niveau = 'niveau3' %}
  165.                     {% elseif currentslug2 != '' %}
  166.                         {% set niveau = 'niveau2' %}
  167.                     {% endif %}
  168.                     <article class="{{ niveau }}">
  169.                         {% if section.title != '' and niveau == 'niveau1' %}
  170.                             <div class="article-header u-padding-small u-word-wrap u-word-wrap-hyphens@mobile">
  171.                                 <h1 class="u-text-lineheight-semilarge u-h2@desktop">{{ section.title | raw }}</h1> {# @TODO IONEL: SEO h1 --> for level1 this can stay h1 #}
  172.                             </div>
  173.                         {% endif %}
  174.                         {% if section.description %}
  175.                             <div
  176.                                 class="article-content{% if section.asset is not null and section.asset.assetImages | length > 0 %} paragraphnofloat{% endif %}">
  177.                                 {% if section.title != '' and niveau != 'niveau1' %}
  178.                                     <h1 class="u-text-lineheight-semilarge u-h2@desktop">{{ section.title | raw }}</h1> {# @TODO IONEL: SEO h1 --> this is used on pages for level2 this can stay h1 #}
  179.                                 {% endif %}
  180.                                 {% if section.asset is not null and section.asset.assetImages | length > 0 %}
  181.                                     <div class="imgbox">
  182.                                         {% set image =  '/uploads/' ~ section.asset.assetImages[0].image.locale ~ section.asset.assetImages[0].image.filename %}
  183.                                         {% set imgpath = image | imagine_filter('front_sections_intro_thumb') %}
  184.                                         <img src="{{ imgpath|replace({'http:': scheme_url~':'}) }}"
  185.                                              alt="{{ section.asset.assetImages[0].image.alt }}"/>
  186.                                         {% if section.asset.assetImages[0].image.caption != '' %}
  187.                                             <p>{{ section.asset.assetImages[0].image.caption }}</p>
  188.                                         {% endif %}
  189.                                     </div>
  190.                                 {% endif %}
  191.                                 {{ section.description | raw }}
  192.                                 {% if section.id == 2259 %}
  193.                                     <div class="o-flex o-flex--justify-center">
  194.                                         <a href="{{ 'md_societes_link' | trans| raw }}"
  195.                                            class="c-btn c-btn--small c-btn--primary c-btn--white-border u-text-center u-margin-bottom-tiny">{{ 'md_societes_cta_startmybusiness' | trans| raw }}</a>
  196.                                     </div>
  197.                                 {% endif %}
  198.                                 <div class="cleaner">&nbsp;</div>
  199.                             </div>
  200.                         {% else %}
  201.                             <!-- niveau 2 en 3 -->
  202.                             {% if section.title != '' and (niveau == 'niveau3' or niveau == 'niveau2') %}
  203.                                 <div class="article-content">
  204.                                     <h1 class="u-text-lineheight-semilarge u-h2@desktop">{{ section.title | raw }}</h1>
  205.                                 </div>
  206.                             {% endif %}
  207.                         {% endif %}
  208.                     </article>
  209.                 </div>
  210.             {% endif %}
  211.             <section id="info" class="">
  212.                 <div id="info-content" class="niveau1 info-faq-content accordion-content">
  213.                     {% for paragraph in paragraphs %}
  214.                         {% set havetitle = false %}
  215.                         {% set showAccordion = paragraph.type == 1 %}
  216.                         {% if showAccordion and paragraph.title != '' %} {# ACCORDION #}
  217.                             <div class="accordion {% if paragraph.accordionStatus == 1 %}.info-content-faq-active{% endif %}">
  218.                                 <a class="accordion-header info-content-faq-question" href="#">
  219.                                     <h2 class="accordion-header-text u-text-lineheight-semilarge u-h2@desktop s-cstm-setth2">{{ paragraph.title | raw }}<span class="accordion-arrow"></span></h2>
  220.                                     {% set havetitle = true %}
  221.                                     <div class="cleaner">&nbsp;</div>
  222.                                 </a>
  223.                         {% endif %}
  224.                         <article {% if paragraph.accordionStatus == 1 %}style="display: block;"{% elseif showAccordion %}style="display: none;"{% endif %}>
  225.                         {% if paragraph.title != '' and not havetitle %}  {# ACCORDION havetitle #}
  226.                             <h2 class="u-text-lineheight-semilarge u-h2@desktop s-cstm-setth2">{{ paragraph.title | raw }}</h2>
  227.                         {% endif %}
  228.                         {% if paragraph.subtitle != '' %}
  229.                             <h3 class="u-text-lineheight-semilarge u-h2@desktop s-cstm-spac">{{ paragraph.subtitle | raw }}</h3>
  230.                         {% endif %}
  231.                         {% if paragraph.asset is null or (paragraph.asset is not null and paragraph.asset.assetImages is not null and paragraph.asset.assetImages | length >1) or(paragraph.asset is not null and paragraph.asset.assetImages is not null and paragraph.asset.assetImages | length == 0) %}
  232.                             {{ paragraph.description | raw }}
  233.                         {% endif %}
  234.                         {% if paragraph.asset is not null %}
  235.                             {% if paragraph.asset.assetImages is not null %}
  236.                                 {% if paragraph.asset.assetImages | length == 1 and paragraph.description != '' %}
  237.                                     {% set image = paragraph.asset.assetImages[0] %}
  238.                                     <div class="movie-list-wrapper">
  239.                                         <a href="/uploads/{{ image.image.locale }}{{ image.image.filename }}"
  240.                                            class="movie-list js-fancybox" rel="js-fancybox-{{ section.id }}"
  241.                                            style="float: left;">
  242.                                             {#<a href="/{{image_path}}" {% if image.image.caption is not null %}title="{{image.image.caption}}" {% endif %}rel="js-fancybox-{{newsitem.id}}" class="o-tabpannel__content__imagelink js-fancybox">#}
  243.                                             <img src="/uploads/{{ image.image.locale }}{{ image.image.filename }}"
  244.                                                  {% if image.image.caption is not null %}alt="{{ image.image.alt }}" {% endif %}>
  245.                                         </a>
  246.                                         <div class="movie-list-right">
  247.                                             {{ paragraph.description | raw }}
  248.                                         </div>
  249.                                         <div class="cleaner">&nbsp;</div>
  250.                                     </div>
  251.                                 {% else %}
  252.                                     {% for image in paragraph.asset.assetImages %}
  253.                                         <a href="/uploads/{{ image.image.locale }}/{{ image.image.filename }}"
  254.                                            class=" js-fancybox"
  255.                                            {% if image.image.filename != '/paragraph/5b87f184d0045.png' %}rel="js-fancybox-{{ section.id }}"{% endif %}><img
  256.                                                 src="/uploads/{{ image.image.locale }}/{{ image.image.filename }}"
  257.                                                 {% if image.image.caption is not null %}alt="{{ image.image.alt }}" {% endif %}></a>
  258.                                         <br>
  259.                                         {% if image.image.caption is not null %}
  260.                                             <p>{{ image.image.caption }}</p>
  261.                                         {% endif %}
  262.                                     {% endfor %}
  263.                                 {% endif %}
  264.                             {% endif %}
  265.                             {% for video in paragraph.asset.assetVideoPaths %}
  266.                                 {% if video.videoPath.youtube != '' %}
  267.                                     <iframe
  268.                                         class="o-tabpannel__content__youtube js-tabpannel-youtube u-margin-bottom-small"
  269.                                         frameborder="0" allowfullscreen="1" title="YouTube video player" width="490"
  270.                                         height="280"
  271.                                         src="//www.youtube-nocookie.com/embed/{{ video.videoPath.youtube }}?enablejsapi=1&widgetid=1&rel=0"
  272.                                         kwframeid="2"></iframe>
  273.                                 {% else %}
  274.                                     {% set poster = "" %}
  275.                                     {% if video.asset.assetImages | length > 0 %}
  276.                                         {% set poster = '/uploads/' ~ locale ~ video.asset.assetImages[0].image.filename %}
  277.                                     {% endif %}
  278.                                     <video class="o-tabpannel__content__video js-tabpannel-video u-margin-bottom-small"
  279.                                            controls preload="auto" poster="{{ poster }}" width="100%" height="300">
  280.                                         <source src="/video/{{ locale }}/{{ video.videoPath.path }}">
  281.                                     </video>
  282.                                 {% endif %}
  283.                             {% endfor %}
  284.                             <div class="cleaner">&nbsp;</div>
  285.                             </article>
  286.                             {% if paragraph.asset and (paragraph.asset.assetLinks | length > 0 or paragraph.asset.assetAttachments | length > 0) %}
  287.                                 <article {% if paragraph.accordionStatus == 1 %}style="display: block;"{% elseif showAccordion %}style="display: none;"{% endif %}>
  288.                                     <ul>
  289.                                         {% for link in paragraph.asset.assetLinks %}
  290.                                             <li><a href="{{ link.link.url }}" title="{{ link.link.title }}"
  291.                                                    {% if link.link.newWindow %}target="_blank"{% endif %}>{% if link.link.title %}{{ link.link.title }}{% else %}{{ link.link.url }}{% endif %}</a>
  292.                                             </li>
  293.                                         {% endfor %}
  294.                                         {% for attachment in paragraph.asset.assetAttachments %}
  295.                                             {% set fileType = attachment.attachment.filename | split('.') %}
  296.                                             {% set fileType = fileType | last | upper %}
  297.                                             {% set title = attachment.attachment.title %}
  298.                                             {% if title == '' %}
  299.                                                 {% set title = attachment.attachment.originalFilename %}
  300.                                             {% endif %}
  301.                                             {% set foo = attachment.attachment.filename|split('/', 2) %}
  302.                                             {% if foo | length >= 1 %}{% set filename = foo[1] %}{% endif %}
  303.                                             {%  if filename is defined %}
  304.                                             <li>
  305.                                                 <a href="/download/{{ filename | url_encode }}"
  306.                                                    title="{{ title }}">{{ title | raw }}</a> ({{ fileType }}
  307.                                                 / {{ attachment.attachment.byte | bfos_format_bytes | replace({'.':','}) }}
  308.                                                 )
  309.                                             </li>
  310.                                             {% endif %}
  311.                                         {% endfor %}
  312.                                     </ul>
  313.                                 </article>
  314.                             {% endif %}
  315.                         {% else %}
  316.                             </article>
  317.                         {% endif %}
  318.                         {% if showAccordion and paragraph.title != '' %} {# ACCORDION #}
  319.                         </div>
  320.                         {% endif %}
  321.                     {% endfor %}
  322.                     {% if section.tags | length > 0 %}
  323.                         <div class="c-tags u-padding-small js-tags">
  324.                             {% for tag in section.tags %}
  325.                                 <a data-slug="{{ tag.slug }}"
  326.                                    data-tag-clicked="{{ path('notaris_frontend_tag_clicked') }}"
  327.                                    href="{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}"
  328.                                    title="{{ tag.name }}" class="c-tags__item"><small>{{ tag.name }}</small></a>
  329.                             {% endfor %}
  330.                         </div>
  331.                     {% endif %}
  332.                     <article class="socialmedia">
  333.                         <!-- archive -->
  334.                         <a href="" id="lees_later" name="{{ section.id }}">
  335.                             {% if isArchived %}
  336.                                 <img src="{{ 'sd_gearchiveer_btn' | trans | raw }}"
  337.                                      alt="{{ 'sd_archiveer' | trans | raw }}"
  338.                                      title="{{ 'sd_archiveer' | trans | raw }}">
  339.                             {% else %}
  340.                                 <img src="{{ 'sd_archiveer_btn' | trans | raw }}"
  341.                                      alt="{{ 'sd_archiveer' | trans | raw }}"
  342.                                      title="{{ 'sd_archiveer' | trans | raw }}">
  343.                             {% endif %}
  344.                         </a>
  345.                         <a href="{{ path('notaris_frontend_archive') }}" id="leeslater_icon" style="display: inline;">
  346.                             <img src="/images/icons/nlfr_icon_archief.jpg" alt="archief" title="archief">
  347.                         </a>
  348.                         <div class="spacer">&nbsp;</div>
  349.                         <!-- linkedin -->
  350.                         <!--<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
  351.                         <script type="IN/Share" data-url="{{ app.request.uri }}"  data-counter="right"></script>-->
  352.                         <!-- linkedin -->
  353.                         <a href="http://www.linkedin.com/shareArticle?url={{ app.request.uri }}&title={{ section.meta.ogTitle }}&summary={{ section.meta.ogDescription }}"
  354.                            target="_blank" class="share-btn linkedin">
  355.                             <img style="width:60px!important;height:20px;" src="/images/linkedin.png"/>
  356.                         </a>
  357.                         <!--<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
  358.                         <span class="IN-widget" style="line-height: 1; vertical-align: baseline; display: inline-block; text-align: center;"><span style="padding: 0px !important; margin: 0px !important; text-indent: 0px !important; display: inline-block !important; vertical-align: baseline !important; font-size: 1px !important;"><span id="li_ui_li_gen_1429700747675_0"><a id="li_ui_li_gen_1429700747675_0-link" href="javascript:void(0);"><span id="li_ui_li_gen_1429700747675_0-logo">in</span><span id="li_ui_li_gen_1429700747675_0-title"><span id="li_ui_li_gen_1429700747675_0-mark"></span><span id="li_ui_li_gen_1429700747675_0-title-text">Share</span></span></a></span></span><span style="padding: 0px !important; margin: 0px !important; text-indent: 0px !important; display: inline-block !important; vertical-align: baseline !important; font-size: 1px !important;"><span id="li_ui_li_gen_1429700747685_1-container" class="IN-right"><span id="li_ui_li_gen_1429700747685_1" class="IN-right"><span id="li_ui_li_gen_1429700747685_1-inner" class="IN-right"><span id="li_ui_li_gen_1429700747685_1-content" class="IN-right">1</span></span></span></span></span></span><script type="IN/Share+init" data-counter="right"></script>-->
  359.                         <div class="spacer">&nbsp;</div>
  360.                         <!-- facebook share -->
  361.                         {#<div class="fb-share-button fb_iframe_widget" data-type="button" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=&amp;container_width=0&amp;href=http%3A%2F%2Fwww.notaris.be%2Fhuwen-samenwonen%2Ftrouwen-of-samenwonen&amp;locale=en_US&amp;sdk=joey&amp;type=button"><span style="vertical-align: bottom; width: 56px; height: 20px;"><iframe name="f19f6e29" width="1000px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:share_button Facebook Social Plugin" src="//www.facebook.com/plugins/share_button.php?app_id=&amp;channel=https%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FKvoNGODIqPG.js%3Fversion%3D41%23cb%3Df2bea90684%26domain%3Dwww.notaris.be%26origin%3Dhttp%253A%252F%252Fwww.notaris.be%252Ff2dea76ecc%26relation%3Dparent.parent&amp;container_width=0&amp;href=http%3A%2F%2Fwww.notaris.be%2Fhuwen-samenwonen%2Ftrouwen-of-samenwonen&amp;locale=en_US&amp;sdk=joey&amp;type=button" style="border: none; visibility: visible; width: 56px; height: 20px;" class=""></iframe></span></div><script src="//static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>#}
  362.                         <div class="fb-share-button"
  363.                              data-href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}"
  364.                              data-layout="button"></div>
  365.                         <div class="spacer">&nbsp;</div>
  366.                         <!-- twitter share -->
  367.                         <a class="twitter-share-button" target="_blank"
  368.                            href="https://twitter.com/intent/tweet?text={{ 'alg_basetitle_nondash' | trans }}%20-%20{% if titlesection %}{{ titlesection.navigation | raw | url_encode }}{% endif %}&url={{ app.request.uri }}">
  369.                             <div class="u-display--inlineblock">
  370.                                 <div class="o-media__img u-margin-right-tiny">
  371.                                     <img src="{{ asset('/assets/images/icons/social/x-share-button-icon-not.svg') }}" alt="X Share" title="X Share" height="25" width="64" class="c-social--color"/>
  372.                                 </div>
  373.                             </div>
  374.                         </a>
  375.                         <div class="spacer">&nbsp;</div>
  376.                         <!-- google plus -->
  377.                         <!-- Plaats deze tag waar je de +1 knop wilt weergeven. -->
  378.                         <div class="g-plusone" data-annotation="inline" data-width="120"></div>
  379.                         {#<script type="text/javascript" src="https://apis.google.com/js/plusone.js" gapi_processed="true"></script><div id="___plusone_0" style="text-indent: 0px; margin: 0px; padding: 0px; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 106px; height: 24px; background: transparent;"><iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 106px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 24px;" tabindex="0" vspace="0" width="100%" id="I0_1429700747148" name="I0_1429700747148" src="https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&amp;origin={{ '//' ~ app.request.httpHost }}&amp;url={{ app.request.schemeAndHttpHost~app.request.requestUri }}&amp;gsrc=3p&amp;ic=1&amp;jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.nl.tQOPZ8vLcMc.O%2Fm%3D__features__%2Fam%3DIQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAGLTcCNrmclP6989W2pvRwZGglXaWR7UwA#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh&amp;id=I0_1429700747148&amp;parent={{ '//' ~ app.request.httpHost }}&amp;pfname=&amp;rpctoken=38244543" data-gapiattached="true" title="+1"></iframe></div>#}
  380.                         <div class="cleaner">&nbsp;</div>
  381.                     </article>
  382.                 </div>
  383.             </section>
  384.             {# dynamische cms modules #}
  385.             {{ include('@NotarisFrontend/module/mod_cms.html.twig', {'rightmodules': rightmodules }) }}
  386.         </div>
  387.         {#
  388.         <aside id="content-right">
  389.             {% if notaryId is defined %}
  390.                 {{ include('@NotarisFrontend/Sven/_sven_address.html.twig') }}
  391.             {% else %}
  392.                 {{ include('@NotarisFrontend/Module/notsearch_module.html.twig') }}
  393.             {% endif %}
  394.             {{ include('@NotarisFrontend/Module/Side/brochure.html.twig', {'hideDesktop': false, 'subsite': subsite.slug}) }}
  395.             {{ include('@NotarisFrontend/Module/mod_cms.html.twig', {'rightmodules': rightmodules }) }}
  396.         </aside>
  397.         #}
  398.         {% include '@NotarisFrontend/navigation/mobilesubnav.html.twig' with {'websiteSlug': subsite.slug, 'isSven':false, 'isHome':false, 'subsite': subsite} %}
  399.     </section>
  400. {% endblock %}
  401. {% block extrajs %}
  402.     <script>
  403.         // $.cookie('cookie-settings-statistics') === 'true' && applyAnalyticsJs();
  404.         // $.cookie('cookie-settings-social') === 'true' && applySocialJs();
  405.     </script>
  406. {#    <script type="text/javascript" src="/js/libs/jquery.cookie.js"></script>#}
  407.     <script>
  408.         //adresbook();
  409.         $(document).ready(function (e) {
  410.             $("a#leeslater_icon").fancybox({
  411.                 //'width'                : '7',
  412.                 'width': '90%',
  413.                 'height': '100%',
  414.                 'autoScale': false,
  415.                 'transitionIn': 'none',
  416.                 'transitionOut': 'none',
  417.                 'type': 'iframe',
  418.                 'fitToView': false,
  419.                 'autoSize': false,
  420.             });
  421.             $('#lees_later').click(function (event) {
  422.                 event.preventDefault();
  423. //                alert("leer later " + $(this).attr("name"));
  424.                 var list = new cookieList("leeslater");
  425.                 list.add($(this).attr("name"));
  426.                 $("a#leeslater_icon").css('display', 'inline');
  427.                 $("a#lees_later img").attr("src", "{{ 'sd_gearchiveer_btn' | trans | raw }}");
  428.             });
  429.             //kijken of er lees later pagina's zijn
  430.             //var list = new cookieList("leeslater");
  431.             $("a#leeslater_icon").css('display', 'inline');
  432.         });
  433.         //This is not production quality, its just demo code.
  434.         var cookieList = function (cookieName) {
  435.             //When the cookie is saved the items will be a comma seperated string
  436.             //So we will split the cookie by comma to get the original array
  437.             var cookie = $.cookie(cookieName);
  438.             //Load the items or a new array if null.
  439.             var items = cookie ? cookie.split(/,/) : new Array();
  440.             //Return a object that we can use to access the array.
  441.             //while hiding direct access to the declared items array
  442.             //this is called closures see http://www.jibbering.com/faq/faq_notes/closures.html
  443.             return {
  444.                 "add": function (val) {
  445.                     //Save the items to a cookie.
  446.                     //EDIT: Modified from linked answer by Nick see
  447.                     //      http://stackoverflow.com/questions/3387251/how-to-store-array-in-jquery-cookie
  448.                     //zorg dat je geen dubbels hebt in je array
  449.                     var ok = true;
  450.                     for (var i = 0; i < items.length; i++) {
  451.                         var value = items[i];
  452.                         if (value == val) {
  453.                             ok = false;
  454.                             break;
  455.                         }
  456.                     }
  457.                     if (ok) {
  458.                         //Add to the items.
  459.                         items.unshift(val);
  460.                         $.cookie(cookieName, items.join(','), {expires: 30, path: '/'});
  461.                     }
  462.                 },
  463.                 "remove": function (val) {
  464.                     //EDIT: Thx to Assef and luke for remove.
  465.                     indx = items.indexOf(val);
  466.                     if (indx != -1) items.splice(indx, 1);
  467.                     $.cookie(cookieName, items.join(','), {expires: 366, path: '/'});
  468.                 },  //expirers na 366 dagen
  469.                 "clear": function () {
  470.                     items = null;
  471.                     //clear the cookie.
  472.                     $.cookie(cookieName, null);
  473.                 },
  474.                 "items": function () {
  475.                     //Get all the items.
  476.                     return items;
  477.                 }
  478.             }
  479.         }
  480.     </script>
  481.     {#<script src="/js/video.js"></script>
  482.     <script>
  483.         videojs.options.flash.swf = "/js/video-js.swf";
  484.     </script>#}
  485. {% endblock %}