first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
/**
* Avada integration
*/
add_action( 'jet-smart-filters/providers/woocommerce-archive/before-ajax-content', 'jet_woo_astra_compatibility', 1 );
function jet_woo_astra_compatibility(){
if( class_exists( 'Astra_Woocommerce' ) ){
$astra = new Astra_Woocommerce();
if ( ! apply_filters( 'astra_woo_shop_product_structure_override', false ) ) {
$astra->shop_customization();
}
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
}
}

View File

@@ -0,0 +1,14 @@
/**
* Avada integration styles
*/
.jet-woo-builder .onsale {
display: inline-block;
}
.jet-woo-builder .price > .amount {
color: inherit;
}
.jet-woo-builder .woocommerce-tabs .panel {
margin: 0;
}

View File

@@ -0,0 +1,17 @@
/**
* Avada integration styles
*/
.jet-woo-builder{
.onsale{
display: inline-block;
}
.price > .amount{
color: inherit;
}
.woocommerce-tabs .panel{
margin: 0;
}
}

View File

@@ -0,0 +1,70 @@
<?php
/**
* Avada integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_avada_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_avada_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_avada_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_avada_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_avada_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_avada_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_avada_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_avada_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_avada_enqueue_styles' );
add_action( 'elementor/widgets/widgets_registered', 'jet_woo_avada_fix_wc_hooks' );
/**
* Fix WooCommerce hooks for avada
*
* @return [type] [description]
*/
function jet_woo_avada_fix_wc_hooks() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
}
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_avada_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_avada_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Avada integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_avada_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-avada',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/avada/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,31 @@
/**
* GeneratePress integration styles
*/
.site-main .jet-woo-builder .product_meta > span,
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.site-main .jet-woo-builder .tabs:after, .site-main .jet-woo-builder .tabs:before,
.entry-content .jet-woo-builder .tabs:after,
.entry-content .jet-woo-builder .tabs:before {
display: none !important;
}
.site-main .jet-woo-builder .tabs > li,
.entry-content .jet-woo-builder .tabs > li {
border: none !important;
background: transparent !important;
}
.site-main .jet-woo-builder .tabs > li:after, .site-main .jet-woo-builder .tabs > li:before,
.entry-content .jet-woo-builder .tabs > li:after,
.entry-content .jet-woo-builder .tabs > li:before {
display: none;
}
.site-main .jet-woo-builder .tabs > li a,
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}

View File

@@ -0,0 +1,34 @@
/**
* GeneratePress integration styles
*/
.site-main .jet-woo-builder,
.entry-content .jet-woo-builder {
.product_meta {
> span {
display: block;
}
}
.tabs{
&:after,
&:before{
display: none!important;
}
> li {
border: none!important;
background: transparent!important;
&:after,
&:before {
display: none;
}
a {
width: 100%;
display: block;
}
}
}
}

View File

@@ -0,0 +1,57 @@
<?php
/**
* GeneratePress integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_generatepress_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_generatepress_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_generatepress_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_generatepress_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_generatepress_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_generatepress_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_generatepress_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_generatepress_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_generatepress_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_generatepress_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_generatepress_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue GeneratePress integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_generatepress_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-generatepress',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/generatepress/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,44 @@
/**
* Hestia integration styles
*/
.site-main .jet-woo-builder .product_meta > span,
.main .jet-woo-builder .product_meta > span,
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.site-main .jet-woo-builder .woocommerce-tabs li,
.main .jet-woo-builder .woocommerce-tabs li,
.entry-content .jet-woo-builder .woocommerce-tabs li {
margin: 0;
}
.site-main .jet-woo-builder .tabs:after, .site-main .jet-woo-builder .tabs:before,
.main .jet-woo-builder .tabs:after,
.main .jet-woo-builder .tabs:before,
.entry-content .jet-woo-builder .tabs:after,
.entry-content .jet-woo-builder .tabs:before {
display: none !important;
}
.site-main .jet-woo-builder .tabs > li,
.main .jet-woo-builder .tabs > li,
.entry-content .jet-woo-builder .tabs > li {
border: none !important;
background: transparent !important;
}
.site-main .jet-woo-builder .tabs > li:after, .site-main .jet-woo-builder .tabs > li:before,
.main .jet-woo-builder .tabs > li:after,
.main .jet-woo-builder .tabs > li:before,
.entry-content .jet-woo-builder .tabs > li:after,
.entry-content .jet-woo-builder .tabs > li:before {
display: none;
}
.site-main .jet-woo-builder .tabs > li a,
.main .jet-woo-builder .tabs > li a,
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}

View File

@@ -0,0 +1,39 @@
/**
* Hestia integration styles
*/
.site-main .jet-woo-builder,
.main .jet-woo-builder,
.entry-content .jet-woo-builder {
.product_meta {
> span {
display: block;
}
}
.woocommerce-tabs li {
margin: 0;
}
.tabs{
&:after,
&:before{
display: none!important;
}
> li {
border: none!important;
background: transparent!important;
&:after,
&:before {
display: none;
}
a {
width: 100%;
display: block;
}
}
}
}

View File

@@ -0,0 +1,71 @@
<?php
/**
* Hestia integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_hestia_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_hestia_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_hestia_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_hestia_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_hestia_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_hestia_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_hestia_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_hestia_close_site_main_wrap', 999 );
add_action( 'elementor/widgets/widgets_registered', 'jet_woo_hestia_fix_wc_hooks' );
add_action( 'wp_enqueue_scripts', 'jet_woo_hestia_enqueue_styles' );
/**
* Fix WooCommerce hooks for hestia
*
* @return [type] [description]
*/
function jet_woo_hestia_fix_wc_hooks() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
}
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_hestia_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_hestia_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Hestia integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_hestia_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-hestia',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/hestia/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Kava integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_kava_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_kava_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_kava_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_kava_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_kava_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_kava_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_kava_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_kava_close_site_main_wrap', 999 );
add_action( 'elementor/widgets/widgets_registered', 'jet_woo_kava_fix_wc_hooks' );
/**
* Fix WooCommerce hooks for kava
*
* @return [type] [description]
*/
function jet_woo_kava_fix_wc_hooks() {
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 10 );
}
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_kava_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_kava_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}

View File

@@ -0,0 +1,56 @@
/**
* Ocean WP integration styles
*/
/* Product Button styles */
.add_to_cart_button.button {
float: none;
display: inline-block;
background-color: transparent;
color: #848494;
padding: 5px 12px;
border: 3px double #e4e4e4;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
text-transform: none; }
.add_to_cart_button.button:hover {
background-color: transparent;
color: #13aff0;
border-color: #13aff0; }
.entry-content .jet-woo-builder .product_meta > span {
display: block; }
.entry-content .jet-woo-builder .woocommerce-tabs li {
margin: 0; }
.entry-content .jet-woo-builder .tabs > li:after, .entry-content .jet-woo-builder .tabs > li:before {
display: none; }
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block; }
.entry-content .jet-woo-builder .woocommerce-tabs ul.tabs.wc-tabs,
.entry-content .jet-woo-builder .woocommerce-tabs ul.tabs.wc-tabs li a {
border: none; }
.entry-content .jet-woo-builder .woocommerce-variation-price .price {
display: block; }
.entry-content .jet-woo-builder .woocommerce-tabs .panel.wc-tab {
margin: 0; }
.entry-content .jet-woo-builder .price .amount {
color: inherit; }
.entry-content .jet-woo-builder .single_add_to_cart_button {
vertical-align: top; }
.entry-content .jet-woo-builder form .input-text.qty {
max-width: calc( 100% - 74px); }
.woocommerce div.product .jet-single-images__wrap .woocommerce-product-gallery .flex-control-thumbs li {
clear: unset !important; }
/*# sourceMappingURL=style.css.map */

View File

@@ -0,0 +1,75 @@
/**
* Ocean WP integration styles
*/
@import "woocommerce";
.entry-content .jet-woo-builder {
.product_meta {
> span {
display: block;
}
}
.woocommerce-tabs li {
margin: 0;
}
.tabs > li {
&:after,
&:before {
display: none;
}
a {
width: 100%;
display: block;
}
}
.woocommerce-tabs ul.tabs.wc-tabs,
.woocommerce-tabs ul.tabs.wc-tabs li a {
border: none;
}
.woocommerce-variation-price .price {
display: block;
}
.woocommerce-tabs .panel.wc-tab {
margin: 0;
}
.price .amount{
color: inherit;
}
.single_add_to_cart_button{
vertical-align: top;
}
form .input-text.qty{
max-width: calc( 100% - 74px );
}
}
.woocommerce div.product .jet-single-images__wrap .woocommerce-product-gallery .flex-control-thumbs li{
clear: unset!important;
}
// TODO: Do this when will work on OceanWP compatibility
//.elementor-jet-woo-builder-products-ordering {
// .woocommerce-ordering {
// select{
// -webkit-appearance: inherit!important;
// width: 100%!important;
// position: relative!important;
// opacity: 1!important;
// height: auto!important;
// }
//
// .theme-select.orderby.theme-selectOpen{
// display: none!important;
// }
// }
//}

View File

@@ -0,0 +1,21 @@
/* Product Button styles */
.add_to_cart_button {
&.button {
float: none;
display: inline-block;
background-color: transparent;
color: #848494;
padding: 5px 12px;
border: 3px double #e4e4e4;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
text-transform: none;
&:hover {
background-color: transparent;
color: #13aff0;
border-color: #13aff0;
}
}
}

View File

@@ -0,0 +1,83 @@
<?php
/**
* Ocean WP integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_oceanwp_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_oceanwp_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_oceanwp_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_oceanwp_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_oceanwp_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_oceanwp_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_oceanwp_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_oceanwp_close_site_main_wrap', 999 );
add_action( 'elementor/widgets/widgets_registered', 'jet_woo_oceanwp_fix_wc_hooks' );
add_action( 'wp_enqueue_scripts', 'jet_woo_oceanwp_enqueue_styles' );
add_filter( 'ocean_post_layout_class', 'jet_woo_oceanwp_display_sidebar' );
function jet_woo_oceanwp_display_sidebar( $class ){
if ( get_post_type() === 'jet-woo-builder' ){
$class = 'full-width';
}
return $class;
}
/**
* Fix WooCommerce hooks for oceanwp
*
* @return [type] [description]
*/
function jet_woo_oceanwp_fix_wc_hooks() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
}
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_oceanwp_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_oceanwp_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Ocean WP integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_oceanwp_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-oceanwp',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/oceanwp/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,33 @@
/**
* Storefront integration styles
*/
div.product .jet-woo-builder .woocommerce-product-gallery .flex-control-thumbs li {
display: inline-block;
}
.single-product div.product .jet-woo-builder .product_meta {
padding: 0;
font-size: inherit;
border: none;
}
.jet-woo-builder .woocommerce-tabs ul.tabs li:after {
display: none;
}
.single-product div.product .jet-woo-builder .woocommerce-product-rating {
margin-top: 0;
margin-bottom: 0;
}
@media (min-width: 768px) {
.jet-woo-builder.elementor-jet-woo-builder-products-ordering .woocommerce-ordering,
.jet-woo-builder.elementor-jet-woo-builder-products-ordering .woocommerce-result-count,
.jet-woo-builder.elementor-jet-woo-builder-products-result-count .woocommerce-ordering,
.jet-woo-builder.elementor-jet-woo-builder-products-result-count .woocommerce-result-count {
float: none;
margin-bottom: 0;
margin-right: 0;
padding: 0;
}
}

View File

@@ -0,0 +1,34 @@
/**
* Storefront integration styles
*/
div.product .jet-woo-builder .woocommerce-product-gallery .flex-control-thumbs li {
display: inline-block;
}
.single-product div.product .jet-woo-builder .product_meta {
padding: 0;
font-size: inherit;
border: none;
}
.jet-woo-builder .woocommerce-tabs ul.tabs li:after{
display: none;
}
.single-product div.product .jet-woo-builder .woocommerce-product-rating{
margin-top: 0;
margin-bottom: 0;
}
.jet-woo-builder.elementor-jet-woo-builder-products-ordering,
.jet-woo-builder.elementor-jet-woo-builder-products-result-count{
@media (min-width: 768px){
.woocommerce-ordering,
.woocommerce-result-count {
float: none;
margin-bottom: 0;
margin-right: 0;
padding: 0;
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/**
* Storefront integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_storefront_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_storefront_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_storefront_open_site_main_wrap', -999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_storefront_open_site_main_wrap', -999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_storefront_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_storefront_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_storefront_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_storefront_close_site_main_wrap', 999 );
add_action( 'elementor/widgets/widgets_registered', 'jet_woo_storefront_fix_wc_hooks' );
add_action( 'wp_enqueue_scripts', 'jet_woo_storefront_enqueue_styles' );
/**
* Fix WooCommerce hooks for storefront
*
* @return [type] [description]
*/
function jet_woo_storefront_fix_wc_hooks() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
add_filter( 'storefront_product_thumbnail_columns', 'jet_woo_storefront_thumbnails_columns' );
}
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_storefront_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_storefront_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
function jet_woo_storefront_thumbnails_columns( $columns ){
$columns = 6;
return $columns;
}
/**
* Enqueue Storefront integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_storefront_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-storefront',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/storefront/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,19 @@
/**
* Twenty Fifteen integration styles
*/
.jet-woo-builder-template-elementor_canvas:before {
display: none;
}
.jet-woo-builder .woocommerce-review-link {
border: none;
}
.jet-woo-builder .product_meta > span {
display: block;
}
.jet-woo-builder .tagged_as a,
.jet-woo-builder .posted_in a {
border: none;
}

View File

@@ -0,0 +1,28 @@
/**
* Twenty Fifteen integration styles
*/
.jet-woo-builder-template-elementor_canvas {
&:before {
display: none;
}
}
.jet-woo-builder {
.woocommerce-review-link {
border: none;
}
.product_meta{
> span{
display: block;
}
}
.tagged_as,
.posted_in{
a{
border: none;
}
}
}

View File

@@ -0,0 +1,59 @@
<?php
/**
* Twenty Fifteen integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_twenty_fifteen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_twenty_fifteen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_twenty_fifteen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_twenty_fifteen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_twenty_fifteen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_twenty_fifteen_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_twenty_fifteen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_twenty_fifteen_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_twenty_fifteen_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_fifteen_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_fifteen_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Twenty Fifteen integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_twenty_fifteen_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-twentyfifteen',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/twentyfifteen/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,27 @@
/**
* Twenty Seventeen integration styles
*/
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.entry-content .jet-woo-builder a:hover {
box-shadow: none;
}
.entry-content .jet-woo-builder .woocommerce-tabs li {
margin: 0;
}
.entry-content .jet-woo-builder .tabs > li.active a {
box-shadow: none;
}
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}
.entry-content .jet-woo-builder .woocommerce-variation-price .price {
display: block;
}

View File

@@ -0,0 +1,38 @@
/**
* Twenty Seventeen integration styles
*/
.entry-content .jet-woo-builder {
.product_meta{
> span{
display: block;
}
}
a:hover {
box-shadow: none;
}
.woocommerce-tabs li {
margin: 0;
}
.tabs > li{
&.active{
a{
box-shadow: none;
}
}
a {
width: 100%;
display: block;
}
}
.woocommerce-variation-price .price{
display: block;
}
}

View File

@@ -0,0 +1,59 @@
<?php
/**
* Twenty Seventeen integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_twenty_seventeen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_twenty_seventeen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_twenty_seventeen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_twenty_seventeen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_twenty_seventeen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_twenty_seventeen_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_twenty_seventeen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_twenty_seventeen_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_twenty_seventeen_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_seventeen_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_seventeen_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Twenty Fifteen integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_twenty_seventeen_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-twentyseventeen',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/twentyseventeen/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,31 @@
/**
* Twenty Sixteen integration styles
*/
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.entry-content .jet-woo-builder .woocommerce-tabs li {
margin: 0;
}
.entry-content .jet-woo-builder .tabs > li {
border: none !important;
background-color: transparent !important;
border-radius: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
.entry-content .jet-woo-builder .tabs > li:after, .entry-content .jet-woo-builder .tabs > li:before {
display: none;
}
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}
.entry-content .jet-woo-builder .woocommerce-variation-price .price {
display: block;
}

View File

@@ -0,0 +1,38 @@
/**
* Twenty Sixteen integration styles
*/
.entry-content .jet-woo-builder {
.product_meta{
> span{
display: block;
}
}
.woocommerce-tabs li {
margin: 0;
}
.tabs > li{
border: none!important;
background-color: transparent!important;
border-radius: 0!important;
margin: 0!important;
padding: 0!important;
&:after,
&:before{
display: none;
}
a {
width: 100%;
display: block;
}
}
.woocommerce-variation-price .price{
display: block;
}
}

View File

@@ -0,0 +1,59 @@
<?php
/**
* Twenty Sixteen integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_twenty_sixteen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_twenty_sixteen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_twenty_sixteen_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_twenty_sixteen_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_twenty_sixteen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_twenty_sixteen_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_twenty_sixteen_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_twenty_sixteen_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_twenty_sixteen_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_sixteen_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_twenty_sixteen_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Twenty Fifteen integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_twenty_sixteen_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-twentysixteen',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/twentysixteen/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,45 @@
/**
* Zerif Lite integration styles
*/
.site-main .jet-woo-builder .product_meta > span,
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.site-main .jet-woo-builder p,
.entry-content .jet-woo-builder p {
text-align: inherit;
}
.site-main .jet-woo-builder button.button,
.entry-content .jet-woo-builder button.button {
width: auto;
}
.site-main .jet-woo-builder .tabs,
.entry-content .jet-woo-builder .tabs {
padding-left: inherit;
}
.site-main .jet-woo-builder .tabs:before,
.entry-content .jet-woo-builder .tabs:before {
display: none !important;
}
.site-main .jet-woo-builder .tabs > li,
.entry-content .jet-woo-builder .tabs > li {
background: transparent !important;
border: none !important;
}
.site-main .jet-woo-builder .tabs > li:after, .site-main .jet-woo-builder .tabs > li:before,
.entry-content .jet-woo-builder .tabs > li:after,
.entry-content .jet-woo-builder .tabs > li:before {
display: none;
}
.site-main .jet-woo-builder .tabs > li a,
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}

View File

@@ -0,0 +1,43 @@
/**
* Zerif Lite integration styles
*/
.site-main .jet-woo-builder,
.entry-content .jet-woo-builder {
.product_meta {
> span {
display: block;
}
}
p {
text-align: inherit;
}
button.button {
width: auto;
}
.tabs {
padding-left: inherit;
&:before{
display: none!important;
}
> li {
background: transparent!important;
border: none!important;
&:after,
&:before {
display: none;
}
a {
width: 100%;
display: block;
}
}
}
}

View File

@@ -0,0 +1,57 @@
<?php
/**
* Zerif Lite integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_zeriflite_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_zeriflite_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_zeriflite_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_zeriflite_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_zeriflite_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_zeriflite_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_zeriflite_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_zeriflite_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_zeriflite_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_zeriflite_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_zeriflite_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Zerif Lite integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_zeriflite_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-zeriflite',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/zerif-lite/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}

View File

@@ -0,0 +1,45 @@
/**
* Zerif integration styles
*/
.site-main .jet-woo-builder .product_meta > span,
.entry-content .jet-woo-builder .product_meta > span {
display: block;
}
.site-main .jet-woo-builder p,
.entry-content .jet-woo-builder p {
text-align: inherit;
}
.site-main .jet-woo-builder button.button,
.entry-content .jet-woo-builder button.button {
width: auto;
}
.site-main .jet-woo-builder .tabs,
.entry-content .jet-woo-builder .tabs {
padding-left: inherit;
}
.site-main .jet-woo-builder .tabs:before,
.entry-content .jet-woo-builder .tabs:before {
display: none !important;
}
.site-main .jet-woo-builder .tabs > li,
.entry-content .jet-woo-builder .tabs > li {
background: transparent !important;
border: none !important;
}
.site-main .jet-woo-builder .tabs > li:after, .site-main .jet-woo-builder .tabs > li:before,
.entry-content .jet-woo-builder .tabs > li:after,
.entry-content .jet-woo-builder .tabs > li:before {
display: none;
}
.site-main .jet-woo-builder .tabs > li a,
.entry-content .jet-woo-builder .tabs > li a {
width: 100%;
display: block;
}

View File

@@ -0,0 +1,43 @@
/**
* Zerif integration styles
*/
.site-main .jet-woo-builder,
.entry-content .jet-woo-builder {
.product_meta {
> span {
display: block;
}
}
p {
text-align: inherit;
}
button.button {
width: auto;
}
.tabs {
padding-left: inherit;
&:before{
display: none!important;
}
> li {
background: transparent!important;
border: none!important;
&:after,
&:before {
display: none;
}
a {
width: 100%;
display: block;
}
}
}
}

View File

@@ -0,0 +1,57 @@
<?php
/**
* Zerif integration
*/
add_action( 'elementor/page_templates/canvas/before_content', 'jet_woo_zerif_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/blank-page/before-content', 'jet_woo_zerif_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/header-footer/before_content', 'jet_woo_zerif_open_site_main_wrap', - 999 );
add_action( 'jet-woo-builder/full-width-page/before-content', 'jet_woo_zerif_open_site_main_wrap', - 999 );
add_action( 'elementor/page_templates/canvas/after_content', 'jet_woo_zerif_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/blank-page/after_content', 'jet_woo_zerif_close_site_main_wrap', 999 );
add_action( 'elementor/page_templates/header-footer/after_content', 'jet_woo_zerif_close_site_main_wrap', 999 );
add_action( 'jet-woo-builder/full-width-page/after_content', 'jet_woo_zerif_close_site_main_wrap', 999 );
add_action( 'wp_enqueue_scripts', 'jet_woo_zerif_enqueue_styles' );
/**
* Open .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_zerif_open_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '<div class="site-main">';
}
/**
* Close .site-main wrapper for products
* @return [type] [description]
*/
function jet_woo_zerif_close_site_main_wrap() {
if ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {
return;
}
echo '</div>';
}
/**
* Enqueue Zerif integration stylesheets.
*
* @since 1.0.0
* @access public
* @return void
*/
function jet_woo_zerif_enqueue_styles() {
wp_enqueue_style(
'jet-woo-builder-zerif',
jet_woo_builder()->plugin_url( 'includes/integrations/themes/zerif/assets/css/style.css' ),
false,
jet_woo_builder()->get_version()
);
}