public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['metaTags'] = $this->_getMetaTags();
     $ret['canonicalUrl'] = $this->getData()->getAbsoluteUrl();
     return $ret;
 }
 public function getTemplateVars()
 {
     $return = parent::getTemplateVars();
     /*
     $fileRow = $this->_getFileRow();
     $parentRow = $fileRow->getParentRow('File');
     if ($this->_getSetting('showFilesize') && $parentRow) {
         $return['filesize'] = $parentRow->getFileSize();
     } else {
         $return['filesize'] = null;
     }
     */
     $return['infotext'] = $this->_getRow()->infotext;
     /*
     if ($return['infotext'] == '' && $parentRow)
         $return['infotext'] = $parentRow->filename;
     
     if ($this->_getSetting('showIcon')) {
         $return['icon'] = $this->getIcon();
     } else {
         $return['icon'] = null;
     }
     */
     return $return;
 }
 public function hasContent()
 {
     if (!$this->_getRow()->text) {
         return false;
     }
     return parent::hasContent();
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $row = $this->_getRow();
     $ret['title'] = $row->title;
     $ret['teaser'] = $row->teaser;
     return $ret;
 }
 public function hasContent()
 {
     $ret = parent::hasContent();
     if ($ret) {
         return $ret;
     }
     return $this->getData()->getChildComponent('-image')->hasContent();
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $row = $this->_getRow();
     $ret['title'] = $row->title;
     $ret['teaser'] = $row->teaser;
     return $ret;
 }
 public static function getSettings($masterComponentClass = null)
 {
     $ret = parent::getSettings($masterComponentClass);
     $ret['hasModifyItemData'] = true;
     $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';
     $ret['dataClass'] = 'Kwc_Directories_Item_Detail_Data';
     return $ret;
 }
 public static function getSettings($masterComponentClass)
 {
     $ret = parent::getSettings($masterComponentClass);
     //form nicht übersetzen, sondern die exakt gleiche wie im master verwenden
     $g = Kwc_Abstract::getSetting($masterComponentClass, 'generators');
     $ret['generators']['child']['component']['form'] = $g['child']['component']['form'];
     $ret['generators']['child']['masterComponentsMap'][$g['child']['component']['form']] = $g['child']['component']['form'];
     $ret['ownModel'] = 'Kwf_Component_FieldModel';
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $data = $this->getData();
     $ret['data'] = $data;
     $ret['chained'] = $data->chained;
     $ret['template'] = self::getTemplateFile($data->chained->componentClass);
     $ret['form'] = $this->getData()->getChildComponent('-form');
     return $ret;
 }
 public static function getSettings($masterComponentClass)
 {
     $ret = parent::getSettings($masterComponentClass);
     //child generator 1:1 übernehmen um die gleiche view zu haben (keine uebersetzte)
     $masterGen = Kwc_Abstract::getSetting($masterComponentClass, 'generators');
     if (is_instance_of($masterGen['child']['component']['view'], 'Kwc_Directories_List_View_Component')) {
         $ret['generators']['child'] = $masterGen['child'];
     }
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     if ($ret['register']) {
         $ret['register'] = self::getChainedByMaster($ret['register'], $this->getData());
     }
     if ($ret['lostPassword']) {
         $ret['lostPassword'] = self::getChainedByMaster($ret['lostPassword'], $this->getData());
     }
     return $ret;
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     if ($ret['register']) {
         $ret['register'] = self::getChainedByMaster($ret['register'], $this->getData());
     }
     if ($ret['lostPassword']) {
         $ret['lostPassword'] = self::getChainedByMaster($ret['lostPassword'], $this->getData());
     }
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $addCmp = Kwc_Shop_AddToCartAbstract_OrderProductData::getAddComponentByDbId($this->getData()->chained->row->add_component_id, $this->getData());
     if ($addCmp) {
         $ret['product'] = $addCmp->getComponent()->getProduct();
         $ret['row'] = $this->getData()->chained->row;
         $ret['price'] = $addCmp->getComponent()->getPrice($ret['row']);
         $ret['text'] = $addCmp->getComponent()->getProductText($ret['row']);
     }
     return $ret;
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['home'] = $this->getData()->getSubroot()->getChildPage(array('home' => true), array());
     return $ret;
 }
 public static function getSettings($masterComponentClass)
 {
     $ret = parent::getSettings($masterComponentClass);
     $ret['flags']['hasAnchors'] = true;
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['readMoreLinktext'] = $this->getRow()->link_text;
     return $ret;
 }
Exemple #18
0
 public function getExportData()
 {
     if ($this->getRow()->own_image) {
         return $this->getData()->getChildComponent('-image')->getComponent()->getExportData();
     }
     $ret = parent::getExportData();
     $ret['imageUrl'] = $this->getImageUrl();
     return $ret;
 }
Exemple #19
0
 public function getExportData()
 {
     $ret = parent::getExportData();
     $ret['content'] = $this->getRow()->content;
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $return = parent::getTemplateVars($renderer);
     $return['infotext'] = $this->_getRow()->infotext;
     return $return;
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['home'] = $this->getData()->getSubroot()->getChildPage(array('home' => true), array());
     return $ret;
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['readMoreLinktext'] = $this->getRow()->link_text;
     return $ret;
 }