is_plugin_activated(); if (!$is_activated) { wp_redirect(admin_url('admin.php?page=presslearn-settings')); exit; } if (isset($_POST['presslearn_toggle_scroll_depth']) && isset($_POST['enable'])) { check_admin_referer('presslearn_toggle_scroll_depth_nonce'); if (current_user_can('manage_options')) { $enable = sanitize_text_field(wp_unslash($_POST['enable'])); if ($enable === 'yes' || $enable === 'no') { update_option('presslearn_scroll_depth_enabled', $enable); $updated = true; } } } if (current_user_can('manage_options') && is_admin() && isset($_GET['action']) && isset($_GET['enable']) && isset($_GET['feature'])) { if (!isset($_GET['_wpnonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_GET['_wpnonce'])), 'presslearn_toggle_scroll_depth_action')) { wp_die('보안 검증에 실패했습니다.'); } $action = sanitize_text_field(wp_unslash($_GET['action'])); $enable = sanitize_text_field(wp_unslash($_GET['enable'])); $feature = sanitize_text_field(wp_unslash($_GET['feature'])); if ($action === 'toggle' && $feature === 'scroll_depth' && ($enable === 'yes' || $enable === 'no')) { update_option('presslearn_scroll_depth_enabled', $enable); $updated = true; } } if (isset($_POST['save_scroll_settings'])) { check_admin_referer('presslearn_save_scroll_settings_nonce'); if (current_user_can('manage_options')) { $scroll_percentage = isset($_POST['scroll_percentage']) ? intval(wp_unslash($_POST['scroll_percentage'])) : 50; if ($scroll_percentage < 1) $scroll_percentage = 1; if ($scroll_percentage > 100) $scroll_percentage = 100; $popup_animation = isset($_POST['popup_animation']) ? sanitize_text_field(wp_unslash($_POST['popup_animation'])) : 'fade'; $repeat_setting = isset($_POST['repeat_setting']) ? sanitize_text_field(wp_unslash($_POST['repeat_setting'])) : 'once'; update_option('presslearn_scroll_percentage', $scroll_percentage); update_option('presslearn_popup_animation', $popup_animation); update_option('presslearn_repeat_setting', $repeat_setting); if (isset($_POST['popup_content'])) { $popup_content = wp_kses_post(wp_unslash($_POST['popup_content'])); update_option('presslearn_popup_content', $popup_content); } $settings_updated = true; } } $scroll_depth_enabled = get_option('presslearn_scroll_depth_enabled', 'no'); $scroll_percentage = get_option('presslearn_scroll_percentage', 50); $popup_animation = get_option('presslearn_popup_animation', 'fade'); $repeat_setting = get_option('presslearn_repeat_setting', 'once'); $popup_content = get_option('presslearn_popup_content', ''); wp_enqueue_editor(); wp_enqueue_media(); ?>

기능이 활성화되었습니다.

기능이 비활성화 상태입니다.

대시보드 / 스마트 스크롤

설정 정보가 성공적으로 저장되었습니다.

스마트 스크롤

스크롤에 따라서 자동으로 팝업을 띄워줄 수 있는 기능입니다. 단일 캠페인만 운영 가능합니다.

플러그인 기능 활성화

스크롤 퍼센트

팝업 애니메이션

반복 설정

팝업 표시 내용