public void InsertPageSnippet(string pageName, MySitesShort sda) { string desc = ""; desc = SunamoPageHelper.DescriptionOfSite((byte)sda); InsertPageSnippet(pageName, desc); }
protected void Page_Load(object sender, EventArgs e) { body.Attributes.Add("data-user-id", ((SunamoPage)Page).idLoginedUser.ToString()); if (txtSearchText.Value != "") { string red = "http://" + Request.Url.Host + "/Lyrics/Search/" + UH.UrlEncode(txtSearchText.Value.Replace(".", "-")).Replace('+', ' '); ((SunamoPage)Page).WriteToDebugWithTime(red); } footer.InnerHtml = SunamoPageHelper.GetFooterHtml(MySites.Lyrics); imgColorPiano.Src = web.UH.GetWebUri(this.Page, "css/Lyr/colorpiano.png"); aHome.HRef = web.UH.GetWebUri(this.Page, "Lyrics/Home"); MasterPageHelper.WriteGeneralCode(this.Page, false, true); SunamoCzMetroUIHelper.SetHtmlMetroUpperBarV3(this, horniLista, MySites.Lyrics); btnLogOut.ServerClick += new EventHandler(btnLogOut_ServerClick); btnLogIn.ServerClick += new EventHandler(btnLogIn_ServerClick); LoginedUser pu = SessionManager.GetLoginedUser(Page); if (pu.login != "") { loginForm.Visible = false; logined.Visible = true; } else { loginForm.Visible = true; logined.Visible = false; } }
protected PageSnippet InsertPageSnippet(string pageName, string desc) { if (desc == "") { desc = SunamoPageHelper.DescriptionOfSite((byte)sa); } PageSnippet ps = new PageSnippet { title = pageName, description = desc }; SchemaOrgHelper.InsertBasicToPageHeader(this, ps, sa); OpenGraphHelper.InsertBasicToPageHeader(this, ps, sa); return(ps); }
public void CreateTitle() { if (zapisTitle) { try { Title = Title + SunamoPageHelper.WebTitle(sa, Request, sa); zapisTitle = false; } catch (Exception) { // Page dont have <head runat='server'> } } }