function printRows($plugins) { foreach ($plugins as $plugin) { openRow($level, $plugin->name); echo "<span class='name'>{$plugin->name}</span><br>\n"; echo '<div class="children">'; if (!($plugin->authors === null)) { openRow(1, $plugin->name + "_authors"); echo "<span class='name'>Author(s)</span>: {$plugin->authors}<br>"; closeRow(); } openRow(1, $plugin->name + "_version"); echo "<span class='name'>Version</span>: {$plugin->version}<br>"; closeRow(); if (!($plugin->description == 'null' || $plugin->description === null)) { openRow(1, $plugin->name + "_description"); echo "<span class='name'>Description</span>: {$plugin->description}<br>"; closeRow(); } openRow(1, $plugin->name + "_cost"); echo "<span class='name'>Plugin Cost</span>: " . pluginCost($plugin) . "<br>"; closeRow(); echo '</div>'; closeRow(); } }
function printRows($lag, $level) { global $processMap; $tpl = Template::getInstance(); foreach ($lag as $l) { if (($l->total < 500000 || LAG_ONLY && $l->lagTotal < 500000) && !NOFILTER) { continue; } $lagTicks = (int) $tpl->masterHandler->lagCount; $count = (int) (LAG_ONLY ? $l->lagCount : $l->count); if ($count === 0 || LAG_ONLY && $lagTicks === 0) { continue; } openRow($level, $l); printRecord($l); $id = $l->id->id; $h = $tpl->handlerData[$id]; if (!empty($h->children) && ++$processMap[$id] == 1) { if (!NOFILTER) { $children = array_filter($h->children, 'lagFilter'); } else { $children = $h->children; } if (!empty($children)) { $children = array_map(function ($v) { $tpl = Template::getInstance(); $h = $tpl->handlerData[$v->id->id]; $v->children = $h->children; return $v; }, $children); usort($children, 'lagSort'); echo '<div class="children">'; printRows($children, $level + 1); echo '</div>'; } --$processMap[$id]; } closeRow(); } }
<?php require 'header.php'; ?> <div> <ul class="breadcrumb"> <li> <a href="#">Home</a> </li> <li> <a href="#">Dashboard</a> </li> </ul> </div> <?php insertAlerts(); openRow(); openCell("Introduction", "home", 8); $plgName = EzGA::getPlgName(); $plgMode = EzGA::getPlgMode(); require_once "{$plgMode}-intro.php"; closeCell(); openCell("Contact Author", 'envelope', 4, "", 260); require_once 'support.php'; closeCell(); closeRow(); include 'promo.php'; require 'footer.php';
function closeBox() { closeCell(); closeRow(); }