# jetformbuilder/3.6.5.4/templates/common/field-description.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.5.4. 21 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.5.4/code/templates/common/field-description.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.5.4/raw/templates/common/field-description.php
- Modified: 2023-11-20T11:46:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.5.4/code/templates/common/field-description.php#L10-L20`.

```php
<?php
/**
 * Field description template
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( isset( $args['type'] ) && 'heading-field' === $args['type'] ) {
	$class  = 'jet-form-builder__heading-desc';
	$format = '<div class="%1$s">%2$s</div>';
} else {
	$class  = 'jet-form-builder__desc';
	$format = '<div class="%1$s"><small>%2$s</small></div>';
}

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
printf( $format, esc_attr( $class ), wp_kses_post( $args['desc'] ) );

```
