예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AddPoweredBy();
            if (!Page.IsPostBack)
            {
                CheckAffiliate();
            }

            string defaulSEOTitle       = SettingManager.GetSettingValue("SEO.DefaultTitle");
            string defaulSEODescription = SettingManager.GetSettingValue("SEO.DefaultMetaDescription");
            string defaulSEOKeywords    = SettingManager.GetSettingValue("SEO.DefaultMetaKeywords");

            SEOHelper.RenderTitle(this.Page, defaulSEOTitle, false, false);
            SEOHelper.RenderMetaTag(this.Page, "description", defaulSEODescription, false);
            SEOHelper.RenderMetaTag(this.Page, "keywords", defaulSEOKeywords, false);

            if (SettingManager.GetSettingValueBoolean("Display.ShowNewsHeaderRssURL"))
            {
                SEOHelper.RenderHeaderRSSLink(this.Page, defaulSEOTitle + ": News", SEOHelper.GetNewsRssURL());
            }
            if (SettingManager.GetSettingValueBoolean("Display.ShowBlogHeaderRssURL"))
            {
                SEOHelper.RenderHeaderRSSLink(this.Page, defaulSEOTitle + ": Blog", SEOHelper.GetBlogRssURL());
            }
        }
예제 #2
0
 protected string GetNewsRSSUrl()
 {
     return(SEOHelper.GetNewsRssURL());
 }