Mercurial > hg > rr-repo
comparison sites/all/modules/insert/templates/insert-widget.tpl.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Template file for the insert button. | |
6 * | |
7 * This button can have any appearance you like or even be a link, but must | |
8 * include the class "insert-button", to which the insert JavaScript will be | |
9 * attached. | |
10 */ | |
11 ?> | |
12 <?php if (count($insert_styles) > 1): ?> | |
13 <div class="insert form-item container-inline inline"> | |
14 <div class="insert-style-select"> | |
15 <label><?php print t('Style') ?>:</label> | |
16 <select class="insert-style"> | |
17 <?php foreach ($insert_styles as $value => $style): ?> | |
18 <option value="<?php print $value ?>"<?php print ($value == $default_style) ? 'selected="selected"' : '' ?>><?php print $style ?></option> | |
19 <?php endforeach; ?> | |
20 </select> | |
21 </div> | |
22 <?php else: ?> | |
23 <input type="hidden" class="insert-style" value="<?php print $default_style ?>" /> | |
24 <?php endif; ?> | |
25 | |
26 <input type="submit" rel="<?php print $widget_type ?>" class="form-submit insert-button" onclick="return false;" value="<?php print t('Insert'); ?>" /> | |
27 | |
28 <?php if (count($insert_styles) > 1): ?> | |
29 </div> | |
30 <?php endif; ?> |