options = Fns::get_options( 'modules', 'quick_view' ); add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_public_scripts' ], 99 ); do_action( 'rtsb/module/quick_view/loaded' ); } /** * @return void */ public function enqueue_public_scripts() { $cache_key = 'quick_view_style_cache'; $width = ! empty( $this->options['modal_width'] ) ? $this->options['modal_width'] : '950'; wp_localize_script( 'rtsb-public', 'QvModalParams', [ 'modal_width' => absint( $width ), ] ); if ( isset( $this->cache[ $cache_key ] ) && ! empty( $this->cache[ $cache_key ] ) ) { wp_add_inline_style( 'rtsb-frontend', $this->cache[ $cache_key ] ); return; } $height = $this->options['modal_height'] ?? false; $wrapper_padding = $this->options['modal_wrapper_padding'] ?? '0'; $bg_color = $this->options['modal_bg_color'] ?? false; $box_shadow = $this->options['modal_box_shadow_color'] ?? false; $overly_color = $this->options['modal_overly_color'] ?? false; ob_start(); if ( $height ) { ?> .rtsb-ui-modal .rtsb-modal-content{ height: ; } .rtsb-ui-modal .rtsb-modal-wrapper.quick-view-modal .rtsb-modal-content .rtsb-modal-body{ padding: ; } .rtsb-ui-modal .rtsb-modal-wrapper .rtsb-modal-content{ background-color: ; } .rtsb-ui-modal .rtsb-modal-content{ box-shadow: 0 0 10px ; } .rtsb-ui-modal .rtsb-mask-wrapper{ background-color: ; } cache[ $cache_key ] = $dynamic_css; if ( ! empty( $dynamic_css ) ) { wp_add_inline_style( 'rtsb-frontend', $dynamic_css ); } } }