|
|
|
<div class="nav_menu">
|
|
|
|
<a class="btn toggle_aside" href="#aside_flux"><?php echo RSSThemes::icon('category'); ?></a>
|
|
|
|
|
|
|
|
<?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
|
|
|
|
<a id="actualize" class="btn" href="<?php echo _url ('feed', 'actualize'); ?>"><?php echo RSSThemes::icon('refresh'); ?></a>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$get = false;
|
|
|
|
$string_mark = Translate::t ('mark_all_read');
|
|
|
|
if ($this->get_f) {
|
|
|
|
$get = 'f_' . $this->get_f;
|
|
|
|
$string_mark = Translate::t ('mark_feed_read');
|
|
|
|
} elseif ($this->get_c &&
|
|
|
|
$this->get_c != 'a' &&
|
|
|
|
$this->get_c != 's') {
|
|
|
|
$get = 'c_' . $this->get_c;
|
|
|
|
$string_mark = Translate::t ('mark_cat_read');
|
|
|
|
}
|
|
|
|
$nextGet = $get;
|
|
|
|
if (($this->conf->onread_jump_next () === 'yes') && (strlen ($get) > 2)) {
|
|
|
|
$anotherUnreadId = '';
|
|
|
|
$foundCurrent = false;
|
|
|
|
switch ($get[0]) {
|
|
|
|
case 'c':
|
|
|
|
foreach ($this->cat_aside as $cat) {
|
|
|
|
if ($cat->id () === $this->get_c) {
|
|
|
|
$foundCurrent = true;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if ($cat->nbNotRead () <= 0) continue;
|
|
|
|
$anotherUnreadId = $cat->id ();
|
|
|
|
if ($foundCurrent) break;
|
|
|
|
}
|
|
|
|
$nextGet = empty ($anotherUnreadId) ? 'a' : 'c_' . $anotherUnreadId;
|
|
|
|
break;
|
|
|
|
case 'f':
|
|
|
|
foreach ($this->cat_aside as $cat) {
|
|
|
|
if ($cat->id () === $this->get_c) {
|
|
|
|
foreach ($cat->feeds () as $feed) {
|
|
|
|
if ($feed->id () === $this->get_f) {
|
|
|
|
$foundCurrent = true;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if ($feed->nbNotRead () <= 0) continue;
|
|
|
|
$anotherUnreadId = $feed->id ();
|
|
|
|
if ($foundCurrent) break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$nextGet = empty ($anotherUnreadId) ? 'c_' . $this->get_c : 'f_' . $anotherUnreadId;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$p = isset($this->entries[0]) ? $this->entries[0] : null;
|
|
|
|
$idMax = $p === null ? '0' : $p->id();
|
|
|
|
$markReadUrl = _url ('entry', 'read', 'is_read', 1, 'get', $get, 'nextGet', $nextGet, 'idMax', $idMax);
|
|
|
|
Session::_param ('markReadUrl', $markReadUrl);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="stick" id="nav_menu_read_all">
|
|
|
|
<a class="read_all btn" href="<?php echo $markReadUrl; ?>"><?php echo Translate::t ('mark_read'); ?></a>
|
|
|
|
<div class="dropdown">
|
|
|
|
<div id="dropdown-read" class="dropdown-target"></div>
|
|
|
|
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-read"><?php echo RSSThemes::icon('down'); ?></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li>
|
|
|
|
|
|
|
|
<li class="item"><a href="<?php echo $markReadUrl; ?>"><?php echo $string_mark; ?></a></li>
|
|
|
|
<li class="separator"></li>
|
|
|
|
<?php
|
|
|
|
$today = strtotime('today');
|
|
|
|
$one_week = $today - 604800;
|
|
|
|
?>
|
|
|
|
<li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"><?php echo Translate::t ('before_one_day'); ?></a></li>
|
|
|
|
<li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $one_week . '000000'); ?>"><?php echo Translate::t ('before_one_week'); ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$params = Request::params ();
|
|
|
|
if (isset ($params['search'])) {
|
|
|
|
$params['search'] = urlencode ($params['search']);
|
|
|
|
}
|
|
|
|
$url = array (
|
|
|
|
'c' => 'index',
|
|
|
|
'a' => 'index',
|
|
|
|
'params' => $params
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
<div class="dropdown" id="nav_menu_views">
|
|
|
|
<div id="dropdown-views" class="dropdown-target"></div>
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-views"><?php echo Translate::t ('display'); ?> <?php echo RSSThemes::icon('down'); ?></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$url_output = $url;
|
|
|
|
$actual_view = Request::param('output', 'normal');
|
|
|
|
?>
|
|
|
|
<?php if($actual_view != 'normal') { ?>
|
|
|
|
<li class="item">
|
|
|
|
<?php $url_output['params']['output'] = 'normal'; ?>
|
|
|
|
<a class="view_normal" href="<?php echo Url::display ($url_output); ?>">
|
|
|
|
<?php echo Translate::t ('normal_view'); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php } if($actual_view != 'reader') { ?>
|
|
|
|
<li class="item">
|
|
|
|
<?php $url_output['params']['output'] = 'reader'; ?>
|
|
|
|
<a class="view_normal" href="<?php echo Url::display ($url_output); ?>">
|
|
|
|
<?php echo Translate::t ('reader_view'); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php } if($actual_view != 'global') { ?>
|
|
|
|
<li class="item">
|
|
|
|
<?php $url_output['params']['output'] = 'global'; ?>
|
|
|
|
<a class="view_normal" href="<?php echo Url::display ($url_output); ?>">
|
|
|
|
<?php echo Translate::t ('global_view'); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<li class="separator"></li>
|
|
|
|
|
|
|
|
<li class="item">
|
|
|
|
<?php
|
|
|
|
$url_state = $url;
|
|
|
|
if ($this->state == 'not_read') {
|
|
|
|
$url_state['params']['state'] = 'all';
|
|
|
|
?>
|
|
|
|
<a class="print_all" href="<?php echo Url::display ($url_state); ?>">
|
|
|
|
<?php echo Translate::t ('show_all_articles'); ?>
|
|
|
|
</a>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
$url_state['params']['state'] = 'not_read';
|
|
|
|
?>
|
|
|
|
<a class="print_non_read" href="<?php echo Url::display ($url_state); ?>">
|
|
|
|
<?php echo Translate::t ('show_not_reads'); ?>
|
|
|
|
</a>
|
|
|
|
<?php } ?>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="item">
|
|
|
|
<?php
|
|
|
|
$url_order = $url;
|
|
|
|
if ($this->order === 'DESC') {
|
|
|
|
$url_order['params']['order'] = 'ASC';
|
|
|
|
?>
|
|
|
|
<a href="<?php echo Url::display ($url_order); ?>">
|
|
|
|
<?php echo Translate::t ('older_first'); ?>
|
|
|
|
</a>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
$url_order['params']['order'] = 'DESC';
|
|
|
|
?>
|
|
|
|
<a href="<?php echo Url::display ($url_order); ?>">
|
|
|
|
<?php echo Translate::t ('newer_first'); ?>
|
|
|
|
</a>
|
|
|
|
<?php } ?>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="separator"></li>
|
|
|
|
|
|
|
|
<li class="item">
|
|
|
|
<a class="view_rss" target="_blank" href="<?php echo Url::display ($this->rss_url); ?>">
|
|
|
|
<?php echo Translate::t ('rss_view'); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|