src/Controller/Module/JobsController.php line 39

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Module;
  3. use App\Controller\Traits\IconTrait;
  4. use App\Services\Form;
  5. use App\AppBundle;
  6. use App\Services\Fields;
  7. use Pimcore\Controller\Configuration\ResponseHeader;
  8. use Pimcore\Controller\FrontendController;
  9. use Pimcore\Model\Asset;
  10. use Pimcore\Model\WebsiteSetting;
  11. use Psr\Container\ContainerInterface;
  12. use SaintElmos\BaseBundle\Services\ImageResponsive;
  13. use SaintElmos\BaseBundle\Templating\Helper\FrontendHelper;
  14. use SaintElmos\BaseBundle\Utils\SETConf;
  15. use SaintElmos\BaseBundle\Controller\BaseController;
  16. use Symfony\Component\HttpFoundation\Request;
  17. use \Pimcore\Model\DataObject;
  18. use Symfony\Component\HttpFoundation\RequestStack;
  19. use Symfony\Component\HttpFoundation\Response;
  20. use Symfony\Component\Routing\Annotation\Route;
  21. use Symfony\Contracts\Translation\TranslatorInterface;
  22. class JobsController extends FrontendController
  23. {
  24.     /* ######################################################################################################################################################## */
  25.     public $baseParam = [];
  26.     public $region_homes_doc;
  27.     use IconTrait;
  28.     public function __construct(ContainerInterface $containerRequestStack $requestStack)
  29.     {
  30.         $konfiguration_set_obj WebsiteSetting::getByName('konfiguration_set')->getData();
  31.         $this->baseParam['konfiguration_set_obj'] = $konfiguration_set_obj;
  32.         $this->baseParam['startseite'] = AppBundle::getValue($konfiguration_set_obj'getStartseite');
  33.         $konfiguration_projekt_obj WebsiteSetting::getByName('konfiguration_projekt')->getData();
  34.         $this->baseParam['konfiguration_projekt_obj'] = $konfiguration_projekt_obj;
  35.         $server_protocol 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' 's' '');
  36.         //$canonical_base = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
  37.         //$this->baseParam['path_info'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
  38.         //$this->baseParam['canonical_base'] = $canonical_base;
  39.         $this->baseParam['kundenLogoUrl'] = AppBundle::getValue($konfiguration_projekt_obj'getLogodomain');
  40.         $this->baseParam['domain'] = $server_protocol '://' $_SERVER['HTTP_HOST'];
  41.         if( method_exists($konfiguration_set_obj,'getStartseite' ) )
  42.         {
  43.             $startseiteEN $server_protocol '://' $_SERVER['HTTP_HOST'] . $konfiguration_set_obj->getStartseite('en');
  44.         }
  45.         $this->baseParam['startseiteEN'] = $startseiteEN;
  46.         $this->baseParam['sprachweiche_title'] = AppBundle::getValue($konfiguration_projekt_obj'getSprachweiche_title');
  47.         $this->baseParam['sprachweiche_text'] = AppBundle::getValue($konfiguration_projekt_obj'getSprachweiche_text');
  48.         $this->baseParam['sprachweiche_button_yes'] = AppBundle::getValue($konfiguration_projekt_obj'getSprachweiche_button_yes');
  49.         $this->baseParam['sprachweiche_button_no'] = AppBundle::getValue($konfiguration_projekt_obj'getSprachweiche_button_no');
  50.         /* ********************************************************************************************************************* */
  51.         /*
  52.          * S P R A C H A U S W A H L
  53.          */
  54.         $SprachauswahlArray = array();
  55.         // $SprachauswahlBlock = \Pimcore\Config::getWebsiteConfig()->get('konfiguration_projekt')->getSprachauswahl_block();
  56.         $SprachauswahlBlock WebsiteSetting::getByName('konfiguration_projekt')->getData()->getSprachauswahl_block();
  57.         $att_text 'en';
  58.         /* $lg = $this->document->getProperty('language');
  59.         switch ($lg) {
  60.             case 'de':
  61.                 $att_text = 'en';
  62.                 break;
  63.             case 'en':
  64.                 $att_text = 'de';
  65.                 break;
  66.         } */
  67.         if (count($SprachauswahlBlock) > 0) {
  68.             foreach ($SprachauswahlBlock as $key => $element) {
  69.                 $languageurlArr $element['languageurl'];
  70.                 $languageurlObj $languageurlArr->getData();
  71.                 $url $languageurlObj->getHref();
  72.                 $SprachauswahlArray[$key] = array(
  73.                     'languagetitle' => $element['languagetitle']->getData(),
  74.                     'languageurl' => $url,
  75.                     'att_text' => $att_text
  76.                 );
  77.             }
  78.             $this->baseParam['sprachauswahl'] = $SprachauswahlArray;
  79.             $this->baseParam['show_sprachauswahl'] = true;
  80.         } else {
  81.             $this->baseParam['sprachauswahl'] = array();
  82.             $this->baseParam['show_sprachauswahl'] = false;
  83.         }
  84.         /* ********************************************************************************************************************* */
  85.         /*
  86.          * L O C A T I O N
  87.          */
  88.         $this->baseParam['server_protocol'] = $server_protocol;
  89.         $this->baseParam['startseite'] = $konfiguration_set_obj->getStartseite();
  90.         /* ********************************************************************************************************************* */
  91.         /*
  92.          * T H E M E
  93.          */
  94.         /* $theme = AppBundle::getTheme($this->document, 'theme_doc');
  95.         $this->baseParam['theme'] = $theme;  */
  96.         /* ********************************************************************************************************************* */
  97.         /*
  98.          * N A V I G A T I O N
  99.          */
  100.         $this->baseParam['url_rent'] = AppBundle::getValue($konfiguration_projekt_obj'getUrl_rent');
  101.         $this->baseParam['text_rent'] = AppBundle::getValue($konfiguration_projekt_obj'getText_rent');
  102.         $this->baseParam['url_homes'] = AppBundle::getValue($konfiguration_projekt_obj'getUrl_homes');
  103.         $this->baseParam['text_homes'] = AppBundle::getValue($konfiguration_projekt_obj'getText_homes');
  104.         $this->baseParam['url_shops'] = AppBundle::getValue($konfiguration_projekt_obj'getUrl_shopping');
  105.         $this->baseParam['text_shops'] = AppBundle::getValue($konfiguration_projekt_obj'getText_shopping');
  106. //        $theme = AppBundle::getTheme($this->document, 'theme_doc');
  107. //        $region_homes_doc = AppBundle::getTheme($this->document, 'region_homes_doc');
  108. //        $this->baseParam['theme'] = $theme;
  109. //        $this->baseParam['page'] = $region_homes_doc;
  110.         $bugfiximageurl AppBundle::getBugfiximageurl();
  111.         /* ********************************************************************************************************************* */
  112.         /*
  113.          * G L A N Z E R L O G O
  114.          */
  115.         $server_protocol 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' 's' '');
  116.         $logo_link AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogodomain');
  117. //        $canonical_base = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
  118. //        $this->baseParam['path_info'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
  119. //        $this->baseParam['canonical_base'] = $canonical_base;
  120. //        if ($region_homes_doc === 'hochsoelden')
  121. //        {
  122. //            $theme = "hochsoelden";
  123. //        }
  124.         $glanzerLogo AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_default');
  125.         $glanzerLogoAlt "";
  126.         if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' $glanzerLogo) != '')
  127.         {
  128.             $glanzer_logo_asset_obj \Pimcore\Model\Asset::getByPath($glanzerLogo);
  129.             $glanzerLogoAlt $glanzer_logo_asset_obj->getMetadata("alt");
  130.         }
  131.         $this->baseParam['frontendParam'] = isset($_GET['load']) ? $_GET['load'] : "";
  132.         $this->baseParam['logo_link']       = $logo_link;
  133.         $this->baseParam['glanzerLogo']     = $bugfiximageurl.$glanzerLogo;
  134.         $this->baseParam['glanzerLogoAlt']  = $glanzerLogoAlt;
  135. //        /** @var IconTrait $trait */
  136.         // $this->baseParam['contacts'] = $this->getContactLinks();
  137.     
  138. //        dd($this->document);
  139. //        $region_homes_doc = AppBundle::getTheme($this->document, 'region_homes_doc');
  140. //
  141. //        $this->baseParam['page'] = $region_homes_doc;
  142.     }
  143.     public function __init(){
  144.         $theme AppBundle::getTheme($this->document'theme_doc');
  145.         $region_homes_doc AppBundle::getTheme($this->document'region_homes_doc');
  146.         $this->baseParam['theme'] = $theme;
  147.         $this->baseParam['page'] = $region_homes_doc;
  148.         $bugfiximageurl AppBundle::getBugfiximageurl();
  149.         /* ********************************************************************************************************************* */
  150.         /*
  151.          * G L A N Z E R L O G O
  152.          */
  153.         $server_protocol 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' 's' '');
  154.         $logo_link AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogodomain');
  155.         $canonical_base $server_protocol '://' $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
  156.         $this->baseParam['path_info'] = $server_protocol '://' $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
  157.         $this->baseParam['canonical_base'] = $canonical_base;
  158.         if ($region_homes_doc === 'hochsoelden')
  159.         {
  160.             $theme "hochsoelden";
  161.         }
  162.         switch ($theme) {
  163.             case 'homes':
  164.                 $glanzerLogo AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_homes');
  165.                 break;
  166.             case 'rent':
  167.                 $glanzerLogo AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_rent');
  168.                 break;
  169.             case 'hochsoelden':
  170.                 $glanzerLogo AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_hochsoelden');
  171.                 break;
  172.             default:
  173.                 $glanzerLogo AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_default');
  174.         }
  175.         $glanzerLogoAlt "";
  176.         if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' $glanzerLogo) != '')
  177.         {
  178.             $glanzer_logo_asset_obj \Pimcore\Model\Asset::getByPath($glanzerLogo);
  179.             $glanzerLogoAlt $glanzer_logo_asset_obj->getMetadata("alt");
  180.         }
  181.         $this->baseParam['frontendParam'] = isset($_GET['load']) ? $_GET['load'] : "";
  182.         $this->baseParam['logo_link']       = $logo_link;
  183.         $this->baseParam['glanzerLogo']     = $bugfiximageurl.$glanzerLogo;
  184.         $this->baseParam['glanzerLogoAlt']  = $glanzerLogoAlt;
  185.         $this->baseParam['contacts'] = $this->getContactLinks();
  186.     }
  187.     public function jobsTeaserSlider($teaser_folder_id,$excludeId)
  188.     {
  189.         $frontendhelper = new FrontendHelper();
  190.         $request = new Request();
  191.         $locale $request->getLocale();
  192.         $this->baseParam['wetterLink'] = $this->getWetter($locale)['link'];
  193.         $this->baseParam['wetterIcon'] = $this->getWetter($locale)['icon'];
  194.         $teaser_Array = [];
  195.         $package_teaser_Array = [];
  196.         if(!empty($teaser_folder_id))
  197.         {
  198.             $packageObj DataObject::getById($teaser_folder_id);
  199.             if(is_object($packageObj))
  200.             {
  201.                 $itemsArray $packageObj->getChildren();
  202.                 $items AppBundle::sortByIndex($itemsArray);
  203.                 foreach ($items as $key => $element)
  204.                 {
  205.                     $packageId $element->getId();
  206.                     $teaser_Array[$packageId] = $element;
  207.                 }
  208.                 if($excludeId != '')
  209.                 {
  210.                     unset($teaser_Array[$excludeId]); //auf einer Detailseite wird die eigene ID ausgeschlossen!
  211.                 }
  212.             }
  213.             /* ********************************************************************************************************************* */
  214.             if(is_array($teaser_Array))
  215.             {
  216.                 foreach ($teaser_Array as $key => $item)
  217.                 {
  218.                     $gueltigkeitszeitraum '';
  219.                     $teaser_title '';
  220.                     $teaser_headline '';
  221.                     $teaser_text '';
  222.                     $teaser_bild_normal '';
  223.                     $teaser_bild_retina '';
  224.                     $teaser_bild_default '';
  225.                     $teaser_bild__alttag '';
  226.                     $teaser_link '';
  227.                     $prettyurl AppBundle::getValue($item'getPrettyurl');
  228.                     //$pagename = ($this->document->getProperty('language') == 'de')? 'job-bewerbung' : 'jobs';
  229.                     $pagename $this->document->getProperty('jobPageName');
  230.                     $teaser_link '/' $pagename '/' $prettyurl ;
  231.                     $show_not AppBundle::getValue($item'getShow_not');
  232.                     $show = ($show_not)? false true;
  233.                     $teaser_text  = (string)AppBundle::getValue($item'getTeaser_text');
  234.                     $teaser_title  = (string)$frontendhelper->changeTextarea(AppBundle::getValue($item'getTeaser_title'));
  235.                     /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  236.                     $teaserbild_path AppBundle::getValue($item'getTeaserbild');
  237.                     $thumb_name_default 'teaser-default';
  238.                     $thumb_name_normal 'teaser-hochformat-package-normal';
  239.                     $thumb_name_retina 'teaser-hochformat-package-retina';
  240.                     if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' $teaserbild_path) != '')
  241.                     {
  242.                         $teaserbild_object \Pimcore\Model\Asset::getByPath($teaserbild_path);
  243.                         $teaser_bild__alttag $teaserbild_object->getMetadata("alt");
  244.                         $teaser_bild_normal = (string)$teaserbild_object->getThumbnail($thumb_name_normal);
  245.                         $teaser_bild_retina = (string)$teaserbild_object->getThumbnail$thumb_name_retina);
  246.                         $teaser_bild_default = (string)$teaserbild_object->getThumbnail($thumb_name_default);
  247.                     }
  248.                     /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  249.                     $package_teaser_Array[$key] = array(
  250.                         'gueltigkeitszeitraum'      => $gueltigkeitszeitraum,
  251.                         'teaser_title'              => $teaser_title,
  252.                         'teaser_text'               => $teaser_text,
  253.                         'teaser_bild_normal'        => $teaser_bild_normal,
  254.                         'teaser_bild_retina'        => $teaser_bild_retina,
  255.                         'teaser_bild_default'       => $teaser_bild_default,
  256.                         'teaser_bild__alttag'       => $teaser_bild__alttag,
  257.                         'teaser_link'               => $teaser_link,
  258.                         'show'                      => $show
  259.                     );
  260.                 }
  261.             }
  262.         }
  263.         return $package_teaser_Array;
  264.     }
  265.     /**
  266.      * @param Request $request
  267.      * @param \Pimcore\Config\Config $websiteConfig
  268.      * @return Response
  269.      */
  270.     #[Route('/{segment}/{job}'requirements: ['segment' => 'stellenangebot|job'])]
  271.     public function jobdetailAction(Request $request\Pimcore\Config $websiteConfigTranslatorInterface $translator): Response
  272.     {
  273.         /* ***************************************************************************************************************** */
  274.         /* C O N F I G * (start) ******************************************************************************************* */
  275.         /* ***************************************************************************************************************** */
  276.         $frontendhelper = new FrontendHelper();
  277.         $jobangebot $request->get('jobangebot');
  278.         $path $request->getPathInfo();
  279.         $explodedPath explode("/"$path);
  280.         $firstPath "/" $explodedPath[1] . "/";
  281.         
  282.         $locale $request->getLocale();
  283.         $this->baseParam['wetterLink'] = $this->getWetter($locale)['link'];
  284.         $this->baseParam['wetterIcon'] = $this->getWetter($locale)['icon'];
  285.         $jobs_objekt_id ="";
  286.         $items = new \Pimcore\Model\DataObject\Jobs\Listing();
  287. //        foreach ($items as $item) {
  288. //            if ((string)$item->getPrettyurl() == $jobangebot) {
  289. //                $special_description = AppBundle::getValue($item, 'getMetabeschreibung');
  290. //                $special_title = AppBundle::getValue($item, 'getMetatitel');
  291. //                $jobs_objekt_id = $item->getId();
  292. //                break;
  293. //            }
  294. //
  295. //        }
  296.         foreach ($items as $item) {
  297.             if ($firstPath . (string)$item->getPrettyurl() == $path) {
  298.                 $special_description AppBundle::getValue($item'getMetabeschreibung');
  299.                 $special_title AppBundle::getValue($item'getMetatitel');
  300.                 $jobs_objekt_id $item->getId();
  301.                 break;
  302.             }
  303.         }
  304.         $GLOBALS['jobsObjectId'] = $jobs_objekt_id;
  305.         $jobObjectId $GLOBALS['jobsObjectId'];
  306.         $websiteConfigName 'konfiguration_bewerbung_formular';
  307.         $confAnfrageformObject \Pimcore\Config::getWebsiteConfig()->get($websiteConfigName);
  308.         $jobTeaserSliderArray = [];
  309.         $frontend = [];
  310.         $twigParams = [];
  311.         /* ***************************************************************************************************************** */
  312.         /* C O N F I G * (ende) ******************************************************************************************** */
  313.         /* ***************************************************************************************************************** */
  314.         $twigParams['show_slider'] = "";
  315.         $twigParams['galleryArray'] = "";
  316.         $twigParams['content_headline'] = "";
  317.         $twigParams['content_subheadline'] = "";
  318.         $twigParams['show_text'] = "";
  319.         $twigParams['content_text'] = "";
  320.         $twigParams['show_json'] = "";
  321.         $twigParams['context'] = "";
  322.         $twigParams['context_type'] = "";
  323.         $twigParams['job_title'] = "";
  324.         $twigParams['job_description'] = "";
  325.         $twigParams['hiring_organization_type'] = "";
  326.         $twigParams['hiring_organization_name'] = "";
  327.         $twigParams['date_posted'] = "";
  328.         $twigParams['valid_through'] = "";
  329.         $twigParams['employment_type'] = "";
  330.         $twigParams['job_location_type'] = "";
  331.         $twigParams['job_location_address_type'] = "";
  332.         $twigParams['job_location_address_street_address'] = "";
  333.         $twigParams['job_location_address_address_locality'] = "";
  334.         $twigParams['job_location_address_address_region'] = "";
  335.         $twigParams['job_location_address_postal_code'] = "";
  336.         $twigParams['job_location_address_address_country'] = "";
  337.         $twigParams['base_salary_type'] = "";
  338.         $twigParams['base_salary_currency'] = "";
  339.         $twigParams['base_salary_value_type'] = "";
  340.         $twigParams['base_salary_value_unit_text'] = "";
  341.         $twigParams['base_salery_value_value'] = "";
  342.         if (is_object(\Pimcore\Model\DataObject::getById($jobObjectId)))
  343.         {
  344.             $object \Pimcore\Model\DataObject::getById($jobObjectId);
  345.             $containerId $object->getParent()->getId();
  346.             /*  @  F O R M U L A R   B E W E R B U N G [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  347.             $service \Pimcore::getContainer()->get(Form::class);
  348.             $buttontext AppBundle::getValue($confAnfrageformObject'getSubmitbutton_text');
  349.             $dsgvotext AppBundle::getValue($confAnfrageformObject'getFormular_dsgvo_text');
  350.             $antwort '//' $_SERVER['HTTP_HOST'] . AppBundle::getValue($confAnfrageformObject'getAntwortseite');
  351.             $fields Fields::getDefaultForm();
  352.             $formFields $service->getFormFields($fields$_POST);
  353.             $pflichtfeldtext $translator->trans('form_pflichtfeldtext');
  354.             $formTemplate 'bewerbung.html.twig';
  355.             $mailTemplate '/src/AppBundle/Resources/public/static/init/mail-templates/bewerbung'// ohne .html.php
  356.             $pagename $this->document->getParent()->getFullPath();
  357.             $server_protocol 'http' . ($_SERVER['REQUEST_SCHEME'] == 'on' 's' '');
  358.             $domain $server_protocol '://' $_SERVER['HTTP_HOST'];
  359.             $url $domain $pagename;
  360.             $stelle AppBundle::getValue($object'getPrettyurl');
  361.             /* ********************************************************************************* */
  362.             /* Ausgabe ************************************************************************* */
  363.             /* ********************************************************************************* */
  364.             $frontend['formular'] = array(
  365.                 'formFields' => $formFields,
  366.                 'formTemplate' => $formTemplate,
  367.                 'buttontext' => $buttontext,
  368.                 'pflichtfeldtext' => $pflichtfeldtext,
  369.                 'dsgvotext' => $dsgvotext,
  370.                 'websiteConfigName' => $websiteConfigName,
  371.                 'mailTemplate' => $mailTemplate,
  372.                 'antwort' => $antwort,
  373.                 'stelle' => $stelle,
  374.                 'url' => $url
  375.             );
  376.             /*  @  F O R M U L A R   B E W E R B U N G [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  377.             /*  @  Gallery Slider [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  378.             $show_no_slider AppBundle::getValue($object'getShow_no_slider');
  379.             $show_slider = !$show_no_slider;
  380.             $gallery_array AppBundle::getValue($object'getDetail_gallery');
  381.             $gallery = [];
  382.             foreach ($gallery_array as $key => $img_item)
  383.             {
  384.                 $gallery_img_id $img_item->getImage()->getId();
  385.                 if(!empty($gallery_img_id))
  386.                 {
  387.                     $gallery_img_object \Pimcore\Model\Asset::getById($gallery_img_id);
  388.                     $gallery_bild $gallery_img_object->getRealFullPath();
  389.                 }
  390.                 $gallery[$key] = ["path"=>$gallery_bild"title"=>$gallery_img_object->getMetadata("title")];
  391.             }
  392.             /* ********************************************************************************* */
  393.             /* Ausgabe ************************************************************************* */
  394.             /* ********************************************************************************* */
  395.            // $this->view->show_slider = $show_slider;
  396.            // $this->view->galleryArray = $gallery;
  397.             $twigParams['show_slider'] = $show_slider;
  398.             $twigParams['galleryArray'] = $gallery;
  399.             /*  @ Gallery Slider [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  400.             /*  @ Content Text [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  401.             $show_no_text AppBundle::getValue($object'getShow_no_text');
  402.             $show_text = ($show_no_text) ? false true;
  403.             $content_text AppBundle::getValue($object'getContent_text');
  404.             $content_headline = (string)$frontendhelper->changeTextarea(AppBundle::getValue($object'getDetail_headline'));
  405.             $content_subheadline = (string)$frontendhelper->changeTextarea(AppBundle::getValue($object'getDetail_text'));
  406.             /* ********************************************************************************* */
  407.             /* Ausgabe ************************************************************************* */
  408.             /* ********************************************************************************* */
  409.       /*       $this->view->content_headline = $content_headline;
  410.             $this->view->content_subheadline = $content_subheadline;
  411.             $this->view->show_text = $show_text;
  412.             $this->view->content_text = $content_text; */
  413.             $twigParams['content_headline'] = $content_headline;
  414.             $twigParams['content_subheadline'] = $content_subheadline;
  415.             $twigParams['show_text'] = $show_text;
  416.             $twigParams['content_text'] = $content_text;
  417.             /*  @ Content Text [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
  418.             /* ********************************************************************************************************************* */
  419.             /* JSON *************************************************************************************************** */
  420.             /* ********************************************************************************************************************* */
  421.             $twigParams['show_json'] = AppBundle::getValue($object'getShow_json');
  422.             $twigParams['context'] = AppBundle::getValue($object'getContext');
  423.             $twigParams['context_type'] = AppBundle::getValue($object'getContext_type');
  424.             $twigParams['job_title'] = AppBundle::getValue($object'getJob_title');
  425.             $twigParams['job_description'] = AppBundle::getValue($object'getJob_description');
  426.             $twigParams['hiring_organization_type'] = AppBundle::getValue($object'getHiring_organization_type');
  427.             $twigParams['hiring_organization_name'] = AppBundle::getValue($object'getHiring_organization_name');
  428.             $twigParams['date_posted'] = AppBundle::getValue($object'getDate_posted');
  429.             $twigParams['valid_through'] = AppBundle::getValue($object'getValid_through');
  430.             $twigParams['employment_type'] = AppBundle::getValue($object'getEmployment_type');
  431.             $twigParams['job_location_type'] = AppBundle::getValue($object'getJob_location_type');
  432.             $twigParams['job_location_address_type'] = AppBundle::getValue($object'getJob_location_address_type');
  433.             $twigParams['job_location_address_street_address'] = AppBundle::getValue($object'getJob_location_address_street_address');
  434.             $twigParams['job_location_address_address_locality'] = AppBundle::getValue($object'getJob_location_address_address_locality');
  435.             $twigParams['job_location_address_address_region'] = AppBundle::getValue($object'getJob_location_address_address_region');
  436.             $twigParams['job_location_address_postal_code'] = AppBundle::getValue($object'getJob_location_address_postal_code');
  437.             $twigParams['job_location_address_address_country'] = AppBundle::getValue($object'getJob_location_address_address_country');
  438.             $twigParams['base_salary_type'] = AppBundle::getValue($object'getBase_salary_type');
  439.             $twigParams['base_salary_currency'] = AppBundle::getValue($object'getBase_salary_currency');
  440.             $twigParams['base_salary_value_type'] = AppBundle::getValue($object'getBase_salary_value_type');
  441.             $twigParams['base_salary_value_unit_text'] = AppBundle::getValue($object'getBase_salary_value_unit_text');
  442.             $twigParams['base_salery_value_value'] = AppBundle::getValue($object'getBase_salery_value_value');
  443.         }
  444.         /* ********************************************************************************************************************* */
  445.         /* Ausgabe allgemein *************************************************************************************************** */
  446.         /* ********************************************************************************************************************* */
  447.   /*       $this->view->abstand = ' abstand-top abstand-bottom';
  448.         $this->view->frontend = $frontend; */
  449.         $twigParams['abstand'] = ' abstand-top abstand-bottom';
  450.         $twigParams['frontend'] = $frontend;
  451.         $contacts $this->getContactLinks();
  452.         $locale $request->getLocale();
  453.         $wetter $this->getWetter($locale);
  454.         $logo_link $this->baseParam['logo_link'];
  455.         $glanzerLogo $this->baseParam['glanzerLogo'];
  456.         return $this->render('module/Jobs/__jobs-detail-bewerbung.html.twig',
  457.             [
  458.                 "twigParams" => $twigParams,
  459.                 "logo_link" => $this->baseParam['logo_link'],
  460.                 "glanzerLogo" => $this->baseParam['glanzerLogo'],
  461.                 "glanzerLogoAlt" => $this->baseParam['glanzerLogoAlt'],
  462.                 "url_rent" => $this->baseParam['url_rent'],
  463.                 "text_rent" => $this->baseParam['text_rent'],
  464.                 "url_shops" => $this->baseParam['url_shops'],
  465.                 "text_shops" => $this->baseParam['text_shops'],
  466.                 "url_homes" => $this->baseParam['url_homes'],
  467.                 "text_homes" => $this->baseParam['text_homes'],
  468.                 "contacts" =>  $contacts,
  469.                 "wetterLink" => $wetter['link'],
  470.                 "wetterIcon" => $wetter['icon'],
  471.                 "sprachweiche_title" => $this->baseParam['sprachweiche_title'],
  472.                 "sprachweiche_text" => $this->baseParam['sprachweiche_text'],
  473.                 "sprachweiche_button_yes" => $this->baseParam['sprachweiche_button_yes'],
  474.                 "sprachweiche_button_no" => $this->baseParam['sprachweiche_button_no'],
  475.                 "startseiteEN" => $this->baseParam['startseiteEN']
  476.             ]
  477.         );
  478.     }
  479.     public function jobsTeaserSliderAction(Request $request,\Pimcore\Config\Config $websiteConfig)
  480.     {
  481.         $teaserfolder =  $this->document->getEditable('jobsfolder');
  482.         $teaser_folder_id "";
  483.         if(!empty($teaserfolder)){
  484.             $teaser_folder_id $teaserfolder->getId();
  485.         }
  486.         $jobTeaserSliderArray =  $this->jobsTeaserSlider($teaser_folder_id,'');
  487.         /* ********************************************************************************************************************* */
  488.         /* Ausgabe ************************************************************************************************************* */
  489.         /* ********************************************************************************************************************* */
  490.        // $this->view->jobTeaserSliderArray = $jobTeaserSliderArray;
  491.         return $this->render("module/Jobs/__jobs-teaser-slider.html.twig", ["jobTeaserSliderArray" => $jobTeaserSliderArray]);
  492.     }
  493. }