$XBMC = new XBMCHelper(); $jqm = new jqmPhp(); $jqm->head()->title($config['AppTitle']); $jqm->head()->add("<meta name='viewport' content='width=device-width, initial-scale=1'/>"); // $jqm->head()->add(new jqmLink("themes/PandoraTV.min.css")); $page = new jqmPage('index'); $page->theme('b')->title($config['AppTitle']); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); $nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', true)); $nav->add(new jqmButton('', '', '', 'a', 'shows.php?ac=sl', 'All Shows', '', false)); $nav->add(new jqmButton('', '', '', 'a', 'channels.php?ac=cl', 'Channels', '', false)); //$page->AddContent('<h1>Pandora TV</h1>'); $g = $page->addContent(new jqmGrid(), true); $g->grid('b'); $ShowsList = $XBMC->RetrieveShowList(); $randshows = shuffle($ShowsList); $column1 = 0; $column2 = 0; $list = new jqmListviem(); $list->inset(true)->theme('a'); $list->addDivider('Random Shows')->dividerTheme('a')->countTheme('b'); foreach ($ShowsList as $k => $v) { if ($column1 != 4) { $list->AddBasic($v['SeriesName'], 'shows.php?ac=si&id=' . $v['idShow']); $column1++; } } $page->AddContent($list); $list = new jqmListviem(); $list->inset(true)->theme('a');
<div id="tray"> <div id="mydroplinemenu" class="droplinebar"> <ul> <li><a href="index.php">Main</a></li> <li><a href="#">Channels</a> <ul> <?php require_once 'libs/XBMCHelper.class.php'; $XBMC = new XBMCHelper(); $studioArray = $XBMC->RetrieveStudioList(); foreach ($studioArray as $k => $v) { echo "<li><a href='index.php?p=shows&c=" . $v['strStudio'] . "'/>" . $v['strStudio'] . "</a></li>"; } ?> </ul> </li> <li><a href="index.php?p=shows">Shows</a> <ul> <?php $showsArray = $XBMC->RetrieveShowList(); foreach ($showsArray as $k => $v) { echo "<li><a href='index.php?p=episodes&s=" . $v['idShow'] . "'/>" . $v['SeriesName'] . "</a></li>"; } ?> </ul> </div> <hr class="noscreen" /> </div> <!-- /tray -->