diff --git a/Classes/Controller/JoblistController.php b/Classes/Controller/JoblistController.php index b6972b6694123eb870c7d544f829c86ee4b68bcb..6c0025a096c255ba7daef8d4cf6b05f26e3e7c7d 100644 --- a/Classes/Controller/JoblistController.php +++ b/Classes/Controller/JoblistController.php @@ -446,6 +446,7 @@ class JoblistController extends ActionController { } } + $this->view->assign('isProjectBaseLoaded', ExtensionManagementUtility::isLoaded('project_base')); $this->view->assign('applyData', $applyData); $this->view->assign('maxFileSize', $this->settings['allowedMaxFileSize']); $this->view->assign('maxFileSizeMb', ((int) $this->settings['allowedMaxFileSize'] / 1000) . ' MByte'); diff --git a/Resources/Private/Partials/Sharer.html b/Resources/Private/Partials/Sharer.html new file mode 100644 index 0000000000000000000000000000000000000000..1a0d9695c1027208cca91bdcd377499ebb6411c5 --- /dev/null +++ b/Resources/Private/Partials/Sharer.html @@ -0,0 +1,7 @@ +{namespace base=SGalinski\ProjectBase\ViewHelpers} +<div class="default-content-element sgjobs-social-sharer"> + <p class="h4"> + <f:translate key="frontend.apply.recommend"/> + </p> + <base:sharer/> +</div> diff --git a/Resources/Private/Templates/Joblist/ApplyForm.html b/Resources/Private/Templates/Joblist/ApplyForm.html index 99443c5e2cf12051b2342ecb9e6d20747c279d0e..f6523473ae66a59d85d1615459b4561784e0802f 100644 --- a/Resources/Private/Templates/Joblist/ApplyForm.html +++ b/Resources/Private/Templates/Joblist/ApplyForm.html @@ -1,5 +1,4 @@ {namespace h=SGalinski\SgJobs\ViewHelpers} -{namespace base=SGalinski\ProjectBase\ViewHelpers} {namespace sgajax=SGalinski\SgAjax\ViewHelpers} <f:layout name="Default"/> @@ -167,10 +166,10 @@ </div> <f:if condition="{job.contact}"> <f:then> - <f:render section="contactBox" arguments="{contact: job.contact, hideApplyByEmail: job.hideApplyByEmail}" /> + <f:render section="contactBox" arguments="{contact: job.contact, hideApplyByEmail: job.hideApplyByEmail, isProjectBaseLoaded: isProjectBaseLoaded}" /> </f:then> <f:else> - <f:render section="contactBox" arguments="{contact: job.firstCompany.contact, hideApplyByEmail: job.hideApplyByEmail}" /> + <f:render section="contactBox" arguments="{contact: job.firstCompany.contact, hideApplyByEmail: job.hideApplyByEmail, isProjectBaseLoaded: isProjectBaseLoaded}" /> </f:else> </f:if> <f:if condition="{job.attachment}"> @@ -746,11 +745,8 @@ </f:if> </div> <hr> - <div class="default-content-element sgjobs-social-sharer"> - <p class="h4"> - <f:translate key="frontend.apply.recommend"/> - </p> - <base:sharer/> - </div> + <f:if condition="{isProjectBaseLoaded}"> + <f:render partial="Sharer" /> + </f:if> </div> </f:section>