1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

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

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>";