| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
if ( ! $args['dismiss-icon'] ) { |
| 7 |
$args['class'] .= ' frm-modal-no-dismiss'; |
| 8 |
} |
| 9 |
if ( ! $args['show'] ) { |
| 10 |
$args['class'] .= ' frm_hidden'; |
| 11 |
} |
| 12 |
?> |
| 13 |
<div class="frm-inline-modal frm-modal postbox <?php echo esc_attr( $args['class'] ); ?>" id="<?php echo esc_attr( $args['id'] ); ?>"> |
| 14 |
<?php if ( $args['dismiss-icon'] ) { ?> |
| 15 |
<a href="#" class="dismiss" title="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> |
| 16 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => __( 'Close', 'formidable' ) ) ); ?> |
| 17 |
</a> |
| 18 |
<?php } ?> |
| 19 |
|
| 20 |
<?php if ( $args['title'] ) { ?> |
| 21 |
<ul class="frm-nav-tabs"> |
| 22 |
<li class="frm-tabs"> |
| 23 |
<a href="#"> |
| 24 |
<?php echo esc_html( $args['title'] ); ?> |
| 25 |
</a> |
| 26 |
</li> |
| 27 |
</ul> |
| 28 |
<?php } ?> |
| 29 |
|
| 30 |
<div class="<?php echo esc_attr( $args['inside_class'] ); ?>"> |
| 31 |
<?php call_user_func( $args['callback'], $args['args'] ); ?> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
|