示例#1
0
 public void ParseBbcodeCache(VariableCollection template, string templateVar, string input)
 {
     template.ParseRaw(templateVar, input);
 }
示例#2
0
 // Minimal
 public void ParseMinimalPagination(VariableCollection template, string templateVar, string baseUri, int pageLevel, int itemsPerPage, long totalItems)
 {
     int maxPages = (int)Math.Ceiling(totalItems / (double)itemsPerPage);
     template.ParseRaw(templateVar, GeneratePagination(baseUri, pageLevel, core.PageNumber, core.PageOffset, maxPages, PaginationOptions.Minimal));
 }
示例#3
0
        public void ParseBbcode(VariableCollection template, string templateVar, string input, Primitive owner, bool appendP, string id, string styleClass, bool fullInternalUrls)
        {
            if (core.Session.LoggedInMember == null)
            {

                if (owner != null)
                {
                    template.ParseRaw(templateVar, core.Bbcode.Parse(HttpUtility.HtmlEncode(input), null, owner, appendP, id, styleClass, fullInternalUrls));
                }
                else
                {
                    template.ParseRaw(templateVar, core.Bbcode.Parse(HttpUtility.HtmlEncode(input), appendP, id, styleClass, fullInternalUrls));
                }
            }
            else
            {
                if (owner != null)
                {
                    template.ParseRaw(templateVar, core.Bbcode.Parse(HttpUtility.HtmlEncode(input), core.Session.LoggedInMember, owner, appendP, id, styleClass, fullInternalUrls));
                }
                else
                {
                    template.ParseRaw(templateVar, core.Bbcode.Parse(HttpUtility.HtmlEncode(input), core.Session.LoggedInMember, appendP, id, styleClass, fullInternalUrls));
                }
            }
        }