Astra_Edd::edd_mini_cart_markup()
Easy Digital DOwnloads mini cart markup markup
Description
Return
(html)
Source
File: inc/compatibility/edd/class-astra-edd.php
public function edd_mini_cart_markup() { $class = ''; if ( edd_is_checkout() ) { $class = 'current-menu-item'; } $cart_menu_classes = apply_filters( 'astra_edd_cart_in_menu_class', array( 'ast-menu-cart-with-border' ) ); ob_start(); if ( is_customize_preview() && ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ) { Astra_Builder_UI_Controller::render_customizer_edit_button(); } ?> <div class="ast-edd-site-header-cart <?php echo esc_attr( implode( ' ', $cart_menu_classes ) ); ?>"> <div class="ast-edd-site-header-cart-wrap <?php echo esc_attr( $class ); ?>"> <?php $this->astra_get_edd_cart(); ?> </div> <?php if ( ! edd_is_checkout() ) { ?> <div class="ast-edd-site-header-cart-widget"> <?php the_widget( 'edd_cart_widget', 'title=' ); ?> </div> <?php } ?> </div> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.5.5 | Introduced. |