Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 /**
  * Builds attributes for the html tag with the video
  * @param $params
  * @return string
  */
 public function buildVideoAttrs($params)
 {
     parent::buildVideoAttrs($params);
     return false;
 }
Exemplo n.º 4
0
 /**
  * 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);
 }