templates/module/Jobs/__jobs-detail-bewerbung.html.twig line 1

Open in your IDE?
  1. {% extends 'module-layout.html.twig' %}
  2. {% block content %}
  3. {% if editmode %}
  4.     {{ include('includes/backend-kopf.html.twig') }}
  5.     {% set tabContentArray = {1: 'Optional'} %}
  6.     {% set tab = 1 %}
  7.     <div id="content">
  8.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  9.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  10.             {% endif %}
  11.             <section class="tabContent">
  12.                 <div style="float:right;">
  13.                     <p class="hl">Optionale Einstellung:</p>
  14.                     {% set element = 'artikel' %}
  15.                     <div id="{{ element }} ">
  16.                         {{ pimcore_multiselect(element, {
  17.                                 'width': 200,
  18.                                 'height': 100,
  19.                                 'store': [
  20.                                     ['abstand-top', 'Abstand nach oben'],
  21.                                     ['abstand-bottom', 'Abstand nach unten']
  22.                                 ]
  23.                             }) }}
  24.                     </div>
  25.                 </div>
  26.             </section>
  27.     </div>
  28.     {{ include('includes/backend-fuss.html.twig') }}
  29. {% else %}
  30.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  31.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  32.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  33.      {% set selfId = document.getId() %}
  34.     <div class="page-title abstand-bottom abstand-top">
  35.         <h1 class="font-bold">{{ twigParams['content_headline'] }}</h1>
  36.         <hr class="deco-underline"/>
  37.         <h4 class="font-bold text-center">{{ twigParams['content_subheadline'] }}</h4>
  38.     </div>
  39.     {% if twigParams['show_slider'] is not empty %}
  40.         {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true) %}
  41.         {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  42.         {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  43.         {#{% set sliderId = document.getId() %}#}
  44.         {% set showSnippetArray = [] %}
  45.         <div class="abstand-bottom abstand-top">
  46.             {% set areaBlock = pimcore_areablock("AreablockTop") %}
  47.             {% if areaBlock.isEmpty() == false %}
  48.                 <div class="constrainer-maxsize edgepadding">
  49.                     {{ areaBlock | raw }}
  50.                 </div>
  51.             {% endif %}
  52.             {% set lang = app.request.getLocale() %}
  53.             <div class="{{ abstandClasses }}">
  54.                 {% set random_gallery_id = random() %}
  55.                 <div class="constrainer-maxsize abstand-top abstand-bottom">
  56.                     <div class="owl-carousel owl-theme owl-nav-spacer" data-slider="{{ random_gallery_id }}" >
  57.                         {% for key, image_path in twigParams['galleryArray'] %}
  58.                             {% set imgPath = image_path.path %}
  59.                             {% set imgTitle = image_path.title %}
  60.                             <a class="chocolat-image" href="{{ imgPath }}" title="{{ imgTitle }}">
  61.                                 {% if imgPath is not empty %}
  62.                                     {% set lang = app.request.getLocale() %}
  63.                                     {{ imageResponsive({"src": imgPath,
  64.                                         "ausgabeformat": "img",
  65.                                         "endtag": true,
  66.                                         "language": lang }) | raw }}
  67.                                 {% endif %}
  68.                             </a>
  69.                         {% endfor %}
  70.                     </div>
  71.                 </div>
  72.                 <script type="text/javascript">
  73.                     (function () {
  74.                         var moduleName = 'teaser_slider_{{ random_gallery_id }}_module'; // naming convention XXX_module
  75.                         if (typeof selt === 'undefined') {
  76.                             selt = {
  77.                                 modules: {}
  78.                             };
  79.                         } else if (!selt.modules) {
  80.                             selt.modules = {};
  81.                         }
  82.                         selt.modules[moduleName] = {
  83.                             name: moduleName,
  84.                             init: function () {
  85.                                 init();
  86.                             }
  87.                         };
  88.                         function init() {
  89.                             galleryEl = $('[data-slider="{{ random_gallery_id }}"]');
  90.                             galleryEl.owlCarousel({
  91.                                 loop: false,
  92.                                 items: 1,
  93.                                 margin: 0,
  94.                                 nav: true,
  95.                                 navText: [
  96.                                     '<svg viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon class="st0" points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>',
  97.                                     '<svg viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon class="st0" points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>'
  98.                                 ],
  99.                                 responsive: {
  100.                                     800: {
  101.                                         items: 3,
  102.                                     },
  103.                                     700: {
  104.                                         items: 2,
  105.                                     }
  106.                                 }
  107.                             });
  108.                             galleryEl.Chocolat({
  109.                                 loop: true
  110.                             });
  111.                         }
  112.                     }());//EOS
  113.                 </script>
  114.             </div>
  115.         </div>
  116. {#        <script type="text/javascript">#}
  117. {#            (function () {#}
  118. {#                var moduleName = 'language_selection';#}
  119. {#                if (typeof selt === 'undefined') {#}
  120. {#                    selt = {#}
  121. {#                        modules: {}#}
  122. {#                    };#}
  123. {#                } else if (!selt.modules) {#}
  124. {#                    selt.modules = {};#}
  125. {#                }#}
  126. {#                selt.modules[moduleName] = {#}
  127. {#                    name: moduleName,#}
  128. {#                    function init() #}{##}{#}#}
  129. {#                    galleryEl = $('[data-slider="{{ sliderId }}"]');#}
  130. {#                    #}{##}{#                    galleryEl.owlCarousel(#}{##}{#}#}
  131. {#                    #}{##}{#                        center: false,#}
  132. {#                    #}{##}{#                        loop: false,#}
  133. {#                    #}{##}{#                        items: 1,#}
  134. {#                    #}{##}{#                        margin: 0,#}
  135. {#                    #}{##}{#                        nav: true,#}
  136. {#                    #}{##}{#                        navText: [#}
  137. {#                    #}{##}{#                            '<svg viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon class="st0" points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>',#}
  138. {#                    #}{##}{#                            '<svg viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon class="st0" points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>'#}
  139. {#                    #}{##}{#                        ],#}
  140. {#                    #}{##}{#                        responsive: #}{##}{#}#}
  141. {#                    #}{##}{#                            1180: #}{##}{#}#}
  142. {#                    #}{##}{#                                items: {{ numberOfItems < 4 ? numberOfItems : 4 }}#}
  143. {#                    #}{##}{#                            },#}
  144. {#                    #}{##}{#                            750: #}{##}{#}#}
  145. {#                    #}{##}{#                                items: 2#}
  146. {#                    #}{##}{#                            }#}
  147. {#                    #}{##}{#                        }#}
  148. {#                    #}{##}{#                    }).on('resized.owl.carousel', function (event) #}{##}{#}#}
  149. {#                    #}{##}{#                        galleryEl.trigger('to.owl.carousel', [1, 1000]);#}
  150. {#                    #}{##}{#                    });#}
  151. {#                };#}
  152. {#                function browserLanguage() {#}
  153. {#                    var browserLanguageArray = [];#}
  154. {#                    if (typeof navigator !== 'undefined') {#}
  155. {#                        if (navigator.languages) { // chrome only; not an array, so can't use .push.apply instead of iterating#}
  156. {#                            for (var i = 0; i < navigator.languages.length; i++) {#}
  157. {#                                browserLanguageArray.push(navigator.languages[i]);#}
  158. {#                            }#}
  159. {#                        } else if (navigator.language) {#}
  160. {#                            browserLanguageArray.push(navigator.language);#}
  161. {#                        }#}
  162. {#                    }#}
  163. {#                    return browserLanguageArray.length > 0 ? browserLanguageArray[0] : undefined;#}
  164. {#                }#}
  165. {#                languageSelection = function () {#}
  166. {#                    var langPreference  = Cookies.get('language'),#}
  167. {#                        currentLanguage = 'en',#}
  168. {#                        url_english     = 'https://www.oldy.glanzer.at/en',#}
  169. {#                        notDE           = (browserLanguage().indexOf("de") < 0);#}
  170. {#                    // browserLang is not DE -- CMS is not serving EN#}
  171. {#                    if (notDE && currentLanguage !== 'en') {#}
  172. {#                        if (!langPreference) {#}
  173. {#                            selt.overlay.open(#}
  174. {#                                {#}
  175. {#                                    selector: '#languageselector',#}
  176. {#                                    callback: function () {#}
  177. {#                                        //console.log('overlay content done')#}
  178. {#                                    }#}
  179. {#                                })#}
  180. {#                        } else if (langPreference == 'en') {#}
  181. {#                            window.location.assign(url_english);#}
  182. {#                        }#}
  183. {#                    }#}
  184. {#                    selt.saveLanguagePreference = function saveLanguagePreference(lang) {#}
  185. {#                        Cookies.set('language', lang, {expires: 14});#}
  186. {#                        if (lang === 'en') {#}
  187. {#                            window.location.assign(url_english);#}
  188. {#                        }#}
  189. {#                        // todo: $.fancybox.close();#}
  190. {#                    }#}
  191. {#                }#}
  192. {#            }());//EOS#}
  193. {#        </script>#}
  194.         {#        <div class="constrainer-maxsize abstand-top abstand-bottom">#}
  195. {#            <div class="owl-carousel owl-theme owl-nav-spacer" data-slider="{{ random_gallery_id }}"#}
  196. {#                 {{ dump(image_path) }}#}
  197. {#                {% for key, image_path in twigParams['galleryArray'] %}#}
  198. {#                    {{ dump(image_path) }}#}
  199. {#                    <a class="chocolat-image" href="{{ image_path }}">#}
  200. {#                        {% set lang = app.request.getLocale() %}#}
  201. {#                        {% if image_path is not empty %}#}
  202. {#                                {{ imageResponsive({"src": image_path,#}
  203. {#                                "ausgabeformat": "img",#}
  204. {#                                "endtag": false,#}
  205. {#                                "language": lang }) | raw }}#}
  206. {#                        {% endif %}#}
  207. {#                    </a>#}
  208. {#               {% endfor %}#}
  209. {#            </div>#}
  210. {#        </div>#}
  211.     {% endif %}
  212.     {% if twigParams['show_text'] is not empty %}
  213.         <div class="constrainer-inner edgepadding abstand-bottom abstand-top">
  214.             <div class="copy font-light ">
  215.                 {{ twigParams['content_text'] |raw }}
  216.             </div>
  217.         </div>
  218.     {% endif %}
  219.     <div class="constrainer-maxsize edgepadding abstand-top abstand-bottom">
  220.         <h2 class="font-thin texttitle"> {{ 'form_initiativbewerbung_h2'|trans }}
  221.         </h2>
  222.         {% if twigParams['frontend'] is not empty %}
  223.             {% set formTemplate =  twigParams['frontend'].formular.formTemplate %}
  224.                 {% if formTemplate is not empty %}
  225.                     {% include 'module/Form/forms/'~formTemplate with {'frontend': twigParams['frontend']} %}
  226.                 {% endif %}
  227.         {% endif %}
  228.     </div>
  229.     
  230.     {% if twigParams['show_json'] %}
  231.         {% set jsonLd = {} %}
  232.         {% if twigParams['context'] is not empty %}
  233.             {% set jsonLd = jsonLd|merge({'@context': twigParams['context'] }) %}
  234.         {% endif %}
  235.         {% if twigParams['context_type'] is not empty %}
  236.             {% set jsonLd = jsonLd|merge({'@type': twigParams['context_type'] }) %}
  237.         {% endif %}
  238.         {% if twigParams['job_title'] is not empty %}
  239.             {% set jsonLd = jsonLd|merge({'title': twigParams['job_title'] }) %}
  240.         {% endif %}
  241.         {% if twigParams['job_description'] is not empty %}
  242.             {% set jsonLd = jsonLd|merge({'description': twigParams['job_description'] }) %}
  243.         {% endif %}
  244.         {% if twigParams['hiring_organization_type'] is not empty or twigParams['hiring_organization_name'] is not empty %}
  245.             {% set hiringOrganization = {} %}
  246.             {% if twigParams['hiring_organization_type'] is not empty %}
  247.                 {% set hiringOrganization = hiringOrganization|merge({'@type': twigParams['hiring_organization_type'] }) %}
  248.             {% endif %}
  249.             {% if twigParams['hiring_organization_name'] is not empty %}
  250.                 {% set hiringOrganization = hiringOrganization|merge({'name': twigParams['hiring_organization_name'] }) %}
  251.             {% endif %}
  252.             {% set jsonLd = jsonLd|merge({'hiringOrganization': hiringOrganization }) %}
  253.         {% endif %}
  254.         {% if twigParams['date_posted'] is not empty %}
  255.             {% set jsonLd = jsonLd|merge({'datePosted': twigParams['date_posted'] }) %}
  256.         {% endif %}
  257.         {% if twigParams['valid_through'] is not empty %}
  258.             {% set jsonLd = jsonLd|merge({'validThrough': twigParams['valid_through'] }) %}
  259.         {% endif %}
  260.         {% if twigParams['employment_type'] is not empty %}
  261.             {% set jsonLd = jsonLd|merge({'employmentType': twigParams['employment_type'] }) %}
  262.         {% endif %}
  263.         {% if twigParams['job_location_type'] is not empty or twigParams['job_location_address_type'] is not empty or twigParams['job_location_address_type'] is not empty or twigParams['job_location_address_street_address'] is not empty or twigParams['job_location_address_address_locality'] is not empty or twigParams['job_location_address_address_region'] is not empty or twigParams['job_location_address_postal_code'] is not empty or twigParams['job_location_address_address_country'] is not empty %}
  264.             {% set jobLocation = {} %}
  265.             {% if twigParams['job_location_type'] is not empty %}
  266.                 {% set jobLocation = jobLocation|merge({'@type': twigParams['job_location_type'] }) %}
  267.             {% endif %}
  268.             {% if twigParams['job_location_address_type'] is not empty or twigParams['job_location_address_type'] is not empty or twigParams['job_location_address_street_address'] is not empty or twigParams['job_location_address_address_locality'] is not empty or twigParams['job_location_address_postal_code'] is not empty or twigParams['job_location_address_address_country'] is not empty %}
  269.                 {% set address = {} %}
  270.                 {% if twigParams['job_location_address_type'] is not empty %}
  271.                     {% set address = address|merge({'@type': twigParams['job_location_address_type'] }) %}
  272.                 {% endif %}
  273.                 {% if twigParams['job_location_address_street_address'] is not empty %}
  274.                     {% set address = address|merge({'streetAddress': twigParams['job_location_address_street_address'] }) %}
  275.                 {% endif %}
  276.                 {% if twigParams['job_location_address_address_locality'] is not empty %}
  277.                     {% set address = address|merge({'addressLocality': twigParams['job_location_address_address_locality'] }) %}
  278.                 {% endif %}
  279.                 {% if twigParams['job_location_address_address_region'] is not empty %}
  280.                     {% set address = address|merge({'addressRegion': twigParams['job_location_address_address_region'] }) %}
  281.                 {% endif %}
  282.                 {% if twigParams['job_location_address_postal_code'] is not empty %}
  283.                     {% set address = address|merge({'postalCode': twigParams['job_location_address_postal_code'] }) %}
  284.                 {% endif %}
  285.                 {% if twigParams['job_location_address_address_country'] is not empty %}
  286.                     {% set address = address|merge({'addressCountry': twigParams['job_location_address_address_country'] }) %}
  287.                 {% endif %}
  288.                 {% set jobLocation = jobLocation|merge({'address': address }) %}
  289.             {% endif %}
  290.             {% if twigParams['base_salary_type'] is not empty or twigParams['base_salary_currency'] is not empty %}
  291.                 {% set baseSalary = {} %}
  292.                 {% if twigParams['base_salary_type'] is not empty %}
  293.                     {% set baseSalary = baseSalary|merge({'@type': twigParams['base_salary_type'] }) %}
  294.                 {% endif %}
  295.                 {% if twigParams['base_salary_currency'] is not empty %}
  296.                     {% set baseSalary = baseSalary|merge({'currency': twigParams['base_salary_currency'] }) %}
  297.                 {% endif %}
  298.                 {% if twigParams['base_salary_value_type'] is not empty or twigParams['base_salary_value_unit_text'] is not empty or twigParams['base_salery_value_value'] is not empty %}
  299.                     {% set baseSalaryValue = {} %}
  300.                     {% if twigParams['base_salary_value_type'] is not empty %}
  301.                         {% set baseSalaryValue = baseSalaryValue|merge({'@type': twigParams['base_salary_value_type'] }) %}
  302.                     {% endif %}
  303.                     {% if twigParams['base_salary_value_unit_text'] is not empty %}
  304.                         {% set baseSalaryValue = baseSalaryValue|merge({'unitText': twigParams['base_salary_value_unit_text'] }) %}
  305.                     {% endif %}
  306.                     {% if twigParams['base_salery_value_value'] is not empty %}
  307.                         {% set baseSalaryValue = baseSalaryValue|merge({'value': twigParams['base_salery_value_value'] }) %}
  308.                     {% endif %}
  309.                     {% set baseSalary = baseSalary|merge({'value': baseSalaryValue }) %}
  310.                 {% endif %}
  311.                 {% set jobLocation = jobLocation|merge({'baseSalary': baseSalary }) %}
  312.             {% endif %}
  313.             {% set jsonLd = jsonLd|merge({'jobLocation': jobLocation }) %}
  314.         {% endif %}
  315.     <script type="application/ld+json">
  316.     {{ jsonLd|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_UNICODE'))|raw }}
  317.     </script>
  318.     {% endif %}
  319. {% endif %}
  320. {% endblock %}