
<div id="monsart-emails" >
    <section class="templates-thumbnails fl-center">
        <div class="inline-block">
            <ul class="clearfix">
                <?php for ($i = 1; $i <= $this->_config->templateCount; $i++) { ?>
                    <li class="single-thumbnail fl-left">
                        <div class='order-thumb-cont'>
                            Order #<?= $i ?>
                            <div class="thumbnail">
                                <img src="<?php echo $i <= 5 ?  MA_IMAGES .'templates/order' . $i  .".jpg" : MA_IMAGES .'templates/coming-soon.jpg';    ?>" alt="Order-1 thumbnail">
                            </div>
                            <?php if ($i <= 5) : ?>
                                <a href='?page=<?= $this->_config->slug ?>&action=customize&order=<?= $i ?>'><?php _e('CUSTOMIZE') ?></a> 
                                <?php if ($i === $this->_config->activeTemplate) { ?>
                                    <span  class="success"><?php _e('ACTIVE') ?></span>
                                <?php } else { ?>
                                    <a href='?page=<?= $this->_config->slug ?>&action=activate&order=<?= $i ?>'><?php _e('ACTIVATE'); ?></a>
                                <?php } ?>
                            <?php endif; ?>
                        </div>
                    </li>
                <?php } ?>



            </ul>
        </div>
    </section>
</div>