1
0
mirror of https://github.com/ascribe/wp-theme synced 2025-01-03 18:35:08 +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) { 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'> $result = "<section class='subtemplate blue-box'>
<div class='centered-content'> <div class='centered-content'>
<article class='blue-copy'> <article class='blue-copy'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div>{$content}</div> <div>{$content}</div>
<a href='{$blueBoxCtaLink}' class='button pink-overPic'>{$blueBoxCtaText}</a>
</article> </article>
</div> </div>
</section>"; </section>";