Ejemplo n.º 1
0
        public SiteTopNavModel()
        {
            HomeURL                      = "/BGModern/home";             // certain owner types use a different URL for home
            CruisesURL                   = "/owner/cruises.aspx";        // if the NavigatorType is not an "owner, depending upon the TPExpired value, this URL will change
            TravelerPlusURL              = "/owner/vcTravelerPlus.aspx"; // certain owner types use a different URL for TP
            TravelerPlusGoesNowhere      = false;                        // default to false. only Pending owner types should do nothing when the top level TP menu is clicked
            ReservationTravelServicesURL = "/owner/TravelServices.aspx";
            CashSmartTravelServicesURL   = "/TravelerPlus/owner/TravelServices.aspx";


            SiteTopMenuURL = ConfigurationManager.AppSettings["bxgwebMenuPath"];

            UsingTheClubURL = ConfigurationManager.AppSettings["UsingTheClub_Owner"];
            if (UsingTheClubURL.IndexOf("~") == 0)
            {
                UsingTheClubURL = UsingTheClubURL.Substring(1);
            }
            ClubOverview = ConfigurationManager.AppSettings["ClubOverview"];
            if (ClubOverview.IndexOf("~") == 0)
            {
                ClubOverview = ClubOverview.Substring(1);
            }
            TutorialsAndWebinars = ConfigurationManager.AppSettings["TutorialsAndWebinarsUTC"];
            if (TutorialsAndWebinars.IndexOf("~") == 0)
            {
                TutorialsAndWebinars = TutorialsAndWebinars.Substring(1);
            }
            QuickStartGuide = ConfigurationManager.AppSettings["QuickStartGuide"];
            if (QuickStartGuide.IndexOf("~") == 0)
            {
                QuickStartGuide = QuickStartGuide.Substring(1);
            }
            HowPointsWork = ConfigurationManager.AppSettings["HowPointsWork"];
            if (HowPointsWork.IndexOf("~") == 0)
            {
                HowPointsWork = HowPointsWork.Substring(1);
            }
            pointsProtectionPlan = ConfigurationManager.AppSettings["PointsProtectionPlan"];
            if (pointsProtectionPlan.IndexOf("~") == 0)
            {
                pointsProtectionPlan = pointsProtectionPlan.Substring(1);
            }
            ReservationGuidelines = ConfigurationManager.AppSettings["ReservationGuidelines"];
            if (ReservationGuidelines.IndexOf("~") == 0)
            {
                ReservationGuidelines = ReservationGuidelines.Substring(1);
            }
            MakingExchanges = ConfigurationManager.AppSettings["MakingExchanges"];
            if (MakingExchanges.IndexOf("~") == 0)
            {
                MakingExchanges = MakingExchanges.Substring(1);
            }
            BluegreenPremier = ConfigurationManager.AppSettings["BluegreenPremier"];
            if (BluegreenPremier.IndexOf("~") == 0)
            {
                BluegreenPremier = BluegreenPremier.Substring(1);
            }
            BeforeYouGo = ConfigurationManager.AppSettings["BeforeYouGo"];
            if (BeforeYouGo.IndexOf("~") == 0)
            {
                BeforeYouGo = BeforeYouGo.Substring(1);
            }
            HelpFAQs = ConfigurationManager.AppSettings["HelpFaq"];
            if (HelpFAQs.IndexOf("~") == 0)
            {
                HelpFAQs = HelpFAQs.Substring(1);
            }
            ContactUs = ConfigurationManager.AppSettings["ContactUs"];
            if (ContactUs.IndexOf("~") == 0)
            {
                ContactUs = ContactUs.Substring(1);
            }
        }