| 1 |
<?php |
| 2 |
/** |
| 3 |
* Field choices wrapper in the form builder. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @var FrmFieldType $this Field type handler that included this template. |
| 8 |
* @var array $args Arguments including 'field' (with 'post_field', 'id', 'taxonomy' keys). |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
die( 'You are not allowed to call this page directly.' ); |
| 13 |
} |
| 14 |
|
| 15 |
if ( isset( $args['field']['post_field'] ) && $args['field']['post_field'] === 'post_category' ) { |
| 16 |
?> |
| 17 |
<div class="frm-inline-message" id="frm_has_hidden_options_<?php echo esc_attr( $args['field']['id'] ); ?>"> |
| 18 |
<?php FrmAppHelper::kses_echo( FrmFieldsHelper::get_term_link( $args['field']['taxonomy'] ), array( 'a' ) ); ?> |
| 19 |
</div> |
| 20 |
<?php |
| 21 |
} else { |
| 22 |
$this->show_field_options( $args ); |
| 23 |
} |
| 24 |
|