<?php
namespace App\Controller\Module;
use App\Controller\Traits\IconTrait;
use App\Services\Form;
use App\AppBundle;
use App\Services\Fields;
use Pimcore\Controller\Configuration\ResponseHeader;
use Pimcore\Controller\FrontendController;
use Pimcore\Model\Asset;
use Pimcore\Model\WebsiteSetting;
use Psr\Container\ContainerInterface;
use SaintElmos\BaseBundle\Services\ImageResponsive;
use SaintElmos\BaseBundle\Templating\Helper\FrontendHelper;
use SaintElmos\BaseBundle\Utils\SETConf;
use SaintElmos\BaseBundle\Controller\BaseController;
use Symfony\Component\HttpFoundation\Request;
use \Pimcore\Model\DataObject;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Contracts\Translation\TranslatorInterface;
class JobsController extends FrontendController
{
/* ######################################################################################################################################################## */
public $baseParam = [];
public $region_homes_doc;
use IconTrait;
public function __construct(ContainerInterface $container, RequestStack $requestStack)
{
$konfiguration_set_obj = WebsiteSetting::getByName('konfiguration_set')->getData();
$this->baseParam['konfiguration_set_obj'] = $konfiguration_set_obj;
$this->baseParam['startseite'] = AppBundle::getValue($konfiguration_set_obj, 'getStartseite');
$konfiguration_projekt_obj = WebsiteSetting::getByName('konfiguration_projekt')->getData();
$this->baseParam['konfiguration_projekt_obj'] = $konfiguration_projekt_obj;
$server_protocol = 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' ? 's' : '');
//$canonical_base = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
//$this->baseParam['path_info'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
//$this->baseParam['canonical_base'] = $canonical_base;
$this->baseParam['kundenLogoUrl'] = AppBundle::getValue($konfiguration_projekt_obj, 'getLogodomain');
$this->baseParam['domain'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'];
if( method_exists($konfiguration_set_obj,'getStartseite' ) )
{
$startseiteEN = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $konfiguration_set_obj->getStartseite('en');
}
$this->baseParam['startseiteEN'] = $startseiteEN;
$this->baseParam['sprachweiche_title'] = AppBundle::getValue($konfiguration_projekt_obj, 'getSprachweiche_title');
$this->baseParam['sprachweiche_text'] = AppBundle::getValue($konfiguration_projekt_obj, 'getSprachweiche_text');
$this->baseParam['sprachweiche_button_yes'] = AppBundle::getValue($konfiguration_projekt_obj, 'getSprachweiche_button_yes');
$this->baseParam['sprachweiche_button_no'] = AppBundle::getValue($konfiguration_projekt_obj, 'getSprachweiche_button_no');
/* ********************************************************************************************************************* */
/*
* S P R A C H A U S W A H L
*/
$SprachauswahlArray = array();
// $SprachauswahlBlock = \Pimcore\Config::getWebsiteConfig()->get('konfiguration_projekt')->getSprachauswahl_block();
$SprachauswahlBlock = WebsiteSetting::getByName('konfiguration_projekt')->getData()->getSprachauswahl_block();
$att_text = 'en';
/* $lg = $this->document->getProperty('language');
switch ($lg) {
case 'de':
$att_text = 'en';
break;
case 'en':
$att_text = 'de';
break;
} */
if (count($SprachauswahlBlock) > 0) {
foreach ($SprachauswahlBlock as $key => $element) {
$languageurlArr = $element['languageurl'];
$languageurlObj = $languageurlArr->getData();
$url = $languageurlObj->getHref();
$SprachauswahlArray[$key] = array(
'languagetitle' => $element['languagetitle']->getData(),
'languageurl' => $url,
'att_text' => $att_text
);
}
$this->baseParam['sprachauswahl'] = $SprachauswahlArray;
$this->baseParam['show_sprachauswahl'] = true;
} else {
$this->baseParam['sprachauswahl'] = array();
$this->baseParam['show_sprachauswahl'] = false;
}
/* ********************************************************************************************************************* */
/*
* L O C A T I O N
*/
$this->baseParam['server_protocol'] = $server_protocol;
$this->baseParam['startseite'] = $konfiguration_set_obj->getStartseite();
/* ********************************************************************************************************************* */
/*
* T H E M E
*/
/* $theme = AppBundle::getTheme($this->document, 'theme_doc');
$this->baseParam['theme'] = $theme; */
/* ********************************************************************************************************************* */
/*
* N A V I G A T I O N
*/
$this->baseParam['url_rent'] = AppBundle::getValue($konfiguration_projekt_obj, 'getUrl_rent');
$this->baseParam['text_rent'] = AppBundle::getValue($konfiguration_projekt_obj, 'getText_rent');
$this->baseParam['url_homes'] = AppBundle::getValue($konfiguration_projekt_obj, 'getUrl_homes');
$this->baseParam['text_homes'] = AppBundle::getValue($konfiguration_projekt_obj, 'getText_homes');
$this->baseParam['url_shops'] = AppBundle::getValue($konfiguration_projekt_obj, 'getUrl_shopping');
$this->baseParam['text_shops'] = AppBundle::getValue($konfiguration_projekt_obj, 'getText_shopping');
// $theme = AppBundle::getTheme($this->document, 'theme_doc');
// $region_homes_doc = AppBundle::getTheme($this->document, 'region_homes_doc');
// $this->baseParam['theme'] = $theme;
// $this->baseParam['page'] = $region_homes_doc;
$bugfiximageurl = AppBundle::getBugfiximageurl();
/* ********************************************************************************************************************* */
/*
* G L A N Z E R L O G O
*/
$server_protocol = 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' ? 's' : '');
$logo_link = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogodomain');
// $canonical_base = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
// $this->baseParam['path_info'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
// $this->baseParam['canonical_base'] = $canonical_base;
// if ($region_homes_doc === 'hochsoelden')
// {
// $theme = "hochsoelden";
// }
$glanzerLogo = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_default');
$glanzerLogoAlt = "";
if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' . $glanzerLogo) != '')
{
$glanzer_logo_asset_obj = \Pimcore\Model\Asset::getByPath($glanzerLogo);
$glanzerLogoAlt = $glanzer_logo_asset_obj->getMetadata("alt");
}
$this->baseParam['frontendParam'] = isset($_GET['load']) ? $_GET['load'] : "";
$this->baseParam['logo_link'] = $logo_link;
$this->baseParam['glanzerLogo'] = $bugfiximageurl.$glanzerLogo;
$this->baseParam['glanzerLogoAlt'] = $glanzerLogoAlt;
// /** @var IconTrait $trait */
// $this->baseParam['contacts'] = $this->getContactLinks();
// dd($this->document);
// $region_homes_doc = AppBundle::getTheme($this->document, 'region_homes_doc');
//
// $this->baseParam['page'] = $region_homes_doc;
}
public function __init(){
$theme = AppBundle::getTheme($this->document, 'theme_doc');
$region_homes_doc = AppBundle::getTheme($this->document, 'region_homes_doc');
$this->baseParam['theme'] = $theme;
$this->baseParam['page'] = $region_homes_doc;
$bugfiximageurl = AppBundle::getBugfiximageurl();
/* ********************************************************************************************************************* */
/*
* G L A N Z E R L O G O
*/
$server_protocol = 'http' . ($_SERVER['REQUEST_SCHEME'] == 'https' ? 's' : '');
$logo_link = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogodomain');
$canonical_base = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getFullpath();
$this->baseParam['path_info'] = $server_protocol . '://' . $_SERVER['HTTP_HOST'] . $this->document->getRealFullpath();
$this->baseParam['canonical_base'] = $canonical_base;
if ($region_homes_doc === 'hochsoelden')
{
$theme = "hochsoelden";
}
switch ($theme) {
case 'homes':
$glanzerLogo = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_homes');
break;
case 'rent':
$glanzerLogo = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_rent');
break;
case 'hochsoelden':
$glanzerLogo = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_hochsoelden');
break;
default:
$glanzerLogo = AppBundle::getValue($this->baseParam['konfiguration_projekt_obj'], 'getLogo_default');
}
$glanzerLogoAlt = "";
if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' . $glanzerLogo) != '')
{
$glanzer_logo_asset_obj = \Pimcore\Model\Asset::getByPath($glanzerLogo);
$glanzerLogoAlt = $glanzer_logo_asset_obj->getMetadata("alt");
}
$this->baseParam['frontendParam'] = isset($_GET['load']) ? $_GET['load'] : "";
$this->baseParam['logo_link'] = $logo_link;
$this->baseParam['glanzerLogo'] = $bugfiximageurl.$glanzerLogo;
$this->baseParam['glanzerLogoAlt'] = $glanzerLogoAlt;
$this->baseParam['contacts'] = $this->getContactLinks();
}
public function jobsTeaserSlider($teaser_folder_id,$excludeId)
{
$frontendhelper = new FrontendHelper();
$request = new Request();
$locale = $request->getLocale();
$this->baseParam['wetterLink'] = $this->getWetter($locale)['link'];
$this->baseParam['wetterIcon'] = $this->getWetter($locale)['icon'];
$teaser_Array = [];
$package_teaser_Array = [];
if(!empty($teaser_folder_id))
{
$packageObj = DataObject::getById($teaser_folder_id);
if(is_object($packageObj))
{
$itemsArray = $packageObj->getChildren();
$items = AppBundle::sortByIndex($itemsArray);
foreach ($items as $key => $element)
{
$packageId = $element->getId();
$teaser_Array[$packageId] = $element;
}
if($excludeId != '')
{
unset($teaser_Array[$excludeId]); //auf einer Detailseite wird die eigene ID ausgeschlossen!
}
}
/* ********************************************************************************************************************* */
if(is_array($teaser_Array))
{
foreach ($teaser_Array as $key => $item)
{
$gueltigkeitszeitraum = '';
$teaser_title = '';
$teaser_headline = '';
$teaser_text = '';
$teaser_bild_normal = '';
$teaser_bild_retina = '';
$teaser_bild_default = '';
$teaser_bild__alttag = '';
$teaser_link = '';
$prettyurl = AppBundle::getValue($item, 'getPrettyurl');
//$pagename = ($this->document->getProperty('language') == 'de')? 'job-bewerbung' : 'jobs';
$pagename = $this->document->getProperty('jobPageName');
$teaser_link = '/' . $pagename . '/' . $prettyurl ;
$show_not = AppBundle::getValue($item, 'getShow_not');
$show = ($show_not)? false : true;
$teaser_text = (string)AppBundle::getValue($item, 'getTeaser_text');
$teaser_title = (string)$frontendhelper->changeTextarea(AppBundle::getValue($item, 'getTeaser_title'));
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$teaserbild_path = AppBundle::getValue($item, 'getTeaserbild');
$thumb_name_default = 'teaser-default';
$thumb_name_normal = 'teaser-hochformat-package-normal';
$thumb_name_retina = 'teaser-hochformat-package-retina';
if (is_file($_SERVER["DOCUMENT_ROOT"] . '/var/assets' . $teaserbild_path) != '')
{
$teaserbild_object = \Pimcore\Model\Asset::getByPath($teaserbild_path);
$teaser_bild__alttag = $teaserbild_object->getMetadata("alt");
$teaser_bild_normal = (string)$teaserbild_object->getThumbnail($thumb_name_normal);
$teaser_bild_retina = (string)$teaserbild_object->getThumbnail( $thumb_name_retina);
$teaser_bild_default = (string)$teaserbild_object->getThumbnail($thumb_name_default);
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$package_teaser_Array[$key] = array(
'gueltigkeitszeitraum' => $gueltigkeitszeitraum,
'teaser_title' => $teaser_title,
'teaser_text' => $teaser_text,
'teaser_bild_normal' => $teaser_bild_normal,
'teaser_bild_retina' => $teaser_bild_retina,
'teaser_bild_default' => $teaser_bild_default,
'teaser_bild__alttag' => $teaser_bild__alttag,
'teaser_link' => $teaser_link,
'show' => $show
);
}
}
}
return $package_teaser_Array;
}
/**
* @param Request $request
* @param \Pimcore\Config\Config $websiteConfig
* @return Response
*/
#[Route('/{segment}/{job}', requirements: ['segment' => 'stellenangebot|job'])]
public function jobdetailAction(Request $request, \Pimcore\Config $websiteConfig, TranslatorInterface $translator): Response
{
/* ***************************************************************************************************************** */
/* C O N F I G * (start) ******************************************************************************************* */
/* ***************************************************************************************************************** */
$frontendhelper = new FrontendHelper();
$jobangebot = $request->get('jobangebot');
$path = $request->getPathInfo();
$explodedPath = explode("/", $path);
$firstPath = "/" . $explodedPath[1] . "/";
$locale = $request->getLocale();
$this->baseParam['wetterLink'] = $this->getWetter($locale)['link'];
$this->baseParam['wetterIcon'] = $this->getWetter($locale)['icon'];
$jobs_objekt_id ="";
$items = new \Pimcore\Model\DataObject\Jobs\Listing();
// foreach ($items as $item) {
// if ((string)$item->getPrettyurl() == $jobangebot) {
// $special_description = AppBundle::getValue($item, 'getMetabeschreibung');
// $special_title = AppBundle::getValue($item, 'getMetatitel');
// $jobs_objekt_id = $item->getId();
// break;
// }
//
// }
foreach ($items as $item) {
if ($firstPath . (string)$item->getPrettyurl() == $path) {
$special_description = AppBundle::getValue($item, 'getMetabeschreibung');
$special_title = AppBundle::getValue($item, 'getMetatitel');
$jobs_objekt_id = $item->getId();
break;
}
}
$GLOBALS['jobsObjectId'] = $jobs_objekt_id;
$jobObjectId = $GLOBALS['jobsObjectId'];
$websiteConfigName = 'konfiguration_bewerbung_formular';
$confAnfrageformObject = \Pimcore\Config::getWebsiteConfig()->get($websiteConfigName);
$jobTeaserSliderArray = [];
$frontend = [];
$twigParams = [];
/* ***************************************************************************************************************** */
/* C O N F I G * (ende) ******************************************************************************************** */
/* ***************************************************************************************************************** */
$twigParams['show_slider'] = "";
$twigParams['galleryArray'] = "";
$twigParams['content_headline'] = "";
$twigParams['content_subheadline'] = "";
$twigParams['show_text'] = "";
$twigParams['content_text'] = "";
$twigParams['show_json'] = "";
$twigParams['context'] = "";
$twigParams['context_type'] = "";
$twigParams['job_title'] = "";
$twigParams['job_description'] = "";
$twigParams['hiring_organization_type'] = "";
$twigParams['hiring_organization_name'] = "";
$twigParams['date_posted'] = "";
$twigParams['valid_through'] = "";
$twigParams['employment_type'] = "";
$twigParams['job_location_type'] = "";
$twigParams['job_location_address_type'] = "";
$twigParams['job_location_address_street_address'] = "";
$twigParams['job_location_address_address_locality'] = "";
$twigParams['job_location_address_address_region'] = "";
$twigParams['job_location_address_postal_code'] = "";
$twigParams['job_location_address_address_country'] = "";
$twigParams['base_salary_type'] = "";
$twigParams['base_salary_currency'] = "";
$twigParams['base_salary_value_type'] = "";
$twigParams['base_salary_value_unit_text'] = "";
$twigParams['base_salery_value_value'] = "";
if (is_object(\Pimcore\Model\DataObject::getById($jobObjectId)))
{
$object = \Pimcore\Model\DataObject::getById($jobObjectId);
$containerId = $object->getParent()->getId();
/* @ F O R M U L A R B E W E R B U N G [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
$service = \Pimcore::getContainer()->get(Form::class);
$buttontext = AppBundle::getValue($confAnfrageformObject, 'getSubmitbutton_text');
$dsgvotext = AppBundle::getValue($confAnfrageformObject, 'getFormular_dsgvo_text');
$antwort = '//' . $_SERVER['HTTP_HOST'] . AppBundle::getValue($confAnfrageformObject, 'getAntwortseite');
$fields = Fields::getDefaultForm();
$formFields = $service->getFormFields($fields, $_POST);
$pflichtfeldtext = $translator->trans('form_pflichtfeldtext');
$formTemplate = 'bewerbung.html.twig';
$mailTemplate = '/src/AppBundle/Resources/public/static/init/mail-templates/bewerbung'; // ohne .html.php
$pagename = $this->document->getParent()->getFullPath();
$server_protocol = 'http' . ($_SERVER['REQUEST_SCHEME'] == 'on' ? 's' : '');
$domain = $server_protocol . '://' . $_SERVER['HTTP_HOST'];
$url = $domain . $pagename;
$stelle = AppBundle::getValue($object, 'getPrettyurl');
/* ********************************************************************************* */
/* Ausgabe ************************************************************************* */
/* ********************************************************************************* */
$frontend['formular'] = array(
'formFields' => $formFields,
'formTemplate' => $formTemplate,
'buttontext' => $buttontext,
'pflichtfeldtext' => $pflichtfeldtext,
'dsgvotext' => $dsgvotext,
'websiteConfigName' => $websiteConfigName,
'mailTemplate' => $mailTemplate,
'antwort' => $antwort,
'stelle' => $stelle,
'url' => $url
);
/* @ F O R M U L A R B E W E R B U N G [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @ Gallery Slider [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
$show_no_slider = AppBundle::getValue($object, 'getShow_no_slider');
$show_slider = !$show_no_slider;
$gallery_array = AppBundle::getValue($object, 'getDetail_gallery');
$gallery = [];
foreach ($gallery_array as $key => $img_item)
{
$gallery_img_id = $img_item->getImage()->getId();
if(!empty($gallery_img_id))
{
$gallery_img_object = \Pimcore\Model\Asset::getById($gallery_img_id);
$gallery_bild = $gallery_img_object->getRealFullPath();
}
$gallery[$key] = ["path"=>$gallery_bild, "title"=>$gallery_img_object->getMetadata("title")];
}
/* ********************************************************************************* */
/* Ausgabe ************************************************************************* */
/* ********************************************************************************* */
// $this->view->show_slider = $show_slider;
// $this->view->galleryArray = $gallery;
$twigParams['show_slider'] = $show_slider;
$twigParams['galleryArray'] = $gallery;
/* @ Gallery Slider [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @ Content Text [START] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
$show_no_text = AppBundle::getValue($object, 'getShow_no_text');
$show_text = ($show_no_text) ? false : true;
$content_text = AppBundle::getValue($object, 'getContent_text');
$content_headline = (string)$frontendhelper->changeTextarea(AppBundle::getValue($object, 'getDetail_headline'));
$content_subheadline = (string)$frontendhelper->changeTextarea(AppBundle::getValue($object, 'getDetail_text'));
/* ********************************************************************************* */
/* Ausgabe ************************************************************************* */
/* ********************************************************************************* */
/* $this->view->content_headline = $content_headline;
$this->view->content_subheadline = $content_subheadline;
$this->view->show_text = $show_text;
$this->view->content_text = $content_text; */
$twigParams['content_headline'] = $content_headline;
$twigParams['content_subheadline'] = $content_subheadline;
$twigParams['show_text'] = $show_text;
$twigParams['content_text'] = $content_text;
/* @ Content Text [ENDE] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* ********************************************************************************************************************* */
/* JSON *************************************************************************************************** */
/* ********************************************************************************************************************* */
$twigParams['show_json'] = AppBundle::getValue($object, 'getShow_json');
$twigParams['context'] = AppBundle::getValue($object, 'getContext');
$twigParams['context_type'] = AppBundle::getValue($object, 'getContext_type');
$twigParams['job_title'] = AppBundle::getValue($object, 'getJob_title');
$twigParams['job_description'] = AppBundle::getValue($object, 'getJob_description');
$twigParams['hiring_organization_type'] = AppBundle::getValue($object, 'getHiring_organization_type');
$twigParams['hiring_organization_name'] = AppBundle::getValue($object, 'getHiring_organization_name');
$twigParams['date_posted'] = AppBundle::getValue($object, 'getDate_posted');
$twigParams['valid_through'] = AppBundle::getValue($object, 'getValid_through');
$twigParams['employment_type'] = AppBundle::getValue($object, 'getEmployment_type');
$twigParams['job_location_type'] = AppBundle::getValue($object, 'getJob_location_type');
$twigParams['job_location_address_type'] = AppBundle::getValue($object, 'getJob_location_address_type');
$twigParams['job_location_address_street_address'] = AppBundle::getValue($object, 'getJob_location_address_street_address');
$twigParams['job_location_address_address_locality'] = AppBundle::getValue($object, 'getJob_location_address_address_locality');
$twigParams['job_location_address_address_region'] = AppBundle::getValue($object, 'getJob_location_address_address_region');
$twigParams['job_location_address_postal_code'] = AppBundle::getValue($object, 'getJob_location_address_postal_code');
$twigParams['job_location_address_address_country'] = AppBundle::getValue($object, 'getJob_location_address_address_country');
$twigParams['base_salary_type'] = AppBundle::getValue($object, 'getBase_salary_type');
$twigParams['base_salary_currency'] = AppBundle::getValue($object, 'getBase_salary_currency');
$twigParams['base_salary_value_type'] = AppBundle::getValue($object, 'getBase_salary_value_type');
$twigParams['base_salary_value_unit_text'] = AppBundle::getValue($object, 'getBase_salary_value_unit_text');
$twigParams['base_salery_value_value'] = AppBundle::getValue($object, 'getBase_salery_value_value');
}
/* ********************************************************************************************************************* */
/* Ausgabe allgemein *************************************************************************************************** */
/* ********************************************************************************************************************* */
/* $this->view->abstand = ' abstand-top abstand-bottom';
$this->view->frontend = $frontend; */
$twigParams['abstand'] = ' abstand-top abstand-bottom';
$twigParams['frontend'] = $frontend;
$contacts = $this->getContactLinks();
$locale = $request->getLocale();
$wetter = $this->getWetter($locale);
$logo_link = $this->baseParam['logo_link'];
$glanzerLogo = $this->baseParam['glanzerLogo'];
return $this->render('module/Jobs/__jobs-detail-bewerbung.html.twig',
[
"twigParams" => $twigParams,
"logo_link" => $this->baseParam['logo_link'],
"glanzerLogo" => $this->baseParam['glanzerLogo'],
"glanzerLogoAlt" => $this->baseParam['glanzerLogoAlt'],
"url_rent" => $this->baseParam['url_rent'],
"text_rent" => $this->baseParam['text_rent'],
"url_shops" => $this->baseParam['url_shops'],
"text_shops" => $this->baseParam['text_shops'],
"url_homes" => $this->baseParam['url_homes'],
"text_homes" => $this->baseParam['text_homes'],
"contacts" => $contacts,
"wetterLink" => $wetter['link'],
"wetterIcon" => $wetter['icon'],
"sprachweiche_title" => $this->baseParam['sprachweiche_title'],
"sprachweiche_text" => $this->baseParam['sprachweiche_text'],
"sprachweiche_button_yes" => $this->baseParam['sprachweiche_button_yes'],
"sprachweiche_button_no" => $this->baseParam['sprachweiche_button_no'],
"startseiteEN" => $this->baseParam['startseiteEN']
]
);
}
public function jobsTeaserSliderAction(Request $request,\Pimcore\Config\Config $websiteConfig)
{
$teaserfolder = $this->document->getEditable('jobsfolder');
$teaser_folder_id = "";
if(!empty($teaserfolder)){
$teaser_folder_id = $teaserfolder->getId();
}
$jobTeaserSliderArray = $this->jobsTeaserSlider($teaser_folder_id,'');
/* ********************************************************************************************************************* */
/* Ausgabe ************************************************************************************************************* */
/* ********************************************************************************************************************* */
// $this->view->jobTeaserSliderArray = $jobTeaserSliderArray;
return $this->render("module/Jobs/__jobs-teaser-slider.html.twig", ["jobTeaserSliderArray" => $jobTeaserSliderArray]);
}
}