'widget_area', 'description' => __( 'Include all widgets from another widget area', 'simple-page-sidebars' ) ); // Call the parent constructor. parent::__construct( 'area', __( 'Widget Area', 'simple-page-sidebars' ), $widget_ops ); } /** * Display the widget. * * @since 0.2.0 */ public function widget( $args, $instance ) { extract( $args ); // Don't allow an infinite loop. if ( $id != $instance['area_id'] ) { echo $before_widget; $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); echo ( empty( $title ) ) ? '' : $before_title . $title . $after_title; echo '
'; dynamic_sidebar( $instance['area_id'] ); echo '
'; echo $after_widget; } } /** * Display the form for modifying the widget settings. * * @since 0.2.0 */ public function form( $instance ) { global $wp_registered_sidebars; $instance = wp_parse_args( (array) $instance, array( 'area_id' => '', 'title' => '' ) ); ?>