public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Basic_Image_TestModel'; $ret['dimensions'] = array('original' => array('width' => 0, 'height' => 0), 'small' => array('width' => 100, 'height' => 100, 'cover' => true), 'medium' => array('width' => 200, 'height' => 200, 'cover' => true), 'large' => array('width' => 300, 'height' => 300, 'cover' => true), 'userWidth' => array('width' => Kwc_Abstract_Image_Component::USER_SELECT, 'height' => 300, 'cover' => true), 'userHeight' => array('width' => 300, 'height' => Kwc_Abstract_Image_Component::USER_SELECT, 'cover' => true), 'userSize' => array('width' => Kwc_Abstract_Image_Component::USER_SELECT, 'height' => Kwc_Abstract_Image_Component::USER_SELECT, 'cover' => true)); return $ret; }
protected function _getChildContentWidth(Kwf_Component_Data $child) { if ($child->id == 'large') { return Kwc_Abstract_Composite_Component::getContentWidth(); } return parent::_getChildContentWidth($child); }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Composite_Images_Image_TestModel'; $ret['dimensions'] = array(array('width' => 100, 'height' => 100, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['componentName'] = trlStatic('Logo'); $ret['dimensions'] = array('default' => array('text' => trlKwf('full width'), 'width' => 0, 'height' => 100, 'cover' => true)); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['componentName'] = trlKwfStatic('Carousel'); $ret['dimensions'] = array('fullWidth' => array('text' => trlKwfStatic('full width'), 'width' => self::CONTENT_WIDTH, 'height' => 337, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Basic_Image_DprImage_TestModel'; $ret['dimensions'] = array(array('width' => 32, 'height' => 32, 'cover' => false)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['dimensions'] = array(array('width' => 120, 'height' => 90, 'cover' => false)); $ret['defineWidth'] = true; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['dimensions'] = array('fullWidth' => array('text' => trlKwfStatic('full width'), 'width' => self::CONTENT_WIDTH, 'height' => 0, 'cover' => true)); $ret['ownModel'] = 'Kwc_Basic_Image_CacheFullWidth_Image_TestModel'; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Basic_Image_TestModel'; $ret['dimensions'] = array(array('width' => Kwc_Abstract_Image_Component::USER_SELECT, 'height' => Kwc_Abstract_Image_Component::USER_SELECT, 'cover' => true)); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['componentName'] = trlKwfStatic('Preview image'); $ret['dimensions'] = array('default' => array('width' => self::CONTENT_WIDTH, 'height' => 0, 'cover' => true)); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['generators']['child']['component']['large'] = 'Kwc_List_Switch_Preview_Large_Component'; $ret['dimensions'] = array('default' => array('width' => 100, 'height' => 75, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['dimensions'] = array('default' => array('text' => trlKwfStatic('full width'), 'width' => self::CONTENT_WIDTH, 'height' => 0, 'cover' => true), '16to9' => array('text' => trlKwfStatic('full width') . ' 16:9', 'width' => self::CONTENT_WIDTH, 'cover' => true, 'aspectRatio' => 9 / 16), '4to3' => array('text' => trlKwfStatic('full width') . ' 4:3', 'width' => self::CONTENT_WIDTH, 'cover' => true, 'aspectRatio' => 3 / 4)); $ret['imageCaption'] = true; return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['dimensions']['default'] = array('text' => trlKwfStatic('default'), 'width' => 100, 'height' => 75, 'cover' => false); $ret['defineWidth'] = true; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Trl_Image_Image_TestModel'; $ret['dimensions'] = array('default' => array('text' => trlKwfStatic('default'), 'width' => 120, 'height' => 120, 'cover' => false)); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['componentName'] = trlKwfStatic('Image big'); $ret['dimensions'] = array(array('width' => 640, 'height' => 640, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_ImageResponsive_InScrollDiv_Components_Image_TestModel'; $ret['dimensions'] = array('default' => array('width' => 300, 'height' => 200, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['dimensions'] = array('default' => array('text' => 'default', 'width' => 10, 'height' => 0, 'cover' => true)); $ret['ownModel'] = 'Kwc_Basic_Image_CacheParentImage_Image_TestModel'; $ret['generators']['parentImage'] = array('class' => 'Kwf_Component_Generator_Static', 'component' => 'Kwc_Basic_Image_CacheParentImage_ParentImage_Component'); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['imageLabel'] = trlKwfStatic('Thumbnail'); $ret['dimensions'] = array('default' => array('text' => trlKwfStatic('default'), 'width' => 150, 'height' => 0, 'cover' => true)); $ret['generators']['child']['component']['mailImage'] = 'Kwc_Articles_Detail_PreviewImage_Mail_Component'; return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['dimensions'] = array(array('width' => 120, 'height' => 90, 'cover' => false)); $ret['defineWidth'] = true; $ret['flags']['assetsPackage'] = 'Default'; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Basic_Image_TestModel'; $ret['generators']['child'] = array('class' => 'Kwf_Component_Generator_Static', 'component' => 'Kwc_Basic_Image_ParentImageComponent_Child_Component'); $ret['dimensions'] = array(array('width' => 100, 'height' => 100, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_Basic_Image_TestModel'; $ret['emptyImage'] = 'empty.png'; $ret['dimensions'] = array(array('width' => 16, 'height' => 16, 'cover' => true)); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['componentName'] = trlKwfStatic('Avatar'); $ret['dimensions'] = array(array('width' => 150, 'height' => 150, 'cover' => false)); $ret['generators']['small'] = array('class' => 'Kwf_Component_Generator_Static', 'component' => 'Kwc_User_Detail_GeneralCommunity_Avatar_Small_Component'); $ret['emptyImage'] = 'ghost.jpg'; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['componentName'] = trlKwfStatic('Image Enlarge'); $ret['componentIcon'] = 'imageEnlarge'; $ret['generators']['child']['component']['linkTag'] = 'Kwc_Basic_ImageEnlarge_EnlargeTag_Component'; $ret['generators']['child']['addUrlPart'] = false; $ret['assetsAdmin']['files'][] = 'kwf/Kwc/Basic/ImageEnlarge/ImageUploadField.js'; $ret['rootElementClass'] = Kwf_Config::getValue('kwc.imageEnlarge.kwcClass'); //default is showHoverIcon return $ret; }
public function testEmptyImagePlaceholder() { $c = $this->_root->getComponentById('1604'); $this->assertTrue($c->hasContent()); $url = $c->getComponent()->getImageUrl(); $this->assertNotNull($url); $assertion = array('width' => 16, 'height' => 16, 'rotate' => 0, 'crop' => array('width' => 16, 'height' => 16, 'x' => 0, 'y' => 0), 'keepOriginal' => true); $this->assertEquals($assertion, $c->getComponent()->getImageDimensions()); $o = Kwc_Basic_Image_Component::getMediaOutput($c->componentId, Kwf_Media::DONT_HASH_TYPE_PREFIX . '16-abc', $c->componentClass); $this->assertNotNull($o); $this->assertEquals('image/png', $o['mimeType']); $this->assertContains('/EmptyImageComponent/empty.png', $o['file']); }
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = parent::getTemplateVars($renderer); $ret['imageUrl'] = $this->getImageUrl(); return $ret; }
public function getTemplateVars() { $ret = parent::getTemplateVars(); $ret['imageUrl'] = $this->getImageUrl(); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['dimensions'] = array(0, 0); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['dimensions'] = array('fullWidth' => array('text' => trlKwf('full width'), 'width' => 2560, 'height' => 700, 'cover' => true)); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['ownModel'] = 'Kwc_ImageResponsive_CreatesImgElement_Components_Image_TestModel'; return $ret; }
public static function getSettings() { return array_merge(parent::getSettings(), array('allowBlank' => false, 'dimension' => array())); }