| @@ -1,16 +1,16 @@ | ||
| 1 | -<?php | |
| 2 | - /* @param string $meta Meta name. | |
| 3 | - * @param array $details Contains the details for the field. | |
| 4 | - * @param string $value Contains input value; | |
| 5 | - * @param string $context Context where the function is used. Depending on it some actions are preformed.; | |
| 6 | - * @return string $element input element html string. */ | |
| 7 | - | |
| 8 | - | |
| 9 | -$element .= '<input type="text" name="'. esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" id="'; | |
| 10 | -if( !empty( $frontend_prefix ) ) | |
| 11 | - $element .= $frontend_prefix; | |
| 12 | -$element .= esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'"'; | |
| 13 | -if( !empty( $details['readonly'] ) && $details['readonly'] ) | |
| 14 | - $element .= 'readonly="readonly"'; | |
| 15 | -$element .= ' value="'. esc_attr( $value ) .'" class="mb-text-input mb-field"/>'; | |
| 1 | +<?php | |
| 2 | + /* @param string $meta Meta name. | |
| 3 | + * @param array $details Contains the details for the field. | |
| 4 | + * @param string $value Contains input value; | |
| 5 | + * @param string $context Context where the function is used. Depending on it some actions are preformed.; | |
| 6 | + * @return string $element input element html string. */ | |
| 7 | + | |
| 8 | + | |
| 9 | +$element .= '<input type="text" name="'. $single_prefix . esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" id="'; | |
| 10 | +if( !empty( $frontend_prefix ) ) | |
| 11 | + $element .= $frontend_prefix; | |
| 12 | +$element .= esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'"'; | |
| 13 | +if( !empty( $details['readonly'] ) && $details['readonly'] ) | |
| 14 | + $element .= 'readonly="readonly"'; | |
| 15 | +$element .= ' value="'. esc_attr( $value ) .'" class="mb-text-input mb-field"/>'; | |
| 16 | 16 | ?> |