PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.0.19
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.0.19
3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 122 releases
firebox / Inc / Core / Layouts / public / box.php

box.php in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 2.0.19, at Inc/Core/Layouts/public/box.php

52 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package FireBox
4 * @version 2.0.19 Free
5 *
6 * @author FirePlugins <[email protected]>
7 * @link https://www.fireplugins.com
8 * @copyright Copyright © 2023 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 $custom_code = $box->get('params.data.customcode', '');
20
21 $close_button = (int) $box->get('params.data.closebutton.show', '');
22
23 $rtl = (int) $box->get('params.data.rtl', 0);
24 ?>
25 <div data-id="<?php echo esc_attr($box->get('ID')); ?>"
26 class="fb-inst fb-hide <?php echo esc_attr(implode(' ', (array) $box->get('classes'))); ?>"
27 data-options='<?php echo json_encode($box->get('settings')); ?>'
28 data-type='<?php echo esc_attr($box->get('params.data.mode')); ?>'
29 <?php if ($rtl == 1) { ?>dir="rtl"<?php } ?>>
30
31 <?php if ($close_button == 2) { firebox()->renderer->public->render('closebutton', ['box' => $this->data->get('box', [])]); } ?>
32
33 <div class="fb-dialog <?php echo esc_attr(implode(' ', (array) $box->get('dialog_classes', []))); ?>" style="<?php echo esc_attr($box->get('style')); ?>" role="dialog" tabindex="-1">
34
35 <?php if ($close_button == 1) { firebox()->renderer->public->render('closebutton', ['box' => $this->data->get('box', [])]); } ?>
36
37 <div class="fb-container">
38 <div class="fb-content">
39 <?php echo $box->get('post_content'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
40 </div>
41 </div>
42 <?php
43 if (is_string($custom_code) && !empty($custom_code))
44 {
45 $custom_code = html_entity_decode(stripslashes($custom_code));
46 wp_add_inline_script('firebox', $custom_code);
47 }
48 ?>
49 </div>
50 </div>
51 <?php
52