/**
  * 스크립트 추가 콜백
  *
  * @action  admin_enqueue_scripts
  * @used-by init()
  */
 public static function enqueue_scripts()
 {
     $screen = get_current_screen();
     if ($screen->id == 'settings_page_wpmem-settings' && wskl_GET('tab') == 'dabory-members') {
         wskl_enqueue_script('dabory-members-js', 'assets/js/dabory-members/admin.js', array('jquery'), WSKL_VERSION, TRUE, 'daboryMembers', array('editUrl' => admin_url('post.php')));
         wp_enqueue_style('dabory-members-css', plugin_dir_url(WSKL_MAIN_FILE) . 'assets/css/dabory-members/admin.css');
     }
 }
 public function enqueue_scripts()
 {
     if (!wp_script_is('dabory-members')) {
         wskl_enqueue_script('dabory-members', 'assets/js/dabory-members/admin.js', array('jquery'), WSKL_VERSION, TRUE, 'daboryMembers', array('editUrl' => admin_url('post.php')));
     }
     if (!wp_style_is('dabory-members')) {
         wp_enqueue_style('dabory-members', plugin_dir_url(WSKL_MAIN_FILE) . 'assets/css/dabory-members/admin.css');
     }
 }
 /**
  * 스크립트 로드 콜백
  *
  * @action admin_enqueue_scripts
  */
 public function admin_enqueue_scripts()
 {
     $screen = get_current_screen();
     if ($screen->id != $this->wskl_setting->setting_menu_hook) {
         return;
     }
     // 세팅 페이지에 필요한 스크립트 첨부.
     //인증 관련.
     if (isset($_GET['tab']) && $_GET['tab'] == 'authentication') {
         wskl_enqueue_script('license_activation', 'assets/js/license-activation.js', array('jquery'), WSKL_VERSION, TRUE, 'activation_object', array('site_url' => site_url(), 'ajax_url' => admin_url('admin-ajax.php'), 'activation_nonce' => wp_create_nonce(static::$nonce_action)));
     }
 }
 /**
  * @action  admin_enqueue_scripts
  *
  * @used-by add_action
  * @see     __construct
  */
 public function callback_admin_enqueue_scripts()
 {
     wskl_enqueue_script('dabory-admin-js', 'assets/js/dabory-admin.js', array('jquery'), WSKL_VERSION, TRUE);
 }
 private static function add_psm_scripts($password_name, $password_confirm_name)
 {
     if (wskl_is_option_enabled('members_password_strength_meter')) {
         wp_enqueue_style('dabory-members-password-strength', plugin_dir_url(WSKL_MAIN_FILE) . 'assets/css/dabory-members/password-strength.css');
         wskl_enqueue_script('dabory-members-password-strength', 'assets/js/dabory-members/password-strength.js', array('jquery', 'password-strength-meter'), WSKL_VERSION, TRUE, 'passwordMeterObj', array('passwordEmpty' => __('비밀번호를 입력하세요.', 'wskl'), 'usePasswordStrengthMeter' => wskl_is_option_enabled('members_password_strength_meter'), 'weakPasswordString' => __('. 보다 강력한 비밀번호를 입력해야 합니다.', 'wskl'), 'fairPasswordString' => __('. 사용할 수 있는 비밀번호입니다.', 'wskl'), 'passwordName' => $password_name, 'passwordConfirmName' => $password_confirm_name));
     }
 }