aside_flux.phtml 3.8 KB

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