first import
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template file for Image module content inserted via the Insert module.
|
||||
*
|
||||
* Available variables:
|
||||
* - $item: The complete item being inserted.
|
||||
* - $url: The URL to the image.
|
||||
* - $class: A set of classes assigned to this image (if any).
|
||||
* - $width: The width of the image (if known).
|
||||
* - $height: The height of the image (if known).
|
||||
* - $style_name: The Image style being used.
|
||||
*
|
||||
* Note that ALT and Title fields should not be filled in here, instead they
|
||||
* should use placeholders that will be updated through JavaScript when the
|
||||
* image is inserted.
|
||||
*
|
||||
* Available placeholders:
|
||||
* - __alt__: The ALT text, intended for use in the <img> tag.
|
||||
* - __title__: The Title text, intended for use in the <img> tag.
|
||||
* - __description__: A description of the image, sometimes used as a caption.
|
||||
* - __filename__: The file name.
|
||||
* - __[token]_or_filename__: Any of the above tokens if available, otherwise
|
||||
* use the file's name. i.e. __title_or_filename__.
|
||||
*/
|
||||
?>
|
||||
<img src="<?php print $url ?>" <?php if ($width && $height): ?>width="<?php print $width; ?>" height="<?php print $height; ?>" <?php endif; ?>alt="__alt__" title="__title__" class="image-<?php print $style_name ?><?php print $class ? ' ' . $class : '' ?>" />
|
24
sites/all/modules/insert/templates/insert-icon-link.tpl.php
Normal file
24
sites/all/modules/insert/templates/insert-icon-link.tpl.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template file for generic links inserted via the Insert module.
|
||||
*
|
||||
* Available variables:
|
||||
* - $item: The complete item being inserted.
|
||||
* - $url: The URL to the item.
|
||||
* - $class: A set of classes assigned to this item (if any).
|
||||
* - $name: The file name of the item being inserted.
|
||||
*
|
||||
* Modules may provide placeholders that will be replaced by user-entered values
|
||||
* when the item is inserted into a textarea. Generic links only support one
|
||||
* placeholder.
|
||||
*
|
||||
* Available placeholders:
|
||||
* - __description__: A description of the item.
|
||||
* - __filename__: The file name.
|
||||
* - __description_or_filename__: A description of the item if available,
|
||||
* otherwise use the file name.
|
||||
*/
|
||||
?>
|
||||
<span class="file"><?php print $icon; ?> <a href="<?php print $url ?>"<?php print $class ? ' class="' . $class . '"' : '' ?> title="__description__">__description_or_filename__</a></span>
|
27
sites/all/modules/insert/templates/insert-image.tpl.php
Normal file
27
sites/all/modules/insert/templates/insert-image.tpl.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template file for generic images inserted via the Insert module.
|
||||
*
|
||||
* Available variables:
|
||||
* - $item: The complete item being inserted.
|
||||
* - $url: The URL to the image.
|
||||
* - $class: A set of classes assigned to this image (if any).
|
||||
* - $width: The width of the image.
|
||||
* - $height: The height of the image.
|
||||
*
|
||||
* Note that ALT and Title fields should not be filled in here, instead they
|
||||
* should use placeholders that will be updated through JavaScript when the
|
||||
* image is inserted.
|
||||
*
|
||||
* Available placeholders:
|
||||
* - __alt__: The ALT text, intended for use in the <img> tag.
|
||||
* - __title__: The Title text, intended for use in the <img> tag.
|
||||
* - __description__: A description of the image, sometimes used as a caption.
|
||||
* - __filename__: The file name.
|
||||
* - __[token]_or_filename__: Any of the above tokens if available, otherwise
|
||||
* use the file's name. i.e. __title_or_filename__.
|
||||
*/
|
||||
?>
|
||||
<img src="<?php print $url ?>" width="<?php print $width ?>" height="<?php print $height ?>" alt="__alt__" title="__title__" <?php print $class ? 'class="' . $class . '" ' : '' ?>/>
|
24
sites/all/modules/insert/templates/insert-link.tpl.php
Normal file
24
sites/all/modules/insert/templates/insert-link.tpl.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template file for generic links inserted via the Insert module.
|
||||
*
|
||||
* Available variables:
|
||||
* - $item: The complete item being inserted.
|
||||
* - $url: The URL to the item.
|
||||
* - $class: A set of classes assigned to this item (if any).
|
||||
* - $name: The file name of the item being inserted.
|
||||
*
|
||||
* Modules may provide placeholders that will be replaced by user-entered values
|
||||
* when the item is inserted into a textarea. Generic links only support one
|
||||
* placeholder.
|
||||
*
|
||||
* Available placeholders:
|
||||
* - __description__: A description of the item.
|
||||
* - __filename__: The file name.
|
||||
* - __description_or_filename__: A description of the item if available,
|
||||
* otherwise use the file name.
|
||||
*/
|
||||
?>
|
||||
<a href="<?php print $url ?>"<?php print $class ? ' class="' . $class . '"' : '' ?> title="__description__">__description_or_filename__</a>
|
30
sites/all/modules/insert/templates/insert-widget.tpl.php
Normal file
30
sites/all/modules/insert/templates/insert-widget.tpl.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template file for the insert button.
|
||||
*
|
||||
* This button can have any appearance you like or even be a link, but must
|
||||
* include the class "insert-button", to which the insert JavaScript will be
|
||||
* attached.
|
||||
*/
|
||||
?>
|
||||
<?php if (count($insert_styles) > 1): ?>
|
||||
<div class="insert form-item container-inline inline">
|
||||
<div class="insert-style-select">
|
||||
<label><?php print t('Style') ?>:</label>
|
||||
<select class="insert-style">
|
||||
<?php foreach ($insert_styles as $value => $style): ?>
|
||||
<option value="<?php print $value ?>"<?php print ($value == $default_style) ? 'selected="selected"' : '' ?>><?php print $style ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<input type="hidden" class="insert-style" value="<?php print $default_style ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="submit" rel="<?php print $widget_type ?>" class="form-submit insert-button" onclick="return false;" value="<?php print t('Insert'); ?>" />
|
||||
|
||||
<?php if (count($insert_styles) > 1): ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
Reference in New Issue
Block a user