protected function getResponsivePadding()
	{
		$height        = $this->expr($this->attributes['height']);
		$paddingHeight = $this->expr($this->attributes['padding-height']);
		$width         = $this->expr($this->attributes['width']);

		// Create the padding declaration for the fixed ratio
		$css = 'padding-bottom:<xsl:value-of select="100*(' . $height . '+' . $paddingHeight . ')div' . $width . '"/>%';
		
		// Add the padding declaration for the computed ratio if applicable
		if (!empty($this->attributes['padding-height']))
		{
			// NOTE: there needs to be whitespace around tokens in calc()
			$css .= ';padding-bottom:calc(<xsl:value-of select="100*' . $height . ' div' . $width . '"/>% + ' . $paddingHeight . 'px)';
		}

		// If the width is dynamic, use a conditional to protect against divisions by zero
		if (strpos($width, '@') !== false)
		{
			$css = '<xsl:if test="@width&gt;0">' . $css . '</xsl:if>';
		}

		return $css;
	}
protected function getResponsivePadding()
	{
		$height        = $this->expr($this->attributes['height']);
		$paddingHeight = $this->expr($this->attributes['padding-height']);
		$width         = $this->expr($this->attributes['width']);

		// Create the padding declaration for the fixed ratio
		$css = 'padding-bottom:<xsl:value-of select="100*(' . $height . '+' . $paddingHeight . ')div' . $width . '"/>%';
		
		// Add the padding declaration for the computed ratio if applicable
		if (!empty($this->attributes['padding-height']))
		{
			// NOTE: there needs to be whitespace around tokens in calc()
			$css .= ';padding-bottom:calc(<xsl:value-of select="100*' . $height . ' div' . $width . '"/>% + ' . $paddingHeight . 'px)';
		}

		// If the width is dynamic, use a conditional to protect against divisions by zero
		if (strpos($width, '@') !== false)
		{
			$css = '<xsl:if test="@width&gt;0">' . $css . '</xsl:if>';
		}

		return $css;
	}
protected function getResponsivePadding ( ) { $ height = $ this -> expr ( $ this -> attributes [ 'height' ] ) ; $ paddingHeight = $ this -> expr ( $ this -> attributes [ 'padding-height' ] ) ; $ width = $ this -> expr ( $ this -> attributes [ 'width' ] ) ; // Create the padding declaration for the fixed ratio $ css = 'padding-bottom:<xsl:value-of select="100*(' . $ height . '+' . $ paddingHeight . ')div' . $ width . '"/>%' ; // Add the padding declaration for the computed ratio if applicable if ( ! empty ( $ this -> attributes [ 'padding-height' ] ) ) { // NOTE: there needs to be whitespace around tokens in calc() $ css .= ';padding-bottom:calc(<xsl:value-of select="100*' . $ height . ' div' . $ width . '"/>% + ' . $ paddingHeight . 'px)' ; } // If the width is dynamic, use a conditional to protect against divisions by zero if ( strpos ( $ width , '@' ) !== false ) { $ css = '<xsl:if test="@width&gt;0">' . $ css . '</xsl:if>' ; } return $ css ; }
Generate and return the padding declaration used in the responsive wrapper

@return string
Generate and return the padding declaration used in the responsive wrapper