set_id('skeleton'); $tabsheet->add('home', l10n('Welcome'), SKELETON_ADMIN . '-home'); $tabsheet->add('config', l10n('Configuration'), SKELETON_ADMIN . '-config'); $tabsheet->select($page['tab']); $tabsheet->assign(); } // include page include(SKELETON_PATH . 'admin/' . $page['tab'] . '.php'); // template vars $template->assign(array( 'SKELETON_PATH'=> get_root_url() . SKELETON_PATH, // used for images, scripts, ... access 'SKELETON_ABS_PATH'=> realpath(SKELETON_PATH), // used for template inclusion (Smarty needs a real path) 'SKELETON_ADMIN' => SKELETON_ADMIN, )); // send page content $template->assign_var_from_handle('ADMIN_CONTENT', 'skeleton_content'); ?>