<?php foreach ($themes as $theme) { ?> <div class="theme <?php if ($currentTheme == $theme['theme']) { ?> active_theme<?php } ?> "> <h3><?php echo $theme['name']; ?> </h3> <?php echo $POD->formatText($theme['description']); ?> <?php if ($currentTheme != $theme['theme'] && $theme['theme'] != 'admin') { ?> <p><a href="?activate=<?php echo $theme['theme']; ?> ">Activate</a></p> <?php } ?> </div> <?php } ?>