Skip to content

Commit

Permalink
G3 仕様変更 スキン固有のjs読み込み配列名変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Apr 22, 2021
1 parent fc371f2 commit a465e01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _g3/inc/class-design-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static function get_skins() {
'css_path' => get_parent_theme_file_path( '/design-skin/plain/css/style.css' ),
'editor_css_url' => '',
'php_path' => '',
'js_path' => '',
'js_url' => '',
'version' => LIGHTNING_THEME_VERSION,
'bootstrap' => '',
),
Expand All @@ -46,7 +46,7 @@ static function get_skins() {
'editor_css_path_relative' => '_g3/design-skin/origin3/css/editor.css',
'editor_css_url' => get_template_directory_uri() . '/design-skin/origin3/css/editor.css',
'php_path' => get_parent_theme_file_path() . '/design-skin/origin3/origin3.php',
'js_path' => '',
'js_url' => '',
'version' => LIGHTNING_THEME_VERSION,
'bootstrap' => '',
),
Expand Down Expand Up @@ -148,8 +148,8 @@ static function load_skin_css_and_js() {

// load JS ///////////////////////

if ( ! empty( $skin_info['js_path'] ) ) {
wp_enqueue_script( 'lightning-design-js', $skin_info['js_path'], array(), $skin_info['version'], true );
if ( ! empty( $skin_info['js_url'] ) ) {
wp_enqueue_script( 'lightning-design-js', esc_url( $skin_info['js_url'] ), array(), $skin_info['version'], true );
}

}
Expand Down

0 comments on commit a465e01

Please sign in to comment.