get_id() != 'menubar') return; $menu->register_block( new RegisteredBlock( 'mbAbout', 'About', 'A1M')); } function a1m_apply($menu_ref_arr) { global $template,$user; $menu = & $menu_ref_arr[0]; $template->assign ( array ( 'A1MTITLE' => l10n('About Piwigo'), 'A1MNAME' => l10n('About'), 'A1MURL' => get_root_url().'about.php', ) ); if (($block = $menu->get_block( 'mbAbout' )) != null) { $template->set_template_dir(A1M_PATH.'template/'); if ($user['theme'] == 'bootstrapdefault'||$user['theme'] == 'bootstrap_darkroom'){ $block->template = 'menubar_about_Bootstrap_Default.tpl'; }else if ($user['theme'] == 'smartpocket'){ $block->template = 'menubar_about_smartpocket.tpl'; }else{ $block->template = 'menubar_about.tpl'; } } } ?>