summaryrefslogtreecommitdiff
path: root/app/views/configure/display.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-23 23:18:18 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-23 23:18:18 +0100
commit29137c0b046bfcc610e6c8a152e558fa9c718da4 (patch)
tree3e4a6709919ce98ebb8f360e1f5a4240c5956cdb /app/views/configure/display.phtml
parent6236f2a803185c06331ddd3e5cbdb4499629e1ef (diff)
Nouvelle fonction icon() pour générer le code HTML des icônes
Centralisation de la génération du code des icônes pour pouvoir plus facilement le changer, en particulier en préparation d'améliorations futures : * ajouter des alternatives lorsque l'image n'est pas affichée ; * améliorer l'accessibilité ; * permettre de changer les icônes selon le thème graphique choisi ; * simplifier les CSS. Contribue à https://github.com/marienfressinaud/FreshRSS/issues/284
Diffstat (limited to 'app/views/configure/display.phtml')
-rw-r--r--app/views/configure/display.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 38f2ee1d5..4e01be6ef 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -56,7 +56,7 @@
<?php $token = $this->conf->token (); ?>
<div class="group-controls">
<input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>"/>
- <i class="icon i_help">ⓘ</i> <?php echo Translate::t('explain_token', Url::display(null, 'html', true), $token); ?>
+ <?php echo icon('help'); ?> <?php echo Translate::t('explain_token', Url::display(null, 'html', true), $token); ?>
</div>
</div>
@@ -162,12 +162,12 @@
<thead>
<tr>
<th> </th>
- <th><a class="icon read" title="<?php echo Translate::t ('mark_read'); ?>">☑</a></th>
- <th><a class="icon bookmark" title="<?php echo Translate::t ('mark_favorite'); ?>">★</a></th>
+ <th title="<?php echo Translate::t ('mark_read'); ?>"><?php echo icon('read'); ?></th>
+ <th title="<?php echo Translate::t ('mark_favorite'); ?>"><?php echo icon('bookmark'); ?></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="link"><a class="icon">↗</a></th>
+ <th><?php echo icon('link'); ?></th>
</tr>
</thead>
<tbody>
@@ -208,7 +208,7 @@
<p><a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
<?php echo Translate::t('optimize_bdd'); ?>
</a></p>
- <i class="icon i_help">ⓘ</i> <?php echo Translate::t('optimize_todo_sometimes'); ?>
+ <?php echo icon('help'); ?> <?php echo Translate::t('optimize_todo_sometimes'); ?>
</div>
</div>