diff options
Diffstat (limited to 'apps/media/appinfo/app.php')
-rw-r--r-- | apps/media/appinfo/app.php | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/apps/media/appinfo/app.php b/apps/media/appinfo/app.php index a41e228be4a..b29b842d23a 100644 --- a/apps/media/appinfo/app.php +++ b/apps/media/appinfo/app.php @@ -22,12 +22,42 @@ require_once('apps/media/lib_media.php'); -if(OC_APP::getCurrentApp()=='files'){ - OC_UTIL::addScript('media','files'); +if(OC_App::getCurrentApp()=='files'){ + OC_Util::addScript('media','files'); } -OC_APP::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' )); +OC_App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' )); -OC_APP::addNavigationEntry( array( 'id' => 'media_index', 'order' => 2, 'href' => OC_HELPER::linkTo( 'media', 'index.php' ), 'icon' => OC_HELPER::imagePath( 'media', 'media.png' ), 'name' => 'Media' )); -OC_APP::addSettingsPage( array( 'id' => 'media_settings', 'order' => 5, 'href' => OC_HELPER::linkTo( 'media', 'settings.php' ), 'name' => 'Media', 'icon' => OC_HELPER::imagePath( 'media', 'media.png' ))); +OC_App::addNavigationEntry( array( 'id' => 'media_index', 'order' => 2, 'href' => OC_Helper::linkTo( 'media', 'index.php' ), 'icon' => OC_Helper::imagePath( 'media', 'media.png' ), 'name' => 'Media' )); +OC_App::addSettingsPage( array( 'id' => 'media_settings', 'order' => 5, 'href' => OC_Helper::linkTo( 'media', 'settings.php' ), 'name' => 'Media', 'icon' => OC_Helper::imagePath( 'media', 'media.png' ))); + +// add subnavigations +$entry = array( + 'id' => "media_playlist", + 'order'=>1, + 'href' => '#playlist', + 'name' => 'Playlist' +); +OC_App::addNavigationSubEntry( "media_index", $entry); +$entry = array( + 'id' => "media_collection", + 'order'=>1, + 'href' => '#collection', + 'name' => 'Collection' +); +OC_App::addNavigationSubEntry( "media_index", $entry); +// $entry = array( +// 'id' => "media_recent", +// 'order'=>1, +// 'href' => '#recent', +// 'name' => 'Most Recent' +// ); +// OC_App::addNavigationSubEntry( "media_index", $entry); +// $entry = array( +// 'id' => "media_mostplayer", +// 'order'=>1, +// 'href' => '#mostplayed', +// 'name' => 'Most Played' +// ); +// OC_App::addNavigationSubEntry( "media_index", $entry); ?> |