summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-07 21:44:39 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-07 21:44:39 +0100
commitadc704c3d75518fd7ed7a32b9ed21d9b7eb71c99 (patch)
treec7e768c89f1d9a37220d95a9add921d8f228692b /app/views
parentb039a6a0e35b3b9d9eef90474df8199289f61a43 (diff)
git diff Attention git diff À partir de ce commit, les contenus des articles sont compressés dans la base de données - pas compatible avec les anciennes versions, pour cela il faut mettre à jour la BDD
Diffstat (limited to 'app/views')
-rw-r--r--app/views/index/index.phtml23
1 files changed, 10 insertions, 13 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 86352f6ad..0ddf4efdd 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -18,32 +18,29 @@
<h1 class="title"><a target="_blank" href="<?php echo $item->link (); ?>"> <?php echo $item->title (); ?></a></h1>
<div class="before">
- </div>
-
- <div class="content"><?php echo $item->content (); ?></div>
-
- <div class="after">
<?php $author = $item->author (); ?>
<?php $feed = $item->feed (true); ?>
Le <?php echo $item->date (); ?>
<?php echo $author != '' ? ' par ' . $author : ''; ?>
sur <a target="_blank" href="<?php echo $feed->website (); ?>"><?php echo $feed->name (); ?> <img src="http://www.google.com/s2/favicons?domain=<?php echo get_domain ($feed->website ()); ?>" alt="" /></a>,
-
- <div class="options">
+ </div>
+
+ <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><!--
+ <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 { ?>
- <a class="read" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('id' => $item->id (), 'is_read' => 0))); ?>">Marquer comme non lu</a><!--
+ <a class="read" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('id' => $item->id (), 'is_read' => 0))); ?>">Marquer comme non lu</a>
<?php } ?>
-
+ -
<?php if (!$item->isFavorite ()) { ?>
- --><a class="bookmark" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'bookmark', 'params' => array ('id' => $item->id (), 'is_favorite' => 1))); ?>">Ajouter l'article à mes favoris</a>
+ <a class="bookmark" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'bookmark', 'params' => array ('id' => $item->id (), 'is_favorite' => 1))); ?>">Ajouter l'article à mes favoris</a>
<?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>
+ <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>
</div>
<?php } ?>