Added "buttons" option under the HTML object. This allows users to create custom button links on the landing page.
This commit is contained in:
parent
2b1bfbf52a
commit
a3157e6b0a
@ -38,6 +38,8 @@
|
|||||||
"twitter": [],
|
"twitter": [],
|
||||||
"links": {
|
"links": {
|
||||||
},
|
},
|
||||||
|
"buttons": {
|
||||||
|
},
|
||||||
|
|
||||||
"google_analytics": false,
|
"google_analytics": false,
|
||||||
"piwik_analytics": false,
|
"piwik_analytics": false,
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
foreach ($page['entry_page'] as $key => $node) {
|
foreach ($page['entry_page'] as $key => $node) {
|
||||||
echo '<a href="' . $node . '" class="Button Button--primary Button--hero">' . $key . '</a>';
|
echo '<a href="' . $node . '" class="Button Button--primary Button--hero">' . $key . '</a>';
|
||||||
}
|
}
|
||||||
|
foreach ($params['html']['buttons'] as $name => $link ) {
|
||||||
|
echo '<a href="' . $link . '" class="Button Button--primary Button--hero">' . $name . '</a>';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user