is_plugin_activated(); if (!$is_activated) { wp_redirect(admin_url('admin.php?page=presslearn-settings')); exit; } if (isset($_POST['presslearn_toggle_adclicker']) && isset($_POST['enable'])) { check_admin_referer('presslearn_toggle_adclicker_nonce'); if (current_user_can('manage_options')) { $enable = sanitize_text_field(wp_unslash($_POST['enable'])); if ($enable === 'yes' || $enable === 'no') { update_option('presslearn_ad_clicker_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_adclicker_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 === 'ad_clicker' && ($enable === 'yes' || $enable === 'no')) { update_option('presslearn_ad_clicker_enabled', $enable); $updated = true; } } if (isset($_POST['save_adclicker_settings'])) { check_admin_referer('presslearn_save_adclicker_settings_nonce'); if (current_user_can('manage_options')) { $adclicker_frequency = isset($_POST['adclicker_frequency']) ? sanitize_text_field(wp_unslash($_POST['adclicker_frequency'])) : 'once'; $adclicker_overlay_color = isset($_POST['adclicker_overlay_color']) ? sanitize_hex_color(wp_unslash($_POST['adclicker_overlay_color'])) : '#000000'; $adclicker_overlay_range = isset($_POST['adclicker_overlay_range']) ? intval(wp_unslash($_POST['adclicker_overlay_range'])) : 50; $adclicker_display_time = isset($_POST['adclicker_display_time']) ? sanitize_text_field(wp_unslash($_POST['adclicker_display_time'])) : 'null'; $adclicker_button_color = isset($_POST['adclicker_button_color']) ? sanitize_hex_color(wp_unslash($_POST['adclicker_button_color'])) : '#2196F3'; $adclicker_button_text_color = isset($_POST['adclicker_button_text_color']) ? sanitize_hex_color(wp_unslash($_POST['adclicker_button_text_color'])) : '#ffffff'; $adclicker_global_enabled = isset($_POST['adclicker_global_enabled']) ? sanitize_text_field(wp_unslash($_POST['adclicker_global_enabled'])) : 'no'; $adclicker_overlay_range = max(1, min(100, $adclicker_overlay_range)); update_option('presslearn_adclicker_frequency', $adclicker_frequency); update_option('presslearn_adclicker_overlay_color', $adclicker_overlay_color); update_option('presslearn_adclicker_overlay_range', $adclicker_overlay_range); update_option('presslearn_adclicker_display_time', $adclicker_display_time); update_option('presslearn_adclicker_button_color', $adclicker_button_color); update_option('presslearn_adclicker_button_text_color', $adclicker_button_text_color); update_option('presslearn_adclicker_global_enabled', $adclicker_global_enabled); $settings_updated = true; } } $adclicker_enabled = get_option('presslearn_ad_clicker_enabled', 'no'); $adclicker_frequency = get_option('presslearn_adclicker_frequency', 'once'); $adclicker_overlay_color = get_option('presslearn_adclicker_overlay_color', '#000000'); $adclicker_overlay_range = get_option('presslearn_adclicker_overlay_range', 100); $adclicker_display_time = get_option('presslearn_adclicker_display_time', 'null'); $adclicker_button_color = get_option('presslearn_adclicker_button_color', '#2196F3'); $adclicker_button_text_color = get_option('presslearn_adclicker_button_text_color', '#ffffff'); $adclicker_global_enabled = get_option('presslearn_adclicker_global_enabled', 'no'); ?>

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

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

대시보드 / 애드클리커

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

애드클리커

애드클리커는 다양한 방식으로 자체 광고 및 어필리에이트 광고 세팅을 도와줍니다.

플러그인 기능 활성화

전체 글 강제 활성화 적용 여부

애드클리커 빈도 설정

애드클리커 오버레이 색상 설정

애드클리커 오버레이 범위 설정

%

애드클리커 표시 시간 설정

애드클리커 버튼 색상 설정

애드클리커 버튼 텍스트 색상 설정

애드클리커 미리보기