新增两个页面
This commit is contained in:
+53
-1
@@ -52,7 +52,59 @@ function sewjoy_theme_scripts() {
|
||||
'sewjoy-theme-home',
|
||||
get_template_directory_uri() . '/assets/css/home.css',
|
||||
array( 'sewjoy-theme-style' ),
|
||||
'1.0.5'
|
||||
'1.0.6'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if ( is_page_template( 'page-templates/page-shop.php' ) ) {
|
||||
// Shop / product list page — reuses the home canvas + nav/footer,
|
||||
// adds the filter bar, product card family, layout switcher, pagination.
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-style',
|
||||
get_stylesheet_uri()
|
||||
);
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-home',
|
||||
get_template_directory_uri() . '/assets/css/home.css',
|
||||
array( 'sewjoy-theme-style' ),
|
||||
'1.0.6'
|
||||
);
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-shop',
|
||||
get_template_directory_uri() . '/assets/css/shop.css',
|
||||
array( 'sewjoy-theme-home' ),
|
||||
'1.0.0'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if ( is_page_template( 'page-templates/page-design.php' ) ) {
|
||||
// Design Yours / Custom Design Flow landing — reuses the home
|
||||
// canvas + nav/footer + bond-card markup; adds the 3-step splash
|
||||
// carousel, the three-series wrapper, and Featured Designs cards.
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-style',
|
||||
get_stylesheet_uri()
|
||||
);
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-home',
|
||||
get_template_directory_uri() . '/assets/css/home.css',
|
||||
array( 'sewjoy-theme-style' ),
|
||||
'1.0.6'
|
||||
);
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-design',
|
||||
get_template_directory_uri() . '/assets/css/design.css',
|
||||
array( 'sewjoy-theme-home' ),
|
||||
'1.0.0'
|
||||
);
|
||||
wp_enqueue_script(
|
||||
'sewjoy-theme-design',
|
||||
get_template_directory_uri() . '/assets/js/design.js',
|
||||
array( 'jquery' ),
|
||||
'1.0.0',
|
||||
true
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user