diff options
| author | 2014-01-18 01:38:11 +0100 | |
|---|---|---|
| committer | 2014-01-18 01:38:11 +0100 | |
| commit | dda7b002def51405bab82bd4a31fc3ad8c33c572 (patch) | |
| tree | a549a0c10eaffd49491c7f68999fdaa7d6d698ca /app/layout/header.phtml | |
| parent | 41033768c3eacbd564c3ec15455587e4f725a055 (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.phtml | 17 |
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> |
