|
|
@ -3,7 +3,7 @@ |
|
|
|
?> |
|
|
|
?> |
|
|
|
<div class="nav_menu"> |
|
|
|
<div class="nav_menu"> |
|
|
|
<?php if ($actual_view === 'normal') { ?> |
|
|
|
<?php if ($actual_view === 'normal') { ?> |
|
|
|
<a class="btn toggle_aside" href="#aside_flux"><?php echo FreshRSS_Themes::icon('category'); ?></a>
|
|
|
|
<a class="btn toggle_aside" href="#aside_flux"><?php echo _i('category'); ?></a>
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
|
|
<?php if ($this->loginOk) { ?> |
|
|
|
<?php if ($this->loginOk) { ?> |
|
|
@ -24,9 +24,9 @@ |
|
|
|
<a id="toggle-read" |
|
|
|
<a id="toggle-read" |
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
href="<?php echo Minz_Url::display ($url_state); ?>"
|
|
|
|
href="<?php echo Minz_Url::display($url_state); ?>"
|
|
|
|
title="<?php echo Minz_Translate::t ('show_read'); ?>">
|
|
|
|
title="<?php echo _t('show_read'); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon('read'); ?> |
|
|
|
<?php echo _i('read'); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -43,9 +43,9 @@ |
|
|
|
<a id="toggle-unread" |
|
|
|
<a id="toggle-unread" |
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
href="<?php echo Minz_Url::display ($url_state); ?>"
|
|
|
|
href="<?php echo Minz_Url::display($url_state); ?>"
|
|
|
|
title="<?php echo Minz_Translate::t ('show_not_reads'); ?>">
|
|
|
|
title="<?php echo _t('show_not_reads'); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon('unread'); ?> |
|
|
|
<?php echo _i('unread'); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -62,9 +62,9 @@ |
|
|
|
<a id="toggle-favorite" |
|
|
|
<a id="toggle-favorite" |
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
href="<?php echo Minz_Url::display ($url_state); ?>"
|
|
|
|
href="<?php echo Minz_Url::display($url_state); ?>"
|
|
|
|
title="<?php echo Minz_Translate::t ('show_favorite'); ?>">
|
|
|
|
title="<?php echo _t('show_favorite'); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon('starred'); ?> |
|
|
|
<?php echo _i('starred'); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -81,19 +81,19 @@ |
|
|
|
<a id="toggle-not-favorite" |
|
|
|
<a id="toggle-not-favorite" |
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
class="btn <?php echo $class; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
aria-checked="<?php echo $checked; ?>"
|
|
|
|
href="<?php echo Minz_Url::display ($url_state); ?>"
|
|
|
|
href="<?php echo Minz_Url::display($url_state); ?>"
|
|
|
|
title="<?php echo Minz_Translate::t ('show_not_favorite'); ?>">
|
|
|
|
title="<?php echo _t('show_not_favorite'); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon('non-starred'); ?> |
|
|
|
<?php echo _i('non-starred'); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<div class="dropdown"> |
|
|
|
<div class="dropdown"> |
|
|
|
<div id="dropdown-query" class="dropdown-target"></div> |
|
|
|
<div id="dropdown-query" class="dropdown-target"></div> |
|
|
|
|
|
|
|
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-query"><?php echo FreshRSS_Themes::icon('down'); ?></a>
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-query"><?php echo _i('down'); ?></a>
|
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li> |
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li> |
|
|
|
|
|
|
|
|
|
|
|
<li class="dropdown-header"><?php echo Minz_Translate::t('queries'); ?> <a class="no-mobile" href="<?php echo _url('configure', 'queries'); ?>"><?php echo FreshRSS_Themes::icon('configure'); ?></a></li>
|
|
|
|
<li class="dropdown-header"><?php echo _t('queries'); ?> <a class="no-mobile" href="<?php echo _url('configure', 'queries'); ?>"><?php echo _i('configure'); ?></a></li>
|
|
|
|
|
|
|
|
|
|
|
|
<?php foreach ($this->conf->queries as $query) { ?> |
|
|
|
<?php foreach ($this->conf->queries as $query) { ?> |
|
|
|
<li class="item query"> |
|
|
|
<li class="item query"> |
|
|
@ -110,58 +110,58 @@ |
|
|
|
$url_query['c'] = 'configure'; |
|
|
|
$url_query['c'] = 'configure'; |
|
|
|
$url_query['a'] = 'addQuery'; |
|
|
|
$url_query['a'] = 'addQuery'; |
|
|
|
?> |
|
|
|
?> |
|
|
|
<li class="item no-mobile"><a href="<?php echo Minz_Url::display($url_query); ?>"><?php echo FreshRSS_Themes::icon('bookmark-add'); ?> <?php echo Minz_Translate::t('add_query'); ?></a></li>
|
|
|
|
<li class="item no-mobile"><a href="<?php echo Minz_Url::display($url_query); ?>"><?php echo _i('bookmark-add'); ?> <?php echo _t('add_query'); ?></a></li>
|
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
$get = false; |
|
|
|
$get = false; |
|
|
|
$string_mark = Minz_Translate::t ('mark_all_read'); |
|
|
|
$string_mark = _t('mark_all_read'); |
|
|
|
if ($this->get_f) { |
|
|
|
if ($this->get_f) { |
|
|
|
$get = 'f_' . $this->get_f; |
|
|
|
$get = 'f_' . $this->get_f; |
|
|
|
$string_mark = Minz_Translate::t ('mark_feed_read'); |
|
|
|
$string_mark = _t('mark_feed_read'); |
|
|
|
} elseif ($this->get_c && $this->get_c != 'a') { |
|
|
|
} elseif ($this->get_c && $this->get_c != 'a') { |
|
|
|
if ($this->get_c === 's') { |
|
|
|
if ($this->get_c === 's') { |
|
|
|
$get = 's'; |
|
|
|
$get = 's'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$get = 'c_' . $this->get_c; |
|
|
|
$get = 'c_' . $this->get_c; |
|
|
|
} |
|
|
|
} |
|
|
|
$string_mark = Minz_Translate::t ('mark_cat_read'); |
|
|
|
$string_mark = _t('mark_cat_read'); |
|
|
|
} |
|
|
|
} |
|
|
|
$nextGet = $get; |
|
|
|
$nextGet = $get; |
|
|
|
if ($this->conf->onread_jump_next && (strlen ($get) > 2)) { |
|
|
|
if ($this->conf->onread_jump_next && strlen($get) > 2) { |
|
|
|
$anotherUnreadId = ''; |
|
|
|
$anotherUnreadId = ''; |
|
|
|
$foundCurrent = false; |
|
|
|
$foundCurrent = false; |
|
|
|
switch ($get[0]) { |
|
|
|
switch ($get[0]) { |
|
|
|
case 'c': |
|
|
|
case 'c': |
|
|
|
foreach ($this->cat_aside as $cat) { |
|
|
|
foreach ($this->cat_aside as $cat) { |
|
|
|
if ($cat->id () == $this->get_c) { |
|
|
|
if ($cat->id() == $this->get_c) { |
|
|
|
$foundCurrent = true; |
|
|
|
$foundCurrent = true; |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if ($cat->nbNotRead () <= 0) continue; |
|
|
|
|
|
|
|
$anotherUnreadId = $cat->id (); |
|
|
|
|
|
|
|
if ($foundCurrent) break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$nextGet = empty ($anotherUnreadId) ? 'a' : 'c_' . $anotherUnreadId; |
|
|
|
if ($cat->nbNotRead() <= 0) continue; |
|
|
|
break; |
|
|
|
$anotherUnreadId = $cat->id(); |
|
|
|
case 'f': |
|
|
|
if ($foundCurrent) break; |
|
|
|
foreach ($this->cat_aside as $cat) { |
|
|
|
} |
|
|
|
if ($cat->id () == $this->get_c) { |
|
|
|
$nextGet = empty($anotherUnreadId) ? 'a' : 'c_' . $anotherUnreadId; |
|
|
|
foreach ($cat->feeds () as $feed) { |
|
|
|
break; |
|
|
|
if ($feed->id () == $this->get_f) { |
|
|
|
case 'f': |
|
|
|
$foundCurrent = true; |
|
|
|
foreach ($this->cat_aside as $cat) { |
|
|
|
continue; |
|
|
|
if ($cat->id() == $this->get_c) { |
|
|
|
} |
|
|
|
foreach ($cat->feeds() as $feed) { |
|
|
|
if ($feed->nbNotRead () <= 0) continue; |
|
|
|
if ($feed->id() == $this->get_f) { |
|
|
|
$anotherUnreadId = $feed->id (); |
|
|
|
$foundCurrent = true; |
|
|
|
if ($foundCurrent) break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
if ($feed->nbNotRead() <= 0) continue; |
|
|
|
|
|
|
|
$anotherUnreadId = $feed->id(); |
|
|
|
|
|
|
|
if ($foundCurrent) break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
$nextGet = empty ($anotherUnreadId) ? 'c_' . $this->get_c : 'f_' . $anotherUnreadId; |
|
|
|
} |
|
|
|
break; |
|
|
|
$nextGet = empty($anotherUnreadId) ? 'c_' . $this->get_c : 'f_' . $anotherUnreadId; |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -177,19 +177,19 @@ |
|
|
|
|
|
|
|
|
|
|
|
$arUrl = array('c' => 'entry', 'a' => 'read', 'params' => array('get' => $get, 'nextGet' => $nextGet, 'idMax' => $idMax)); |
|
|
|
$arUrl = array('c' => 'entry', 'a' => 'read', 'params' => array('get' => $get, 'nextGet' => $nextGet, 'idMax' => $idMax)); |
|
|
|
$output = Minz_Request::param('output', ''); |
|
|
|
$output = Minz_Request::param('output', ''); |
|
|
|
if (($output != '') && ($this->conf->view_mode !== $output)) { |
|
|
|
if ($output != '' && $this->conf->view_mode !== $output) { |
|
|
|
$arUrl['params']['output'] = $output; |
|
|
|
$arUrl['params']['output'] = $output; |
|
|
|
} |
|
|
|
} |
|
|
|
$markReadUrl = Minz_Url::display($arUrl); |
|
|
|
$markReadUrl = Minz_Url::display($arUrl); |
|
|
|
Minz_Session::_param ('markReadUrl', $markReadUrl); |
|
|
|
Minz_Session::_param('markReadUrl', $markReadUrl); |
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
<div class="stick" id="nav_menu_read_all"> |
|
|
|
<div class="stick" id="nav_menu_read_all"> |
|
|
|
<a class="read_all btn<?php if ($this->conf->reading_confirm) {echo ' confirm';} ?>" href="<?php echo $markReadUrl; ?>"><?php echo Minz_Translate::t ('mark_read'); ?></a>
|
|
|
|
<a class="read_all btn<?php if ($this->conf->reading_confirm) {echo ' confirm';} ?>" href="<?php echo $markReadUrl; ?>"><?php echo _t('mark_read'); ?></a>
|
|
|
|
<div class="dropdown"> |
|
|
|
<div class="dropdown"> |
|
|
|
<div id="dropdown-read" class="dropdown-target"></div> |
|
|
|
<div id="dropdown-read" class="dropdown-target"></div> |
|
|
|
|
|
|
|
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-read"><?php echo FreshRSS_Themes::icon('down'); ?></a>
|
|
|
|
<a class="dropdown-toggle btn" href="#dropdown-read"><?php echo _i('down'); ?></a>
|
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li> |
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li> |
|
|
|
|
|
|
|
|
|
|
@ -199,8 +199,8 @@ |
|
|
|
$today = $this->today; |
|
|
|
$today = $this->today; |
|
|
|
$one_week = $today - 604800; |
|
|
|
$one_week = $today - 604800; |
|
|
|
?> |
|
|
|
?> |
|
|
|
<li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"><?php echo Minz_Translate::t ('before_one_day'); ?></a></li>
|
|
|
|
<li class="item"><a href="<?php echo _url('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"><?php echo _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 Minz_Translate::t ('before_one_week'); ?></a></li>
|
|
|
|
<li class="item"><a href="<?php echo _url('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $one_week . '000000'); ?>"><?php echo _t('before_one_week'); ?></a></li>
|
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -209,18 +209,18 @@ |
|
|
|
<?php $url_output = $this->url; ?> |
|
|
|
<?php $url_output = $this->url; ?> |
|
|
|
<div class="stick" id="nav_menu_views"> |
|
|
|
<div class="stick" id="nav_menu_views"> |
|
|
|
<?php $url_output['params']['output'] = 'normal'; ?> |
|
|
|
<?php $url_output['params']['output'] = 'normal'; ?> |
|
|
|
<a class="view_normal btn <?php echo $actual_view == 'normal'? 'active' : ''; ?>" title="<?php echo Minz_Translate::t('normal_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<a class="view_normal btn <?php echo $actual_view == 'normal'? 'active' : ''; ?>" title="<?php echo _t('normal_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon("view-normal"); ?> |
|
|
|
<?php echo _i("view-normal"); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php $url_output['params']['output'] = 'global'; ?> |
|
|
|
<?php $url_output['params']['output'] = 'global'; ?> |
|
|
|
<a class="view_global btn <?php echo $actual_view == 'global'? 'active' : ''; ?>" title="<?php echo Minz_Translate::t('global_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<a class="view_global btn <?php echo $actual_view == 'global'? 'active' : ''; ?>" title="<?php echo _t('global_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon("view-global"); ?> |
|
|
|
<?php echo _i("view-global"); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php $url_output['params']['output'] = 'reader'; ?> |
|
|
|
<?php $url_output['params']['output'] = 'reader'; ?> |
|
|
|
<a class="view_reader btn <?php echo $actual_view == 'reader'? 'active' : ''; ?>" title="<?php echo Minz_Translate::t('reader_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<a class="view_reader btn <?php echo $actual_view == 'reader'? 'active' : ''; ?>" title="<?php echo _t('reader_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon("view-reader"); ?> |
|
|
|
<?php echo _i("view-reader"); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -229,27 +229,27 @@ |
|
|
|
$url_output['params']['token'] = $this->conf->token; |
|
|
|
$url_output['params']['token'] = $this->conf->token; |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
<a class="view_rss btn" target="_blank" title="<?php echo Minz_Translate::t ('rss_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<a class="view_rss btn" target="_blank" title="<?php echo _t('rss_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon('rss'); ?> |
|
|
|
<?php echo _i('rss'); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="item search"> |
|
|
|
<div class="item search"> |
|
|
|
<form action="<?php echo _url ('index', 'index'); ?>" method="get">
|
|
|
|
<form action="<?php echo _url('index', 'index'); ?>" method="get">
|
|
|
|
<?php $search = Minz_Request::param ('search', ''); ?> |
|
|
|
<?php $search = Minz_Request::param('search', ''); ?> |
|
|
|
<input type="search" name="search" class="extend" value="<?php echo $search; ?>" placeholder="<?php echo Minz_Translate::t ('search_short'); ?>" />
|
|
|
|
<input type="search" name="search" class="extend" value="<?php echo $search; ?>" placeholder="<?php echo _t('search_short'); ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
<?php $get = Minz_Request::param ('get', ''); ?> |
|
|
|
<?php $get = Minz_Request::param('get', ''); ?> |
|
|
|
<?php if($get != '') { ?> |
|
|
|
<?php if($get != '') { ?> |
|
|
|
<input type="hidden" name="get" value="<?php echo $get; ?>" />
|
|
|
|
<input type="hidden" name="get" value="<?php echo $get; ?>" />
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
|
|
<?php $order = Minz_Request::param ('order', ''); ?> |
|
|
|
<?php $order = Minz_Request::param('order', ''); ?> |
|
|
|
<?php if($order != '') { ?> |
|
|
|
<?php if($order != '') { ?> |
|
|
|
<input type="hidden" name="order" value="<?php echo $order; ?>" />
|
|
|
|
<input type="hidden" name="order" value="<?php echo $order; ?>" />
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
|
|
<?php $state = Minz_Request::param ('state', ''); ?> |
|
|
|
<?php $state = Minz_Request::param('state', ''); ?> |
|
|
|
<?php if($state != '') { ?> |
|
|
|
<?php if($state != '') { ?> |
|
|
|
<input type="hidden" name="state" value="<?php echo $state; ?>" />
|
|
|
|
<input type="hidden" name="state" value="<?php echo $state; ?>" />
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
@ -269,11 +269,11 @@ |
|
|
|
$url_order = $this->url; |
|
|
|
$url_order = $this->url; |
|
|
|
$url_order['params']['order'] = $order; |
|
|
|
$url_order['params']['order'] = $order; |
|
|
|
?> |
|
|
|
?> |
|
|
|
<a id="toggle-order" class="btn" href="<?php echo Minz_Url::display ($url_order); ?>" title="<?php echo Minz_Translate::t ($title); ?>">
|
|
|
|
<a id="toggle-order" class="btn" href="<?php echo Minz_Url::display($url_order); ?>" title="<?php echo _t($title); ?>">
|
|
|
|
<?php echo FreshRSS_Themes::icon($icon); ?> |
|
|
|
<?php echo _i($icon); ?> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<?php if ($this->loginOk || Minz_Configuration::allowAnonymousRefresh()) { ?> |
|
|
|
<?php if ($this->loginOk || Minz_Configuration::allowAnonymousRefresh()) { ?> |
|
|
|
<a id="actualize" class="btn" href="<?php echo _url ('feed', 'actualize'); ?>"><?php echo FreshRSS_Themes::icon('refresh'); ?></a>
|
|
|
|
<a id="actualize" class="btn" href="<?php echo _url('feed', 'actualize'); ?>"><?php echo _i('refresh'); ?></a>
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|