| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 3.1.13 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <[email protected]> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
if (!defined('ABSPATH')) |
| 13 |
{ |
| 14 |
exit; // Exit if accessed directly. |
| 15 |
} |
| 16 |
$box = $this->data->get('box', []); |
| 17 |
$box = new \FPFramework\Libs\Registry($box); |
| 18 |
|
| 19 |
$close_button = (int) $box->get('params.data.closebutton.show', ''); |
| 20 |
?> |
| 21 |
<div data-id="<?php echo esc_attr($box->get('ID')); ?>" |
| 22 |
class="fb-inst fb-hide <?php echo esc_attr(implode(' ', (array) $box->get('classes'))); ?>" |
| 23 |
data-options='<?php echo wp_json_encode($box->get('settings'), JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP); ?>' |
| 24 |
data-type='<?php echo esc_attr($box->get('params.data.mode')); ?>'> |
| 25 |
|
| 26 |
<?php if ($close_button == 2) { firebox()->renderer->public->render('closebutton', ['box' => $this->data->get('box', [])]); } ?> |
| 27 |
|
| 28 |
<div class="fb-dialog <?php echo esc_attr(implode(' ', (array) $box->get('dialog_classes', []))); ?>" style="<?php echo esc_attr($box->get('style')); ?>" role="dialog" aria-modal="true" id="dialog<?php echo esc_attr($box->get('ID')); ?>" aria-label="dialog<?php echo esc_attr($box->get('ID')); ?>"> |
| 29 |
|
| 30 |
<?php if ($close_button == 1) { firebox()->renderer->public->render('closebutton', ['box' => $this->data->get('box', [])]); } ?> |
| 31 |
|
| 32 |
<div class="fb-container"> |
| 33 |
<div class="fb-content is-layout-constrained"> |
| 34 |
<?php echo $box->get('post_content'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<?php |
| 40 |
|