aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 19:06:32 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 19:06:32 +0200
commit3ff51a59ba97f3ef1df3c26df16d9a3ab5789843 (patch)
tree89de7b553f5b8240ad0d9f766800973f9845a121 /app/views/index
parent48a1aa7d52e712d5f64a33a003b31f23a00b99f5 (diff)
Ajout fonctionnalité connexion avec Persona (à améliorer sans doute)
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/index.phtml5
-rw-r--r--app/views/index/login.phtml1
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 27a6f9fe2..5e860b8f9 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,7 +1,8 @@
<?php $items = $this->entryPaginator->items (); ?>
<?php if (!empty ($items)) { ?>
<div id="top">
- <a class="read_all" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('is_read' => 1))); ?>">Tout marquer comme lu</a><!--
+ <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
+ <a class="read_all" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('is_read' => 1))); ?>">Tout marquer comme lu</a><?php } ?><!--
<?php if (Session::param ('mode', 'all') == 'not_read') { ?>
--><a class="print_all" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'all'))); ?>">Tout afficher</a>
<?php } else { ?>
@@ -26,6 +27,7 @@
<div class="content"><?php echo $item->content (); ?></div>
<div class="after">
+ <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
<?php if (!$item->isRead ()) { ?>
<a class="read" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('id' => $item->id (), 'is_read' => 1))); ?>">J'ai fini de lire l'article</a><!--
<?php } else { ?>
@@ -37,6 +39,7 @@
<?php } else { ?>
--><a class="bookmark" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'bookmark', 'params' => array ('id' => $item->id (), 'is_favorite' => 0))); ?>">Retirer l'article de mes favoris</a>
<?php } ?>
+ <?php } ?>
</div>
</div>
<?php } ?>
diff --git a/app/views/index/login.phtml b/app/views/index/login.phtml
new file mode 100644
index 000000000..cc814deff
--- /dev/null
+++ b/app/views/index/login.phtml
@@ -0,0 +1 @@
+<?php print_r ($this->res); ?>