| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www2024/wp-content/plugins/pop-up-aeb/public/ |
Upload File : |
<?php
class Pop_up_public
{
public static function display()
{
$title = get_option('title');
$text = get_option('text');
// $text = nl2br(trim(stripslashes(get_option('text'))));
$text = wpautop(get_option('text'));
$link = get_option('link');
$animation_type = get_option('animation_type');
$animation_duration = get_option('animation_duration');
// image / media
$img_id = get_option('meta-box-image');
$vid_id = get_option('meta-box-video');
$poster_id = get_option('meta-box-poster');
// taille et position
$position_type = get_option('position_type'); // ex: center / side
$type = get_option('type'); // ex: card
$position_y_val = get_option('position_y_val');
$position_x_val = get_option('position_x_val');
$position_x_side = get_option('position_x_side');
$position_y_side = get_option('position_y_side');
$position_type = get_option('position_type');
$width = get_option('width');
$height = get_option('height');
$position_y = get_option('position_y');
$position_x = get_option('position_x');
$set_active = get_option('set_active');
// voir si nécessaire de séparer ce code qui est dupliqué
$excluded_pages = [
'404-2',
'contact',
'mentions-legales',
'partenaires',
'politique-de-confidentialite'
];
$pages = get_pages();
$selected_pages = [];
foreach ($pages as $page) {
if (!in_array($page->post_name, $excluded_pages)) :
$page_value = get_option($page->post_name);
if ($page_value === $page->post_name) {
$selected_pages[] = $page->post_name;
}
endif;
}
if ($set_active === 'set_active') {
foreach ($selected_pages as $selected_page) {
if (is_page($selected_page)) {
include plugin_dir_path(__FILE__) . 'pop-up-view-public.php';
}
}
}
// foreach ($pages as $page) {
// }
}
}