<?php
//@*--

    $_themeList = Mage::getSingleton('Theme_Designer_Model_ThemeList')->getThemeList();
?>
<div class="theme-list">
<?php foreach($_themeList as $_theme): ?>
    <?php $_isEditable = $_theme->getEditable(); ?>
    <div class="theme-item">
        <div class="item-title <?php if ($_theme->isActive()) echo 'active' ?>">
            <?php echo $_theme->getName() ?>
        </div>
        <div class="item-view">
            <div class="item-image <?php echo $_isEditable ? 'editable' : '' ?>">
                <?php if ($_isEditable): ?>
                    <img src="<?php echo Mage::getDesign()->getSkinUrl('images/preview.png', array('_area' => 'frontend', '_package' => 'default', '_theme' => $_theme->getName())) ?>" alt="">
                <?php endif ?>
            </div>
        </div>
        <div class="item-actions">
            <a href="<?php echo $_theme->getPublishUrl() ?>">Publish</a>
        <?php if ($_isEditable): ?>
            <a href="<?php echo $_theme->getEditUrl() ?>">Edit</a>
            <a href="<?php echo $_theme->getSettingsUrl() ?>" ?>Settings</a>
        <?php endif ?>
            <a href="<?php echo $_theme->getRemoveUrl() ?>">Remove</a>
            <a href="<?php echo $_theme->getPreviewUrl() ?>">Preview</a>
        </div>
    </div>
<?php endforeach ?>
</div>

<?php //--*@