'Container (open)', 'size' => 'span12', 'resizable' => 0, ); parent::__construct( 'as_Open_Container_Block', $block_options ); } function form( $instance ){ $defaults = array( 'overlay_color' => 'rgba(0,0,0,0)', 'bg_color' => '#fafafa', 'position' => 'top left', 'image' => '', 'repeat' => 'repeat', 'text_color' => 'normal', 'parallax' => '', 'padding_top' => '0', 'padding_bottom' => '0', 'show_row' => 'true', 'video_bg' => 'true', 'menu_id' => '', 'video_link' => '', ); $instance = wp_parse_args($instance, $defaults); extract($instance); $text_colors = array( 'white' => 'Color White', 'normal' => 'Color Default' ); $bg_repeat = array( 'repeat' => 'repeat', 'no-repeat' => 'no-repeat' ); $row = array( 'true' => 'Yes', 'false' => 'No' ); $menus_arr = array(''=>'-- Select --'); if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ 'main_nav' ] ) ) { $menu = wp_get_nav_menu_object( $locations[ 'main_nav' ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); if(!empty( $menu_items )){ foreach ($menu_items as $menu_item) { $menus_arr[sanitize_title($menu_item->title)] = $menu_item->title; } } } ?>

  -  

***/ $row_class = ''; if ( $show_row == 'true' ){ $row_class = '
' ; } echo '
'.$row_class.''; } function before_block( $instance ) { extract( $instance ); return; } function after_block( $instance ) { extract( $instance ); return; } } as_register_block( 'as_Open_Container_Block' ); endif;