annotate modules/field/theme/field.tpl.php @ 9:830c812b520f

added smtp module
author root <root@paio.local>
date Mon, 28 Oct 2013 15:34:27 +0000
parents ff03f76ab3fe
children
rev   line source
danielebarchiesi@0 1 <?php
danielebarchiesi@0 2
danielebarchiesi@0 3 /**
danielebarchiesi@0 4 * @file field.tpl.php
danielebarchiesi@0 5 * Default template implementation to display the value of a field.
danielebarchiesi@0 6 *
danielebarchiesi@0 7 * This file is not used and is here as a starting point for customization only.
danielebarchiesi@0 8 * @see theme_field()
danielebarchiesi@0 9 *
danielebarchiesi@0 10 * Available variables:
danielebarchiesi@0 11 * - $items: An array of field values. Use render() to output them.
danielebarchiesi@0 12 * - $label: The item label.
danielebarchiesi@0 13 * - $label_hidden: Whether the label display is set to 'hidden'.
danielebarchiesi@0 14 * - $classes: String of classes that can be used to style contextually through
danielebarchiesi@0 15 * CSS. It can be manipulated through the variable $classes_array from
danielebarchiesi@0 16 * preprocess functions. The default values can be one or more of the
danielebarchiesi@0 17 * following:
danielebarchiesi@0 18 * - field: The current template type, i.e., "theming hook".
danielebarchiesi@0 19 * - field-name-[field_name]: The current field name. For example, if the
danielebarchiesi@0 20 * field name is "field_description" it would result in
danielebarchiesi@0 21 * "field-name-field-description".
danielebarchiesi@0 22 * - field-type-[field_type]: The current field type. For example, if the
danielebarchiesi@0 23 * field type is "text" it would result in "field-type-text".
danielebarchiesi@0 24 * - field-label-[label_display]: The current label position. For example, if
danielebarchiesi@0 25 * the label position is "above" it would result in "field-label-above".
danielebarchiesi@0 26 *
danielebarchiesi@0 27 * Other variables:
danielebarchiesi@0 28 * - $element['#object']: The entity to which the field is attached.
danielebarchiesi@0 29 * - $element['#view_mode']: View mode, e.g. 'full', 'teaser'...
danielebarchiesi@0 30 * - $element['#field_name']: The field name.
danielebarchiesi@0 31 * - $element['#field_type']: The field type.
danielebarchiesi@0 32 * - $element['#field_language']: The field language.
danielebarchiesi@0 33 * - $element['#field_translatable']: Whether the field is translatable or not.
danielebarchiesi@0 34 * - $element['#label_display']: Position of label display, inline, above, or
danielebarchiesi@0 35 * hidden.
danielebarchiesi@0 36 * - $field_name_css: The css-compatible field name.
danielebarchiesi@0 37 * - $field_type_css: The css-compatible field type.
danielebarchiesi@0 38 * - $classes_array: Array of html class attribute values. It is flattened
danielebarchiesi@0 39 * into a string within the variable $classes.
danielebarchiesi@0 40 *
danielebarchiesi@0 41 * @see template_preprocess_field()
danielebarchiesi@0 42 * @see theme_field()
danielebarchiesi@0 43 *
danielebarchiesi@0 44 * @ingroup themeable
danielebarchiesi@0 45 */
danielebarchiesi@0 46 ?>
danielebarchiesi@0 47 <!--
danielebarchiesi@0 48 THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
danielebarchiesi@0 49 See http://api.drupal.org/api/function/theme_field/7 for details.
danielebarchiesi@0 50 After copying this file to your theme's folder and customizing it, remove this
danielebarchiesi@0 51 HTML comment.
danielebarchiesi@0 52 -->
danielebarchiesi@0 53 <div class="<?php print $classes; ?>"<?php print $attributes; ?>>
danielebarchiesi@0 54 <?php if (!$label_hidden): ?>
danielebarchiesi@0 55 <div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>:&nbsp;</div>
danielebarchiesi@0 56 <?php endif; ?>
danielebarchiesi@0 57 <div class="field-items"<?php print $content_attributes; ?>>
danielebarchiesi@0 58 <?php foreach ($items as $delta => $item): ?>
danielebarchiesi@0 59 <div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>><?php print render($item); ?></div>
danielebarchiesi@0 60 <?php endforeach; ?>
danielebarchiesi@0 61 </div>
danielebarchiesi@0 62 </div>