Browse code

pointer用js,css読み込み

nita authored on 2015/10/06 01:31:26
Showing 1 changed files
... ...
@@ -22,6 +22,7 @@ class Rucy_Class {
22 22
     public function __construct() {
23 23
         register_activation_hook( plugin_basename(__FILE__), array( $this, 'activate_plugin' ) );
24 24
         add_action('admin_enqueue_scripts', array( $this, 'enqueue_style_script' ));
25
+        add_action( 'wp_admin', array( $this, 'enqueue_pointer_menu' ) );
25 26
     }
26 27
     
27 28
     public function activate_plugin() {
... ...
@@ -52,5 +53,13 @@ class Rucy_Class {
52 52
             wp_enqueue_script('rucy.js');
53 53
         }
54 54
     }
55
+    
56
+    /**
57
+     * load enqueue script and style for pointer
58
+     */
59
+    public function enqueue_pointer_menu() {
60
+        wp_enqueue_script( 'wp-pointer' );
61
+        wp_enqueue_style( 'wp-pointer' );
62
+    }
55 63
 }
56 64
 new Rucy_Class();
57 65
\ No newline at end of file