start_controls_section( 'osf_section_vertical_line', [ 'label' => __( 'Vertical Line', 'opalhomes-core' ), 'tab' => Controls_Manager::TAB_LAYOUT, ] ); $element->add_control( 'osf_section_vertical_line_switcher', [ 'label' => __( 'Enable Vertical Line', 'opalhomes-core' ), 'type' => Controls_Manager::SWITCHER, 'default' => '', 'label_on' => 'Yes', 'label_off' => 'No', 'return_value' => 'active', 'prefix_class' => 'osf-vertical-line-' ] ); $element->add_control( 'osf_section_vertical_line_color', [ 'label' => __( 'Color', 'opalhomes-core' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .vertical-lines .line-item' => 'background-color: {{VALUE}};', ], 'condition' => [ 'osf_section_vertical_line_switcher' => 'active' ] ] ); $element->end_controls_section(); }}new OSF_Vertical_Line(); Hello world! – Villa San Gerardo

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

01 Comment

Rispondi a A WordPress Commenter Annulla risposta

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *