Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PostListCore.Initialize(Request.QueryString);
            if (string.IsNullOrEmpty(PostTemplate))
            {
                PostTemplate = DefaultPostTemplate;
            }
            EntryList.ItemTemplate = Page.LoadTemplate(PostTemplate);

            ImageMaxSize = CurrentBlog.MaximumThumbnailImageSizeDimension;

            if (EntryList != null)
            {
                EntryList.DataSource = PostListCore.Entries;
                EntryList.DataBind();
            }

            if (PanelViewMore != null)
            {
                PanelViewMore.Visible = PostListCore.ShowViewMoreLink;
                if (PostListCore.ShowViewMoreLink)
                {
                    ancViewMore.HRef = PostListCore.ViewMoreHref;
                }
            }
        }
Exemplo n.º 2
0
        protected PostListCore GetDefaultPostListCore()
        {
            var defaultPostListCore = new PostListCore(CurrentBlog, null, null, null, null);
            var queryString         = RenderingContext.Current.PageContext.RequestContext.HttpContext.Request.QueryString;

            defaultPostListCore.Initialize(queryString);
            return(defaultPostListCore);
        }