Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
plugins
/
contact-form-7
/
File Content:
template-functions.php
<?php if ( ! function_exists( 'halstein_core_cf7_add_submit_form_tag' ) ) { /** * Function that override default submit buttom html tag */ function halstein_core_cf7_add_submit_form_tag() { wpcf7_add_form_tag( 'submit', 'halstein_core_cf7_submit_form_tag_handler' ); } } if ( ! function_exists( 'halstein_core_cf7_submit_form_tag_handler' ) ) { /** * Function that override default submit buttom html tag * * @param array $tag * * @return string */ function halstein_core_cf7_submit_form_tag_handler( $tag ) { $tag = new WPCF7_FormTag( $tag ); $class = wpcf7_form_controls_class( $tag->type ); $atts = array(); $atts['class'] = $tag->get_class_option( $class ); $atts['class'] .= ' qodef-button qodef-size--normal qodef-m'; // button layout class is added to widget holder $atts['id'] = $tag->get_id_option(); $atts['tabindex'] = $tag->get_option( 'tabindex', 'int', true ); $value = isset( $tag->values[0] ) ? $tag->values[0] : ''; if ( empty( $value ) ) { $value = esc_html__( 'Send', 'halstein-core' ); } $atts['type'] = 'submit'; $atts = wpcf7_format_atts( $atts ); $html = sprintf( '<button %1$s><span class="qodef-m-text">%2$s</span></button>', $atts, $value ); return $html; } } if ( ! function_exists( 'halstein_core_cf7_disable_autop' ) ) { /** * Function that remove unnecessary p tags from forms * * @return false */ function halstein_core_cf7_disable_autop() { return false; } add_filter( 'wpcf7_autop_or_not', 'halstein_core_cf7_disable_autop' ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
widgets
---
0755
class-halsteincore-contact-form-7.php
1251 bytes
0644
include.php
106 bytes
0644
template-functions.php
1573 bytes
0644
N4ST4R_ID | Naxtarrr