[ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PORTAL, self::TITLE => V::get(Vars::$TITLE_PORTAL), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'ms\portal', ], eWidgetsList::PORTAL_TABLE => [ self::TYPE => eWidgetType::TABLE, self::ICON => eWidgetIcon::PORTAL, self::TITLE => V::get(Vars::$TITLE_PORTAL), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'ms\portal', ], eWidgetsList::PORTAL_ICON_ADD => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PORTAL, self::TITLE => V::get(Vars::$TITLE_PORTAL_ADD), self::BG => eWidgetBackground::WHITE, self::ACTION => eWidgetAction::ADD, self::CONTROLLER => 'ms\portal', ], eWidgetsList::ITEM_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::ITEM, self::TITLE => V::get(Vars::$TITLE_ITEM), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\item', ], eWidgetsList::SHOP_TABLE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::SHOP, self::TITLE => V::get(Vars::$TITLE_SHOP), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\shop', ], eWidgetsList::ITEM_PROPERTY => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::ITEM_PROPERTY, self::TITLE => V::get(Vars::$TITLE_ITEM_PROPERTY), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\property', ], eWidgetsList::PAYMENT_TABLE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PAYMENT, self::TITLE => V::get(Vars::$TITLE_PAYMENT_TABLE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\payment', ], eWidgetsList::ORDER_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::ORDER, self::TITLE => V::get(Vars::$TITLE_ORDER_TABLE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\order', ], eWidgetsList::ORDER_TABLE => [ self::TYPE => eWidgetType::TABLE, self::ICON => eWidgetIcon::ORDER, self::TITLE => V::get(Vars::$TITLE_ORDER_TABLE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\order', ], eWidgetsList::SHOP_CATEGORY_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::CATEGORY, self::TITLE => V::get(Vars::$TITLE_SHOP_CATEGORY_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'shop\category', ], eWidgetsList::MENU_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::MENU, self::TITLE => V::get(Vars::$MENU_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\menu', ], eWidgetsList::BLOG_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::BLOG, self::TITLE => V::get(Vars::$BLOG_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'blog\blog', ], eWidgetsList::GALLERY_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::GALLERY, self::TITLE => V::get(Vars::$GALLERY_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\gallery', ], eWidgetsList::KBASE_ICON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::KBASE, self::TITLE => V::get(Vars::$KBASE_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'kbase\kbase', ], eWidgetsList::CLIENT => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::CLIENT, self::TITLE => V::get(Vars::$CLIENT_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\client', ], eWidgetsList::PROJECT => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PROJECT, self::TITLE => V::get(Vars::$PROJECT_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'pm\project', ], eWidgetsList::PIPELINE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PIPELINE, self::TITLE => V::get(Vars::$PIPELINE_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'pm\pipeline', ], eWidgetsList::COMPANY => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::COMPANY, self::TITLE => V::get(Vars::$COMPANY_ICON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'pm\company', ], eWidgetsList::FAQ => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::FAQ, self::TITLE => V::get(Vars::$COMPANY_FAQ), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\faq', ], eWidgetsList::PAGE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::PAGE, self::TITLE => V::get(Vars::$PAGE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'common\page', ], eWidgetsList::RESOURCE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::RESOURCE, self::TITLE => V::get(Vars::$RESOURCE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'pm\resource', ], eWidgetsList::RESOURCE_GROUP => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::RESOURCE_GROUP, self::TITLE => V::get(Vars::$RESOURCE_GROUP), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'pm\resource\group', ], ]; // Тут получаем список частных покупок $personal = self::getPersonalArray(); $res += $personal; return self::$array = $res; } } static function getPersonalArray(){ $res = []; $ME_ID = 1; $KADIGARDEN_ID = 2; $FIXGARDEN_ID = 3; $PAPOROTNIK_ID = 4; $INSTAPLANNER_ID = 5; if(in_array(UID,[$ME_ID,$KADIGARDEN_ID])) { $res += [ eWidgetsList::KADIGARDEN_STAR => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::STAR, self::TITLE => V::get(Vars::$KADIGARDEN_STAR), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'themes\kadigarden\star', ], eWidgetsList::KADIGARDEN_COURSE => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::MASTERCLASS, self::TITLE => V::get(Vars::$KADIGARDEN_COURSE), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'themes\kadigarden\course', ], ]; } if(in_array(UID,[$ME_ID])) { $res += [ eWidgetsList::ACADEMY => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::ACADEMY, self::TITLE => V::get(Vars::$ACADEMY), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'academy\academy', ], ]; } if(in_array(UID,[$ME_ID,$INSTAPLANNER_ID])) { $res += [ eWidgetsList::INSTAPLANNER_LESSON => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::MASTERCLASS, self::TITLE => V::get(Vars::$INSTAPLANNER_LESSON), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'themes\instaplanner\lesson\category', ], eWidgetsList::INSTAPLANNER_INSPIRATION => [ self::TYPE => eWidgetType::ICON, self::ICON => eWidgetIcon::INSPIRATION, self::TITLE => V::get(Vars::$INSTAPLANNER_INSPIRATION), self::BG => eWidgetBackground::WHITE, self::CONTROLLER => 'themes\instaplanner\inspiration', ], ]; } return $res; } } eWidget::initArray();