Merge pull request #1327 from jooola/feat/hide_my_podcasts
Hide My Podcasts feature
This commit is contained in:
commit
2513f08d07
|
@ -13,14 +13,16 @@
|
||||||
* in the menu.phtml script when they are output.
|
* in the menu.phtml script when they are output.
|
||||||
*/
|
*/
|
||||||
$pages = array();
|
$pages = array();
|
||||||
$pages[] = array(
|
// Disable My podcasts
|
||||||
'label' => _('My Podcast'),
|
// See https://github.com/LibreTime/libretime/issues/1320
|
||||||
'module' => 'default',
|
// $pages[] = array(
|
||||||
'controller' => 'podcast',
|
// 'label' => _('My Podcast'),
|
||||||
'action' => 'station',
|
// 'module' => 'default',
|
||||||
'resource' => 'podcast',
|
// 'controller' => 'podcast',
|
||||||
'class' => '<i class="icon-music icon-white"></i>'
|
// 'action' => 'station',
|
||||||
);
|
// 'resource' => 'podcast',
|
||||||
|
// 'class' => '<i class="icon-music icon-white"></i>'
|
||||||
|
// );
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => _('Radio Page'),
|
'label' => _('Radio Page'),
|
||||||
'uri' => '/',
|
'uri' => '/',
|
||||||
|
|
|
@ -119,7 +119,9 @@ class LibraryController extends Zend_Controller_Action
|
||||||
if ($isAdminOrPM || $file->getFileOwnerId() == $user->getId()) {
|
if ($isAdminOrPM || $file->getFileOwnerId() == $user->getId()) {
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
|
||||||
$menu["edit"] = array("name"=> _("Edit..."), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}");
|
$menu["edit"] = array("name"=> _("Edit..."), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}");
|
||||||
$menu["publish"] = array("name"=> _("Publish..."), "url" => $baseUrl."library/publish/id/{$id}");
|
// Disable My podcasts
|
||||||
|
// See https://github.com/LibreTime/libretime/issues/1320
|
||||||
|
// $menu["publish"] = array("name"=> _("Publish..."), "url" => $baseUrl."library/publish/id/{$id}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// It's important that we always return the parent id (cc_files id)
|
// It's important that we always return the parent id (cc_files id)
|
||||||
|
|
Loading…
Reference in New Issue