aboutsummaryrefslogtreecommitdiff
path: root/app/views/configure/display.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-27 22:13:58 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-27 22:13:58 +0100
commita68903782501b74916a5445e82aa1b7c7cd1d82d (patch)
tree1d33c385c42d38bac28c900457cca13cd4430bd5 /app/views/configure/display.phtml
parentdd5273871a74d01d87fa1eaad7aa53bc1c148f85 (diff)
Options pour personnaliser les icônes de lecture
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)
Diffstat (limited to 'app/views/configure/display.phtml')
-rw-r--r--app/views/configure/display.phtml36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 0f89437ac..687a84499 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -156,6 +156,42 @@
</div>
</div>
+ <legend><?php echo Translate::t ('reading_icons'); ?></legend>
+ <div class="form-group">
+ <table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th><a class="read" title="<?php echo Translate::t ('mark_read'); ?>">&nbsp;</span></th>
+ <th><a class="bookmark" title="<?php echo Translate::t ('mark_favorite'); ?>">&nbsp;</span></th>
+ <th><?php echo Translate::t ('sharing'); ?></th>
+ <th><?php echo Translate::t ('related_tags'); ?></th>
+ <th><?php echo Translate::t ('publication_date'); ?></th>
+ <th class="item link"><a>&nbsp;</a></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><?php echo Translate::t ('top_line'); ?></th>
+ <td><input type="checkbox" name="topline_read" value="yes"<?php echo $this->conf->toplineRead () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="topline_favorite" value="yes"<?php echo $this->conf->toplineFavorite () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" disabled="disabled" /></td>
+ <td><input type="checkbox" disabled="disabled" /></td>
+ <td><input type="checkbox" name="topline_date" value="yes"<?php echo $this->conf->toplineDate () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="topline_link" value="yes"<?php echo $this->conf->toplineLink () ? ' checked="checked"' : ''; ?> /></td>
+ </tr><tr>
+ <th><?php echo Translate::t ('bottom_line'); ?></th>
+ <td><input type="checkbox" name="bottomline_read" value="yes"<?php echo $this->conf->bottomlineRead () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="bottomline_favorite" value="yes"<?php echo $this->conf->bottomlineFavorite () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="bottomline_sharing" value="yes"<?php echo $this->conf->bottomlineSharing () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="bottomline_tags" value="yes"<?php echo $this->conf->bottomlineTags () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="bottomline_date" value="yes"<?php echo $this->conf->bottomlineDate () ? ' checked="checked"' : ''; ?> /></td>
+ <td><input type="checkbox" name="bottomline_link" value="yes"<?php echo $this->conf->bottomlineLink () ? ' checked="checked"' : ''; ?> /></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
<legend><?php echo Translate::t ('sharing'); ?></legend>
<div class="form-group">
<label class="group-name" for="shaarli"><?php echo Translate::t ('your_shaarli'); ?></label>