コード例 #1
0
ファイル: jbprovider.coub.php プロジェクト: alexmixaylov/real
 /**
  * Builds attributes for the html tag with the video
  * @param $params
  * @return string
  */
 public function buildVideoAttrs($params)
 {
     parent::buildVideoAttrs($params);
     $this->videoAttrs['frameborder'] = 0;
     $this->videoAttrs['allowfullscreen'] = 'true';
     return $this->element->_buildAttrs($this->videoAttrs);
 }
コード例 #2
0
 /**
  * Builds attributes for the html tag with the video
  * @param $params
  * @return string
  */
 public function buildVideoAttrs($params)
 {
     parent::buildVideoAttrs($params);
     $isAllowFullscreen = (int) $params->get('youtube_allow_fullscreen', 1);
     $this->videoAttrs['frameborder'] = 0;
     $this->videoAttrs['allowfullscreen'] = $isAllowFullscreen ? 1 : 0;
     return $this->element->_buildAttrs($this->videoAttrs);
 }
コード例 #3
0
 /**
  * Builds attributes for the html tag with the video
  * @param $params
  * @return string
  */
 public function buildVideoAttrs($params)
 {
     parent::buildVideoAttrs($params);
     return false;
 }
コード例 #4
0
ファイル: jbprovider.ok.php プロジェクト: alexmixaylov/real
 /**
  * Builds attributes for the html tag with the video
  * @param $params
  * @return string
  */
 public function buildVideoAttrs($params)
 {
     parent::buildVideoAttrs($params);
     $this->videoAttrs['frameborder'] = 0;
     return $this->element->_buildAttrs($this->videoAttrs);
 }