<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>

<ul class="generic_list_widget">
  <?php foreach( $this->themes as $theme ): ?>
    <li>
      <?php if( $theme['theme_id'] == $this->activeTheme['theme_id'] ): ?>
        <?php echo $this->htmlLink(null, $theme['title']) ?>
      <?php else: ?>
        <?php echo $this->htmlLink(array(
          'reset' => true,
          'route' => 'default',
          'module' => 'core',
          'controller' => 'utility',
          'action' => 'theme',
          'theme_id' => $theme['theme_id'],
          'return_url' => base64_encode($_SERVER['REQUEST_URI']),
        ), $theme['title']) ?>
      <?php endif ?>
    </li>
  <?php endforeach ?>
</ul>
