コード例 #1
0
        public bool SaveNavigationImagesSettings(NavigationImagesSettings navigationImagesSettings)
        {
            FlatFieldsProvider.Instance.SaveFlatField("nav_image", navigationImagesSettings.ImageUrl);
            FlatFieldsProvider.Instance.SaveFlatField("nav_image_width", navigationImagesSettings.ImageWidth);
            FlatFieldsProvider.Instance.SaveFlatField("nav_image_height", navigationImagesSettings.ImageHeight);

            FlatFieldsProvider.Instance.SaveFlatField("nav_image_hover", navigationImagesSettings.ImageHoverUrl);
            FlatFieldsProvider.Instance.SaveFlatField("nav_image_hover_width", navigationImagesSettings.ImageHoverWidth);
            FlatFieldsProvider.Instance.SaveFlatField("nav_image_hover_height", navigationImagesSettings.ImageHoverHeight);

            return true;
        }
コード例 #2
0
        public NavigationImagesSettings LoadNavigationImagesSettings()
        {
            var logoAndSloganSettings = new NavigationImagesSettings();
            logoAndSloganSettings.ImageUrl = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image");
            logoAndSloganSettings.ImageWidth = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image_width");
            logoAndSloganSettings.ImageHeight = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image_height");

            logoAndSloganSettings.ImageHoverUrl = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image_hover");
            logoAndSloganSettings.ImageHoverWidth = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image_hover_width");
            logoAndSloganSettings.ImageHoverHeight = FlatFieldsProvider.Instance.GetFlatFieldValue("nav_image_hover_height");
            return logoAndSloganSettings;
        }