protected void Page_Load(object sender, EventArgs e) { _topNavigatorPlaceHolder.Controls.Add(TopNavigationPanel); var bottomNavigator = new BottomNavigator(); _bottomNavigatorPlaceHolder.Controls.Add(bottomNavigator); }
protected void InitControls() { var searchHandler = (BaseSearchHandlerEx) (SearchHandlerManager.GetHandlersExForProduct(ProductEntryPoint.ID)).Find(sh => sh is SearchHandler); if (searchHandler != null) { searchHandler.AbsoluteSearchURL = VirtualPathUtility.ToAbsolute(PathProvider.BaseVirtualPath + "/search.aspx"); } RenderHeader(); var bottomNavigator = new BottomNavigator(); _bottomNavigatorPlaceHolder.Controls.Add(bottomNavigator); }
protected void Page_Load(object sender, EventArgs e) { var topNavPanel = (TopNavigationPanel) LoadControl(TopNavigationPanel.Location); var dashboardItem = new NavigationItem() { Name = Resources.CommunityResource.Dashboard, URL = VirtualPathUtility.ToAbsolute("~/products/community/"), Selected = (this.Page is _Default) }; topNavPanel.NavigationItems.Add(dashboardItem); var employeesItem = new NavigationItem() { Name = CustomNamingPeople.Substitute<Resources.CommunityResource>("Employees"), Selected = UserOnlineManager.Instance.IsEmployeesPage() || UserOnlineManager.Instance.IsUserProfilePage(), URL = CommonLinkUtility.GetEmployees(CommunityProduct.ID) }; topNavPanel.NavigationItems.Add(employeesItem); var product = ProductManager.Instance[CommunityProduct.ID]; var currentModule = UserOnlineManager.Instance.GetCurrentModule(); foreach (var item in WebItemManager.Instance.GetSubItems(product.ID)) { var moduleItem = new NavigationItem { URL = VirtualPathUtility.ToAbsolute(item.StartURL), Name = item.Name, Description = item.Description, }; if (currentModule != null && currentModule.ID.Equals(item.ID)) moduleItem.Selected = true; topNavPanel.NavigationItems.Add(moduleItem); } _topNavigatorPlaceHolder.Controls.Add(topNavPanel); var bottomNavigator = new BottomNavigator(); _bottomNavigatorPlaceHolder.Controls.Add(bottomNavigator); var onlineUsersControl = (OnlineUsers) LoadControl(OnlineUsers.Location); onlineUsersControl.ProductId = CommunityProduct.ID; phOnlineUsers.Controls.Add(onlineUsersControl); }
protected void InitControls() { var searchHandler = (BaseSearchHandlerEx) (SearchHandlerManager.GetHandlersExForProduct(ProductEntryPoint.ID)).Find(sh => sh is SearchHandler); if (String.IsNullOrEmpty(Request[UrlConstant.ProjectID])) searchHandler.AbsoluteSearchURL = (VirtualPathUtility.ToAbsolute(PathProvider.BaseVirtualPath + "/search.aspx")); else searchHandler.AbsoluteSearchURL = (VirtualPathUtility.ToAbsolute(PathProvider.BaseVirtualPath + "/search.aspx") + "?prjID=" + Request[UrlConstant.ProjectID]); _aboutContainer.ImageURL = WebImageSupplier.GetAbsoluteWebPath("navigation.png"); _aboutContainer.Title = ProjectsCommonResource.About; _aboutContainer.BodyCSSClass = "studioSideBoxBodyAbout"; _aboutContainer.Visible = false; RenderHeader(); var bottomNavigator = new BottomNavigator(); _bottomNavigatorPlaceHolder.Controls.Add(bottomNavigator); var onlineUsersControl = (OnlineUsers) LoadControl(OnlineUsers.Location); onlineUsersControl.ProductId = ProductEntryPoint.ID; phOnlineUsers.Controls.Add(onlineUsersControl); if (Page.GetType() == typeof (Dashboard) && HaveProjects()) _commonContainer.Visible = false; //RSS //all interested projects // InterestedProjectsFeedControl.ContainerId = GetUserInterestedProjects(); if (RequestContext.IsInConcreteProject()) { //this project feed // ConcreteProjectFeedControl.Visible = true; ConcreteProjectFeedControl.ContainerId = RequestContext.GetCurrentProjectId().ToString(); ConcreteProjectFeedControl.Title = RequestContext.GetCurrentProject().HtmlTitle.HtmlEncode(); } }
protected void Page_Load(object sender, EventArgs e) { //верхняя навигационная панель var topNavPanel = (TopNavigationPanel)LoadControl(TopNavigationPanel.Location); topNavPanel.CustomTitle = Resources.TalkResource.ProductName; topNavPanel.CustomTitleURL = VirtualPathUtility.ToAbsolute("~/addons/talk/default.aspx"); topNavPanel.CustomTitleIconURL = WebImageSupplier.GetAbsoluteWebPath("product_logo.png", TalkAddon.AddonID); topNavPanel.DisableSearch = true; _topNavigatorPlaceHolder.Controls.Add(topNavPanel); //нижняя панель BottomNavigator bottomNavigator = new BottomNavigator(); _bottomNavigatorPlaceHolder.Controls.Add(bottomNavigator); Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "talk.overview", "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + WebSkin.GetUserSkin().GetAbsoluteWebPath("addons/talk/css/<theme_folder>/talk.overview.css") + "\" />", false); Title = HeaderStringHelper.GetPageTitle(Resources.TalkResource.ProductName, null, null); ((IStudioMaster)this.Master).DisabledSidePanel = true; cfg = new TalkConfiguration(); }