start_controls_section( 'portfolio_section', [ 'label' => esc_html__( 'portfolio', 'bappy' ), 'type' => Controls_Manager::SECTION, ] ); $this->add_control( 'ppp', [ 'label' => __( 'number of portfolio', 'bappy' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'no' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'size' => 9, ] ] ); $this->add_control( 'order', [ 'label' => __( 'order', 'bappy' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'ASC', 'options' => [ 'ASC' => __( 'ascending', 'bappy' ), 'DESC' => __( 'descending', 'bappy' ) ], ] ); $this->end_controls_section(); } protected function render( $instance = [] ) { // get our input from the widget settings. $settings = $this->get_settings_for_display(); //Inline Editing $this->add_inline_editing_attributes( 'ppp', 'basic' ); ?>