Full ELMS Learning Network documentation
entity.tpl.php
- cis7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- cle7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- ecd7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- elmsmedia7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- harmony7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- icor7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- meedjum_blog7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
- mooc7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
Default theme implementation for entities.
Available variables:
- $content: An array of comment items. Use render($content) to print them all, or print a subset such as render($content['field_example']). Use hide($content['field_example']) to temporarily suppress the printing of a given element.
- $title: The (sanitized) entity label.
- $url: Direct url of the current entity if specified.
- $page: Flag for the full page state.
- $classes: String of classes that can be used to style contextually through
CSS. It can be manipulated through the variable $classes_array from
preprocess functions. By default the following classes are available, where
the parts enclosed by {} are replaced by the appropriate values:
- entity-{ENTITY_TYPE}
- {ENTITY_TYPE}-{BUNDLE}
Other variables:
- $classes_array: Array of html class attribute values. It is flattened into a string within the variable $classes.
See also
4 theme calls to entity.tpl.php
- date_all_day_date_formatter_dates_alter in sites/
all/ modules/ ulmus/ date/ date_all_day/ date_all_day.module - Implements hook_date_formatter_dates_alter().
- ds_render_author_field in sites/
all/ modules/ ulmus/ ds/ ds.module - Render an author field.
- ds_search_extra_info in sites/
all/ modules/ ulmus/ ds/ modules/ ds_search/ ds_search.module - Returns the info field, just like default search.
- hook_date_formatter_dates_alter in sites/
all/ modules/ ulmus/ date/ date.api.php - Alter the dates array created by date_formatter_process().
190 string references to the theme hook from entity.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- accessibility_reporting_schema in sites/
all/ modules/ ulmus/ accessibility/ modules/ accessibility_reporting/ accessibility_reporting.install - Implements hook_schema().
- blog_pathauto_bulk_update_batch_process in sites/
all/ modules/ ulmus/ pathauto/ pathauto.pathauto.inc - Batch processing callback; Generate aliases for blogs.
- cis_displays_views_default_views in profiles/
cis/ modules/ features/ cis_displays/ cis_displays.views_default.inc - Implements hook_views_default_views().
- cis_example_cis_service_set_cis_service_data in sites/
all/ modules/ _my_modules/ cis_examples/ cis_example_cis_service/ cis_example_cis_service.module - Implements hook_set_cis_service_data().
- cis_types_field_default_field_instances in profiles/
cis/ modules/ features/ cis_types/ cis_types.features.field_instance.inc - Implements hook_field_default_field_instances().
File
sites/all/modules/ulmus/entity/theme/entity.tpl.phpView source
- <?php
-
- /**
- * @file
- * Default theme implementation for entities.
- *
- * Available variables:
- * - $content: An array of comment items. Use render($content) to print them all, or
- * print a subset such as render($content['field_example']). Use
- * hide($content['field_example']) to temporarily suppress the printing of a
- * given element.
- * - $title: The (sanitized) entity label.
- * - $url: Direct url of the current entity if specified.
- * - $page: Flag for the full page state.
- * - $classes: String of classes that can be used to style contextually through
- * CSS. It can be manipulated through the variable $classes_array from
- * preprocess functions. By default the following classes are available, where
- * the parts enclosed by {} are replaced by the appropriate values:
- * - entity-{ENTITY_TYPE}
- * - {ENTITY_TYPE}-{BUNDLE}
- *
- * Other variables:
- * - $classes_array: Array of html class attribute values. It is flattened
- * into a string within the variable $classes.
- *
- * @see template_preprocess()
- * @see template_preprocess_entity()
- * @see template_process()
- */
- ?>
- <div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
-
- <?php if (!$page): ?>
- <h2<?php print $title_attributes; ?>>
- <?php if ($url): ?>
- <a href="<?php print $url; ?>"><?php print $title; ?></a>
- <?php else: ?>
- <?php print $title; ?>
- <?php endif; ?>
- </h2>
- <?php endif; ?>
-
- <div class="content"<?php print $content_attributes; ?>>
- <?php
- print render($content);
- ?>
- </div>
- </div>
-