| Server IP : 51.254.39.36 / Your IP : 216.73.217.109 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-12GDIEC772I 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_21(allbatf787) ( 0) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/allbat-sb.fr/httpdocs/wp-content/plugins/kadence-slider/admin/ |
Upload File : |
<?php
add_action('wp_ajax_ksp_preview_slider', 'ksp_preview_slider_callback');
function ksp_preview_slider_callback() {
echo '<!DOCTYPE html><html><head>';
wp_register_style('kadence_slider_css', KADENCE_SLIDER_URL . 'css/ksp.css', false, '206');
wp_print_styles('kadence_slider_css');
wp_print_scripts('jquery');
wp_register_script('kadence_slider_js', KADENCE_SLIDER_URL . 'js/min/ksp-min.js', false, 206, true);
wp_print_scripts('kadence_slider_js');
$fonts = ksp_font_list();
$gfonts = '';
foreach ($fonts as $font) {
if($font['info']['data-google'] == 'true'){
$gfonts .= '"'.$font['info']['name'].':'.$font['info']['data-weight'].'",';
}
}
echo '<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['.$gfonts.']
}
});
</script>';
echo '</head><body style="margin: 0;">';
echo '<div class="slider_preview" style="margin: 0 auto;">';
if(isset($_GET['slider_id']) ) {
$id = $_GET['slider_id'];
} elseif (isset($_POST['slider_id']) ){
$id = $_POST['slider_id'];
} else {
$id = null;
}
echo do_shortcode('[kadence_slider_pro id="'.$id.'"]');
echo '</div>';
echo '</body></html>';
die();
}
?>