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,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()
);
}