Esempio n. 1
0
 public static function sidebarPluginsList($h, $pluginResult)
 {
     $pFuncs = new PluginFunctions();
     $base = $pFuncs->getValues($h, $pluginResult);
     try {
         if (is_array($base)) {
             foreach ($base as $links) {
                 // loop through each plugins array
                 foreach ($links as $label => $params) {
                     // loop through each link item
                     // Going to check the arrays first as we dont want this to break
                     $linkLabel = isset($label) ? $label : '---';
                     $linkUrl = isset($params[0]) ? $params[0] : '#';
                     echo "<li><a href='" . BASEURL . $linkUrl . "'>" . $linkLabel . "</a></li>";
                 }
             }
         }
     } catch (Exception $exc) {
         echo $exc->getTraceAsString();
     }
 }