Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/themes/puca/vc_templates/ |
Upload File : |
<?php $bgcolor = $title = $image = $list_elements = $el_class = $css = ''; $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); extract( $atts ); $css = isset( $atts['css'] ) ? $atts['css'] : ''; $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : ''; $class_to_filter = 'widget widget-text-safe-checkout '. $bgcolor .' '; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); if( $bgcolor === 'safe_custom' ) { echo '<style type="text/css" data-type="vc_custom-css">'; ?> .safe_custom { --safe-bg-color: <?php echo trim($custombgcolor); ?>; --safe-text-color: <?php echo trim($customtxtcolor); ?>; } <?php echo '</style>'; } ?> <div class="<?php echo esc_attr($css_class);?>"> <div class="safe-checkout__content"> <div class="safe-checkout__widget-title-wrapper"> <?php if( (isset($subtitle) && $subtitle) || (isset($title) && $title) ): ?> <h3 class="safe-checkout__title"> <?php if ( isset($title) && $title ): ?> <span><?php echo esc_html( $title ); ?></span> <?php endif; ?> </h3> <?php endif; ?> <?php if( !empty($image) ) : ?> <div class="safe-checkout__img-wrapper"> <?php echo wp_get_attachment_image( $image, 'full', false, array( "class" => "safe-checkout__img" ) ); ?> </div> <?php endif; ?> </div> <div class="safe-checkout__lists"> <?php $list_elements = (array) vc_param_group_parse_atts( $list_elements ); ?> <?php foreach ($list_elements as $element) : ?> <div class="safe-checkout__item"> <?php if( !empty( $element['title'] ) ) : ?> <h4 class="safe-checkout__item-title"><?php echo trim($element['title']); ?></h4> <?php endif; ?> <?php if( !empty( $element['subtitle'] ) ) : ?> <p class="safe-checkout__item-description"><?php echo trim($element['subtitle']); ?></p> <?php endif; ?> </div> <?php endforeach; ?> </div> </div> </div>