예제 #1
0
파일: Catalog.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #2
0
파일: Users.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #3
0
파일: Home.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #4
0
파일: Sales.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #5
0
파일: Content.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #6
0
파일: Menus.php 프로젝트: kingsj/core
 /**
  * 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');
 }
예제 #7
0
파일: Promotions.php 프로젝트: kingsj/core
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[static::PARAM_TITLE]->setValue('Promotions');
     $this->widgetParams[static::PARAM_TARGET]->setValue('promotions');
 }