wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-field-types.php
/**
 * Generates textarea field
 *
 * @param array $args Field settings
 *
 * @since 1.3.2
 * @return string
 */
Generates textarea field
@param array $args Field settings


Generates textarea field @param array $args Field settings
function themify_meta_field_textarea( $args ) {
	extract( $args, EXTR_OVERWRITE );
	$meta_box = wp_parse_args( $meta_box, array(
		'size' => 55,
		'rows' => 4,
		'class' => ''
	) );
	$meta_value = $args['meta_value'];
	$html = sprintf( '<textarea id="%s" name="%s" size="%s" rows="%s" class="themify_input_field %s">%s</textarea>',
		esc_attr( $meta_box['name'] ), esc_attr( $meta_box['name'] ), $meta_box['size'], $meta_box['rows'], $meta_box['class'], esc_textarea( $meta_value ) );
	$html = themify_meta_field_get_label($html, $meta_box);
	if ( isset( $meta_box['description'] ) ) {
		$html .= themify_meta_field_get_description( $meta_box['description'] );
	}
	if( isset( $meta_box['before'] ) && $meta_box['before'] ) $html = $meta_box['before'] . $html;
	if( isset( $meta_box['after'] ) && $meta_box['after'] )  $html .= $meta_box['after'];
	echo $html;
}
function themify_meta_field_textarea ( $ args ) { extract ( $ args , EXTR_OVERWRITE ) ; $ meta_box = wp_parse_args ( $ meta_box , array ( 'size' => 55 , 'rows' => 4 , 'class' => '' ) ) ; $ meta_value = $ args [ 'meta_value' ] ; $ html = sprintf ( '<textarea id="%s" name="%s" size="%s" rows="%s" class="themify_input_field %s">%s</textarea>' , esc_attr ( $ meta_box [ 'name' ] ) , esc_attr ( $ meta_box [ 'name' ] ) , $ meta_box [ 'size' ] , $ meta_box [ 'rows' ] , $ meta_box [ 'class' ] , esc_textarea ( $ meta_value ) ) ; $ html = themify_meta_field_get_label ( $ html , $ meta_box ) ; if ( isset ( $ meta_box [ 'description' ] ) ) { $ html .= themify_meta_field_get_description ( $ meta_box [ 'description' ] ) ; } if ( isset ( $ meta_box [ 'before' ] ) && $ meta_box [ 'before' ] ) $ html = $ meta_box [ 'before' ] . $ html ; if ( isset ( $ meta_box [ 'after' ] ) && $ meta_box [ 'after' ] ) $ html .= $ meta_box [ 'after' ] ; echo $ html ; }
Generates textarea field
 @param array $args Field settings
Generates textarea field @param array $args Field settings