| ============================================= | by Matthew Mecham | (c) 2001 - 2005 Invision Power Services, Inc. | http://www.invisionpower.com | ============================================= | Web: http://www.invisionboard.com | Time: <{%dyn.down.var.time%}> | Release: <{%dyn.down.var.md5%}> | Licence Info: http://www.invisionboard.com/?license +--------------------------------------------------------------------------- | > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $ | > $Revision: 23 $ | > $Author: matt $ +--------------------------------------------------------------------------- | | > UCP: LIBRARY | > Module written by Matt Mecham | > Date started: 18th April 2005 +-------------------------------------------------------------------------- */ if ( ! defined( 'IN_IPB' ) ) { print "

Incorrect access

You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } //----------------------------------------- // Must be "components_ucp_{component name} //----------------------------------------- class components_ucp_tsl { /*-------------------------------------------------------------------------*/ // Build menu // Use: $content .= menu_bar_new_link( $url, $name ) for the links // Use: menu_bar_new_category( 'Blog', $content ) for the content // (although you don't have to! Use your own skins, etc if required) /*-------------------------------------------------------------------------*/ function ucp_build_menu() { //----------------------------------------- // INIT //----------------------------------------- $content = ""; //----------------------------------------- // Get links //----------------------------------------- if ( $this->ipsclass->vars['top_site_list_integrate'] == 1 ) { $content .= $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_link( "{$this->ipsclass->base_url}automodule=toplist", $this->ipsclass->lang['tsl_home'] ); $content .= $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_link( "{$this->ipsclass->base_url}automodule=toplist&CODE=01", $this->ipsclass->lang['tsl_your_sites'] ); } if ( $content ) { return $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_category( $this->ipsclass->lang['m_top_list'], $content ); } else { return ''; } } } ?>