| 1 |
<?php |
| 2 |
/** |
| 3 |
* Form Templates - Modal. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
die( 'You are not allowed to call this page directly.' ); |
| 10 |
} |
| 11 |
|
| 12 |
// Return early if no view parts to render. |
| 13 |
if ( ! $view_parts ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
?> |
| 17 |
<div id="frm-form-templates-modal" class="frm-modal frm_common_modal frm_hidden" frm-page=""> |
| 18 |
<div class="metabox-holder"> |
| 19 |
<div class="postbox"> |
| 20 |
<a class="frm-modal-close dismiss" title="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> |
| 21 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => __( 'Close', 'formidable' ) ) ); ?> |
| 22 |
</a> |
| 23 |
|
| 24 |
<?php |
| 25 |
foreach ( $view_parts as $modal => $file ) { |
| 26 |
require $view_path . $file; |
| 27 |
} |
| 28 |
?> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
|