コード例 #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>';
 }