ASTRA_Ext_Edd_Markup::shortcode_download_class( string $class, int $id, array $edd_download_shortcode_item_atts, int $edd_download_shortcode_item_i )

Edd shortcode download class


Description


Parameters

$class

(string) (Required) edd shortcode list item class.

$id

(int) (Required) current post ID.

$edd_download_shortcode_item_atts

(array) (Required) Default shortcode argument array.

$edd_download_shortcode_item_i

(int) (Required) shortcode applied to items.


Return

(string) $class updated class to the shortcode list item;


Source

File: addons/edd/classes/class-astra-ext-edd-markup.php

		public function shortcode_download_class( $class, $id, $edd_download_shortcode_item_atts, $edd_download_shortcode_item_i ) {

			if ( 'edd_download' === $class ) {
				$classes = array();
				// Single product normal & hover box shadow.
				$classes[] = astra_get_option( 'edd-archive-product-align' );
				$classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow' );
				$classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow-hover' ) . '-hover';
				$class     = $class . ' ' . implode( ' ', $classes );
			}
			return $class;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.