예제 #1
0
 /**
  * Widget initialization
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     if (1 < count($this->getParam(self::PARAM_PRODUCT)->getEditableAttributes())) {
         $this->tabs['properties'] = array('title' => 'Sort settings', 'template' => 'product/attributes/properties.tpl');
     }
 }
예제 #2
0
 /**
  * init
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     if (\XLite\Controller\Admin\Profile::getInstance()->isRegisterMode()) {
         foreach ($this->tabs as $key => $tab) {
             if ('profile' != $key) {
                 unset($this->tabs[$key]);
             }
         }
     }
 }
예제 #3
0
 /**
  * init
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     if (in_array(\XLite\Core\Request::getInstance()->target, static::getAllowedTargets()) && \XLite\Core\Request::getInstance()->id) {
         $this->tabs['categories']['title'] = static::t($this->tabs['categories']['title']) . ' "' . $this->getCategoryName() . '"';
     }
     if (!\XLite\Core\Request::getInstance()->id && !\XLite\Core\Request::getInstance()->parent) {
         // Front page
         $this->tabs['categories']['title'] = 'Main categories';
         unset($this->tabs['category']);
         unset($this->tabs['category_products']);
     } elseif (!\XLite\Core\Request::getInstance()->id) {
         // New category
         unset($this->tabs['categories']);
         unset($this->tabs['category_products']);
     }
 }
예제 #4
0
 /**
  * Init
  *
  * @return void
  */
 public function init()
 {
     parent::init();
 }