get_builder_items( $this->id ); } /** * Get all customize settings and register them into WP Customize * * @see StarterBlog_Customizer::register() * * @param array $configs List configs. * @param null $wp_customize WP customize. * * @return array */ function _customize( $configs = array(), $wp_customize = null ) { if ( ! is_array( $configs ) ) { $configs = array(); } $config = $this->customize( $wp_customize ); $rows = apply_filters( 'starterblog/builder/' . $this->id . '/rows', $this->get_rows_config() ); foreach ( $rows as $id => $name ) { $m = 'row_' . $id . '_config'; if ( method_exists( $this, $m ) ) { $r = call_user_func_array( array( $this, $m ), array( $this->id . '_' . $id, $name ) ); $config = array_merge( $config, $r ); } else { if ( method_exists( $this, 'row_config' ) ) { $config = array_merge( $config, $this->row_config( $this->id . '_' . $id, $name ) ); } } } $items_config = StarterBlog_Customize_Layout_Builder()->get_items_customize( $this->id, $wp_customize ); if ( is_array( $items_config ) ) { $config = array_merge( $config, $items_config ); } return array_merge( $configs, $config ); } }