Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 12ae801

Browse files
authored
Merge pull request #74 from silinternational/develop
use a variable for Help link
2 parents 8104840 + e2919c8 commit 12ae801

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"minimum-stability": "stable",
1313
"require": {
14-
"php": ">=5.4",
14+
"php": ">=7.0",
1515
"roave/security-advisories": "dev-master",
1616
"simplesamlphp/composer-module-installer": "^1.1.5",
1717
"simplesamlphp/simplesamlphp": "^1.15.2",

themes/material/default/selectidp-links.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ function clickedAnyway(idpName) {
4141

4242
<div class="mdl-layout-spacer"></div>
4343

44-
<nav class="mdl-navigation">
45-
<a class="mdl-navigation__link" href="https://idphelp.sil.org" target="_blank"><?= $this->t('{material:selectidp:help}') ?></a>
46-
</nav>
44+
<?php if (! empty($this->data['helpCenterUrl'])): ?>
45+
<nav class="mdl-navigation">
46+
<a href="<?= $this->data['helpCenterUrl'] ?>" target="_blank" class="mdl-navigation__link">
47+
<?= $this->t('{material:selectidp:help}') ?>
48+
</a>
49+
</nav>
50+
<?php endif; ?>
4751
</div>
4852
</header>
4953

0 commit comments

Comments
 (0)