// Token: 0x06000077 RID: 119 RVA: 0x0000853C File Offset: 0x0000673C private void AddSeoInfo(string Seokeywords, string Seodescription) { string[] array = FPUtils.SplitString(this.meta, "\r\n"); this.meta = ""; string[] array2 = array; int i = 0; while (i < array2.Length) { string text = array2[i]; if (text.ToLower().IndexOf("name=\"keywords\"") <= 0) { goto IL_B5; } if (Seokeywords == null || !(Seokeywords.Trim() != "")) { goto IL_B5; } this.meta = this.meta + "<meta name=\"keywords\" content=\"" + FPUtils.RemoveHtml(Seokeywords + "," + this.siteconfig.keywords).Replace("\"", " ") + "\" />\r\n"; IL_153: i++; continue; IL_B5: if (text.ToLower().IndexOf("name=\"description\"") > 0) { if (Seodescription != null && Seodescription.Trim() != "") { this.meta = this.meta + "<meta name=\"description\" content=\"" + FPUtils.RemoveHtml(this.siteconfig.description + "," + Seodescription).Replace("\"", " ") + "\" />\r\n"; goto IL_153; } } this.meta = this.meta + text + "\r\n"; goto IL_153; } }
// Token: 0x06000075 RID: 117 RVA: 0x00008348 File Offset: 0x00006548 private void AddMetaSeo(string Seokeywords, string Seodescription, string Otherhead) { if (Seokeywords != "") { this.meta = this.meta + "<meta name=\"keywords\" content=\"" + FPUtils.RemoveHtml(Seokeywords).Replace("\"", " ") + "\" />\r\n"; } if (Seodescription != "") { this.meta = this.meta + "<meta name=\"description\" content=\"" + FPUtils.RemoveHtml(Seodescription).Replace("\"", " ") + "\" />\r\n"; } this.meta += Otherhead; }
private void AddSeoInfo(string Seokeywords, string Seodescription) { string[] array = FPArray.SplitString(meta, "\r\n"); meta = ""; string[] array2 = array; foreach (string text in array2) { if (text.ToLower().IndexOf("name=\"keywords\"") > 0 && Seokeywords != null && Seokeywords.Trim() != "") { meta = meta + "<meta name=\"keywords\" content=\"" + FPUtils.RemoveHtml(Seokeywords + "," + siteinfo.keywords).Replace("\"", " ") + "\" />\r\n"; } else if (text.ToLower().IndexOf("name=\"description\"") > 0 && Seodescription != null && Seodescription.Trim() != "") { meta = meta + "<meta name=\"description\" content=\"" + FPUtils.RemoveHtml(siteinfo.description + "," + Seodescription).Replace("\"", " ") + "\" />\r\n"; } else { meta = meta + text + "\r\n"; } } }