Skip to content
Snippets Groups Projects
Commit 493a756f authored by Jochen's avatar Jochen
Browse files

Add null coalesce for label and style attribute

parent d38f8dc7
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ script('core', 'dist/login'); ...@@ -8,7 +8,7 @@ script('core', 'dist/login');
<?php if (!empty($_['alt_login'])) { ?> <?php if (!empty($_['alt_login'])) { ?>
<div id="alternative-logins"> <div id="alternative-logins">
<?php foreach($_['alt_login'] as $login): ?> <?php foreach($_['alt_login'] as $login): ?>
<a class="button <?php p(isset($login['style']) ? $login['style'] : ''); ?>" aria-label="<?php p($login['label']); ?>" href="<?php print_unescaped($login['href']); ?>" > <a class="button <?php p($login['style'] ?? ''); ?>" aria-label="<?php p($login['label'] ?? ''); ?>" href="<?php print_unescaped($login['href']); ?>" >
<?php p($login['name']); ?> <?php p($login['name']); ?>
</a> </a>
<?php endforeach; ?> <?php endforeach; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment