insert-widget.tpl.php 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Template file for the insert button.
  5. *
  6. * This button can have any appearance you like or even be a link, but must
  7. * include the class "insert-button", to which the insert JavaScript will be
  8. * attached.
  9. */
  10. ?>
  11. <?php if (count($insert_styles) > 1): ?>
  12. <div class="insert form-item container-inline inline">
  13. <div class="insert-style-select">
  14. <label><?php print t('Style') ?>:</label>
  15. <select class="insert-style">
  16. <?php foreach ($insert_styles as $value => $style): ?>
  17. <option value="<?php print $value ?>"<?php print ($value == $default_style) ? 'selected="selected"' : '' ?>><?php print $style ?></option>
  18. <?php endforeach; ?>
  19. </select>
  20. </div>
  21. <?php else: ?>
  22. <input type="hidden" class="insert-style" value="<?php print $default_style ?>" />
  23. <?php endif; ?>
  24. <input type="submit" rel="<?php print $widget_type ?>" class="form-submit insert-button" onclick="return false;" value="<?php print t('Insert'); ?>" />
  25. <?php if (count($insert_styles) > 1): ?>
  26. </div>
  27. <?php endif; ?>