aside_flux.phtml 3.8 KB

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