Initial Commit N° : 003 - V.4.3.5

This commit is contained in:
2025-03-28 14:51:03 +01:00
parent 579b475021
commit 1ec9986b28
78 changed files with 1974 additions and 10329 deletions
+73 -22
View File
@@ -43,6 +43,7 @@ if (!function_exists('elessi_get_style_primary_color')) :
body .nasa-breadcrumb.nasa-breadcrumb-has-bg .columns .breadcrumb-row a:hover,
body .group-blogs .blog_info .post-date span,
body .header-type-1 .header-nav .nav-top-link:hover,
body .header-type-9 .header-nav .nav-top-link:hover,
body .widget_layered_nav li:hover a,
body .widget_layered_nav_filters li:hover a,
body .remove .pe-7s-close:hover,
@@ -84,13 +85,14 @@ if (!function_exists('elessi_get_style_primary_color')) :
body .header-nav .active .nav-top-link,
body ul li .nav-dropdown > ul > li:hover > a,
body ul li .nav-dropdown > ul > li:hover > a:before,
body .vertical-menu-float-wrapper >.menu-item .menu-item-has-children:hover >a,
body ul li .nav-dropdown > ul > li .nav-column-links > ul > li a:hover,
body ul li .nav-dropdown > ul > li .nav-column-links > ul > li:hover > a:before,
body .topbar-menu-container > ul > li > a:hover,
html body.nasa-dark .topbar-menu-container .header-multi-languages li ul li a:hover,
body .header-account ul li a:hover,
body .header-icons > li a:hover i,
body .header-icons > li a:hover .icon-text,
body .header-icons > li a:hover,
body .nasa-title span.nasa-first-word,
body .nasa-sc-pdeal.nasa-sc-pdeal-block .nasa-sc-p-img .images-popups-gallery a.product-image .nasa-product-label-stock .label-stock,
body .nasa-sc-pdeal.nasa-sc-pdeal-block .nasa-sc-p-info .nasa-sc-p-title h3 a:hover,
@@ -150,7 +152,11 @@ if (!function_exists('elessi_get_style_primary_color')) :
.nasa-where-you-are-wrap .nasa-title .ns-map-lcl,
.nasa-where-you-are-wrap .current-menu-item>a,
.nasa-sc-blogs-list-2 .blog-item .info-wrap .nasa-post-date-author-wrap svg,
.nasa-sc-blogs-list-2 .blog-grid-style .blog-item .nasa-blog-info .nasa-blog-title:hover
.nasa-sc-blogs-list-2 .blog-grid-style .blog-item .nasa-blog-info .nasa-blog-title:hover,
.header-type-8 .header-icons > li > a:hover,
.header-type-8 .topbar-menu-container > ul > li > a:hover,
.header-type-8 .wcml-cs-item-toggle:hover,
.header-type-8 .nasa-topbar-wrap.nasa-topbar-toggle .nasa-icon-toggle:hover
{
color: <?php echo esc_attr($color_primary); ?>;
}
@@ -300,7 +306,8 @@ if (!function_exists('elessi_get_style_primary_color')) :
body #nasa-popup .wpcf7 input[type="button"]:hover,
body #nasa-popup .wpcf7 input[type="submit"]:hover,
body #nasa-footer .footer-light-2 .footer-contact .btn-submit-newsletters:hover,
body .nasa-product-content-select-wrap .nasa-product-content-child .nasa-toggle-content-attr-select .nasa-attr-ux-item.nasa-active
body .nasa-product-content-select-wrap .nasa-product-content-child .nasa-toggle-content-attr-select .nasa-attr-ux-item.nasa-active,
body .nasa-menu-vertical-header.vertical_float_menu_toggle:hover
{
background-color: <?php echo esc_attr($color_primary_darken); ?>;
}
@@ -565,7 +572,7 @@ if (!function_exists('elessi_get_style_btn_text_color')) :
<style>
#submit,
button:not(.reset_variations),
.button:not(.add-to-cart-grid),
.button:not(.add-to-cart-grid, .loading),
input[type="submit"],
body input[type="submit"].dokan-btn,
body a.dokan-btn,
@@ -575,16 +582,19 @@ if (!function_exists('elessi_get_style_btn_text_color')) :
body a.dokan-btn-theme,
body .dokan-btn-theme,
.nasa-search-all,
.nasa-modern-2 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-4 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-6 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-7 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-8 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-9 .product-item .add-to-cart-grid .add_to_cart_text,
.nasa-modern-9 .product-item .add-to-cart-grid svg,
.nasa-modern-2 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-4 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-6 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-7 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-8 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-9 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-10 .product-item .add-to-cart-grid:not(.loading) .add_to_cart_text,
.nasa-modern-9 .product-item .add-to-cart-grid:not(.loading) svg,
body .nasa-static-sidebar .btn-mini-cart .woocommerce-mini-cart__buttons a.checkout,
html body .ns-cart-popup-v2 .btn-mini-cart .woocommerce-mini-cart__buttons a.checkout,
.nasa-vertical-header.vertical-menu .section-title
.nasa-vertical-header.vertical-menu .section-title,
body .product-item .product-deal-special-buttons .nasa-product-grid .add-to-cart-grid:not(.loading),
body .product-item .product-deal-special-buttons .nasa-product-grid .add-to-cart-grid:not(.loading) .add_to_cart_text
{
color: <?php echo esc_attr($text_color); ?> !important;
}
@@ -609,8 +619,14 @@ if (!function_exists('elessi_get_style_main_menu_color')) :
$text_color = '',
$bg_color_stk = '',
$text_color_stk = '',
$head_type = '',
$return = true
) {
if ($bg_color == '' && $head_type == '8') {
$bg_color = '#fff';
}
if ($bg_color == '' && $text_color == '' && $bg_color_stk == '' && $text_color_stk == '') {
return '';
}
@@ -756,6 +772,9 @@ if (!function_exists('elessi_get_style_vertical_menu_color')) :
{
background-color: <?php echo esc_attr($bg_color); ?>;
}
html body .nasa-menu-vertical-header.vertical_float_menu_toggle:hover {
background-color: <?php echo esc_attr(elessi_pattern_color($bg_color, -0.08)); ?>;
}
html body .nasa-vertical-header .vertical-menu-wrapper
{
border-color: <?php echo esc_attr($bg_color); ?>;
@@ -817,8 +836,17 @@ if (!function_exists('elessi_get_style_header_color')) :
$bg_color_stk = '',
$text_color_stk = '',
$text_color_hover_stk = '',
$head_type = '',
$return = true
) {
if ($head_type == '8') {
$bg_color = $bg_color == '' ? '#0f3d57' : $bg_color;
$text_color = $text_color == '' ? '#fff' : $text_color;
$text_color_hover = $text_color_hover == '' ? '#fcb802' : $text_color_hover;
}
if ($bg_color == '' && $text_color == '' && $text_color_hover == '' && $bg_color_stk == '' && $text_color_stk == '' && $text_color_hover_stk == '') {
return '';
}
@@ -859,8 +887,7 @@ if (!function_exists('elessi_get_style_header_color')) :
body #masthead .header-icons > li > a,
body .mini-icon-mobile .nasa-icon,
body .nasa-toggle-mobile_icons,
body #masthead .follow-icon a i,
body #masthead .nasa-icon
body #masthead .follow-icon a i
{
color: <?php echo esc_attr($text_color); ?>;
}
@@ -888,12 +915,18 @@ if (!function_exists('elessi_get_style_header_color')) :
?>
body #masthead .header-icons > li > a:hover i,
body #masthead .header-icons > li > a:hover .icon-text,
body #masthead .header-icons > li > a:hover,
body #masthead .mini-cart .cart-icon:hover:before,
body #masthead .follow-icon a:hover i,
body #masthead .nasa-icon:hover
{
color: <?php echo esc_attr($text_color_hover); ?>;
}
body .nasa-mini-number {
background-color: <?php echo esc_attr($text_color_hover); ?>;
}
<?php
endif;
@@ -907,6 +940,10 @@ if (!function_exists('elessi_get_style_header_color')) :
{
color: <?php echo esc_attr($text_color_hover_stk); ?>;
}
body .nasa-mini-number {
background-color: <?php echo esc_attr($text_color_hover_stk); ?>;
}
<?php endif; ?>
/* End =========================================== */
</style>
@@ -929,8 +966,16 @@ if (!function_exists('elessi_get_style_topbar_color')) :
$bg_color = '',
$text_color = '',
$text_color_hover = '',
$head_type = '',
$return = true
) {
if ($head_type == '8') {
$bg_color = $bg_color == '' ? '#0f3d57' : $bg_color;
$text_color = $text_color == '' ? '#fff' : $text_color;
$text_color_hover = $text_color_hover == '' ? '#fcb802' : $text_color_hover;
}
if ($bg_color == '' && $text_color == '' && $text_color_hover == '') {
return '';
}
@@ -951,11 +996,11 @@ if (!function_exists('elessi_get_style_topbar_color')) :
{
background-color: <?php echo esc_attr($bg_color); ?>;
}
<?php if (isset($nasa_opt['header-type']) && $nasa_opt['header-type'] != '8') :?>
<?php if ($head_type !== '8') :?>
body #top-bar,
body .nasa-topbar-wrap.nasa-topbar-toggle .nasa-icon-toggle
{
border-color: <?php echo esc_attr($bg_color); ?>;
border-color: <?php echo esc_attr($head_type); ?>;
}
<?php
endif;
@@ -1443,6 +1488,8 @@ if (!function_exists('elessi_page_override_style')) :
$dinamic_css = $font_weight = $color_primary_css = $page_css = '';
if ($is_page && $object_id) {
$head_type = get_post_meta($object_id, '_nasa_custom_header', true);
/**
* color_primary
*/
@@ -1470,7 +1517,7 @@ if (!function_exists('elessi_page_override_style')) :
$text_color_stk = get_post_meta($object_id, '_nasa_text_color_header_stk', true);
$text_color_hover = get_post_meta($object_id, '_nasa_text_color_hover_header', true);
$text_color_hover_stk = get_post_meta($object_id, '_nasa_text_color_hover_header_stk', true);
$page_css .= elessi_get_style_header_color($bg_color, $text_color, $text_color_hover, $bg_color_stk, $text_color_stk, $text_color_hover_stk);
$page_css .= elessi_get_style_header_color($bg_color, $text_color, $text_color_hover, $bg_color_stk, $text_color_stk, $text_color_hover_stk, $head_type);
/**
* color for top bar
@@ -1479,7 +1526,7 @@ if (!function_exists('elessi_page_override_style')) :
$bg_color = get_post_meta($object_id, '_nasa_bg_color_topbar', true);
$text_color = get_post_meta($object_id, '_nasa_text_color_topbar', true);
$text_color_hover = get_post_meta($object_id, '_nasa_text_color_hover_topbar', true);
$page_css .= elessi_get_style_topbar_color($bg_color, $text_color, $text_color_hover);
$page_css .= elessi_get_style_topbar_color($bg_color, $text_color, $text_color_hover, $head_type);
}
/**
@@ -1489,7 +1536,7 @@ if (!function_exists('elessi_page_override_style')) :
$bg_color_stk = get_post_meta($object_id, '_nasa_bg_color_main_menu_stk', true);
$text_color = get_post_meta($object_id, '_nasa_text_color_main_menu', true);
$text_color_stk = get_post_meta($object_id, '_nasa_text_color_main_menu_stk', true);
$page_css .= elessi_get_style_main_menu_color($bg_color, $text_color, $bg_color_stk, $text_color_stk);
$page_css .= elessi_get_style_main_menu_color($bg_color, $text_color, $bg_color_stk, $text_color_stk, $head_type);
/**
* color for vertical menu
@@ -1583,6 +1630,8 @@ if (!function_exists('elessi_page_override_style')) :
*/
else {
$root_cat_id = elessi_get_root_term_id();
$head_type = get_term_meta($root_cat_id, 'cat_header_type', true);
if ($root_cat_id) {
$color_primary = get_term_meta($root_cat_id, 'cat_primary_color', true);
@@ -1600,7 +1649,7 @@ if (!function_exists('elessi_page_override_style')) :
$text_color_stk = get_term_meta($root_cat_id, 'cat_header_text_stk', true);
$text_color_hover = get_term_meta($root_cat_id, 'cat_header_text_hv', true);
$text_color_hover_stk = get_term_meta($root_cat_id, 'cat_header_text_hv_stk', true);
$page_css .= elessi_get_style_header_color($bg_color, $text_color, $text_color_hover, $bg_color_stk, $text_color_stk, $text_color_hover_stk);
$page_css .= elessi_get_style_header_color($bg_color, $text_color, $text_color_hover, $bg_color_stk, $text_color_stk, $text_color_hover_stk, $head_type);
/**
* color for top bar
@@ -1609,7 +1658,7 @@ if (!function_exists('elessi_page_override_style')) :
$bg_color = get_term_meta($root_cat_id, 'cat_topbar_bg', true);
$text_color = get_term_meta($root_cat_id, 'cat_topbar_text', true);
$text_color_hover = get_term_meta($root_cat_id, 'cat_topbar_text_hv', true);
$page_css .= elessi_get_style_topbar_color($bg_color, $text_color, $text_color_hover);
$page_css .= elessi_get_style_topbar_color($bg_color, $text_color, $text_color_hover, $head_type);
}
/**
@@ -1619,7 +1668,7 @@ if (!function_exists('elessi_page_override_style')) :
$bg_color_stk = get_term_meta($root_cat_id, 'cat_main_menu_bg', true);
$text_color = get_term_meta($root_cat_id, 'cat_main_menu_text', true);
$text_color_stk = get_term_meta($root_cat_id, 'cat_main_menu_text', true);
$page_css .= elessi_get_style_main_menu_color($bg_color, $text_color, $bg_color_stk, $text_color_stk);
$page_css .= elessi_get_style_main_menu_color($bg_color, $text_color, $bg_color_stk, $text_color_stk, $head_type);
/**
* color for vertical menu
@@ -1753,12 +1802,14 @@ if (!function_exists('elessi_get_style_background_color_shop')) :
@media only screen and (min-width: 768px) {
body .ns-shop-width-background .nasa-archive-product-content-bg .nasa-archive-product-content .nasa-content-page-products .product-item,
body .nasa-archive-product-content-bg .nasa-modern-2 .product-item:after,
body .nasa-archive-product-content-bg .nasa-modern-10 .product-item:after,
body .nasa-archive-product-content-bg .nasa-modern-1 .product-item:after,
body .nasa-modern-3 .product-item:after,
body .nasa-modern-1 .nasa-product-content-nasa_label-wrap,
body.nasa-dark .ns-shop-width-background .nasa-archive-product-content-bg .nasa-archive-product-content .nasa-content-page-products .product-item,
body.nasa-dark .ns-shop-width-background .nasa-archive-product-content-bg .nasa-archive-product-content .nasa-content-page-products.nasa-modern-1 .product-item:after,
body.nasa-dark .ns-shop-width-background .nasa-archive-product-content-bg .nasa-archive-product-content .nasa-content-page-products.nasa-modern-2 .product-item:after,
body.nasa-dark .ns-shop-width-background .nasa-archive-product-content-bg .nasa-archive-product-content .nasa-content-page-products.nasa-modern-10 .product-item:after,
body.nasa-dark .nasa-modern-1 .nasa-product-content-nasa_label-wrap {
background-color: <?php echo esc_attr(ucwords($color_background_shop_pro)); ?>;
}