aside_flux.phtml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div class="aside aside_flux" id="aside_flux">
  2. <a class="toggle_aside" href="#close"><i class="icon i_close"></i></a>
  3. <ul class="categories">
  4. <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
  5. <li>
  6. <div class="stick">
  7. <a class="btn btn-important" href="<?php echo _url ('configure', 'feed'); ?>"><?php echo Translate::t ('subscription_management'); ?></a>
  8. <a class="btn btn-important" href="<?php echo _url ('configure', 'categorize'); ?>" title="<?php echo Translate::t ('categories_management'); ?>"><i class="icon i_category">☷</i></a>
  9. </div>
  10. </li>
  11. <?php } elseif (login_is_conf ($this->conf)) { ?>
  12. <li><a href="<?php echo _url ('index', 'about'); ?>"><?php echo Translate::t ('about_freshrss'); ?></a></li>
  13. <?php } ?>
  14. <li>
  15. <div class="category all">
  16. <a data-unread="<?php echo $this->nb_not_read; ?>" class="btn<?php echo $this->get_c == 'all' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index'); ?>">
  17. <i class="icon i_all">☰</i>
  18. <?php echo Translate::t ('all_feeds'); ?>
  19. </a>
  20. </div>
  21. </li>
  22. <li>
  23. <div class="category favorites">
  24. <a data-unread="<?php echo $this->nb_favorites['unread']; ?>" class="btn<?php echo $this->get_c == 'favoris' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'favoris'); ?>">
  25. <i class="icon i_bookmark">★</i>
  26. <?php echo Translate::t ('favorite_feeds', $this->nb_favorites['all']); ?>
  27. </a>
  28. </div>
  29. </li>
  30. <?php foreach ($this->cat_aside as $cat) { ?>
  31. <?php $feeds = $cat->feeds (); ?>
  32. <?php if (!empty ($feeds)) { ?>
  33. <li>
  34. <?php $c_active = false; if ($this->get_c == $cat->id ()) { $c_active = true; } ?>
  35. <div class="category stick<?php echo $c_active ? ' active' : ''; ?>">
  36. <a data-unread="<?php echo $cat->nbNotRead (); ?>" class="btn<?php echo $c_active ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id ()); ?>"><?php echo $cat->name (); ?></a>
  37. <a class="btn dropdown-toggle" href="#"><i class="icon <?php echo $c_active ? 'i_up' : 'i_down'; ?>"></i></a>
  38. </div>
  39. <ul class="feeds<?php echo $c_active ? ' active' : ''; ?>">
  40. <?php foreach ($feeds as $feed) {
  41. $feed_id = $feed->id (); $nbEntries = $feed->nbEntries ();
  42. $f_active = ($this->get_f == $feed_id);
  43. ?>
  44. <li id="f_<?php echo $feed_id; ?>" class="item<?php echo $f_active ? ' active' : ''; ?><?php echo $feed->inError () ? ' error' : ''; ?><?php echo $nbEntries == 0 ? ' empty' : ''; ?>">
  45. <div class="dropdown">
  46. <div class="dropdown-target"></div>
  47. <a class="dropdown-toggle" data-fweb="<?php echo $feed->website (); ?>"><i class="icon i_configure"></i></a>
  48. <?php /* feed_config_template */ ?>
  49. </div>
  50. <img class="favicon" src="<?php echo $feed->favicon (); ?>" alt="✇" />
  51. <a class="feed" data-unread="<?php echo $feed->nbNotRead (); ?>" data-priority="<?php echo $feed->priority (); ?>" href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed_id); ?>"><?php echo $feed->name(); ?></a>
  52. </li>
  53. <?php } ?>
  54. </ul>
  55. </li>
  56. <?php } } ?>
  57. </ul>
  58. <span class="aside_flux_ender"><!-- For fixed menu --></span>
  59. </div>
  60. <script id="feed_config_template" type="text/html">
  61. <ul class="dropdown-menu">
  62. <li class="dropdown-close"><a href="#close"> </a></li>
  63. <li class="item"><a href="<?php echo _url ('index', 'index', 'get', 'f_!!!!!!'); ?>"><?php echo Translate::t ('filter'); ?></a></li>
  64. <li class="item"><a target="_blank" href="http://example.net/"><?php echo Translate::t ('see_website'); ?></a></li>
  65. <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
  66. <li class="separator"></li>
  67. <li class="item"><a href="<?php echo _url ('configure', 'feed', 'id', '!!!!!!'); ?>"><?php echo Translate::t ('administration'); ?></a></li>
  68. <li class="item"><a href="<?php echo _url ('feed', 'actualize', 'id', '!!!!!!'); ?>"><?php echo Translate::t ('actualize'); ?></a></li>
  69. <li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', 'f_!!!!!!'); ?>"><?php echo Translate::t ('mark_read'); ?></a></li>
  70. <?php } ?>
  71. </ul>
  72. </script>