Merge pull request #459 from eisbehr-/master
add global checks in templates to prevent errors
This commit is contained in:
commit
f55a72bce8
@ -27,8 +27,10 @@
|
|||||||
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 ) {
|
if(isset($params['html']['buttons']) && is_array($params['html']['buttons'])) {
|
||||||
echo '<a href="' . $link . '" class="Button Button--secondary Button--hero">' . $name . '</a>';
|
foreach ($params['html']['buttons'] as $name => $link ) {
|
||||||
|
echo '<a href="' . $link . '" class="Button Button--secondary Button--hero">' . $name . '</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user