From d85e6c5b83a45ac2084ac5bca75e6b8a069e07a0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 24 Nov 2013 20:42:55 +0100 Subject: Refactorise icon() dans RSSThemes::icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contribue à https://github.com/marienfressinaud/FreshRSS/issues/284 --- app/views/configure/categorize.phtml | 2 +- app/views/configure/display.phtml | 10 +++++----- app/views/configure/feed.phtml | 10 +++++----- app/views/entry/bookmark.phtml | 2 +- app/views/entry/read.phtml | 2 +- app/views/helpers/view/global_view.phtml | 2 +- app/views/helpers/view/normal_view.phtml | 16 ++++++++-------- 7 files changed, 22 insertions(+), 22 deletions(-) (limited to 'app/views') 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 @@ (nbFeed ()); ?>) id () == $this->defaultCategory->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 @@ conf->token (); ?>
- +
@@ -162,12 +162,12 @@   - - + + - + @@ -208,7 +208,7 @@

- + 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 @@
- +
- +
@@ -85,7 +85,7 @@
- +
@@ -94,7 +94,7 @@
- +
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 @@
conf->displayPosts () === 'no' ? ' class="hide_posts"' : ''; ?>> - +
\ 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 ()) { ?>
  • isRead () ? 'read' : 'unread'); ?>isRead () ? 'read' : 'unread'); ?>
  • conf->toplineFavorite ()) { ?>
  • isFavorite () ? 'starred' : 'non-starred'); ?>isFavorite () ? 'starred' : 'non-starred'); ?>
  • entryPaginator) && !$this->entryPaginator->isEmpty ()) {
  • ✇ name(); ?>
  • title (); ?>
  • conf->toplineDate ()) { ?>
  • date (); ?> 
  • - conf->toplineLink ()) { ?> + conf->toplineLink ()) { ?>
    @@ -79,13 +79,13 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { if ($this->conf->bottomlineRead ()) { ?>
  • isRead () ? 'read' : 'unread'); ?>isRead () ? 'read' : 'unread'); ?>
  • conf->bottomlineFavorite ()) { ?>
  • isFavorite () ? 'starred' : 'non-starred'); ?>isFavorite () ? 'starred' : 'non-starred'); ?>
  • @@ -97,7 +97,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { ?> -- cgit v1.2.3