'text/css'));
wp_localize_script('jquery', 'cm_settings', $cm_settings);
wp_enqueue_script('wp-theme-plugin-editor');
wp_enqueue_style('wp-codemirror');
wp_enqueue_script( 'uacf7-uacf7style-script', UACF7_ADDONS . '/styler/js/custom.js', array('jquery', 'wp-color-picker' ), '', true );
}
}
}
/*
* Function create tab panel
*/
public function uacf7_add_panel( $panels ) {
$panels['uacf7-uacf7style-panel'] = array(
'title' => __( 'UACF7 Form Styler', 'ultimate-addons-cf7' ),
'callback' => array( $this, 'uacf7_create_uacf7style_panel_fields' ),
);
return $panels;
}
/*
* Function uacf7style fields
*/
public function uacf7_create_uacf7style_panel_fields( $post ) {
// get existing value
$label_color = get_post_meta( $post->id(), 'uacf7_uacf7style_label_color', true );
$label_background_color = get_post_meta( $post->id(), 'uacf7_uacf7style_label_background_color', true );
$label_font_size = get_post_meta( $post->id(), 'uacf7_uacf7style_label_font_size', true );
$label_font_family = get_post_meta( $post->id(), 'uacf7_uacf7style_label_font_family', true );
$label_font_style = get_post_meta( $post->id(), 'uacf7_uacf7style_label_font_style', true );
$label_font_weight = get_post_meta( $post->id(), 'uacf7_uacf7style_label_font_weight', true );
$label_padding_top = get_post_meta( $post->id(), 'uacf7_uacf7style_label_padding_top', true );
$label_padding_right = get_post_meta( $post->id(), 'uacf7_uacf7style_label_padding_right', true );
$label_padding_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_label_padding_bottom', true );
$label_padding_left = get_post_meta( $post->id(), 'uacf7_uacf7style_label_padding_left', true );
$label_margin_top = get_post_meta( $post->id(), 'uacf7_uacf7style_label_margin_top', true );
$label_margin_right = get_post_meta( $post->id(), 'uacf7_uacf7style_label_margin_right', true );
$label_margin_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_label_margin_bottom', true );
$label_margin_left = get_post_meta( $post->id(), 'uacf7_uacf7style_label_margin_left', true );
$input_color = get_post_meta( $post->id(), 'uacf7_uacf7style_input_color', true );
$input_background_color = get_post_meta( $post->id(), 'uacf7_uacf7style_input_background_color', true );
$input_font_size = get_post_meta( $post->id(), 'uacf7_uacf7style_input_font_size', true );
$input_font_family = get_post_meta( $post->id(), 'uacf7_uacf7style_input_font_family', true );
$input_font_style = get_post_meta( $post->id(), 'uacf7_uacf7style_input_font_style', true );
$input_font_weight = get_post_meta( $post->id(), 'uacf7_uacf7style_input_font_weight', true );
$input_height = get_post_meta( $post->id(), 'uacf7_uacf7style_input_height', true );
$input_border_width = get_post_meta( $post->id(), 'uacf7_uacf7style_input_border_width', true );
$input_border_color = get_post_meta( $post->id(), 'uacf7_uacf7style_input_border_color', true );
$input_border_style = get_post_meta( $post->id(), 'uacf7_uacf7style_input_border_style', true );
$input_border_radius = get_post_meta( $post->id(), 'uacf7_uacf7style_input_border_radius', true );
$textarea_input_height = get_post_meta( $post->id(), 'uacf7_uacf7style_textarea_input_height', true );
$input_padding_top = get_post_meta( $post->id(), 'uacf7_uacf7style_input_padding_top', true );
$input_padding_right = get_post_meta( $post->id(), 'uacf7_uacf7style_input_padding_right', true );
$input_padding_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_input_padding_bottom', true );
$input_padding_left = get_post_meta( $post->id(), 'uacf7_uacf7style_input_padding_left', true );
$input_margin_top = get_post_meta( $post->id(), 'uacf7_uacf7style_input_margin_top', true );
$input_margin_right = get_post_meta( $post->id(), 'uacf7_uacf7style_input_margin_right', true );
$input_margin_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_input_margin_bottom', true );
$input_margin_left = get_post_meta( $post->id(), 'uacf7_uacf7style_input_margin_left', true );
$btn_color = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_color', true );
$btn_background_color = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_background_color', true );
$btn_font_size = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_font_size', true );
$btn_font_style = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_font_style', true );
$btn_font_weight = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_font_weight', true );
$btn_border_width = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_border_width', true );
$btn_border_color = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_border_color', true );
$btn_border_style = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_border_style', true );
$btn_border_radius = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_border_radius', true );
$btn_width = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_width', true );
$btn_color_hover = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_color_hover', true );
$btn_background_color_hover = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_background_color_hover', true );
$btn_border_color_hover = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_border_color_hover', true );
$btn_padding_top = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_padding_top', true );
$btn_padding_right = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_padding_right', true );
$btn_padding_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_padding_bottom', true );
$btn_padding_left = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_padding_left', true );
$btn_margin_top = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_margin_top', true );
$btn_margin_right = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_margin_right', true );
$btn_margin_bottom = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_margin_bottom', true );
$btn_margin_left = get_post_meta( $post->id(), 'uacf7_uacf7style_btn_margin_left', true );
$ua_custom_css = get_post_meta( $post->id(), 'uacf7_uacf7style_ua_custom_css', true );
?>
documentation'
); ?>