start_controls_section( 'section_column_settings', [ 'label' => __('Style', 'betterdocs'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'navigation_text_color', [ 'label' => esc_html__('Color', 'betterdocs'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .docs-navigation a' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'navigation_text_typography', 'selector' => '{{WRAPPER}} .docs-navigation a' ] ); $this->add_control( 'navigation_arrow_size', [ 'label' => __('Size', 'betterdocs'), 'type' => Controls_Manager::SLIDER, 'default' => [ 'unit' => 'px', 'size' => 35, ], 'size_units' => ['px'], 'range' => [ 'px' => [ 'max' => 500, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .docs-navigation svg' => 'width: {{SIZE}}px;height: {{SIZE}}px;', ], ] ); $this->add_control( 'navigation_arrow_color', [ 'label' => esc_html__('Arrow Color', 'betterdocs'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .docs-navigation svg' => 'fill: {{VALUE}};', ] ] ); $this->end_controls_section(); } protected function render () { $enable_navigation = BetterDocs_DB::get_settings('enable_navigation'); if ($enable_navigation == 1) { echo '
'; } } }