/
home
/
rekodeb
/
osteo
/
wp-content
/
themes
/
zuperla
/
includes
/
Upload File
HOME
<?php /** * Dynamic css style for WooCommerce * @author Euthemians Team * @URI http://euthemians.com */ $css = ""; /* Container Size ============================================================================= */ $css .= " .eut-woo-error, .eut-woo-info, .eut-woo-message, .eut-woo-tabs #tab-reviews.panel, .eut-woo-tabs #tab-additional_information.panel { max-width: " . zuperla_eutf_option( 'container_size', 1390 ) . "px; } "; /* Default Header Shopping Cart ============================================================================= */ $eut_header_mode = zuperla_eutf_option( 'header_mode', 'default' ); if ( 'default' == $eut_header_mode ) { $css .= " #eut-header .eut-shoppin-cart-content { background-color: " . zuperla_eutf_option( 'default_header_submenu_bg_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li, #eut-header .eut-shoppin-cart-content ul li a, #eut-header .eut-shoppin-cart-content .total { color: " . zuperla_eutf_option( 'default_header_submenu_text_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li a:hover { color: " . zuperla_eutf_option( 'default_header_submenu_text_hover_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li { border-color: " . zuperla_eutf_option( 'default_header_submenu_border_color' ) . "; } "; /* Logo On Top Header Shopping Cart ============================================================================= */ } else if ( 'logo-top' == $eut_header_mode ) { $css .= " #eut-header .eut-shoppin-cart-content { background-color: " . zuperla_eutf_option( 'logo_top_header_submenu_bg_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li, #eut-header .eut-shoppin-cart-content ul li a, #eut-header .eut-shoppin-cart-content .total { color: " . zuperla_eutf_option( 'logo_top_header_submenu_text_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li a:hover { color: " . zuperla_eutf_option( 'logo_top_header_submenu_text_bg_hover_color' ) . "; } #eut-header .eut-shoppin-cart-content ul li { border-color: " . zuperla_eutf_option( 'logo_top_header_submenu_border_color' ) . "; } "; } /* Cart Area Colors ============================================================================= */ $eut_sliding_area_overflow_background_color = zuperla_eutf_option( 'sliding_area_overflow_background_color', '#000000' ); $css .= " #eut-cart-area { background-color: " . zuperla_eutf_option( 'sliding_area_background_color' ) . "; color: " . zuperla_eutf_option( 'sliding_area_text_color' ) . "; } .eut-cart-total { color: " . zuperla_eutf_option( 'sliding_area_title_color' ) . "; } #eut-cart-area .cart-item-content a, #eut-cart-area .eut-empty-cart .eut-h6 { color: " . zuperla_eutf_option( 'sliding_area_title_color' ) . "; } #eut-cart-area .eut-empty-cart a { color: " . zuperla_eutf_option( 'sliding_area_link_color' ) . "; } #eut-cart-area .cart-item-content a:hover, #eut-cart-area .eut-empty-cart a:hover { color: " . zuperla_eutf_option( 'sliding_area_link_hover_color' ) . "; } #eut-cart-area .eut-close-btn:after, #eut-cart-area .eut-close-btn:before, #eut-cart-area .eut-close-btn span { background-color: " . zuperla_eutf_option( 'sliding_area_close_btn_color' ) . "; } #eut-cart-area .eut-border { border-color: " . zuperla_eutf_option( 'sliding_area_border_color' ) . "; } #eut-cart-area-overlay { background-color: rgba(" . zuperla_eutf_hex2rgb( $eut_sliding_area_overflow_background_color ) . "," . zuperla_eutf_option( 'sliding_area_overflow_background_color_opacity', '0.9') . "); } "; /* Primary Background */ $css .= " .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle, .eut-product-item span.onsale { background-color: " . zuperla_eutf_option( 'body_primary_1_color' ) . "; color: #ffffff; } "; /* Primary Color */ $css .= " .woocommerce-grouped-product-list-item label a:hover, .woocommerce nav.woocommerce-pagination ul li span.current, nav.woocommerce-pagination ul li a:hover, .woocommerce-MyAccount-navigation ul li a:hover, .woocommerce .widget_layered_nav ul li.chosen a:before, .woocommerce .widget_layered_nav_filters ul li a:before { color: " . zuperla_eutf_option( 'body_primary_1_color' ) . "!important; } "; /* Content Color ============================================================================= */ $css .= " nav.woocommerce-pagination ul li a { color: " . zuperla_eutf_option( 'body_text_color' ) . "; } "; /* Headers Color ============================================================================= */ $css .= " .woocommerce #reviews #comments ol.commentlist li .comment-text p.meta, .eut-product-item .eut-add-to-cart-btn a.add_to_cart_button:before, .woocommerce form .form-row label { color: " . zuperla_eutf_option( 'body_heading_color' ) . "; } "; // Product Anchor Size $css .= " #eut-product-anchor { height: " . intval( zuperla_eutf_option( 'product_anchor_menu_height', 120 ) + 2 ) . "px; } #eut-product-anchor .eut-anchor-wrapper { line-height: " . zuperla_eutf_option( 'product_anchor_menu_height' ) . "px; } #eut-product-anchor.eut-anchor-menu .eut-anchor-btn { width: " . zuperla_eutf_option( 'product_anchor_menu_height' ) . "px; } "; /* Borders ============================================================================= */ $css .= " .woocommerce-grouped-product-list-item, .woocommerce-tabs, .woocommerce #reviews #review_form_wrapper, .woocommerce-page #reviews #review_form_wrapper, .woocommerce-MyAccount-navigation ul li, #eut-theme-wrapper .widget.woocommerce li, #eut-theme-wrapper .woocommerce table, #eut-theme-wrapper .woocommerce table tr, #eut-theme-wrapper .woocommerce table th, #eut-theme-wrapper .woocommerce table td, .woocommerce table.shop_attributes, .woocommerce table.shop_attributes tr, .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: " . zuperla_eutf_option( 'body_border_color' ) . "; } "; /* H6 */ $css .= " .woocommerce #reviews #comments ol.commentlist li .comment-text p.meta { font-family: " . zuperla_eutf_option( 'h6_font', 'Arial, Helvetica, sans-serif', 'font-family' ) . "; font-weight: " . zuperla_eutf_option( 'h6_font', 'normal', 'font-weight' ) . "; font-style: " . zuperla_eutf_option( 'h6_font', 'normal', 'font-style' ) . "; font-size: " . zuperla_eutf_option( 'h6_font', '56px', 'font-size' ) . "; text-transform: " . zuperla_eutf_option( 'h6_font', 'uppercase', 'text-transform' ) . "; line-height: " . zuperla_eutf_option( 'h6_font', '60px', 'line-height' ) . "; " . zuperla_eutf_css_option( 'h6_font', '0px', 'letter-spacing' ) . " } "; /* Subtitle Text */ $css .= " .woocommerce-grouped-product-list-item label a { font-family: " . zuperla_eutf_option( 'subtitle_text', 'Arial, Helvetica, sans-serif', 'font-family' ) . "; font-weight: " . zuperla_eutf_option( 'subtitle_text', 'normal', 'font-weight' ) . "; font-style: " . zuperla_eutf_option( 'subtitle_text', 'normal', 'font-style' ) . "; font-size: " . zuperla_eutf_option( 'subtitle_text', '34px', 'font-size' ) . "; text-transform: " . zuperla_eutf_option( 'subtitle_text', 'none', 'text-transform' ) . "; line-height: " . zuperla_eutf_option( 'subtitle_text', '36px', 'line-height' ) . "; " . zuperla_eutf_css_option( 'subtitle_text', '0px', 'letter-spacing' ) . " } "; /* Small Text */ $css .= " .woocommerce span.onsale, .widget.woocommerce .chosen, .widget.woocommerce .price_label, .eut-add-cart-wrapper a, .woocommerce-terms-and-conditions-wrapper label { font-family: " . zuperla_eutf_option( 'small_text', 'Arial, Helvetica, sans-serif', 'font-family' ) . "; font-weight: " . zuperla_eutf_option( 'small_text', 'normal', 'font-weight' ) . "; font-style: " . zuperla_eutf_option( 'small_text', 'normal', 'font-style' ) . "; font-size: " . zuperla_eutf_option( 'small_text', '34px', 'font-size' ) . "; text-transform: " . zuperla_eutf_option( 'small_text', 'none', 'text-transform' ) . "; " . zuperla_eutf_css_option( 'small_text', '0px', 'letter-spacing' ) . " } "; /* Link Text */ $css .= " .woocommerce-pagination, .woocommerce form .eut-billing-content .form-row label, .eut-woo-error a.button, .eut-woo-info a.button, .eut-woo-message a.button, .woocommerce-review-link, .woocommerce #eut-theme-wrapper #respond input#submit, .woocommerce #eut-theme-wrapper a.button, .woocommerce #eut-theme-wrapper button.button, .woocommerce #eut-theme-wrapper input.button, .woocommerce-MyAccount-content a.button, .woocommerce .woocommerce-error a.button, .woocommerce .woocommerce-info a.button, .woocommerce .woocommerce-message a.button { font-family: " . zuperla_eutf_option( 'link_text', 'Arial, Helvetica, sans-serif', 'font-family' ) . "; font-weight: " . zuperla_eutf_option( 'link_text', 'normal', 'font-weight' ) . "; font-style: " . zuperla_eutf_option( 'link_text', 'normal', 'font-style' ) . "; font-size: " . zuperla_eutf_option( 'link_text', '13px', 'font-size' ) . " !important; text-transform: " . zuperla_eutf_option( 'link_text', 'uppercase', 'text-transform' ) . "; " . zuperla_eutf_css_option( 'link_text', '0px', 'letter-spacing' ) . " } "; /* Product Area Colors ============================================================================= */ if ( is_product() ) { $zuperla_eutf_colors = zuperla_eutf_get_color_array(); $mode = 'product'; $zuperla_eutf_area_colors = array( 'bg_color' => zuperla_eutf_option( $mode . '_area_bg_color', '#eeeeee' ), 'headings_color' => zuperla_eutf_option( $mode . '_area_headings_color', '#000000' ), 'font_color' => zuperla_eutf_option( $mode . '_area_font_color', '#999999' ), 'link_color' => zuperla_eutf_option( $mode . '_area_link_color', '#FF7D88' ), 'hover_color' => zuperla_eutf_option( $mode . '_area_hover_color', '#000000' ), 'border_color' => zuperla_eutf_option( $mode . '_area_border_color', '#e0e0e0' ), 'button_color' => zuperla_eutf_option( $mode . '_area_button_color', 'primary-1' ), 'button_hover_color' => zuperla_eutf_option( $mode . '_area_button_hover_color', 'black' ), ); $zuperla_eutf_single_area_colors = zuperla_eutf_post_meta( '_zuperla_eutf_area_colors' ); $zuperla_eutf_single_area_colors_custom = zuperla_eutf_array_value( $zuperla_eutf_single_area_colors, 'custom' ); if ( 'custom' == $zuperla_eutf_single_area_colors_custom ) { $zuperla_eutf_area_colors = $zuperla_eutf_single_area_colors; } $css .= " .eut-product-area-wrapper { background-color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'bg_color' ) . "; color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'font_color' ) . "; border-color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'border_color' ) . "; } #eut-theme-wrapper .eut-product-area-wrapper .eut-border, #eut-theme-wrapper .eut-product-area-wrapper form, #eut-theme-wrapper .eut-product-area-wrapper .quantity, .eut-product-area-wrapper .eut-product-form, #eut-entry-summary, #eut-theme-wrapper .summary input, #eut-theme-wrapper .summary select { border-color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'border_color' ) . "; } .eut-product-area-wrapper a { color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'link_color' ) . "; } .eut-product-area-wrapper a:hover { color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'hover_color' ) . "; } .eut-product-area-wrapper h1, .eut-product-area-wrapper h2, .eut-product-area-wrapper h3, .eut-product-area-wrapper h4, .eut-product-area-wrapper h5, .eut-product-area-wrapper h6, .eut-product-area-wrapper .eut-h1, .eut-product-area-wrapper .eut-h2, .eut-product-area-wrapper .eut-h3, .eut-product-area-wrapper .eut-h4, .eut-product-area-wrapper .eut-h5, .eut-product-area-wrapper .eut-h6, .eut-product-area-wrapper .eut-heading-color { color: " . zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'headings_color' ) . "; } "; $default_button_color = zuperla_eutf_option( 'body_primary_1_color' ); $area_button_color = zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'button_color' ); $button_color = zuperla_eutf_array_value( $zuperla_eutf_colors, $area_button_color, $default_button_color); $area_button_hover_color = zuperla_eutf_array_value( $zuperla_eutf_area_colors, 'button_hover_color' ); $button_hover_color = zuperla_eutf_array_value( $zuperla_eutf_colors, $area_button_hover_color, '#000000'); $zuperla_button_css = ""; $zuperla_button_css .= "#eut-theme-wrapper .eut-product-area-wrapper #eut-entry-summary .single_add_to_cart_button {"; $zuperla_button_css .= "background-color: " . esc_attr( $button_color ) . ";"; if ( 'white' == $area_button_color ) { $zuperla_button_css .= "color: #bababa;"; } else { $zuperla_button_css .= "color: #ffffff;"; } $zuperla_button_css .= "border: none;"; $zuperla_button_css .= "}"; $zuperla_button_css .= "#eut-theme-wrapper .eut-product-area-wrapper #eut-entry-summary .single_add_to_cart_button:hover {"; $zuperla_button_css .= "background-color: " . esc_attr( $button_hover_color ) . ";"; if ( 'white' == $area_button_hover_color ) { $zuperla_button_css .= "color: #bababa;"; } else { $zuperla_button_css .= "color: #ffffff;"; } $zuperla_button_css .= "}"; $css .= $zuperla_button_css; } /* Product Navigation Bar ============================================================================= */ $css .= " #eut-product-bar { background-color: " . zuperla_eutf_option( 'product_bar_background_color' ) . "; padding-top: " . zuperla_eutf_option( 'product_nav_spacing', '', 'padding-top' ) . "; padding-bottom: " . zuperla_eutf_option( 'product_nav_spacing', '', 'padding-bottom' ) . "; } #eut-product-bar .eut-nav-item .eut-title { color: " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . "; } #eut-product-bar .eut-arrow { color: " . zuperla_eutf_option( 'product_bar_arrow_color' ) . "; } #eut-product-bar .eut-backlink-icon { background-color: " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . "; box-shadow: .5em 0 " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . ", 0 .5em " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . ", .5em .5em " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . "; } #eut-product-bar .eut-backlink:hover .eut-backlink-icon { box-shadow: .8em 0 " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . ", 0 .8em " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . ", .8em .8em " . zuperla_eutf_option( 'product_bar_nav_title_color' ) . "; } "; /* Single Product Content Width ============================================================================= */ if ( is_singular( 'product' ) ) { $zuperla_eutf_width = zuperla_eutf_post_meta( '_zuperla_eutf_post_content_width', zuperla_eutf_option( 'product_content_width', 'medium' ) ); $zuperla_eutf_post_content_width = zuperla_eutf_array_value( zuperla_eutf_get_post_width_array(), $zuperla_eutf_width, zuperla_eutf_option( 'container_size', 1390 ) ); $css .= " .single-product #eut-content:not(.eut-right-sidebar):not(.eut-left-sidebar) .eut-container { max-width: " . esc_attr( $zuperla_eutf_post_content_width ) . "px; } "; } wp_add_inline_style( 'zuperla-eutf-custom-style', zuperla_eutf_compress_css( $css ) ); //Omit closing PHP tag to avoid accidental whitespace output errors.