//-------------------------------------------------------------------------------- #endregion #region --------------------------InisializeItemModulesMetaTags---------------------------- //---------------------------------------------------------------------------- //InisializeItemModulesMetaTags //---------------------------------------------------------------------------- public static void InisializeItemModulesMetaTags(ItemsModulesOptions currentModule) { DCMetaBuilder metaBuilder = DCMetaBuilder.Instance; string moduleTitle = currentModule.GetModuleTitle(); metaBuilder.Title = moduleTitle; metaBuilder.Section = currentModule.GetModuleTitle(); metaBuilder.Keywords = currentModule.ModuleMetaKeyWords; metaBuilder.Description = currentModule.ModuleMetaDescription; metaBuilder.GlobalLastModification = SiteSettings.Site_LastModification; }
public void BuilDetailsPathesLinks(ItemsModulesOptions currentModule, FrontItemsModel currentItem) { string homeText = (string)HttpContext.GetGlobalResourceObject("Modules", "_Home"); string moduleTitle = currentModule.GetModuleTitle(); this.AddLink(homeText, "/"); this.AddLink(moduleTitle, string.Format("/{0}/all", currentModule.Identifire)); this.AddLastTitle(currentItem.Title); this.PageTitle = currentItem.Title; this.TopHeader = moduleTitle; }
public void BuilDefaultPathesLinks() { ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpStore.Items["CurrentItemsModule"]; string homeText = (string)HttpContext.GetGlobalResourceObject("Modules", "_Home"); string moduleTitle = currentModule.GetModuleTitle(); this.AddLink(homeText, "/Default.aspx"); this.AddLastTitle(moduleTitle); this.PageTitle = moduleTitle; this.TopHeader = moduleTitle; }
//---------------------------------------------------------- #region ----------------BuildItemsModuleLinks--------------- //---------------------------------------------------------- //BuildItemsModuleLinks //---------------------------------------------------------- public string BuildItemsModuleLinks(int moduleType) { ItemsModulesOptions itemsModule = ItemsModulesOptions.GetType(moduleType); string moduleTitleText = itemsModule.GetModuleTitle(); string categoriesAddText = Resources.Modules.Module_CategoriesAdd; string categoriesDefaultText = Resources.Modules.Module_CategoriesDefault; string itemsAddText = Resources.Modules.Module_ItemsAdd; string itemsDefaultText = Resources.Modules.Module_ItemsDefault; string itemsPhotosAddText = Resources.Modules.Module_ItemsPhotosAdd; //string Module_NewMessage = DynamicResource.GetText(itemsModule, "Module_NewMessage"); //string Module_AllMessage = DynamicResource.GetText(itemsModule, "Module_AllMessage"); string commentsInactiveText = Resources.Modules.Module_CommentsInactive; string newMessageText = Resources.Modules.Module_NewMessage; string allMessageText = Resources.Modules.Module_AllMessage; if (itemsModule.HasSpecialAdminText) { //moduleTitleText = itemsModule.GetModuleTitle(); categoriesAddText = DynamicResource.GetText(itemsModule, "Module_CategoriesAdd"); categoriesDefaultText = DynamicResource.GetText(itemsModule, "Module_CategoriesDefault"); itemsAddText = DynamicResource.GetText(itemsModule, "Module_ItemsAdd"); itemsDefaultText = DynamicResource.GetText(itemsModule, "Module_ItemsDefault"); itemsPhotosAddText = DynamicResource.GetText(itemsModule, "Module_ItemsPhotosAdd"); commentsInactiveText = DynamicResource.GetText(itemsModule, "Module_CommentsInactive"); newMessageText = DynamicResource.GetText(itemsModule, "Module_NewMessage"); allMessageText = DynamicResource.GetText(itemsModule, "Module_AllMessage"); } string links = ""; string folder = itemsModule.Identifire.ToString(); if (ZecurityManager.CheckFolderPermission("/AdminCP/Items/" + folder + "/")) { links += "<li " + AdditionalLinkClassIfActive("/AdminCP/Items/" + folder + "/") + "><a href=\"#\"><i class=\"icon-stack2\"></i><span>" + itemsModule.GetModuleTitle() + "</span></a>"; links += "<ul>"; if (itemsModule.CategoryLevel != 0 && itemsModule.DisplayCategoriesInAdminMenue) { links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Cats/Add.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Cats/Add.aspx\">" + categoriesAddText + "</a></li>"; links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Cats/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Cats/default.aspx\">" + categoriesDefaultText + "</a></li>"; } links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Add.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Add.aspx\">" + itemsAddText + "</a></li>"; links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/default.aspx\">" + itemsDefaultText + "</a></li>"; if (itemsModule.HasMultiPhotos) { links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/AddPhoto.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/AddPhoto.aspx\">" + itemsPhotosAddText + "</a></li>"; } if (itemsModule.MessagesModuleID > 0) { links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Messages/New.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Messages/New.aspx\">" + newMessageText + "</a></li>"; links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Messages/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Messages/default.aspx\">" + DynamicResource.GetText(itemsModule, "Module_AllMessage") + "</a></li>"; } if (itemsModule.HasComments) { int inactiveCommentsCount = ItemsCommentsFactory.GetCount(-1, Languages.Unknowen, itemsModule.ModuleTypeID, true, false, false, SitesHandler.GetOwnerIDAsGuid()); links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Comments/InActive.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Comments/InActive.aspx\">" + commentsInactiveText + " -" + inactiveCommentsCount + "</a></li>"; links += " "; } links += "</ul>"; } return(links); }