예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        RegisterJavaScript();

        uxNewsMenu.Visible            = DataAccessContext.Configurations.GetBoolValue("NewsModuleDisplay");
        uxBlogMenu.Visible            = DataAccessContext.Configurations.GetBoolValue("BlogEnabled");
        uxAffiliateMenu.Visible       = DataAccessContext.Configurations.GetBoolValue("AffiliateEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName));
        uxSitemapMenu.Visible         = DataAccessContext.Configurations.GetBoolValue("SiteMapEnabled");
        uxWishListMenu.Visible        = DataAccessContext.Configurations.GetBoolValue("WishListEnabled");
        uxGiftCertificateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled");
        uxRewardPointMenu.Visible     = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName));
        uxComparisonMenu.Visible      = DataAccessContext.Configurations.GetBoolValue("CompareListEnabled");
        uxRmaMenu.Visible             = DataAccessContext.Configurations.GetBoolValue("EnableRMA");
        uxSubscription.Visible        = KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName);

        uxAboutUsMenu.Visible = IsContentMenuEnable(GetLanguageText("AboutUs").Replace(" ", ""));
        uxFaqsMenu.Visible    = IsContentMenuEnable(GetLanguageText("Faqs").Replace(" ", ""));
        uxPolicyMenu.Visible  = IsContentMenuEnable(GetLanguageText("Policies").Replace(" ", ""));

        uxBlogShareLink.Visible  = DataAccessContext.Configurations.GetBoolValue("BlogEnabled");
        uxGoogleLink.NavigateUrl = "https://plus.google.com/share?url=" + UrlPath.StorefrontUrl;

        if (!String.IsNullOrEmpty(GetFanpageURL()))
        {
            uxFacebookLink.NavigateUrl = GetFanpageURL();
            uxFacebookLink.Visible     = true;
        }

        BlogCategory blogCategoryNews = DataAccessContext.BlogCategoryRepository.GetOne(StoreContext.Culture, _blogCategoryNewsID);

        uxNewsLink.NavigateUrl = UrlManager.GetBlogCategoryUrl(blogCategoryNews.UrlName);
    }
예제 #2
0
    private void GetCatagoryList()
    {
        string[] categoryIDList = uxCategoryIDsHidden.Value.Split(',');

        foreach (string id in categoryIDList)
        {
            BlogCategory blogCategory = DataAccessContext.BlogCategoryRepository.GetOne(StoreContext.Culture, id);
            HyperLink    categoryLink = new HyperLink();
            categoryLink.ID          = "uxCategoryLink" + blogCategory.BlogCategoryID;
            categoryLink.CssClass    = "BlogDetailsDefaultTagsLink";
            categoryLink.Text        = blogCategory.Name;
            categoryLink.NavigateUrl = UrlManager.GetBlogCategoryUrl(blogCategory.UrlName);
            uxCategoryLinkPanel.Controls.Add(categoryLink);

            if (categoryIDList[categoryIDList.Length - 1] != id)
            {
                Label uxSeparater = new Label();
                uxSeparater.ID   = "uxCategorySeparater" + blogCategory.BlogCategoryID;
                uxSeparater.Text = " , ";
                uxCategoryLinkPanel.Controls.Add(uxSeparater);
            }
        }
        uxCategoryListPanel.Visible = true;
    }
예제 #3
0
    private void SetCatagoryLink()
    {
        IList <string> categoryListID = CurrentBlog.BlogCategoryIDs;

        foreach (string id in categoryListID)
        {
            BlogCategory blogCategory = DataAccessContext.BlogCategoryRepository.GetOne(StoreContext.Culture, id);
            HyperLink    categoryLink = new HyperLink();
            categoryLink.ID          = "uxCategoryLink" + blogCategory.BlogCategoryID;
            categoryLink.CssClass    = "BlogDetailsDefaultTagsLink";
            categoryLink.Text        = blogCategory.Name;
            categoryLink.NavigateUrl = UrlManager.GetBlogCategoryUrl(blogCategory.UrlName);
            uxCategoryLinkPanel.Controls.Add(categoryLink);

            if (categoryListID[categoryListID.Count - 1] != id)
            {
                Label uxSeparater = new Label();
                uxSeparater.ID   = "uxSeparater";
                uxSeparater.Text = " , ";
                uxCategoryLinkPanel.Controls.Add(uxSeparater);
            }
        }
        uxCategoryPanel.Visible = true;
    }