≡' : ''; $output = '
  • %2$s
  • '; printf( $output, $sanitized_name, $wp_registered_widgets[$name]['name'] . $popper ); } $title = __( 'Widgets' ); $parent_file = 'themes.php'; require_once 'admin-header.php'; if ( count( $wp_registered_sidebars ) < 1 ) { ?>

    follow these instructions.' ); /* TODO: article on codex */; ?>

    $sidebar ) { $postindex = $index . 'order'; parse_str( $_POST[$postindex], $order ); $new_order = $order[$index]; if ( is_array( $new_order ) ) { foreach ( $new_order as $sanitized_name ) { foreach ( $wp_registered_widgets as $name => $widget ) { if ( $sanitized_name == $widget['id'] ) { $sidebars_widgets[$index][] = $name; } } } } } wp_set_sidebars_widgets( $sidebars_widgets ); break; } } ksort( $wp_registered_widgets ); $inactive_widgets = array(); foreach ( $wp_registered_widgets as $name => $widget ) { $is_active = false; foreach ( $wp_registered_sidebars as $index => $sidebar ) { if ( is_array( $sidebars_widgets[$index] ) && in_array( $name, $sidebars_widgets[$index] ) ) { $is_active = true; break; } } if ( !$is_active ) { $inactive_widgets[] = $name; } } $containers = array( 'palette' ); foreach ( $wp_registered_sidebars as $index => $sidebar ) { $containers[] = $index; } $c_string = ''; foreach ( $containers as $container ) { $c_string .= '"' . $container . '",'; } $c_string = substr( $c_string, 0, -1 ); if ( isset( $_POST['action'] ) ) { ?>

    View site »' ), get_bloginfo( 'url' ) . '/' ); ?>

    $sidebar ) { ?>


    $widget ) { ?>