Skip to content
Permalink
Browse files

[ pr-contens ] パララックスjsの管理画面読み込み(現実にはほとんど役立たず)

  • Loading branch information...
kurudrive committed Feb 1, 2019
1 parent 34c9137 commit 14d29f03dc32eec68670e3a6222cf9b45d3dff07
Showing with 2 additions and 0 deletions.
  1. +2 −0 vk-widget-pr-content/package/class-vk-widget-pr-content.php
@@ -58,6 +58,8 @@ public static function print_admin_js() {
preg_match( '/\/themes\//', $path, $m );
if ( $m ) {
wp_enqueue_script( 'admin-widget-color-js', get_template_directory_uri() . '/inc/vk-widget-pr-content/js/admin-widget-color.min.js', array( 'jquery' ), date( 'His' ) );
// Gutenbergではページのスクロールではなく中がスクロールしてしまうので現実にはほとんど役に立ってない
wp_enqueue_script( 'admin-parlx-js', get_template_directory_uri() . '/inc/vk-widget-pr-content/js/vk-prlx.min.js', array( 'jquery' ), date( 'His' ) );
} else {
wp_enqueue_script( 'admin-widget-color-js', plugin_dir_url( __FILE__ ) . 'js/admin-widget-color.min.js', array( 'jquery' ), date( 'His' ) );
}

0 comments on commit 14d29f0

Please sign in to comment.
You can’t perform that action at this time.