<div class="innerBanner container-fluid mb-5">
	<div class="row h-100 align-items-center">
		<div class="col-md-4 col-lg-6">
			<h2 class="whiteColor mb-0">Media Centre</h2>
		</div>
		<div class="col-md-8 col-lg-6">
			<ul class="breadcrumb">
				<li><a href="<?php echo base_url(); ?>">Home</a></li>
				<li>Media Centre</li>
			</ul>
		</div>
	</div>
</div>
<div class="container-fluid">
	<div class="row">
		<div class="col-lg-8 order-lg-12 mb-5" id="innerData">
			<div class="row">
				<h1 class="col-12 mb-4"><span>Article</span></h1>
				<div class="col-12 events" id="mediaCenter">
					<p class="font-italic">Below are some of the press coverages of your council across the country and in international media. We urge the members to share such instances of press coverage witnessed in their city with the council</p>
					<div id="horizontalTab" class="accordion">
						<ul class="resp-tabs-list">
            <?php
            if($years !== "No Data"){
              $i = $j = 0;
              $length = sizeof($years);

              if($length <= 5){
                $loop_limit_1 = $length;
              }else{
                $loop_limit_1 = 5;
              }

              for($i=0; $i < $loop_limit_1; $i++){  
            ?>
              <li><?php echo strtoupper($years[$i]->month); ?></li>
            <?php } } ?>
						</ul>
            
            <div class="resp-tabs-container">
            <?php 
              for($i=0; $i < $loop_limit_1; $i++){
            ?>
            <div><?php echo Modules::run("articles/getArticlesData", $years[$i]->month); ?></div>
            <?php } ?>
						</div>
          </div>
          
          
          <?php if($length > 5){  ?>
					<a href="javascript:;" class="archive grayGradientBg rounded mb-4">Archive  <i class="fa fa-angle-down rounded-circle" aria-hidden="true"></i></a>
          
          <div class="mediaCenterData">
          
          <?php for($j=$i; $j < $length; $j++){ ?>
						<h4 class="rounded p-3 redColor"><?php echo $years[$j]->month; ?> <span>+</span></h4>
						<div class="articleData">
							<?php echo Modules::run("articles/getArticlesData", $years[$j]->month); ?>
						</div>
          <?php } ?>
          </div>
          <?php } ?>
        </div>
			</div>
		</div>
		<div class="col-lg-4 order-lg-1 mb-5">
			<div class="dataList">
				<div class="blackRect"></div>
				<ul>
					<li><a href="javascript:;" class="fadeAnim active">Article </a></li>
					<li><a href="<?php echo base_url(); ?>advertise" class="fadeAnim">Advertise </a></li>
				</ul>
			</div>
		</div>
	</div>
</div>