$side_width = 0; } // Is there a selected tab? if (isset($_GET["t"]) && $_GET["t"] != "") { $selected_tab = scrubData($_GET["t"]); } else { $selected_tab = 0; } //create new guide object and set admin view to false $lobjGuide = new Guide($this_id); $lobjGuide->_isAdmin = FALSE; //processVisibility if (!$lobjGuide->checkVisibility()) { exit; } $all_tabs = $lobjGuide->getTabs('public'); } else { header("location:index.php"); } $page_title = $subject_name; // Do we have an alternate header? if (isset($header_type) && $header_type != 'default') { if (file_exists("includes/header_{$header_type}.php")) { include "includes/header_{$header_type}.php"; } else { include "includes/header.php"; } } else { include "includes/header.php"; } /*if (in_array($_REQUEST["subject"], $chcGuides)) {
if (isset($col_widths[2]) && $col_widths[2] > 0) { $side_width = $col_widths[2] * 8 - 3; // we make this a squidgen narrower so it doesn't wrap nastily } else { $side_width = 0; } // Is there a selected tab? if (isset($_GET["t"]) && $_GET["t"] != "") { $selected_tab = scrubData($_GET["t"]); } else { $selected_tab = 0; } //create new guide object and set admin view to true $lobjGuide = new Guide($this_id); $lobjGuide->_isAdmin = TRUE; $all_tabs = $lobjGuide->getTabs(); } else { print "no guide"; } //////////////////////////// // Now, get our pluslets // /////////////////////////// global $pluslets_activated; $all_boxes = "\n<ul id=\"box_options\">\n<li class=\"box_note box-item\">" . _("Drag selection, then drop to right") . "</li>"; foreach ($pluslets_activated as $lstrPluslet) { if (file_exists(dirname(dirname(__DIR__)) . "/lib/SubjectsPlus/Control/Pluslet/{$lstrPluslet}.php")) { $lstrObj = "SubjectsPlus\\Control\\Pluslet_" . $lstrPluslet; if (method_exists($lstrObj, 'getMenuName')) { $all_boxes .= "<li class=\"box-item draggable\" id=\"pluslet-id-{$lstrPluslet}\" ckclass='" . call_user_func(array($lstrObj, 'getCkPluginName')) . "'>" . call_user_func(array($lstrObj, 'getMenuName')) . "</li>"; } else { $all_boxes .= "<li class=\"box-item draggable\" id=\"pluslet-id-{$lstrPluslet}\" ckclass='" . call_user_func(array($lstrObj, 'getCkPluginName')) . "'>" . $lstrPluslet . "</li>";