| @@ -1,10 +1,10 @@ | ||
| 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 | -$element .= '<textarea name="'. esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" style="vertical-align:top;width:400px;height:200px" class="mb-textarea mb-field '. esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'] ) ) .'">'. esc_html( $value ) .'</textarea>'; | |
| 9 | -$element .= '<script type="text/javascript">jQuery( function(){ if ( typeof wckInitTinyMCE == "function" ) wckInitTinyMCE("'. Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) .'")});</script>'; | |
| 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 | +$element .= '<textarea name="'. $single_prefix . esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" style="vertical-align:top;width:400px;height:200px" class="mb-textarea mb-field '. esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'">'. esc_html( $value ) .'</textarea>'; | |
| 9 | +$element .= '<script type="text/javascript">jQuery( function(){ if ( typeof wckInitTinyMCE == "function" ) wckInitTinyMCE("'. Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) .'")});</script>'; | |
| 10 | 10 | ?> |