remove_control('wrapper_bg_color'); $this->remove_control('wrapper_padding'); $this->remove_control('time_num_color'); $this->remove_control('time_text_color'); $this->remove_control('time_text_bg_color'); $this->remove_control('time_text_typography'); $this->remove_responsive_control('time_num_padding'); $this->remove_responsive_control('time_text_padding'); $this->update_control( 'time_num_bg_color', [ 'selectors' => [ '{{WRAPPER}} .digit' => 'background-color: {{VALUE}}' ] ] ); $this->start_controls_section( 'time_sep_style', [ 'label' => __( 'Time Separator', 'wts-eae' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'time_sep_color', [ 'label' => __( 'Background Color', 'wts-eae' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .digit-separator' => 'background-color: {{VALUE}}' ] ] ); $this->end_controls_section(); } function render(){ $data = $this->parent->get_data(); $settings = $this->parent->get_settings_for_display(); //print_r($data); $actions = $this->eae_get_egt_actions($settings); if ( $actions ) { $this->parent->add_render_attribute( 'wrapper', 'data-actions', json_encode($actions) ); } $this->parent->add_render_attribute( 'wrapper', 'data-id', $data['id'] ); $this->parent->add_render_attribute( 'wrapper', 'data-element-type', $settings['countdown_type'] ); $this->parent->add_render_attribute( 'wrapper', 'data-egtime', $this->get_egt_interval($settings) ); $this->parent->add_render_attribute( 'wrapper', 'data-egt-expire', $settings['egt_expiry'] ); if ( $settings['show_days'] == 'yes' ) { $this->parent->add_render_attribute( 'wrapper', 'data-days', 'yes' ); } if ( $settings['show_hours'] == 'yes' ) { $this->parent->add_render_attribute( 'wrapper', 'data-hours', 'yes' ); } if ( $settings['show_minutes'] == 'yes' ) { $this->parent->add_render_attribute( 'wrapper', 'data-mins', 'yes' ); } if ( $settings['show_seconds'] == 'yes' ) { $this->parent->add_render_attribute( 'wrapper', 'data-seconds', 'yes' ); } ?>