aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-08 23:33:33 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-08 23:33:33 +0100
commita280bb1013f06599f7b20f29e4cc55226f0f8833 (patch)
tree8fced3f7dc4a96e423e2f3e0a1c9b977193edaf0 /app/layout
parent50e0339188107564fddb3abddeabbe0132cff6b1 (diff)
Changements syntaxiques mineurs aledeg/filters
https://github.com/marienfressinaud/FreshRSS/pull/352 Évite quelques appels de fonctions, et affectations inutiles
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/nav_menu.phtml31
1 files changed, 14 insertions, 17 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index adb8aea9b..566304353 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -103,21 +103,21 @@
$url_output = $url;
$actual_view = Minz_Request::param('output', 'normal');
?>
- <?php if($actual_view != 'normal') { ?>
+ <?php if($actual_view !== 'normal') { ?>
<li class="item">
<?php $url_output['params']['output'] = 'normal'; ?>
<a class="view_normal" href="<?php echo Minz_Url::display ($url_output); ?>">
<?php echo Minz_Translate::t ('normal_view'); ?>
</a>
</li>
- <?php } if($actual_view != 'reader') { ?>
+ <?php } if($actual_view !== 'reader') { ?>
<li class="item">
<?php $url_output['params']['output'] = 'reader'; ?>
<a class="view_normal" href="<?php echo Minz_Url::display ($url_output); ?>">
<?php echo Minz_Translate::t ('reader_view'); ?>
</a>
</li>
- <?php } if($actual_view != 'global') { ?>
+ <?php } if($actual_view !== 'global') { ?>
<li class="item">
<?php $url_output['params']['output'] = 'global'; ?>
<a class="view_normal" href="<?php echo Minz_Url::display ($url_output); ?>">
@@ -130,41 +130,38 @@
<?php
$url_state = $url;
- $url_state['params']['state'] = 'all';
- if (strcmp($this->state, $url_state['params']['state']) <> 0) {
+ if ($this->state !== 'all') {
+ $url_state['params']['state'] = 'all';
?>
<li class="item">
<a class="print_all" href="<?php echo Minz_Url::display ($url_state); ?>">
<?php echo Minz_Translate::t ('show_all_articles'); ?>
</a>
</li>
- <?php } ?>
-
<?php
- $url_state['params']['state'] = 'not_read';
- if (strcmp($this->state, $url_state['params']['state']) <> 0) {
+ }
+ if ($this->state !== 'not_read') {
+ $url_state['params']['state'] = 'not_read';
?>
<li class="item">
<a class="print_non_read" href="<?php echo Minz_Url::display ($url_state); ?>">
<?php echo Minz_Translate::t ('show_not_reads'); ?>
</a>
</li>
- <?php } ?>
-
<?php
- $url_state['params']['state'] = 'read';
- if (strcmp($this->state, $url_state['params']['state']) <> 0) {
+ }
+ if ($this->state !== 'read') {
+ $url_state['params']['state'] = 'read';
?>
<li class="item">
<a class="print_read" href="<?php echo Minz_Url::display ($url_state); ?>">
<?php echo Minz_Translate::t ('show_read'); ?>
</a>
</li>
- <?php } ?>
-
<?php
- $url_state['params']['state'] = 'favorite';
- if (strcmp($this->state, $url_state['params']['state']) <> 0) {
+ }
+ if ($this->state != 'favorite') {
+ $url_state['params']['state'] = 'favorite';
?>
<li class="item">
<a class="print_read" href="<?php echo Minz_Url::display ($url_state); ?>">