* * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); adminGateKeeper(); $admin_tabs = Admintab::get(); $tab = pageArray(1); if (!$tab) { $tab = "general"; } $url = getSiteURL(); $button = ""; $page_body = "<ul class='nav nav-pills nav-stacked'>"; foreach ($admin_tabs as $admin_tab) { $name = $admin_tab->name; $class = $tab == $name ? "active" : ""; $page_body .= "<li role='presentation' class='{$class}'>"; $page_body .= "<a href='{$url}admin/{$name}'>" . translate("admin_panel:" . $admin_tab->name) . "</a>"; $page_body .= "</li>"; if ($admin_tab->name == $tab) { if ($admin_tab->buttons) {
function getAdmintab($name = false) { return Admintab::get($name); }