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

Commit 6a153fd

Browse files
author
Billy Clark
committed
unnecessary duplication
1 parent 4e94f89 commit 6a153fd

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
lines changed

themes/material/common-head-elements.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<meta http-equiv="x-ua-compatible" content="ie=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1.0">
55

6+
<base href="<?= SimpleSAML_Module::getModuleURL('material/') ?>">
7+
68
<?php
79
$trackingId = htmlentities($this->configuration->getValue('analytics.trackingId'));
810
if (! empty($trackingId)) {
@@ -29,9 +31,9 @@
2931
<?php
3032
$colors = htmlentities($this->configuration->getValue('theme.color-scheme', 'indigo-purple'));
3133
?>
32-
<link rel="stylesheet" href="/module.php/material/material.<?= $colors ?>.1.2.1.min.css">
33-
<link rel="stylesheet" href="/module.php/material/styles.2.2.1.css">
34+
<link rel="stylesheet" href="material.<?= $colors ?>.1.2.1.min.css">
35+
<link rel="stylesheet" href="styles.2.2.1.css">
3436

35-
<script async src="/module.php/material/material.1.2.1.min.js"></script>
37+
<script async src="material.1.2.1.min.js"></script>
3638

3739
<link rel="icon" href="/favicon.png">

themes/material/default/selectidp-links.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function clickedAnyway(idpName) {
6666
<div class="mdl-card__media white-bg fixed-height">
6767
<button class="mdl-button fill-parent" onclick="setSelectedIdp('<?= $idpId ?>')">
6868
<img class="scale-to-parent" id="<?= $idpId ?>"
69-
src="<?= empty($idp['logoURL']) ? '/module.php/material/default-logo.png'
69+
src="<?= empty($idp['logoURL']) ? 'default-logo.png'
7070
: $idp['logoURL'] ?>">
7171
</button>
7272
</div>
@@ -86,7 +86,7 @@ function clickedAnyway(idpName) {
8686
<div class="mdl-card__media white-bg fixed-height" layout-children="row"
8787
child-spacing="center">
8888
<img class="scale-to-parent" id="<?= $idpId ?>"
89-
src="<?= empty($idp['logoURL']) ? '/module.php/material/default-logo.png'
89+
src="<?= empty($idp['logoURL']) ? 'default-logo.png'
9090
: $idp['logoURL'] ?>">
9191
</div>
9292
</div>

themes/material/mfa/must-set-up-mfa.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="/module.php/material/mfa-shield.svg"
30-
alt="<?= $this->t('{material:mfa:shield_icon}') ?>">
29+
<img src="mfa-shield.svg" alt="<?= $this->t('{material:mfa:shield_icon}') ?>">
3130
</div>
3231

3332
<div class="mdl-card__title center">

themes/material/mfa/nag-for-mfa.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="/module.php/material/mfa-shield.svg"
30-
alt="<?= $this->t('{material:mfa:shield_icon}') ?>">
29+
<img src="mfa-shield.svg" alt="<?= $this->t('{material:mfa:shield_icon}') ?>">
3130
</div>
3231

3332
<div class="mdl-card__title center">

themes/material/mfa/other_mfas.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ function excludeSelf($others, $selfId) {
1717

1818
foreach (excludeSelf($mfaOptions, $currentMfaId) as $otherOption) {
1919
?>
20-
<li class="mdl-menu__item"
21-
onclick="location.href += '&mfaId=<?= $otherOption['id'] ?>'">
20+
<li class="mdl-menu__item" onclick="location.href += '&mfaId=<?= $otherOption['id'] ?>'">
2221
<span class="mdl-typography--caption">
2322
<?= $this->t('{material:mfa:use_'.$otherOption['type'].'}') ?>
2423
</span>

themes/material/mfa/prompt-for-mfa-backupcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="/module.php/material/mfa-backup-codes.svg"
29+
<img src="mfa-backup-codes.svg"
3030
alt="<?= $this->t('{material:mfa:backup_code_icon}') ?>">
3131
</div>
3232

themes/material/mfa/prompt-for-mfa-totp.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="/module.php/material/mfa-totp-app.svg"
30-
alt="<?= $this->t('{material:mfa:totp_icon}') ?>">
29+
<img src="mfa-totp-app.svg" alt="<?= $this->t('{material:mfa:totp_icon}') ?>">
3130
</div>
3231

3332
<div class="mdl-card__title center">

themes/material/mfa/prompt-for-mfa-u2f.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<?php include __DIR__ . '/../common-head-elements.php' ?>
77

8-
<script src="/module.php/material/mfa-u2f-api.js"></script>
8+
<script src="mfa-u2f-api.js"></script>
99
<script>
1010
function verifyU2f() {
1111
// TODO: need feature sniff and error handling
@@ -86,8 +86,7 @@ function createHiddenInput(name) {
8686
?>
8787
<div class="mdl-card mdl-shadow--8dp">
8888
<div class="mdl-card__media white-bg margin" layout-children="column">
89-
<img src="/module.php/material/mfa-u2f.png"
90-
alt="<?= $this->t('{material:mfa:u2f_icon}') ?>">
89+
<img src="mfa-u2f.png" alt="<?= $this->t('{material:mfa:u2f_icon}') ?>">
9190
</div>
9291

9392
<div class="mdl-card__title center">

www/styles.2.2.1.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,6 @@ form p.error > i {
209209
font-weight: 400;
210210
src: local('Material Icons'),
211211
local('MaterialIcons-Regular'),
212-
url(/module.php/material/material-icons.woff2) format('woff2'),
213-
url(/module.php/material/material-icons.woff) format('woff');
212+
url(material-icons.woff2) format('woff2'),
213+
url(material-icons.woff) format('woff');
214214
}

0 commit comments

Comments
 (0)