예제 #1
0
파일: Audio.php 프로젝트: minnur/PHPAmp
 /**
  * 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>';
 }
예제 #2
0
파일: Youtube.php 프로젝트: minnur/PHPAmp
 /**
  * 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>';
 }
예제 #3
0
파일: Ad.php 프로젝트: minnur/PHPAmp
 /**
  * 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>';
 }
예제 #4
0
파일: Pixel.php 프로젝트: minnur/PHPAmp
 /**
  * Render tag.
  */
 public function render()
 {
     parent::render();
     return '<amp-pixel' . $this->setAttribute('src', $this->getSrc()) . '></amp-pixel>';
 }
예제 #5
0
파일: Carousel.php 프로젝트: minnur/PHPAmp
 /**
  * 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>';
 }