Lista de desarrollos

Usando la información resultante

Ejemplo básico

<?php
include "api.inc";

// CHANGE THIS APIKEY WITH YOUR REAL STATE APIKEY
$auth = new TokkoAuth('5940ea45eb7cfb55228bec0b958ea9c0be151757');

// LIST OF DEVELOPMENTS
$developments = new TokkoDevelopmentList($auth)
?>

<div>
    <ul>
        <?php foreach($developments->get_developments() as $development){ ?>    
            <li><?php echo strtoupper($development->get_field('name')) ?></li>
            <li><?php echo $development->get_field('description') ?></li>
            <li><?php echo strtoupper($development->get_field('location')) ?></li>
            <li>
                <ul>
                <?php foreach($development->get_field('photos') as $photo){ ?>
                    <li>
                        <img src="<? echo $photo->image; ?>" >
                    </li>
                <?php }?>
                </ul>
            </li>
        <?php } ?>
    </ul>
</div>