
<div class="row">

	<div class="col-md-12">
		
		<div class="crypt-gross-market-cap mt-4" id="twitterBox">

			<h3 style="color: #F7614E;margin-bottom: 20px;">News</h3>



			  <!-- Add Tracker Modal -->
  <div class="modal fade" id="newsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">News</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">

        	<h3 class="newsTitle" id="newsTitle"></h3>
        	<p id="desp1" class="desp"></p>
        	<img src="" style="width: 100%;" id="postimg" class="img-responsive">
        	<div id="cdesp">
        		
        	</div>
        </div>
      </div>
    </div>
  </div>
  <!-- END Modal -->


 <?php 

 $count = 0;

 foreach ($completetitles as $titless) {
 	# code...
 	$title = $titless['title'];

 	$desps = $compeltedesparray[$count]['desp'];

 	$imgurl = $newsimages[$count]['img'];

 	$imgurlCor = str_replace('w=320', 'w=500', $imgurl);

 	$time = $completetimearray[$count]['time'];

 	$url = $completehrefarray[$count]['ref'];

 	?>
 	<div onclick="postShow('<?=$title; ?>', '<?=$url; ?>', '<?=$imgurlCor ?>')"  data-toggle="modal" data-target="#newsModal" class="row" style="margin-bottom: 10px;margin-top: 30px;">
		<div class="col-md-2">
			<img src="<?=$imgurl; ?>" class="img-thumbnail" style="width: 100%;">
		</div>
		<div class="col-md-8">
			<a href="javascript:void(0)" class="tweeturl" style="font-size: 16px;color: #F7614E;"><?=$title; ?></a>
			<p class="tweettext"><?=$desps; ?></p>
			
			<p style="color: #F7614E;margin-top: 20px;"><span style="font-weight: 900">Created at </span><?=$time; ?></p>
		</div>	
	</div>

 	<?php 	


 	$count++;
 }


 ?>

</div>
</div>
</div>

