/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_LIST]->setValue('users'); $this->widgetParams[self::PARAM_TITLE]->setValue(static::t('Users')); $this->widgetParams[self::PARAM_TARGET]->setValue('profile_list'); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_LIST]->setValue('catalog'); $this->widgetParams[self::PARAM_TITLE]->setValue(static::t('Catalog')); $this->widgetParams[self::PARAM_TARGET]->setValue('product_list'); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_TITLE]->setValue('<img src="images/spacer.gif" alt="" width="17" height="15" />'); $this->widgetParams[self::PARAM_TARGET]->setValue(\XLite::TARGET_DEFAULT); $this->widgetParams[self::PARAM_CLASS]->setValue('home'); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_LIST]->setValue('sales'); $this->widgetParams[self::PARAM_TITLE]->setValue(static::t('Sales')); $this->widgetParams[self::PARAM_TARGET]->setValue('recent_orders'); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[static::PARAM_LIST]->setValue('content'); $this->widgetParams[static::PARAM_CLASS]->setValue('hl'); $this->widgetParams[static::PARAM_TITLE]->setValue(static::t('Content')); $this->widgetParams[static::PARAM_TARGET]->setValue(\XLite\Core\Auth::getInstance()->isPermissionAllowed('manage custom pages') ? 'pages' : 'menus'); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[static::PARAM_TITLE]->setValue(static::t('Menus')); $this->widgetParams[static::PARAM_TARGET]->setValue('menus'); }
/** * Check ACL permissions * * @return boolean */ protected function checkACL() { return parent::checkACL() || \XLite\Core\Auth::getInstance()->isPermissionAllowed('manage catalog'); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Controller\Admin\Promotions::getPagesStatic(); }