aboutsummaryrefslogtreecommitdiff
path: root/app/layout/header.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-18 01:38:11 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-18 01:38:11 +0100
commitdda7b002def51405bab82bd4a31fc3ad8c33c572 (patch)
treea549a0c10eaffd49491c7f68999fdaa7d6d698ca /app/layout/header.phtml
parent41033768c3eacbd564c3ec15455587e4f725a055 (diff)
Corrections mode anonyme avec formulaire
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/361
Diffstat (limited to 'app/layout/header.phtml')
-rw-r--r--app/layout/header.phtml17
1 files changed, 12 insertions, 5 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index e90da6196..d43f682b0 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -90,9 +90,16 @@ if (Minz_Configuration::canLogIn()) {
</ul>
</div>
</div>
- <?php }/* elseif (Minz_Configuration::authType() === 'persona') { ?>
- <div class="item configure">
- <?php echo FreshRSS_Themes::icon('login'); ?> <a class="signin" href="#"><?php echo Minz_Translate::t ('login'); ?></a>
- </div>
- <?php }*/ ?>
+ <?php } elseif (Minz_Configuration::canLogIn()) {
+ ?><div class="item configure"><?php
+ switch (Minz_Configuration::authType()) {
+ case 'form':
+ echo FreshRSS_Themes::icon('login'); ?><a class="signin" href="<?php echo _url ('index', 'formLogin'); ?>"><?php echo Minz_Translate::t ('login'); ?></a></li><?php
+ break;
+ case 'persona':
+ echo FreshRSS_Themes::icon('login'); ?><a class="signin" href="#"><?php echo Minz_Translate::t ('login'); ?></a></li><?php
+ break;
+ }
+ ?></div><?php
+ } ?>
</div>