Exemplo n.º 1
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['ownModel'] = 'Kwc_Abstract_Image_Model';
     $ret['dimensions'] = array('default' => array('width' => 300, 'height' => 200, 'cover' => false), 'fullWidth' => array('text' => trlKwfStatic('full width'), 'width' => Kwf_Form_Field_Image_UploadField::CONTENT_WIDTH, 'height' => 0, 'cover' => true), 'original' => array('text' => trlKwfStatic('original')), 'custom' => array('text' => trlKwfStatic('user-defined'), 'width' => Kwf_Form_Field_Image_UploadField::USER_SELECT, 'height' => Kwf_Form_Field_Image_UploadField::USER_SELECT, 'cover' => true));
     $ret['imageLabel'] = trlKwfStatic('Image');
     $ret['maxResolution'] = null;
     $ret['pdfMaxWidth'] = 0;
     $ret['pdfMaxDpi'] = 150;
     $ret['editFilename'] = true;
     $ret['imageCaption'] = false;
     $ret['altText'] = true;
     $ret['titleText'] = true;
     $ret['allowBlank'] = true;
     $ret['showHelpText'] = false;
     $ret['useDataUrl'] = false;
     $ret['lazyLoadOutOfViewport'] = true;
     // Set to false to load image also when not in view
     $ret['loadedAnimationClass'] = 'webImageLoadedAnimation';
     $ret['imgCssClass'] = '';
     $ret['flags']['hasFulltext'] = true;
     $ret['assetsAdmin']['dep'][] = 'KwfImageUpload';
     $ret['throwHasContentChangedOnRowColumnsUpdate'] = 'kwf_upload_id';
     $ret['outputImgTag'] = true;
     $ret['defineWidth'] = false;
     $ret['maxWidthImageWidth'] = true;
     $ret['inlineTags'] = false;
     $ret['imageCompressionQuality'] = 80;
     return $ret;
 }
Exemplo n.º 2
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['placeholder']['success'] = trlKwfStatic('Comment was successfully deleted.');
     $ret['flags']['processInput'] = true;
     return $ret;
 }
Exemplo n.º 3
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['dimensions'] = array('default' => array('text' => trlKwfStatic('default'), 'width' => 16, 'height' => 16, 'cover' => false));
     $ret['componentName'] = trlcKwfStatic('Flag of a Country', 'Flag');
     return $ret;
 }
Exemplo n.º 4
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['componentName'] = trlKwfStatic('Form.Select');
     $ret['ownModel'] = 'Kwc_Form_Field_Select_Model';
     return $ret;
 }
Exemplo n.º 5
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['componentName'] = trlKwfStatic('Dogears');
     $ret['generators']['child']['component'] = 'Kwc_Box_DogearRandom_Dogear_Component';
     return $ret;
 }
Exemplo n.º 6
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['viewCache'] = false;
     $ret['componentName'] = trlKwfStatic('Order Products');
     return $ret;
 }
Exemplo n.º 7
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['orderProductData'] = 'Kwc_Shop_AddToCart_OrderProductData';
     $ret['productTypeText'] = trlKwfStatic('Product');
     return $ret;
 }
Exemplo n.º 8
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['cssClass'] = 'kwfup-webStandard kwfup-webListNone';
     $ret['placeholder']['headline'] = trlKwfStatic('More about this Topic');
     return $ret;
 }
Exemplo n.º 9
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['ownModel'] = 'Kwf_Component_FieldModel';
     $ret['componentName'] = trlKwfStatic('Rrd Graph');
     return $ret;
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['componentName'] = trlKwfStatic('Related Products');
     $ret['ownModel'] = 'Kwf_Component_FieldModel';
     return $ret;
 }
Exemplo n.º 12
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setEditable(false);
     $this->setTriggerAction('all');
     $this->setEmptyMessage(trlKwfStatic('Please select a value'));
 }
Exemplo n.º 13
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['placeholder']['success'] = trlKwfStatic('The entry in your guestbook has been acitvated.');
     $ret['placeholder']['toGuestbook'] = trlKwfStatic('Use this link to get to your guestbook:');
     return $ret;
 }
Exemplo n.º 14
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['child']['component']['form'] = 'Kwc_Shop_Cart_Form_Component';
     $ret['generators']['child']['component']['view'] = 'Kwc_Shop_Cart_View_Component';
     $ret['generators']['detail']['class'] = 'Kwc_Shop_Cart_Generator';
     $ret['generators']['detail']['component'] = 'Kwc_Shop_Cart_Detail_Component';
     $ret['childModel'] = 'Kwc_Shop_Cart_OrderProducts';
     $ret['generators']['checkout'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_Shop_Cart_Checkout_Component', 'name' => trlKwfStatic('Checkout'));
     $ret['viewCache'] = false;
     $ret['rootElementClass'] = 'kwfUp-webStandard kwfUp-webForm';
     $ret['componentName'] = trlKwfStatic('Shop.Cart');
     $ret['componentNameShort'] = trlKwfStatic('Cart');
     $ret['componentCategory'] = 'admin';
     $ret['placeholder']['backToShop'] = trlKwfStatic('Back to shop');
     $ret['placeholder']['checkout'] = trlKwfStatic('To checkout');
     $ret['placeholder']['headline'] = trlKwfStatic('Your cart contains');
     $ret['assets']['files'][] = 'kwf/Kwc/Shop/Cart/Keepalive.js';
     $ret['assets']['dep'][] = 'ExtConnection';
     $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';
     $ret['contentSender'] = 'Kwc_Shop_Cart_ContentSender';
     $ret['flags']['processInput'] = true;
     $ret['vatRate'] = 0.2;
     $ret['vatRateShipping'] = 0.2;
     return $ret;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 16
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['placeholder']['submitButton'] = trlKwfStatic('Set new Password');
     $ret['generators']['child']['component']['success'] = 'Kwc_User_LostPassword_SetPassword_Form_Success_Component';
     return $ret;
 }
Exemplo n.º 17
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['componentName'] = trlKwfStatic('Favicon');
     $ret['dimensions'] = array(array('width' => 0, 'height' => 0, 'cover' => true));
     return $ret;
 }
Exemplo n.º 18
0
 public static function getSettings($param = null)
 {
     $ret = array_merge(parent::getSettings($param), array('componentName' => trlKwfStatic('Line')));
     $ret['componentCategory'] = 'content';
     $ret['componentPriority'] = 65;
     return $ret;
 }
Exemplo n.º 19
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['dataClass'] = 'Kwc_Basic_LinkTag_ParentPage_Data';
     $ret['componentName'] = trlKwfStatic('Link.to parent page');
     return $ret;
 }
Exemplo n.º 20
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['placeholder']['subject'] = trlKwfStatic('Temporary access');
     $ret['generators']['child']['component']['success'] = 'Kwc_Form_Success_Component';
     return $ret;
 }
Exemplo n.º 21
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['rootElementClass'] = 'kwfUp-webStandard';
     $ret['placeholder']['linkText'] = trlKwfStatic('Home');
     return $ret;
 }
 public function alterBackendOrderForm(Kwc_Shop_AddToCartAbstract_FrontendForm $form)
 {
     $component = null;
     foreach (Kwc_Abstract::getComponentClasses() as $c) {
         if (is_instance_of($c, 'Kwc_Shop_Products_Directory_Component')) {
             $detailClasses = Kwc_Abstract::getChildComponentClasses($c, 'detail');
             foreach ($detailClasses as $key => $class) {
                 if (Kwc_Abstract::getChildComponentClass($class, 'addToCart') == $this->_class) {
                     $component = $key;
                 }
             }
         }
     }
     $m = Kwf_Model_Abstract::getInstance('Kwc_Shop_Products');
     $s = $m->select();
     $s->whereEquals('visible', 1);
     if ($component) {
         $s->whereEquals('component', $component);
     }
     $s->order('pos');
     $data = array();
     foreach ($m->getRows($s) as $product) {
         $data[] = array($product->current_price_id, $product->__toString() . ' (' . $product->current_price . ' €)');
     }
     $form->prepend(new Kwf_Form_Field_Select('shop_product_price_id', trlKwfStatic('Product')))->setValues($data)->setAllowBlank(false);
 }
Exemplo n.º 23
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['child']['component']['success'] = 'Kwc_Form_Success_Component';
     $ret['generators']['child']['component']['header'] = null;
     $ret['generators']['child']['component']['footer'] = null;
     $ret['componentName'] = trlKwfStatic('Form');
     $ret['placeholder']['submitButton'] = trlKwfStatic('Submit');
     $ret['placeholder']['error'] = trlKwfStatic('An error has occurred');
     $ret['decorator'] = 'Kwc_Form_Decorator_Label';
     $ret['viewCache'] = true;
     $ret['method'] = 'post';
     $plugins = array('useViewCache' => 'Kwc_Form_UseViewCachePlugin');
     if (isset($ret['plugins'])) {
         $ret['plugins'] = array_merge($ret['plugins'], $plugins);
     } else {
         $ret['plugins'] = $plugins;
     }
     $ret['assetsDefer']['dep'][] = 'KwcFrontendForm';
     $ret['useAjaxRequest'] = true;
     $ret['hideFormOnSuccess'] = true;
     // works only when useAjaxRequest==true
     $ret['flags']['processInput'] = true;
     $ret['flags']['requestHttps'] = true;
     $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';
     $ret['buttonClass'] = 'kwfButtonFlat';
     //um standard styles aus dem Kwf zu umgehen
     $ret['errorStyle'] = null;
     //default from config.ini: kwc.form.errorStyle
     $ret['cssClass'] = 'default';
     return $ret;
 }
Exemplo n.º 24
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['componentName'] = trlKwfStatic('Form.Textfield');
     $ret['componentIcon'] = 'textfield';
     return $ret;
 }
Exemplo n.º 25
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['assetsAdmin']['dep'][] = 'ExtGridCheckboxSelectionModel';
     $ret['assetsAdmin']['files'][] = 'kwf/Kwc/Basic/Table/TableGridPanel.js';
     $ret['componentName'] = trlKwfStatic('Table');
     $ret['componentIcon'] = 'table';
     $ret['componentCategory'] = 'content';
     $ret['componentPriority'] = 35;
     $ret['ownModel'] = 'Kwc_Basic_Table_Model';
     $ret['childModel'] = 'Kwc_Basic_Table_ModelData';
     $ret['maxColumns'] = 26;
     // row styles: the key is put in the proper <tr> tag
     // if no tag is set in the sub-array, td is used
     // simple string example: 'bold' => trlKwf('Bold')
     // complex arrayexample: 'headline' => array('name' => trlKwf('Headline'), 'tag'  => 'th')
     $ret['rowStyles'] = array('headline' => array('name' => trlKwfStatic('Headline'), 'tag' => 'th'));
     // tableStyles: the key is the table-css-class, the value the name for
     // settings page in backend
     // e.g.: 'green' => trlKwf('Green')
     $ret['tableStyles'] = array('standard' => trlKwfStatic('Standard'));
     $ret['rootElementClass'] = 'kwfUp-webStandard';
     $ret['extConfig'] = 'Kwc_Basic_Table_ExtConfig';
     return $ret;
 }
Exemplo n.º 26
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['componentName'] = trlKwfStatic('Form.Multi Checkbox');
     $ret['ownModel'] = 'Kwc_Form_Field_MultiCheckbox_Model';
     return $ret;
 }
Exemplo n.º 27
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['viewCache'] = false;
     $ret['dimension'] = array('text' => trlKwfStatic('default'), 'width' => 230, 'height' => 0, 'cover' => true);
     return $ret;
 }
Exemplo n.º 28
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['cssClass'] = 'kwfup-webStandard';
     $ret['placeholder']['total'] = trlKwfStatic('total') . ': ';
     return $ret;
 }
Exemplo n.º 29
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['ownModel'] = 'Kwc_ImageResponsive_CreatesImgElement_Components_Image_TestModel';
     $ret['dimensions'] = array('default' => array('width' => 300, 'height' => 200, 'cover' => true), 'fullWidth' => array('text' => trlKwfStatic('full width'), 'width' => self::CONTENT_WIDTH, 'height' => 0, 'cover' => true), 'original' => array('text' => trlKwfStatic('original')), 'custom' => array('text' => trlKwfStatic('user-defined'), 'width' => self::USER_SELECT, 'height' => self::USER_SELECT, 'cover' => true));
     return $ret;
 }
Exemplo n.º 30
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['componentName'] = trlKwfStatic('Articles');
     $ret['categoryComponentClass'] = 'Kwc_Articles_CategorySimple_Component';
     return $ret;
 }