diff options
| author | 2013-11-24 20:42:55 +0100 | |
|---|---|---|
| committer | 2013-11-24 20:42:55 +0100 | |
| commit | d85e6c5b83a45ac2084ac5bca75e6b8a069e07a0 (patch) | |
| tree | b4ce91263d8529abf1973c829fa814e6d3587783 /app/views | |
| parent | 20acba36a20a61619978f8f75d236eee2676fd30 (diff) | |
Refactorise icon() dans RSSThemes::icon
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/284
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/configure/categorize.phtml | 2 | ||||
| -rw-r--r-- | app/views/configure/display.phtml | 10 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 10 | ||||
| -rwxr-xr-x | app/views/entry/bookmark.phtml | 2 | ||||
| -rwxr-xr-x | app/views/entry/read.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/view/global_view.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 16 |
7 files changed, 22 insertions, 22 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index cbb5e9e81..d40f43411 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -22,7 +22,7 @@ (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>) <?php if ($cat->id () == $this->defaultCategory->id ()) { ?> - <?php echo icon('help'); ?> <?php echo Translate::t ('can_not_be_deleted'); ?> + <?php echo RSSThemes::icon('help'); ?> <?php echo Translate::t ('can_not_be_deleted'); ?> <?php } ?> <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 4e01be6ef..846595895 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'); ?>"/> - <?php echo icon('help'); ?> <?php echo Translate::t('explain_token', Url::display(null, 'html', true), $token); ?> + <?php echo RSSThemes::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 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 title="<?php echo Translate::t ('mark_read'); ?>"><?php echo RSSThemes::icon('read'); ?></th> + <th title="<?php echo Translate::t ('mark_favorite'); ?>"><?php echo RSSThemes::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><?php echo icon('link'); ?></th> + <th><?php echo RSSThemes::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> - <?php echo icon('help'); ?> <?php echo Translate::t('optimize_todo_sometimes'); ?> + <?php echo RSSThemes::icon('help'); ?> <?php echo Translate::t('optimize_todo_sometimes'); ?> </div> </div> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index 8fecec36f..1fb0368de 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -29,21 +29,21 @@ <label class="group-name"><?php echo Translate::t ('website_url'); ?></label> <div class="group-controls"> <input type="text" name="website" id="website" value="<?php echo $this->flux->website (); ?>" /> - <a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo icon('link'); ?></a> + <a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo RSSThemes::icon('link'); ?></a> </div> </div> <div class="form-group"> <label class="group-name"><?php echo Translate::t ('feed_url'); ?></label> <div class="group-controls"> <input type="text" name="url" id="url" value="<?php echo $this->flux->url (); ?>" /> - <a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo icon('link'); ?></a> + <a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo RSSThemes::icon('link'); ?></a> </div> </div> <div class="form-group"> <label class="group-name"></label> <div class="group-controls"> <a class="btn" href="<?php echo _url ('feed', 'actualize', 'id', $this->flux->id ()); ?>"> - <?php echo icon('refresh'); ?> <?php echo Translate::t('actualize'); ?> + <?php echo RSSThemes::icon('refresh'); ?> <?php echo Translate::t('actualize'); ?> </a> </div> </div> @@ -85,7 +85,7 @@ <label class="group-name" for="path_entries"><?php echo Translate::t ('css_path_on_website'); ?></label> <div class="group-controls"> <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" /> - <?php echo icon('help'); ?> <?php echo Translate::t ('retrieve_truncated_feeds'); ?> + <?php echo RSSThemes::icon('help'); ?> <?php echo Translate::t ('retrieve_truncated_feeds'); ?> </div> </div> @@ -94,7 +94,7 @@ <label class="group-name" for="http_user"><?php echo Translate::t ('http_username'); ?></label> <div class="group-controls"> <input type="text" name="http_user" id="http_user" value="<?php echo $auth['username']; ?>" autocomplete="off" /> - <?php echo icon('help'); ?> <?php echo Translate::t ('access_protected_feeds'); ?> + <?php echo RSSThemes::icon('help'); ?> <?php echo Translate::t ('access_protected_feeds'); ?> </div> <label class="group-name" for="http_pass"><?php echo Translate::t ('http_password'); ?></label> diff --git a/app/views/entry/bookmark.phtml b/app/views/entry/bookmark.phtml index 8ce39629b..d175e10ed 100755 --- a/app/views/entry/bookmark.phtml +++ b/app/views/entry/bookmark.phtml @@ -12,4 +12,4 @@ $url = Url::display (array ( 'params' => Request::params (), )); -echo json_encode (array ('url' => str_ireplace ('&', '&', $url), 'icon' => icon(Request::param ('is_favorite') ? 'non-starred' : 'starred'))); +echo json_encode (array ('url' => str_ireplace ('&', '&', $url), 'icon' => RSSThemes::icon(Request::param ('is_favorite') ? 'non-starred' : 'starred'))); diff --git a/app/views/entry/read.phtml b/app/views/entry/read.phtml index 224651e58..e909d47f4 100755 --- a/app/views/entry/read.phtml +++ b/app/views/entry/read.phtml @@ -12,4 +12,4 @@ $url = Url::display (array ( 'params' => Request::params (), )); -echo json_encode (array ('url' => str_ireplace ('&', '&', $url), 'icon' => icon(Request::param ('is_read') ? 'unread' : 'read'))); +echo json_encode (array ('url' => str_ireplace ('&', '&', $url), 'icon' => RSSThemes::icon(Request::param ('is_read') ? 'unread' : 'read'))); diff --git a/app/views/helpers/view/global_view.phtml b/app/views/helpers/view/global_view.phtml index f34d368f9..ac17d608a 100644 --- a/app/views/helpers/view/global_view.phtml +++ b/app/views/helpers/view/global_view.phtml @@ -32,5 +32,5 @@ <div id="overlay"></div> <div id="panel"<?php echo $this->conf->displayPosts () === 'no' ? ' class="hide_posts"' : ''; ?>> - <a class="close" href="#"><?php echo icon('close'); ?></a> + <a class="close" href="#"><?php echo RSSThemes::icon('close'); ?></a> </div>
\ No newline at end of file diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index 033eed5b1..31bd19036 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -42,13 +42,13 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { if ($this->conf->toplineRead ()) { ?><li class="item manage"><?php ?><a class="read" href="<?php echo _url ('entry', 'read', 'id', $item->id (), 'is_read', $item->isRead () ? 0 : 1); ?>"><?php - echo icon($item->isRead () ? 'read' : 'unread'); ?></a><?php + echo RSSThemes::icon($item->isRead () ? 'read' : 'unread'); ?></a><?php ?></li><?php } if ($this->conf->toplineFavorite ()) { ?><li class="item manage"><?php ?><a class="bookmark" href="<?php echo _url ('entry', 'bookmark', 'id', $item->id (), 'is_favorite', $item->isFavorite () ? 0 : 1); ?>"><?php - echo icon($item->isFavorite () ? 'starred' : 'non-starred'); ?></a><?php + echo RSSThemes::icon($item->isFavorite () ? 'starred' : 'non-starred'); ?></a><?php ?></li><?php } } @@ -58,7 +58,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { <li class="item website"><a href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id ()); ?>"><img class="favicon" src="<?php echo $feed->favicon (); ?>" alt="✇" /> <span><?php echo $feed->name(); ?></span></a></li> <li class="item title"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo $item->title (); ?></a></li> <?php if ($this->conf->toplineDate ()) { ?><li class="item date"><?php echo $item->date (); ?> </li><?php } ?> - <?php if ($this->conf->toplineLink ()) { ?><li class="item link"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo icon('link'); ?></a></li><?php } ?> + <?php if ($this->conf->toplineLink ()) { ?><li class="item link"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo RSSThemes::icon('link'); ?></a></li><?php } ?> </ul> <div class="flux_content"> @@ -79,13 +79,13 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { if ($this->conf->bottomlineRead ()) { ?><li class="item manage"><?php ?><a class="read" href="<?php echo _url ('entry', 'read', 'id', $item->id (), 'is_read', $item->isRead () ? 0 : 1); ?>"><?php - echo icon($item->isRead () ? 'read' : 'unread'); ?></a><?php + echo RSSThemes::icon($item->isRead () ? 'read' : 'unread'); ?></a><?php ?></li><?php } if ($this->conf->bottomlineFavorite ()) { ?><li class="item manage"><?php ?><a class="bookmark" href="<?php echo _url ('entry', 'bookmark', 'id', $item->id (), 'is_favorite', $item->isFavorite () ? 0 : 1); ?>"><?php - echo icon($item->isFavorite () ? 'starred' : 'non-starred'); ?></a><?php + echo RSSThemes::icon($item->isFavorite () ? 'starred' : 'non-starred'); ?></a><?php ?></li><?php } } ?> @@ -97,7 +97,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { ?> <div class="dropdown"> <div id="dropdown-share-<?php echo $item->id ();?>" class="dropdown-target"></div> - <?php echo icon('share'); ?> <a class="dropdown-toggle" href="#dropdown-share-<?php echo $item->id ();?>"><?php echo Translate::t ('share'); ?></a> + <?php echo RSSThemes::icon('share'); ?> <a class="dropdown-toggle" href="#dropdown-share-<?php echo $item->id ();?>"><?php echo Translate::t ('share'); ?></a> <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> @@ -141,7 +141,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { <li class="item"> <div class="dropdown"> <div id="dropdown-tags-<?php echo $item->id ();?>" class="dropdown-target"></div> - <?php echo icon('tag'); ?> <a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id ();?>"><?php echo Translate::t ('related_tags'); ?></a> + <?php echo RSSThemes::icon('tag'); ?> <a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id ();?>"><?php echo Translate::t ('related_tags'); ?></a> <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> <?php foreach($tags as $tag) { ?> @@ -152,7 +152,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { </li> <?php } ?> <?php if ($this->conf->bottomlineDate ()) { ?><li class="item date"><?php echo $item->date (); ?> </li><?php } ?> - <?php if ($this->conf->bottomlineLink ()) { ?><li class="item link"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo icon('link'); ?></a></li><?php } ?> + <?php if ($this->conf->bottomlineLink ()) { ?><li class="item link"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo RSSThemes::icon('link'); ?></a></li><?php } ?> </ul> </div> </div> |
