1
0
mirror of https://github.com/ascribe/wp-theme synced 2025-01-03 10:25:08 +01:00
This commit is contained in:
Scott Borys 2015-10-14 10:25:30 -06:00
parent 9d95d7c739
commit 16b05ecdc0

View File

@ -513,10 +513,10 @@ class Subtemplate {
$result = "<section class='subtemplate content'> $result = "<section class='subtemplate content'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div>{$content}</div> <div>{$content}</div>
</div> </div>
</div> </div>
</section>"; </section>";
@ -528,10 +528,10 @@ class Subtemplate {
$result = "<section class='subtemplate content-boxed'> $result = "<section class='subtemplate content-boxed'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div>{$content}</div> <div>{$content}</div>
</div> </div>
</div> </div>
</section>"; </section>";
@ -539,15 +539,15 @@ class Subtemplate {
} }
public function image($subtemplateTitle) { public function image($subtemplateTitle) {
$image = get_sub_field('image')['url']; $image = get_sub_field('image')['url'];
$imageAlt = get_sub_field('image')['alt']; $imageAlt = get_sub_field('image')['alt'];
$result = "<section class='subtemplate image'> $result = "<section class='subtemplate image'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div><img src='{$image}' alt='{$imageAlt}'></div> <div><img src='{$image}' alt='{$imageAlt}'></div>
</div> </div>
</div> </div>
</section>"; </section>";
@ -686,17 +686,17 @@ class Subtemplate {
return $result; return $result;
} }
public function download($subtemplateTitle) { public function download($subtemplateTitle) {
$leftUrl = get_sub_field('left_button_url'); $leftUrl = get_sub_field('left_button_url');
$leftText = get_sub_field('left_button_text'); $leftText = get_sub_field('left_button_text');
$rightUrl = get_sub_field('right_button_url'); $rightUrl = get_sub_field('right_button_url');
$rightText = get_sub_field('right_button_text'); $rightText = get_sub_field('right_button_text');
$result = "<section class='subtemplate downloads'> $result = "<section class='subtemplate downloads'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-content'> <div class='centered-content'>
<a href='{$leftUrl}' download class='left button blue'>{$leftText}</a> <a href='{$leftUrl}' download class='left button blue'>{$leftText}</a>
<a href='{$rightUrl}' download class='right button blue'>{$rightText}</a> <a href='{$rightUrl}' download class='right button blue'>{$rightText}</a>
</div> </div>
</div> </div>
</section>"; </section>";
@ -722,15 +722,15 @@ class Subtemplate {
} }
$result = "<section class='subtemplate contact'> $result = "<section class='subtemplate contact'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div class='column-container'> <div class='column-container'>
<div class='form'>{$content}</div> <div class='form'>{$content}</div>
<aside class='contact-points'>{$contactPoints}</aside> <aside class='contact-points'>{$contactPoints}</aside>
</div>
</div>
</div> </div>
</div>
</div>
</section>"; </section>";
return $result; return $result;
@ -855,11 +855,11 @@ class Subtemplate {
$result = "<section class='subtemplate existing-new'> $result = "<section class='subtemplate existing-new'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div id='existing-tab'>Existing Marketplace</div> <div id='existing-tab'>Existing Marketplace</div>
<div id='new-tab'>New Marketplace</div> <div id='new-tab'>New Marketplace</div>
<div id='existing'>{$existing}</div> <div id='existing'>{$existing}</div>
<div id='new'>{$new}</div> <div id='new'>{$new}</div>
</div> </div>
</section>"; </section>";
@ -873,16 +873,16 @@ class Subtemplate {
$result = "<section class='subtemplate get-started'> $result = "<section class='subtemplate get-started'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div class='description'>{$content}</div> <div class='description'>{$content}</div>
<div class='api'> <div class='api'>
<h1>API</h1> <h1>API</h1>
<img src='{$apiImg}' alt='API'> <img src='{$apiImg}' alt='API'>
</div> </div>
<div class='white-label'> <div class='white-label'>
<h1>White Label Marketplace</h1> <h1>White Label Marketplace</h1>
<img src='{$whiteImg}' alt='White Label Marketplace'> <img src='{$whiteImg}' alt='White Label Marketplace'>
</div> </div>
</div> </div>
</section>"; </section>";
@ -890,13 +890,13 @@ class Subtemplate {
} }
public function pricing($subtemplateTitle) { public function pricing($subtemplateTitle) {
$bgImg = get_sub_field('background_image')['url']; $bgImg = get_sub_field('background_image')['url'];
$rightPricing = get_sub_field('right_pricing_text'); $rightPricing = get_sub_field('right_pricing_text');
$leftPricing = get_sub_field('left_pricing_text'); $leftPricing = get_sub_field('left_pricing_text');
$result = "<section class='subtemplate pricing' style='background-image:url({$bgImg})'> $result = "<section class='subtemplate pricing' style='background-image:url({$bgImg})'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1> <h1>{$subtemplateTitle}</h1>
<div class='left-pricing'>{$leftPricing}</div> <div class='left-pricing'>{$leftPricing}</div>
<div class='right-pricing'>{$rightPricing}</div> <div class='right-pricing'>{$rightPricing}</div>
</div> </div>