<div class="currency">
<ul>
<?php
for ( $i = 0; $i < $count_obj; $i++ ) {
if ( $obj[ $i ][ 'percent_change_24h' ] > 0 ) {
$color_change = '#4ac06a';
$plus = '+';
} else {
$color_change = '#ff8d8d';
$plus = '';
}
?>
<li><i class="cc <?=$obj[$i][" symbol "]?> iconsi" title="<?=$obj[$i][" name "]?>"></i>
<div class="block_coin">
<span class="coin_name">
<?=$obj[$i]["name"]?>
</span>
<span style="color:<?=$color_change?>;" class="coin_price">
<?=$obj[$i]["price_usd"]?>$</span>
<span style="color:<?=$color_change?>;" class="coin_change">(<?=$plus.$obj[$i]["percent_change_24h"]?>%)</span>
</div>
</li>
<?php
}
?>
</ul>
</div>