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