add CTA to blue box subtemplate

This commit is contained in:
Matthias Kretschmann 2015-12-12 18:05:19 +01:00
parent f2c9d64ac5
commit 3c2edff35f
1 changed files with 4 additions and 1 deletions

View File

@ -282,13 +282,16 @@ class Subtemplate {
}
public function blueBox($subtemplateTitle) {
$content = get_sub_field('content');
$content = get_sub_field('content');
$blueBoxCtaText = get_sub_field('bluebox_cta_text');
$blueBoxCtaLink = get_sub_field('bluebox_cta_link');
$result = "<section class='subtemplate blue-box'>
<div class='centered-content'>
<article class='blue-copy'>
<h1>{$subtemplateTitle}</h1>
<div>{$content}</div>
<a href='{$blueBoxCtaLink}' class='button pink-overPic'>{$blueBoxCtaText}</a>
</article>
</div>
</section>";