<section class="listing-page content main-content">
    <div class="product-listing card-solid py-4">
        <div class="row mx-0">
                    <?php if (!isset($blogs['data']) && empty($blogs['data']) || $blogs['data'] == []) { ?>
                        <div>
                            <h1 class="h3 text-center"><?= !empty($this->lang->line('no_blogs_found')) ? $this->lang->line('no_blogs_found') : 'No Blogs Added Yet.' ?></h1>
                        </div>
                    <?php } ?>

                    <div id="blogs-container" class="row w-100" style="margin-left: 0px;">
                        <?php foreach ($blogs['data'] as $row) { ?>
                            <div class="col-md-6 mb-4 blog-grid-custom">
                                <div class="blog-card">
                                    <div class="blog-card-img" style="height: 100% !important;">
                                        <a href="<?= base_url("blogs/view_detail/" . $row['slug']) ?>">
                                            <img src="<?= strpos($row['image'], "base64") !== false ? $row['image'] : base_url($row['image']) ?>" alt="Card image">
                                        </a>
                                    </div>
                    
                                    <div class="card-body" style="padding: 1.25rem 1.25rem 0rem 1.25rem !important;">
                                        <h2 class="blog-title mb-2" style="white-space: unset !important; text-overflow: unset !important;">
                                            <a class="link-dark text-decoration-none" href="<?= base_url("blogs/view_detail/" . $row['slug']) ?>"><?= htmlspecialchars($row['title']) ?></a>
                                        </h2>
                                        <p style="text-align: right; margin: unset !important;color: #1f98f0">
                                            <?= date('Y年 m月 d日', isset($row['held_date']) ? strtotime($row['held_date']) : strtotime($row['date_added'])) ?>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                    
                    <!-- 加載提示 -->
                    <div id="loading-indicator" style="display:none; text-align:center; padding: 15px; font-weight: bold; color: #1f98f0;">
                        加載中...
                    </div>
                    <nav class="text-center mt-4">
                        <?= (isset($links)) ? $links : '' ?>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
    var limit = <?= $blogs_limit ?>;
    var offset = <?= count($blogs['data']) ?>;
    var totalBlogs = <?= $blogs['total'] ?>;
    var isLoading = false;

    var loadingIndicator = document.getElementById('loading-indicator');

    function showLoading() {
        loadingIndicator.style.display = 'block';
    }
    function hideLoading() {
        loadingIndicator.style.display = 'none';
    }

    function createBlogCard(row) {
        function formatDate(dateString) {
            var date = new Date(dateString);
            if (isNaN(date)) return "";
            var year = date.getFullYear();
            var month = ("0" + (date.getMonth() +1)).slice(-2);
            var day = ("0" + date.getDate()).slice(-2);
            return year + "年 " + month + "月 " + day + "日";
        }

        var baseUrl = "<?= base_url() ?>";
        var imageSrc = row.image.includes("base64") ? row.image : (baseUrl + row.image);
        var url = baseUrl + "blogs/view_detail/" + row.slug;
        var title = row.title.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
        var dateToUse = row.held_date ? row.held_date : row.date_added;
        var formattedDate = formatDate(dateToUse);

        return `
        <div class="col-md-6 mb-4 blog-grid-custom">
            <div class="blog-card">
                <div class="blog-card-img" style="height: 100% !important;">
                    <a href="${url}">
                        <img src="${imageSrc}" alt="Card image">
                    </a>
                </div>
                <div class="card-body" style="padding: 1.25rem 1.25rem 0rem 1.25rem !important;">
                    <h2 class="blog-title mb-2" style="white-space: unset !important; text-overflow: unset !important;">
                        <a class="link-dark text-decoration-none" href="${url}">${title}</a>
                    </h2>
                    <p style="text-align: right; margin: unset !important;color: #1f98f0">${formattedDate}</p>
                </div>
            </div>
        </div>`;
    }

    function loadMoreBlogs() {
        if (isLoading) return;
        if (offset >= totalBlogs) return;

        isLoading = true;
        showLoading();

        fetch(`<?= base_url('blogs/load_more_blogs') ?>?offset=${offset}&limit=${limit}`)
            .then(response => response.json())
            .then(data => {
                var container = document.getElementById('blogs-container');

                data.data.forEach(row => {
                    var tempDiv = document.createElement('div');
                    tempDiv.innerHTML = createBlogCard(row);
                    container.appendChild(tempDiv.firstElementChild);
                });

                offset += data.data.length;
                isLoading = false;
                hideLoading();

                if (offset >= data.total) {
                    window.removeEventListener('scroll', scrollHandler);
                }
            })
            .catch(err => {
                console.error(err);
                isLoading = false;
                hideLoading();
            });
    }

    function scrollHandler() {
        if ((window.innerHeight + window.scrollY) >= (document.body.offsetHeight - 100)) {
            loadMoreBlogs();
        }
    }

    window.addEventListener('scroll', scrollHandler);
</script>

The above code is the webpage for list all the blog articles with scroll down to load more function
The blogs data has loaded from server already

<div class="page_content_wrap page_paddings_yes">
				<div class="content_wrap wrapper">
					<div class="content">
						<div class="post_item post_item_excerpt post_featured_default post_format_standard odd post-470 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-adoption tag-donation">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-14.jpg" data-title="American Humane Association">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="American Humane Association" src="images/image-14-770x434.jpg"></a>
								</div>
							</div>
							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">American Humane Association</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters"><a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 62" href="single-post.html"><span class="post_counters_number">62</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="470" data-likes="2" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">2</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard even post-469 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-6.jpg" data-title="National Federation of the Blind">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="National Federation of the Blind" src="images/image-6-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">National Federation of the Blind</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 50" href="single-post.html"><span class="post_counters_number">50</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="469" data-likes="0" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">0</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard odd post-468 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-donation tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-8.jpg" data-title="Wildlife Conservation Society">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="Wildlife Conservation Society" src="images/image-8-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">Wildlife Conservation Society</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 44" href="single-post.html"><span class="post_counters_number">44</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="468" data-likes="1" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">1</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard even post-467 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-adoption tag-donation">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-10.jpg" data-title="Glossary of Humanity">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="Glossary of Humanity" src="images/image-10-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">Glossary of Humanity</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 37" href="single-post.html"><span class="post_counters_number">37</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="467" data-likes="0" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">0</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard odd post-466 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-2.jpg" data-title="The World Runs Out of Time">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="The World Runs Out of Time" src="images/image-2-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">The World Runs Out of Time</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 38" href="single-post.html"><span class="post_counters_number">38</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="466" data-likes="1" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">1</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard even post-465 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-donation tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-11.jpg" data-title="Animal Welfare">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="Animal Welfare" src="images/image-11-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">Animal Welfare</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 34" href="single-post.html"><span class="post_counters_number">34</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="465" data-likes="0" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">0</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard odd post-464 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image_4.jpg" data-title="Become a Volunteer!">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="Become a Volunteer!" src="images/image_4-770x434.jpg"></a>
								</div>
							</div>
							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">Become a Volunteer!</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 35" href="single-post.html"><span class="post_counters_number">35</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="464" data-likes="1" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">1</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard even post-463 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-donation tag-education">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-17.jpg" data-title="New Life for the Abandoned">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="New Life for the Abandoned" src="images/image-17-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">New Life for the Abandoned</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 49" href="single-post.html"><span class="post_counters_number">49</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="463" data-likes="0" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">0</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<div class="post_item post_item_excerpt post_featured_default post_format_standard odd last post-462 post type-post status-publish format-standard has-post-thumbnail hentry category-gallery tag-adoption tag-donation">
							<div class="post_featured">
								<div class="post_thumb" data-image="images/image-7.jpg" data-title="Save Them All">
									<a class="hover_icon hover_icon_link" href="single-post.html"><img width="770" height="434" alt="Save Them All" src="images/image-7-770x434.jpg"></a>
								</div>
							</div>

							<div class="post_content clearfix">
								<h3 class="post_title"><a href="single-post.html">Save Them All</a></h3>
								<div class="post_info">
									<span class="post_info_item post_info_posted"> <a href="single-post.html" class="post_info_date">September 12, 2016</a></span>
									<span class="post_info_item post_info_counters">	<a class="post_counters_item post_counters_views icon-eye-inv" title="Views - 43" href="single-post.html"><span class="post_counters_number">43</span></a>
									<a class="post_counters_item post_counters_comments icon-comment-inv" title="Comments - 0" href="single-post.html#respond"><span class="post_counters_number">0</span></a>
									<a class="post_counters_item post_counters_likes icon-heart enabled" title="Like" href="#" data-postid="462" data-likes="0" data-title-like="Like" data-title-dislike="Dislike"><span class="post_counters_number">0</span></a>
									</span>
								</div>
								<div class="post_descr">
									<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem...</p>
									<a href="single-post.html" class="sc_button sc_button_square sc_button_style_filled sc_button_size_small">Learn more</a>
								</div>
							</div>
							<!-- /.post_content -->
						</div>
						<!-- /.post_item -->
						<nav id="pagination" class="pagination_wrap pagination_pages"><span class="pager_current active ">1</span><a href="#" class="">2</a><a href="#" class="">3</a>
							<a href="#" class="pager_next "></a>
							<a href="#" class="pager_last "></a>
						</nav>
					</div>
					<!-- </div> class="content"> -->
					<div class="sidebar widget_area scheme_original" role="complementary">
						<div class="sidebar_inner widget_area_inner">
							<aside id="charity_is_hope_widget_recent_reviews-2" class="widget_number_1 widget widget_recent_reviews">
								<h5 class="widget_title">Popular Posts</h5>
								<div class="recent_reviews">
									<div class="post_item with_thumb first">
										<div class="post_thumb"><img width="108" height="82" alt="What you Need to Know About Colorado’s Forests and Coal Mining" src="images/image-5-108x82.jpg"></div>
										<div class="post_content">
											<h6 class="post_title"><a href="single-post.html">What you Need to Know About Colorado’s Forests and Coal Mining</a></h6></div>
									</div>
									<div class="post_item with_thumb">
										<div class="post_thumb"><img width="108" height="82" alt="Developing Healthy Kids in the Developing World" src="images/image_01-108x82.jpg"></div>
										<div class="post_content">
											<h6 class="post_title"><a href="single-post.html">Developing Healthy Kids in the Developing World</a></h6></div>
									</div>
									<div class="post_item with_thumb">
										<div class="post_thumb"><img width="108" height="82" alt="New Life for the Abandoned &#8211; Do They Know Love?" src="images/image-8-108x82.jpg"></div>
										<div class="post_content">
											<h6 class="post_title"><a href="single-post.html">New Life for the Abandoned &#8211; Do They Know Love?</a></h6></div>
									</div>
									<div class="post_item with_thumb">
										<div class="post_thumb"><img width="108" height="82" alt="What To Do if No One Listens? Start with Changing Yourself" src="images/image-9-108x82.jpg"></div>
										<div class="post_content">
											<h6 class="post_title"><a href="single-post.html">What To Do if No One Listens? Start with Changing Yourself</a></h6></div>
									</div>
									<div class="post_item with_thumb">
										<div class="post_thumb"><img width="108" height="82" alt="Simple Deeds That Save the World" src="images/image-2-108x82.jpg"></div>
										<div class="post_content">
											<h6 class="post_title"><a href="single-post.html">Simple Deeds That Save the World</a></h6></div>
									</div>
								</div>
							</aside>
							<aside id="text-2" class="widget_number_2 widget widget_text">
								<div class="textwidget">
									<div class="mc4wp_side">
										<figure class="sc_image  sc_image_shape_square"><img src="images/mc4wp.png" alt="" /></figure>
										<h4>newsletter</h4>
										<p>Enter your e-mail address to have our posts sent directly to your inbox.</p>
										<form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-532" method="post" data-id="532" data-name="form">
											<div class="mc4wp-form-fields"><input type="email" name="EMAIL" placeholder="Email" required /><input type="submit" value="Subcribe" />
												<div class="hidden"><input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></div><input type="hidden" name="_mc4wp_timestamp" value="1481283360" /><input type="hidden" name="_mc4wp_form_id" value="532" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" /></div>
											<div class="mc4wp-response"></div>
										</form>
										<!-- / MailChimp for WordPress Plugin -->
									</div>
								</div>
							</aside>
							<aside id="categories-3" class="widget_number_3 widget widget_categories">
								<h5 class="widget_title">Categories</h5>
								<ul>
									<li class="cat-item cat-item-33"><a href="all-posts.html">Animals</a>
									</li>
									<li class="cat-item cat-item-20"><a href="all-posts.html">Climat</a>
									</li>
									<li class="cat-item cat-item-13"><a href="all-posts.html">Food</a>
									</li>
									<li class="cat-item cat-item-21"><a href="all-posts.html">Forests</a>
									</li>
									<li class="cat-item cat-item-10"><a href="all-posts.html">Fresh Water</a>
									</li>
									<li class="cat-item cat-item-58"><a href="all-posts.html">Gallery</a>
									</li>
									<li class="cat-item cat-item-18"><a href="all-posts.html">Oceans</a>
									</li>
									<li class="cat-item cat-item-12"><a href="all-posts.html">Wildlife</a>
									</li>
								</ul>
							</aside>
						</div>
					</div>
					<!-- /.sidebar -->
				</div>
				<!-- </div> class="content_wrap"> -->
			</div>
			<!-- </.page_content_wrap> -->

And I want to update the layout with above code for each grid in blog list. please combine the code with the new layout