navigation.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /*
  3. * Navigation container (config/array)
  4. * Each element in the array will be passed to
  5. * Zend_Navigation_Page::factory() when constructing
  6. * the navigation container below.
  7. */
  8. $pages = array(
  9. array(
  10. 'label' => _('Now Playing'),
  11. 'module' => 'default',
  12. 'controller' => 'Showbuilder',
  13. 'action' => 'index',
  14. 'resource' => 'showbuilder'
  15. ),
  16. array(
  17. 'label' => _('Add Media'),
  18. 'module' => 'default',
  19. 'controller' => 'Plupload',
  20. 'action' => 'index',
  21. 'resource' => 'plupload'
  22. ),
  23. array(
  24. 'label' => _('Library'),
  25. 'module' => 'default',
  26. 'controller' => 'Library',
  27. 'action' => 'index',
  28. 'resource' => 'playlist'
  29. ),
  30. array(
  31. 'label' => _('Calendar'),
  32. 'module' => 'default',
  33. 'controller' => 'Schedule',
  34. 'action' => 'index',
  35. 'resource' => 'schedule'
  36. ),
  37. array(
  38. 'label' => _('System'),
  39. 'uri' => '#',
  40. 'resource' => 'preference',
  41. 'pages' => array(
  42. array(
  43. 'label' => _('Preferences'),
  44. 'module' => 'default',
  45. 'controller' => 'Preference'
  46. ),
  47. array(
  48. 'label' => _('Users'),
  49. 'module' => 'default',
  50. 'controller' => 'user',
  51. 'action' => 'add-user',
  52. 'resource' => 'user'
  53. ),
  54. array(
  55. 'label' => _('Media Folders'),
  56. 'module' => 'default',
  57. 'controller' => 'Preference',
  58. 'action' => 'directory-config',
  59. 'id' => 'manage_folder'
  60. ),
  61. array(
  62. 'label' => _('Streams'),
  63. 'module' => 'default',
  64. 'controller' => 'Preference',
  65. 'action' => 'stream-setting'
  66. ),
  67. array(
  68. 'label' => _('Status'),
  69. 'module' => 'default',
  70. 'controller' => 'systemstatus',
  71. 'action' => 'index',
  72. 'resource' => 'systemstatus'
  73. ),
  74. array(
  75. 'label' => _('Listener Stats'),
  76. 'module' => 'default',
  77. 'controller' => 'listenerstat',
  78. 'action' => 'index',
  79. 'resource' => 'listenerstat'
  80. )
  81. )
  82. ),
  83. array(
  84. 'label' => _('History'),
  85. 'uri' => '#',
  86. 'resource' => 'playouthistory',
  87. 'pages' => array(
  88. array(
  89. 'label' => _('Playout History'),
  90. 'module' => 'default',
  91. 'controller' => 'playouthistory',
  92. 'action' => 'index',
  93. 'resource' => 'playouthistory'
  94. ),
  95. array(
  96. 'label' => _('History Templates'),
  97. 'module' => 'default',
  98. 'controller' => 'playouthistorytemplate',
  99. 'action' => 'index',
  100. 'resource' => 'playouthistorytemplate'
  101. ),
  102. )
  103. ),
  104. array(
  105. 'label' => _('Help'),
  106. 'uri' => '#',
  107. 'resource' => 'dashboard',
  108. 'pages' => array(
  109. array(
  110. 'label' => _('Getting Started'),
  111. 'module' => 'default',
  112. 'controller' => 'dashboard',
  113. 'action' => 'help',
  114. 'resource' => 'dashboard'
  115. ),
  116. array(
  117. 'label' => _('User Manual'),
  118. 'uri' => "http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/",
  119. 'target' => "_blank"
  120. ),
  121. array(
  122. 'label' => _('About'),
  123. 'module' => 'default',
  124. 'controller' => 'dashboard',
  125. 'action' => 'about',
  126. 'resource' => 'dashboard'
  127. )
  128. )
  129. )
  130. );
  131. // Create container from array
  132. $container = new Zend_Navigation($pages);
  133. $container->id = "nav";
  134. //store it in the registry:
  135. Zend_Registry::set('Zend_Navigation', $container);