At admin panel since osclass version 3.0, there is a toolbar which is visible around the admin panel, can have shortcuts to actions like: add a new listing, show pending updates, ...
Developers can add to the toolbar whatever they want, with hooks, and calling AdminToolbar functions like add_menu($array)
/** * Add a node to the menu. * * @todo implement parent nodes * * @paramarray $args - The arguments for each node. * - id - string - The ID of the item. * - title - string - The title of the node. * - href - string - The link for the item. Optional. * - meta - array - Meta data including the following keys: html, class, * onclick, target, title, tabindex. */functionadd_menu( $array )
Example, adding link to frontend
/** * Add webtitle with link to frontend */functionosc_admin_toolbar_menu() {AdminToolbar::newInstance()->add_menu(array('id'=>'home','title'=>''.osc_page_title().'','href'=>osc_base_url(),'meta'=>array('class'=>'user-profile'),'target'=>'_blank' ) ); }