| Server IP : 66.29.153.156 / Your IP : 216.73.216.114 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/lastyfjz/dermalaserclinic.co.uk/wp-content/plugins/boxzilla/src/ |
Upload File : |
<?php
defined('ABSPATH') or exit;
add_filter('boxzilla_box_content', 'wptexturize');
add_filter('boxzilla_box_content', 'convert_smilies');
add_filter('boxzilla_box_content', 'convert_chars');
add_filter('boxzilla_box_content', 'wpautop');
add_filter('boxzilla_box_content', 'shortcode_unautop');
add_filter('boxzilla_box_content', 'do_shortcode', 11);
/**
* Allow Jetpack Photon to filter on Boxzilla box content.
*/
if (class_exists('Jetpack') && class_exists('Jetpack_Photon') && method_exists('Jetpack', 'is_module_active') && Jetpack::is_module_active('photon')) {
add_filter('boxzilla_box_content', [ 'Jetpack_Photon', 'filter_the_content' ], 999999);
}
/**
* Filter nav menu items to use an onclick event instead of a href attribute.
*/
add_filter(
'nav_menu_link_attributes',
function ($atts) {
if (isset($atts['href']) && strpos($atts['href'], '#boxzilla-') !== 0) {
return $atts;
}
$id = substr($atts['href'], strlen('#boxzilla-'));
$atts['onclick'] = "Boxzilla.show({$id}); return false;";
$atts['href'] = '';
return $atts;
},
10,
1
);