/**
  *	Callback attached to `theme-sidebar`: create a menu entry
  *	@callback
  */
 public function admin_menu()
 {
     createSideMenu($this->_info['id'], 'Cloud Backups');
 }
Example #2
0
function i18n_base_sidebar_item($id, $txt, $action = null, $always = true)
{
    $is31 = function_exists('generate_sitemap');
    # GetSimple 3.1+
    if ($is31) {
        createSideMenu($id, $txt, $action, $always);
    } else {
        $current = false;
        if (isset($_GET['id']) && $_GET['id'] == $id && (!$action || isset($_GET[$action]))) {
            $current = true;
        }
        if ($always || $current) {
            echo '<li><a href="load.php?id=' . $id . ($action ? '&amp;' . $action : '') . '" ' . ($current ? 'class="current"' : '') . ' >' . $txt . '</a></li>';
        }
    }
}
Example #3
0
 /**
  *	Callback attached to `theme-sidebar`: create a menu entry
  *	@callback
  */
 public function admin_menu()
 {
     createSideMenu($this->_info['id'], 'Contact Link');
 }