<div class="inner_content_wrap">

	<div class="content_block">

<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('introducing-our-blog')->toHtml();

?>

		

<?php $postCollection = $block->getPostCollection(); ?>

            <?php $postCollection->addAttributeToSelect('*')

           ->getSelect()->orderRand(); ?>

            <?php if ($postCollection && $postCollection->getSize()) : ?> 

                <?php 

                $count =0;

                $end = 3;?>

        <div class="video_add">

                  <?php /** @var \Mageplaza\Blog\Model\Post $post */

            foreach ($postCollection as $post) : ?>  

                <?php $count++; ?>   

   				<?php if ($post->getImage()) : ?>

        

			<div class="video_info">

				<a href="<?= $post->getUrl() ?>"><img src="<?= $block->resizeImage($post->getImage(), '400x'); ?>" alt="<?= $block->escapeHtml($post->getName()); ?>" />

				<h2><a href="<?= $post->getUrl() ?>" title=""><?= $block->escapeHtml($post->getName()); ?></a></h2>

                        <p><?= $block->maxShortDescription($post->getShortDescription()); ?></p>

                        <p><?/*<?= $block->getPostInfo($post); ?> */?></p>

				

			</div>

			<?php endif; ?>   

			<?php if ($count == $end) break; ?>

              <?php endforeach; ?>

        </div>

			 <?php endif; ?> 

    </div>

</div>

<?php /*             
<div class="content_block content_block2">
    <h2>Healthy Diet</h2>
    <div class="content_block2_block">
      <?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('healthy-diet')->toHtml();

?>
      <div class="lg_post_right">
        <?php 
        $postCatCollection = $this->helperData->getPostCollection('category',9,4 );
        $postCatCollection->addAttributeToSelect('*')->getSelect();
        // $postCollection1->addAttributeToSelect('*')
        // 	$postCollection->addAttributeToFilter('categories_ids', array('eq' => 9))
            ?>

            <?php if ($postCatCollection && $postCatCollection->getSize()) : ?> 

                <?php 

                $count =0;

                $end = 4;
 foreach ($postCatCollection as $catpost) : ?>  

                <?php $count++; ?>   

   				<?php if ($catpost->getImage()) : ?>
        
        <div class="morepost_opt">
          <div class="post_pic">
          <a href="<?= $catpost->getUrl() ?>"><img src="<?= $block->resizeImage($catpost->getImage(), '400x'); ?>" alt="<?= $block->escapeHtml($catpost->getName()); ?>" alt="" height="187px" width= "272px" /></a>
          </div>
          <div class="postinfo">
            <!--<div class="dateopt">22nd June 2021  </div>-->
            <h3><a href="<?= $catpost->getUrl() ?>" title="<?= $block->escapeHtml($catpost->getName()); ?>"><?= $block->escapeHtml($catpost->getName()); ?></a></h3>
            <!--<p>Test Demo-->
            <!--</p>-->
          </div>  
        </div>

        <?php endif; ?>   

			<?php if ($count == $end) break; ?>

              <?php endforeach; ?>
          <?php endif;?>

       <!--  <div class="morepost_opt">
          <div class="post_pic">
          <img src="https://bilaljeanpaul.com/pub/media/mageplaza/blog/post/resize/400x/b/u/burger_2_.jpg" alt />
          </div>
          <div class="postinfo">
            <div class="dateopt">22nd June 2021  </div>
            <h3><a href="https://thebaldgent.com/the-corporate-beard/" title="The Corporate Beard – What Is It &amp; How To Maintain It">The Corporate Beard – What Is It &amp; How To Maintain It</a></h3>
            <p>Historically, workplaces took a dim view to male employees who…
            </p>
          </div>  
        </div>

        <div class="morepost_opt">
          <div class="post_pic">
          <img src="https://bilaljeanpaul.com/pub/media/mageplaza/blog/post/resize/400x/b/u/burger_2_.jpg" alt />
          </div>
          <div class="postinfo">
            <div class="dateopt">22nd June 2021  </div>
            <h3><a href="https://thebaldgent.com/the-corporate-beard/" title="The Corporate Beard – What Is It &amp; How To Maintain It">The Corporate Beard – What Is It &amp; How To Maintain It</a></h3>
            <p>Historically, workplaces took a dim view to male employees who…
            </p>
          </div>  
        </div>

        <div class="morepost_opt">
          <div class="post_pic">
          <img src="https://bilaljeanpaul.com/pub/media/mageplaza/blog/post/resize/400x/b/u/burger_2_.jpg" alt />
          </div>
          <div class="postinfo">
            <div class="dateopt">22nd June 2021  </div>
            <h3><a href="https://thebaldgent.com/the-corporate-beard/" title="The Corporate Beard – What Is It &amp; How To Maintain It">The Corporate Beard – What Is It &amp; How To Maintain It</a></h3>
            <p>Historically, workplaces took a dim view to male employees who…
            </p>
          </div>  
        </div> -->
      </div>

    </div>
  </div>
*/ ?>

