WordPress.org

Support

Support » Alpha/Beta » [Resolved] 3.0 behavior for add_submenu_page, unsure

[Resolved] 3.0 behavior for add_submenu_page, unsure

Viewing 2 replies - 1 through 2 (of 2 total)
  • Actually it wasn’t a part of that add_submenu_page code, I found it here:

    // Register Sidebar and Define Widgets
    
    if ( function_exists('register_sidebar') ) {
    	foreach (array(
    				__('Left Sidebar', 'comicpress'),
    				__('Right Sidebar', 'comicpress'),
    				__('Above Header', 'comicpress'),
    				__('Header', 'comicpress'),
    				__('Menubar', 'comicpress'),
    				__('Over Comic', 'comicpress'),
    				__('Left of Comic', 'comicpress'),
    				__('Right of Comic', 'comicpress'),
    				__('Under Comic', 'comicpress'),
    				__('Over Blog', 'comicpress'),
    				__('Blog', 'comicpress'),
    				__('Under Blog', 'comicpress'),
    				__('DaFooter', 'comicpress')
    				) as $title) {
    		register_sidebar(array(
    					'name'=> $title,
    					'id' => sanitize_title($title),
    					'before_widget' => "<div id=\"".'%1$s'."\" class=\"widget ".'%2$s'."\">\r\n<div class=\"widget-head\"></div>\r\n<div class=\"widget-content\">\r\n",
    					'after_widget'  => "</div>\r\n<div class=\"widget-foot\"></div>\r\n</div>\r\n",
    					'before_title'  => "<h2 class=\"widgettitle\">",
    					'after_title'   => "</h2>\r\n"
    					));
    	}
    }

    Basically see ‘dafooter’ as the last registered ? It’s using that in the browsers header as the page title.

    Meh okay apparently the system doesn’t like me doing this, so i’m reverting to the HUGE SET OF LINES for the register_sidebar

    // resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] 3.0 behavior for add_submenu_page, unsure’ is closed to new replies.
Skip to toolbar