private void Setup_Item(JGN_Blogs blg) { blg.files = new List <FileEntity>(); if (blg.cover_url == null) { blg.cover_url = ""; } if (blg.picture_url == null) { blg.picture_url = ""; } if (blg.cover_url != "") { blg.cover_url = BlogUtil.Return_Blog_Cover(blg.cover_url); } if (blg.picture_url != "") { var _pics = blg.picture_url.Split(char.Parse(",")); foreach (var pic in _pics) { string imgUrl = BlogUtil.Return_Blog_Image(pic, Jugnoon.Blogs.Configs.BlogSettings.default_path); blg.files.Add(new FileEntity() { filename = pic, img_url = imgUrl }); } } if (blg.created_at == null) { blg.created_at = DateTime.Now; } blg.url = BlogUrlConfig.Generate_Post_Url(blg); blg.author_url = UserUrlConfig.ProfileUrl(blg.author, Jugnoon.Settings.Configs.RegistrationSettings.uniqueFieldOption); // process content blg.description = UtilityBLL.Process_Content_Text(blg.description); }