Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
start_controls_section(
'mf_btn_section_content',
[
'label' => esc_html__( 'Content', 'metform' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->button_content_control();
$this->end_controls_section();
if(class_exists('\MetForm_Pro\Base\Package')){
$this->input_conditional_control();
}
$this->start_controls_section(
'mf_btn_hidden_input_content',
[
'label' => esc_html__( 'Hidden', 'metform' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->hidden_input_content_control();
$this->end_controls_section();
$this->start_controls_section(
'mf_btn_section_style',
[
'label' =>esc_html__( 'Button', 'metform' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->button_style_control();
$this->end_controls_section();
$this->start_controls_section(
'mf_btn_border_style_tabs',
[
'label' =>esc_html__( 'Border', 'metform' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->button_border_control();
$this->end_controls_section();
$this->start_controls_section(
'mf_btn_box_shadow_style',
[
'label' =>esc_html__( 'Shadow', 'metform' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->button_shadow_control();
$this->end_controls_section();
$this->start_controls_section(
'mf_btn_iconw_style',
[
'label' =>esc_html__( 'Icon', 'metform' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => ['mf_btn_icon!' => '']
]
);
$this->button_icon_control();
$this->end_controls_section();
$this->insert_pro_message();
}
protected function render($instance = []){
$settings = $this->get_settings_for_display();
$render_on_editor = false;
$is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
$btn_text = $settings['mf_btn_text'];
$icon_align = $settings['mf_btn_icon_align'];
$class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
$hidden_inputs = isset($settings['mf_hidden_input']) ? $settings['mf_hidden_input'] : '';
if(!empty($hidden_inputs)){
foreach($hidden_inputs as $input){
$input = (object) $input;
?>
add_render_attribute(
'button',
[
'type' => 'submit',
'class' => 'metform-btn metform-submit-btn ' . $settings['mf_btn_class'],
'id' => $settings['mf_btn_id'],
]
);
?>