set_filenames( array('AS_panorama_content' => dirname(__FILE__) . '/template/AS_panorama_content.tpl') ); $asp['Path'] = embellish_url($template->get_template_vars('ROOT_URL').ASP_PATH); $asp['content'] = $content; $template->assign( array( 'ASP' => $asp, ) ); return $template->parse('AS_panorama_content', true); } } } if ( !function_exists( 'AS_panorama_title' ) ) { if ( $conf['AS_panorama']['In_name_display_removal'] ) { add_event_handler('loc_end_picture', 'AS_panorama_title'); function AS_panorama_title() { global $conf, $template; $asp = & $conf['AS_panorama']; $picture = $template->get_template_vars('current'); $picture['TITLE'] = $asp['name']; $template->assign('current', $picture); $template->assign( array( 'ASP' => $asp, ) ); } } } if ( !function_exists( 'AS_panorama_menu' ) ) { if ( defined('IN_ADMIN') and IN_ADMIN ) { add_event_handler('get_admin_plugin_menu_links', 'AS_panorama_menu'); function AS_panorama_menu($menu) { array_push($menu, array( 'NAME' => 'Simple Panorama', 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/AS_Panorama_admin.php') ) ); return $menu; } } } ?>