sintonia/airtime_mvc/application/configs/navigation.php

205 lines
6.7 KiB
PHP
Raw Normal View History

<?php
/*
* Navigation container (config/array)
* Each element in the array will be passed to
* Zend_Navigation_Page::factory() when constructing
* the navigation container below.
*/
$pages = array(
array(
'label' => "<i class='icon-music icon-white'></i>"._('My Podcast'),
'module' => 'default',
'controller' => 'podcast',
'action' => 'station',
'resource' => 'podcast'
),
array(
'label' => "<i class='icon-globe icon-white'></i>"._('Radio Page'),
'uri' => '/',
'resource' => '',
'pages' => array(
)
),
array(
2015-08-19 18:58:31 +02:00
'label' => "<i class='icon-calendar icon-white'></i>"._('Calendar'),
'module' => 'default',
'controller' => 'schedule',
'action' => 'index',
'resource' => 'schedule'
),
2015-06-12 23:21:46 +02:00
array(
'label' => "<i class='icon-wrench icon-white'></i>"._('Widgets'),
'module' => 'default',
'controller' => 'embeddablewidgets',
'action' => 'player',
'resource' => 'embeddablewidgets',
'title' => 'Widgets',
2015-06-12 23:21:46 +02:00
'pages' => array(
array(
'label' => _('Player'),
'module' => 'default',
'controller' => 'embeddablewidgets',
'action' => 'player',
),
array(
'label' => _('Weekly Schedule'),
'module' => 'default',
'controller' => 'embeddablewidgets',
'action' => 'schedule',
2015-10-30 19:38:34 +01:00
),
array(
'label' => _('Facebook'),
'module' => 'default',
'controller' => 'embeddablewidgets',
'action' => 'facebook',
)
2015-06-12 23:21:46 +02:00
)
),
2011-02-04 01:17:52 +01:00
array(
2015-08-19 18:58:31 +02:00
'label' => "<i class='icon-cog icon-white'></i>"._("Settings"),
2015-08-17 18:46:32 +02:00
'resource' => 'preference',
'action' => 'index',
'module' => 'default',
'controller' => 'preference',
2015-08-19 18:58:31 +02:00
'title' => 'Settings',
2015-08-17 18:46:32 +02:00
'pages' => array(
2011-02-04 01:17:52 +01:00
array(
2015-08-18 23:52:23 +02:00
'label' => _('General'),
2011-02-04 01:17:52 +01:00
'module' => 'default',
'controller' => 'preference'
2011-02-04 01:17:52 +01:00
),
array(
'label' => _('My Profile'),
'controller' => 'user',
'action' => 'edit-user',
'resource' => 'user'
),
2011-02-04 01:17:52 +01:00
array(
'label' => _('Users'),
2011-02-04 01:17:52 +01:00
'module' => 'default',
'controller' => 'user',
'action' => 'add-user',
'resource' => 'user'
),
array(
'label' => _('Streams'),
'module' => 'default',
'controller' => 'preference',
'action' => 'stream-setting'
2015-08-17 18:46:32 +02:00
)
)
),
array(
2015-08-19 18:58:31 +02:00
'label' => "<i class='icon-signal icon-white'></i>"._("Analytics"),
2015-08-17 18:46:32 +02:00
'module' => 'default',
'controller' => 'playouthistory',
2015-08-17 18:46:32 +02:00
'action' => 'index',
'resource' => 'playouthistory',
2015-08-19 18:58:31 +02:00
'title' => 'Analytics',
2015-08-17 18:46:32 +02:00
'pages' => array(
array(
2015-08-17 18:46:32 +02:00
'label' => _('Playout History'),
'module' => 'default',
2015-08-17 18:46:32 +02:00
'controller' => 'playouthistory',
'action' => 'index',
2015-08-17 18:46:32 +02:00
'resource' => 'playouthistory'
2015-02-12 20:08:06 +01:00
),
array(
2015-08-17 18:46:32 +02:00
'label' => _('History Templates'),
2015-02-12 20:08:06 +01:00
'module' => 'default',
2015-08-17 18:46:32 +02:00
'controller' => 'playouthistorytemplate',
'action' => 'index',
'resource' => 'playouthistorytemplate'
),
array(
'label' => _('Listener Stats'),
'module' => 'default',
'controller' => 'listenerstat',
'action' => 'index',
'resource' => 'listenerstat'
),
2011-02-04 01:17:52 +01:00
)
),
2015-08-17 18:46:32 +02:00
array(
2015-10-27 20:01:34 +01:00
'label' => (Application_Model_Preference::GetPlanLevel()=="trial") ? "<i class='icon-star icon-orange'></i><span style='color: #ff5d1a'>"._('Upgrade')."</span>" : "<i class='icon-briefcase icon-white'></i>"._('Billing'),
'controller' => 'billing',
'action' => 'upgrade',
'resource' => 'billing',
'title' => 'Billing',
'pages' => array(
array(
'label' => _('Account Plans'),
'module' => 'default',
'controller' => 'billing',
'action' => 'upgrade',
'resource' => 'billing'
),
array(
'label' => _('Account Details'),
'module' => 'default',
'controller' => 'billing',
'action' => 'client',
'resource' => 'billing'
),
array(
'label' => _('View Invoices'),
'module' => 'default',
'controller' => 'billing',
'action' => 'invoices',
'resource' => 'billing'
)
)
2015-08-17 18:46:32 +02:00
),
array(
2015-08-19 18:58:31 +02:00
'label' => "<i class='icon-question-sign icon-white'></i>"._('Help'),
2015-08-17 18:46:32 +02:00
'controller' => 'dashboard',
'action' => 'help',
'resource' => 'dashboard',
2015-08-19 18:58:31 +02:00
'title' => 'Help',
'pages' => array(
array(
'label' => _('Getting Started'),
'module' => 'default',
'controller' => 'dashboard',
'action' => 'help',
'resource' => 'dashboard'
),
array(
'label' => _('FAQ'),
'uri' => FAQ_URL,
'target' => "_blank"
),
array(
'label' => _('User Manual'),
'uri' => USER_MANUAL_URL,
'target' => "_blank"
),
array(
'label' => _('File a Support Ticket'),
'uri' => SUPPORT_TICKET_URL,
'target' => "_blank"
),
array(
'label' => _(sprintf("Help Translate %s", PRODUCT_NAME)),
'uri' => AIRTIME_TRANSIFEX_URL,
'target' => "_blank"
2015-09-28 23:19:02 +02:00
),
array(
'label' => _('What\'s New?'),
2015-09-28 23:19:02 +02:00
'uri' => UI_REVAMP_YOUTUBE_URL,
'target' => "_blank"
)
)
2014-06-20 23:25:05 +02:00
),
);
2011-02-04 01:17:52 +01:00
// Create container from array
$container = new Zend_Navigation($pages);
$container->id = "nav";
//store it in the registry:
Zend_Registry::set('Zend_Navigation', $container);