Merge pull request #1327 from jooola/feat/hide_my_podcasts

Hide My Podcasts feature
This commit is contained in:
Kyle Robbertze 2021-09-07 06:33:05 +00:00 committed by GitHub
commit 2513f08d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 9 deletions

View File

@ -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' => '/',

View File

@ -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)