diff --git a/modules/consent/templates/default/consentform.php b/modules/consent/templates/default/consentform.php index 6931dfd4353f804d79530f51c045be2f79174399..a9df63cf80244317338f5691024fdd147ca139d2 100644 --- a/modules/consent/templates/default/consentform.php +++ b/modules/consent/templates/default/consentform.php @@ -46,6 +46,16 @@ if (array_key_exists('name', $this->data['dstMetadata'])) { $dstName = $this->data['dstMetadata']['entityid']; } +$spPurpose = 'unspecified'; +if (array_key_exists('descr_purpose', $this->data['dstMetadata'])) { + $spPurpose = $this->data['dstMetadata']['descr_purpose']; + if (is_array($spPurpose)) { + $spPurpose = $this->t($spPurpose); + } +} + + + $attributes = $this->data['attributes']; @@ -55,8 +65,12 @@ $this->includeAtTemplateBase('includes/header.php'); <div id="content"> <p> -<?php echo $this->t('{consent:consent_notice}'); ?> <strong><?php echo htmlspecialchars($dstName); ?></strong>. -<?php echo $this->t('{consent:consent_accept}', array('IDPNAME' => htmlspecialchars($srcName))) ?> +<!-- notice:<?php echo $this->t('{consent:consent_notice}'); ?> <strong><?php echo htmlspecialchars($dstName); ?></strong>. --> +<?php echo $this->t('{consent:consent_accept}', array( + 'IDPNAME' => $srcName, + 'SPNAME' => $dstName, + 'SPDESC' => $spPurpose, +)) ?> </p> <?php