'widget-oceanwp-custom-header-nav custom-header-nav-widget', 'description' => esc_html__( 'Display the main menu for the Custom Header style.', 'ocean-extra' ), 'customize_selective_refresh' => true, ) ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * @since 1.0.0 * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { // Define vars $position = isset( $instance['position'] ) ? $instance['position'] : 'left'; // Add classes $classes = array( 'custom-header-nav', 'clr' ); $classes[] = $position; $classes = implode( ' ', $classes ); // Before widget WP hook echo $args['before_widget']; ?>
'left', ) ); ?>