Alexis Degrugillier 12 лет назад
Родитель
Сommit
bdd7b7b13e
3 измененных файлов с 11 добавлено и 0 удалено
  1. 1 0
      app/i18n/en.php
  2. 1 0
      app/i18n/fr.php
  3. 9 0
      app/layout/aside_flux.phtml

+ 1 - 0
app/i18n/en.php

@@ -27,6 +27,7 @@ return array (
 	'subscription_management'	=> 'Subscriptions management',
 	'main_stream'			=> 'Main stream',
 	'all_feeds'			=> 'All feeds',
+	'favorite_feeds'		=> 'Favourites (%d)',
 	'not_read'			=> '%d unread',
 	'not_reads'			=> '%d unread',
 

+ 1 - 0
app/i18n/fr.php

@@ -27,6 +27,7 @@ return array (
 	'subscription_management'	=> 'Gestion des abonnements',
 	'main_stream'			=> 'Flux principal',
 	'all_feeds'			=> 'Tous les flux',
+	'favorite_feeds'		=> 'Favoris (%d)',
 	'not_read'			=> '%d non lu',
 	'not_reads'			=> '%d non lus',
 

+ 9 - 0
app/layout/aside_flux.phtml

@@ -28,6 +28,15 @@
 			</div>
 		</li>
 
+		<li>
+			<div class="category favorites<?php echo $this->get_c == 's' ? ' active' : ''; ?>">
+				<a data-unread="<?php echo formatNumber($this->nb_favorites['unread']); ?>" class="btn<?php echo $this->get_c == 's' ? ' active' : ''; ?>" href="<?php $arUrl['params']['get'] = 's'; echo Minz_Url::display($arUrl); ?>">
+					<?php echo FreshRSS_Themes::icon('bookmark'); ?>
+					<?php echo Minz_Translate::t('favorite_feeds', formatNumber($this->nb_favorites['all'])); ?>
+				</a>
+			</div>
+		</li>
+
 		<?php
 		foreach ($this->cat_aside as $cat) {
 			$feeds = $cat->feeds ();