From a68903782501b74916a5445e82aa1b7c7cd1d82d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 27 Oct 2013 22:13:58 +0100 Subject: Options pour personnaliser les icônes de lecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nouvelles options pour choisir d'afficher ou pas les icônes pour marquer comme lu/non-lu, favoris, lien vers l'article, ainsi que les champs partage, tags... Légères simplifications CSS et PHP au passage. (Note pour plus tard : Il serait peut-être souhaitable de simplifier le mécanisme des options en PHP, par exemple en utilisant un tableau de propriétés. Actuellement, il y a un attribut par option accompagné d'un accesseur privé, un accesseur public, et idem dans le système de chargement/écriture du fichier de configuration, ce qui fait beaucoup de code PHP par option) --- app/views/helpers/view/normal_view.phtml | 59 ++++++++++++-------------------- 1 file changed, 21 insertions(+), 38 deletions(-) (limited to 'app/views/helpers/view') diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index d940e0dda..88fc602f6 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -39,36 +39,25 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {

title (); ?>

- author (); ?> - ' . Translate::t ('by_author', $author) . '
' : ''; ?> author (); + echo $author != '' ? '
' . Translate::t ('by_author', $author) . '
' : ''; if($this->conf->lazyload() == 'yes') { echo lazyimg($item->content ()); } else { @@ -79,23 +68,15 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {
    conf) || is_logged ()) { ?> -
  • - isRead ()) { ?> -   - -   - - - isFavorite ()) { ?> -   - -   - -
  • + conf->bottomlineRead ()) { ?>
  •  
  • + conf->bottomlineFavorite ()) { ?>
  •  
  • - link ()); ?> - title () . ' - ' . $feed->name ()); ?> + conf->bottomlineSharing ()) { + $link = urlencode ($item->link ()); + $title = urlencode ($item->title () . ' - ' . $feed->name ()); + ?>
-
+
- tags(); ?> - + conf->bottomlineTags () ? $item->tags() : null; + if (!empty($tags)) { + ?>
  • -
  • date (); ?>
  • - + conf->bottomlineDate ()) { ?>
  • date (); ?> 
  • + conf->bottomlineLink ()) { ?> -- cgit v1.2.3