false, self::INCLUDE_PARENT => false, self::INCLUDE_CHILDLESS_PARENT => false, self::ORDER_BY => 'menu_order', self::USE_PLUGIN_STYLES => false, self::EXCLUDE => false, self::DISPLAY_ALL => false, self::LEVELS => 1, ); public function __construct() { $widget_ops = array( 'classname' => 'advanced-sidebar-menu', 'description' => __( 'Creates a menu of all the pages using the child/parent relationship', 'advanced-sidebar-menu' ), ); $control_ops = array( 'width' => 620, ); parent::__construct( 'advanced_sidebar_menu', __( 'Advanced Sidebar Pages Menu', 'advanced-sidebar-menu' ), $widget_ops, $control_ops ); } /** * Output a simple widget Form * * Not of ton of options here but who needs them * Most of the magic happens automatically * * @filters do_action('advanced_sidebar_menu_page_widget_form', $instance, $this->get_field_name('parent_only'), * $this->get_field_id('parent_only')); * * @param array $instance * * @return void */ public function form( $instance ) { $instance = $this->set_instance( $instance, self::$defaults ); ?>

checkbox( self::INCLUDE_PARENT ); ?>

checkbox( self::INCLUDE_CHILDLESS_PARENT ); ?>

checkbox( self::DISPLAY_ALL, self::LEVELS ); ?>

hide_element( self::DISPLAY_ALL ); ?>>

get_field_id( 'parent_only' ), $this, $instance ); ?>
render(); } }