/** * Render tag. */ public function render() { parent::render(); return '<amp-audio' . $this->setAttribute('width', $this->getWidth()) . $this->setAttribute('height', $this->getHeight()) . $this->setAttribute('src', $this->getSrc()) . $this->setAttribute('autoplay', $this->isAutoplay()) . $this->setAttribute('loop', $this->isLoop()) . $this->setAttribute('muted', $this->isMuted()) . '>' . $this->getPlaceholder() . $this->getFallback() . $this->getSource() . '</amp-audio>'; }
/** * Render tag. */ public function render() { parent::render(); return '<amp-youtube' . $this->setAttribute('width', $this->getWidth()) . $this->setAttribute('height', $this->getHeight()) . $this->setAttribute('layout', $this->getLayout()) . $this->getDataAttributes() . '>' . $this->getPlaceholder() . $this->getFallback() . '</amp-youtube>'; }
/** * Render tag. */ public function render() { parent::render(); return '<amp-ad' . $this->setAttribute('width', $this->getWidth()) . $this->setAttribute('height', $this->getHeight()) . $this->setAttribute('type', $this->getType()) . $this->getDataAttributes() . '>' . $this->getPlaceholder() . $this->getFallback() . '</amp-ad>'; }
/** * Render tag. */ public function render() { parent::render(); return '<amp-pixel' . $this->setAttribute('src', $this->getSrc()) . '></amp-pixel>'; }
/** * Render tag. */ public function render() { parent::render(); return '<amp-carousel' . $this->setAttribute('width', $this->getWidth()) . $this->setAttribute('height', $this->getHeight()) . $this->setAttribute('poster', $this->getPoster()) . $this->setAttribute('autoplay', $this->getAutoplay()) . $this->setAttribute('loop', $this->isLoop()) . $this->setAttribute('muted', $this->isMuted()) . $this->setAttribute('controls', $this->isControls()) . '>' . $this->getPlaceholder() . $this->getFallback() . $this->getImages() . '</amp-carousel>'; }