Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 18, 2024
1 parent 701de0a commit c99e9d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/TopMenu/actionButtonNetflix.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<?php
}
}
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURL start -->'.PHP_EOL;
$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURL);

foreach ($menu as $key => $value) {
Expand Down Expand Up @@ -60,6 +61,7 @@
}

if (User::isLogged()) {
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURLForLoggedUsers start -->'.PHP_EOL;
$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForLoggedUsers);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
Expand All @@ -86,6 +88,8 @@
}
}
if (User::canWatchVideo($videos_id)) {
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURLForUsersThatCanWatchVideo start -->'.PHP_EOL;

$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForUsersThatCanWatchVideo);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
Expand Down Expand Up @@ -115,6 +119,7 @@
}

if (!User::canWatchVideo($videos_id)) {
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURLForUsersThatCanNotWatchVideo start -->'.PHP_EOL;
$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForUsersThatCanNotWatchVideo);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
Expand Down

0 comments on commit c99e9d2

Please sign in to comment.