diff options
| author | 2013-11-24 20:42:55 +0100 | |
|---|---|---|
| committer | 2013-11-24 20:42:55 +0100 | |
| commit | d85e6c5b83a45ac2084ac5bca75e6b8a069e07a0 (patch) | |
| tree | b4ce91263d8529abf1973c829fa814e6d3587783 /lib/lib_rss.php | |
| parent | 20acba36a20a61619978f8f75d236eee2676fd30 (diff) | |
Refactorise icon() dans RSSThemes::icon
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/284
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 8e58e4048..3c03f4281 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -230,33 +230,3 @@ function lazyimg($content) { $content ); } - -function icon($name) { - static $alts = array( - 'add' => '✚', - 'all' => '☰', - 'bookmark' => '★', - 'category' => '☷', - 'category-white' => '☷', - 'close' => '❌', - 'configure' => '⚙', - 'down' => '▽', - 'favorite' => '★', - 'help' => 'ⓘ', - 'link' => '↗', - 'login' => '🔒', - 'logout' => '🔓', - 'next' => '⏩', - 'non-starred' => '☆', - 'prev' => '⏪', - 'read' => '☑', - 'unread' => '☐', - 'refresh' => '🔃', //↻ - 'search' => '🔍', - 'share' => '♺', - 'starred' => '★', - 'tag' => '⚐', - 'up' => '△', - ); - return '<i class="icon i_' . $name . '">' . $alts[$name] . '</i>'; -} |
