start_controls_section( 'section_column_settings', [ 'label' => __('Style', 'betterdocs'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'update_date_color', [ 'label' => esc_html__('Color', 'betterdocs'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .update-date' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'update_date_typography', 'selector' => '{{WRAPPER}} .update-date' ] ); $this->add_responsive_control( 'update_date_alignment', [ 'label' => __( 'Alignment', 'betterdocs' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'betterdocs' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => __( 'Center', 'betterdocs' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => __( 'Right', 'betterdocs' ), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => __( 'Justified', 'betterdocs' ), 'icon' => 'eicon-text-align-justify', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}}' => 'text-align: {{VALUE}};', ], ] ); $this->end_controls_section(); } protected function render () { $show_last_update_time = BetterDocs_DB::get_settings('show_last_update_time'); if ($show_last_update_time == 1) { ?>