switch.php 616 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Modbash Clean Elgg Theme
  4. *
  5. * Copyright (c) 2015 ModBash
  6. *
  7. * @author Shane Barron <admin@modbash.com>
  8. * @copyright 2015 SocialApparatus
  9. * @license GNU General Public License (GPL) version 2
  10. * @version 1
  11. * @link http://modbash.com
  12. */
  13. $on_label = $vars['on_label'];
  14. $off_label = $vars['off_label'];
  15. $value = $vars['value'];
  16. $id = $vars['id'];
  17. ?>
  18. <div class="Switch <?php echo $value; ?>" id="<?php echo $id; ?>">
  19. <div class="Toggle"></div>
  20. <span class="On"><?php echo $on_label; ?></span>
  21. <span class="Off"><?php echo $off_label; ?></span>
  22. </div>