protected function _getChildContentWidth(Kwf_Component_Data $child) { if ($child->id == 'large') { return Kwc_Abstract_Composite_Component::getContentWidth(); } return parent::_getChildContentWidth($child); }
public function getContentWidth() { $dimensions = $this->getVideoDimensions(); if ($dimensions['width'] == '100%') { return parent::getContentWidth(); } return $dimensions['width']; }
/** * This function is needed because getContentWidth returns the width of uploaded * image. */ public function getMaxContentWidth() { return parent::getContentWidth(); }