* @link https://www.fireplugins.com * @copyright Copyright © 2021 FirePlugins All Rights Reserved * @license GNU GPLv3 or later */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly. } $box = $this->data->get('box', []); $box = new \FPFramework\Libs\Registry($box); $params = $this->data->get('params', []); $params = new \FPFramework\Libs\Registry($params); $custom_code = $box->get('params.data.customcode', ''); if (is_string($custom_code)) { $custom_code = stripslashes($custom_code); $custom_code = html_entity_decode($custom_code); } $close_button = (int) $box->get('params.data.closebutton.show', ''); $rtl = (int) $box->get('params.data.rtl', 0); $css = is_string($box->get('params.data.customcss')) ? $box->get('params.data.customcss') : ''; // add responsive CSS if ($responsive_css = $box->get('params.data.responsive_css', [])) { if (isset($responsive_css->tablet) && !empty($responsive_css->tablet)) { $css .= ' @media only screen and (max-width: 768px) { .fb-' . esc_attr($box->get('ID')) . ' .fb-dialog { ' . esc_html($responsive_css->tablet) . ' } }'; } if (isset($responsive_css->mobile) && !empty($responsive_css->mobile)) { $css .= ' @media only screen and (max-width: 468px) { .fb-' . esc_attr($box->get('ID')) . ' .fb-dialog { ' . esc_html($responsive_css->mobile) . ' } }'; } } // render box css at the bottom of the page if (!empty($css)) { add_action( 'wp_footer', function() use ($css, $box) { echo ''; }, 100); } ?>
' data-type='get('params.data.mode')); ?>' get('styles_container'))) { ?>style="get('styles_container')); ?>" dir="rtl"> renderer->public->render('closebutton', ['box' => $this->data->get('box', [])]); } ?>