/** * Account - Dynamic CSS * * @package Astra * @since 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Account */ add_filter( 'astra_dynamic_theme_css', 'astra_hb_account_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return String Generated dynamic CSS for Account. * * @since 3.0.0 */ function astra_hb_account_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { if ( ! Astra_Builder_Helper::is_component_loaded( 'account', 'header' ) ) { return $dynamic_css; } $_section = 'section-header-account'; $selector = '.ast-header-account-wrap'; $icon_size = astra_get_option( 'header-account-icon-size' ); $icon_size_desktop = ( isset( $icon_size ) && isset( $icon_size['desktop'] ) && ! empty( $icon_size['desktop'] ) ) ? $icon_size['desktop'] : 20; $icon_size_tablet = ( isset( $icon_size ) && isset( $icon_size['tablet'] ) && ! empty( $icon_size['tablet'] ) ) ? $icon_size['tablet'] : 20; $icon_size_mobile = ( isset( $icon_size ) && isset( $icon_size['mobile'] ) && ! empty( $icon_size['mobile'] ) ) ? $icon_size['mobile'] : 20; $image_width = astra_get_option( 'header-account-image-width' ); $image_width_desktop = ( isset( $image_width ) && isset( $image_width['desktop'] ) && ! empty( $image_width['desktop'] ) ) ? $image_width['desktop'] : 20; $image_width_tablet = ( isset( $image_width ) && isset( $image_width['tablet'] ) && ! empty( $image_width['tablet'] ) ) ? $image_width['tablet'] : 20; $image_width_mobile = ( isset( $image_width ) && isset( $image_width['mobile'] ) && ! empty( $image_width['mobile'] ) ) ? $image_width['mobile'] : 20; $margin = astra_get_option( 'header-account-margin' ); $margin_selector = '.ast-header-account-wrap'; /** * Account CSS. */ $css_output_desktop = array( '.ast-header-account-type-icon' => array( '-js-display' => 'inline-flex', 'display' => 'inline-flex', 'align-self' => 'center', 'vertical-align' => 'middle', ), '.ast-header-account-type-avatar .avatar' => array( 'display' => 'inline', 'border-radius' => '100%', 'max-width' => '100%', ), '.as.site-header-focus-item.ast-header-account:hover > .customize-partial-edit-shortcut' => array( 'opacity' => '0', ), '.site-header-focus-item.ast-header-account:hover > * > .customize-partial-edit-shortcut' => array( 'opacity' => '1', ), $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not( .ast-hf-account-unfill ), ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( 'fill' => esc_attr( astra_get_option( 'header-account-icon-color' ) ), ), '.ast-mobile-popup-content ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not( .ast-hf-account-unfill ), .ast-mobile-popup-content ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( 'fill' => esc_attr( astra_get_option( 'header-account-icon-color' ) ), ), $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( 'height' => astra_get_css_value( $icon_size_desktop, 'px' ), 'width' => astra_get_css_value( $icon_size_desktop, 'px' ), ), $selector . ' .ast-header-account-type-avatar .avatar' => array( 'width' => astra_get_css_value( $image_width_desktop, 'px' ), ), $selector . ' .ast-header-account-text' => array( 'color' => esc_attr( astra_get_option( 'header-account-type-text-color' ) ), ), $margin_selector => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'desktop' ), ), ); $css_output_tablet = array( $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( 'height' => astra_get_css_value( $icon_size_tablet, 'px' ), 'width' => astra_get_css_value( $icon_size_tablet, 'px' ), ), $selector . ' .ast-header-account-type-avatar .avatar' => array( 'width' => astra_get_css_value( $image_width_tablet, 'px' ), ), $margin_selector => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'tablet' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'tablet' ), ), ); $css_output_mobile = array( $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( 'height' => astra_get_css_value( $icon_size_mobile, 'px' ), 'width' => astra_get_css_value( $icon_size_mobile, 'px' ), ), $selector . ' .ast-header-account-type-avatar .avatar' => array( 'width' => astra_get_css_value( $image_width_mobile, 'px' ), ), $margin_selector => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'mobile' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'mobile' ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output_desktop ); $css_output .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); $css_output .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); $dynamic_css .= $css_output; $dynamic_css .= Astra_Builder_Base_Dynamic_CSS::prepare_advanced_typography_css( $_section, $selector . ' .ast-header-account-text' ); $dynamic_css .= Astra_Builder_Base_Dynamic_CSS::prepare_visibility_css( $_section, $selector ); return $dynamic_css; }
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/cn.asso-medical.cn/wp-content/themes/astra/inc/builder/type/header/account/dynamic-css/dynamic.css.php:1) in /www/wwwroot/cn.asso-medical.cn/wp-includes/feed-rss2.php on line 8
产品中心 – 联丰医用卫生材料(始兴)有限公司 https://cn.asso-medical.cn 联丰医用卫生材料(始兴)有限公司 Mon, 20 Jan 2025 06:23:45 +0000 zh-Hans hourly 1 https://wordpress.org/?v=7.0.4 https://cn.asso-medical.cn/wp-content/uploads/2024/11/cropped-logo-32x32.jpg 产品中心 – 联丰医用卫生材料(始兴)有限公司 https://cn.asso-medical.cn 32 32 成人和儿童口罩 https://cn.asso-medical.cn/product/adult-and-children-face-mask/ https://cn.asso-medical.cn/product/adult-and-children-face-mask/#respond Tue, 10 Dec 2024 16:07:37 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7732 https://cn.asso-medical.cn/product/adult-and-children-face-mask/feed/ 0 无纺布纱布 https://cn.asso-medical.cn/product/nonwoven-gauze-sponge/ https://cn.asso-medical.cn/product/nonwoven-gauze-sponge/#respond Tue, 10 Dec 2024 16:06:48 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7730 https://cn.asso-medical.cn/product/nonwoven-gauze-sponge/feed/ 0 一次性浴巾和面巾 https://cn.asso-medical.cn/product/disposable-bath-and-face-towel/ https://cn.asso-medical.cn/product/disposable-bath-and-face-towel/#respond Tue, 10 Dec 2024 16:05:35 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7728 https://cn.asso-medical.cn/product/disposable-bath-and-face-towel/feed/ 0 无纺布清洁布 https://cn.asso-medical.cn/product/nonwoven-cleaning-cloth/ https://cn.asso-medical.cn/product/nonwoven-cleaning-cloth/#respond Tue, 10 Dec 2024 16:05:05 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7727 https://cn.asso-medical.cn/product/nonwoven-cleaning-cloth/feed/ 0 专业清洁湿巾 https://cn.asso-medical.cn/product/professional-cleaning-wipes/ https://cn.asso-medical.cn/product/professional-cleaning-wipes/#respond Tue, 10 Dec 2024 16:04:36 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7726 https://cn.asso-medical.cn/product/professional-cleaning-wipes/feed/ 0 湿手套 https://cn.asso-medical.cn/product/moisten-wash-glove/ https://cn.asso-medical.cn/product/moisten-wash-glove/#respond Tue, 10 Dec 2024 16:04:05 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7725 https://cn.asso-medical.cn/product/moisten-wash-glove/feed/ 0 酒精湿巾和酒精棉片 https://cn.asso-medical.cn/product/alcohol-wipes-alcohol-pads/ https://cn.asso-medical.cn/product/alcohol-wipes-alcohol-pads/#respond Tue, 10 Dec 2024 16:03:37 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7723 https://cn.asso-medical.cn/product/alcohol-wipes-alcohol-pads/feed/ 0 一次性洗发帽 https://cn.asso-medical.cn/product/disposable-shanpoo-cap/ https://cn.asso-medical.cn/product/disposable-shanpoo-cap/#respond Tue, 10 Dec 2024 16:02:59 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7722 https://cn.asso-medical.cn/product/disposable-shanpoo-cap/feed/ 0 印花水刺无纺布 https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-3/ https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-3/#respond Thu, 21 Nov 2024 08:35:02 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7130 https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-3/feed/ 0 印花水刺无纺布 https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-2/ https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-2/#respond Thu, 21 Nov 2024 08:34:37 +0000 https://seashell-reindeer-102718.hostingersite.com/?post_type=product&p=7129 https://cn.asso-medical.cn/product/hydroentangled-fabric-rolls-2/feed/ 0