protected function getUnwrappedTemplate()
	{
		$this->attributes['style']['width']     = '100%';
		$this->attributes['style']['height']    = $this->attributes['height'] . 'px';
		$this->attributes['style']['max-width'] = '100%';

		if (isset($this->attributes['max-width']))
		{
			$this->attributes['style']['max-width'] = $this->attributes['max-width'] . 'px';
		}
		elseif ($this->attributes['width'] !== '100%')
		{
			$property = ($this->hasDynamicWidth()) ? 'width' : 'max-width';
			$this->attributes['style'][$property] = $this->attributes['width'] . 'px';
		}

		if ($this->attributes['style']['width'] === $this->attributes['style']['max-width'])
		{
			unset($this->attributes['style']['max-width']);
		}

		return $this->getContentTemplate();
	}
protected function getUnwrappedTemplate()
	{
		$this->attributes['style']['width']     = '100%';
		$this->attributes['style']['height']    = $this->attributes['height'] . 'px';
		$this->attributes['style']['max-width'] = '100%';

		if (isset($this->attributes['max-width']))
		{
			$this->attributes['style']['max-width'] = $this->attributes['max-width'] . 'px';
		}
		elseif ($this->attributes['width'] !== '100%')
		{
			$property = ($this->hasDynamicWidth()) ? 'width' : 'max-width';
			$this->attributes['style'][$property] = $this->attributes['width'] . 'px';
		}

		if ($this->attributes['style']['width'] === $this->attributes['style']['max-width'])
		{
			unset($this->attributes['style']['max-width']);
		}

		return $this->getContentTemplate();
	}
protected function getUnwrappedTemplate ( ) { $ this -> attributes [ 'style' ] [ 'width' ] = '100%' ; $ this -> attributes [ 'style' ] [ 'height' ] = $ this -> attributes [ 'height' ] . 'px' ; $ this -> attributes [ 'style' ] [ 'max-width' ] = '100%' ; if ( isset ( $ this -> attributes [ 'max-width' ] ) ) { $ this -> attributes [ 'style' ] [ 'max-width' ] = $ this -> attributes [ 'max-width' ] . 'px' ; } elseif ( $ this -> attributes [ 'width' ] !== '100%' ) { $ property = ( $ this -> hasDynamicWidth ( ) ) ? 'width' : 'max-width' ; $ this -> attributes [ 'style' ] [ $ property ] = $ this -> attributes [ 'width' ] . 'px' ; } if ( $ this -> attributes [ 'style' ] [ 'width' ] === $ this -> attributes [ 'style' ] [ 'max-width' ] ) { unset ( $ this -> attributes [ 'style' ] [ 'max-width' ] ) ; } return $ this -> getContentTemplate ( ) ; }
Generate and return a responsive template for the embedded content

@return string
Generate and return a responsive template for the embedded content