1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Release plugin free

This commit is contained in:
daniel 2018-10-18 09:59:16 -03:00
parent a2155cdc83
commit fc2d1676f2
42 changed files with 9640 additions and 0 deletions

View file

@ -0,0 +1,55 @@
<?php
$configFile = $global['systemRootPath'] . 'videos/configuration.php';
require_once $configFile;
require_once $global['systemRootPath'] . 'plugin/TopMenu/Objects/Menu.php';
require_once $global['systemRootPath'] . 'plugin/TopMenu/Objects/MenuItem.php';
$menu = Menu::getAllActive(1);
?>
<?php
foreach ($menu as $key => $value) {
?>
<li class="dropdown">
<a href="#" class=" btn btn-light navbar-btn" data-toggle="dropdown">
<?php
if (!empty($value['icon'])) {
?>
<i class="<?php echo $value['icon'] ?>"></i>
<?php
}
?>
<?php echo $value['menuName']; ?>
<b class="caret"></b>
</a>
<ul class="dropdown-menu dropdown-menu-right" id="availableLive" style="">
<?php
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
foreach ($menuItems as $key2 => $value2) {
$url = $value2['url'];
if(empty($url)){
$url = $global['webSiteRootURL']."plugin/TopMenu/?id={$value2['id']}";
}
?>
<li style="margin-right: 0;">
<a href="<?php echo $url; ?>" >
<?php
if (!empty($value2['icon'])) {
?>
<i class="<?php echo $value2['icon'] ?>"></i>
<?php
}
?>
<?php echo $value2['title'] ?>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php
}
?>