entity.tpl.php

  1. cis7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  2. cle7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  3. ecd7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  4. elmsmedia7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  5. harmony7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  6. icor7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  7. meedjum_blog7 sites/all/modules/ulmus/entity/theme/entity.tpl.php
  8. 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

template_preprocess()

template_preprocess_entity()

template_process()

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().

... See full list

File

sites/all/modules/ulmus/entity/theme/entity.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for entities.
  5. *
  6. * Available variables:
  7. * - $content: An array of comment items. Use render($content) to print them all, or
  8. * print a subset such as render($content['field_example']). Use
  9. * hide($content['field_example']) to temporarily suppress the printing of a
  10. * given element.
  11. * - $title: The (sanitized) entity label.
  12. * - $url: Direct url of the current entity if specified.
  13. * - $page: Flag for the full page state.
  14. * - $classes: String of classes that can be used to style contextually through
  15. * CSS. It can be manipulated through the variable $classes_array from
  16. * preprocess functions. By default the following classes are available, where
  17. * the parts enclosed by {} are replaced by the appropriate values:
  18. * - entity-{ENTITY_TYPE}
  19. * - {ENTITY_TYPE}-{BUNDLE}
  20. *
  21. * Other variables:
  22. * - $classes_array: Array of html class attribute values. It is flattened
  23. * into a string within the variable $classes.
  24. *
  25. * @see template_preprocess()
  26. * @see template_preprocess_entity()
  27. * @see template_process()
  28. */
  29. ?>
  30. <div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  31. <?php if (!$page): ?>
  32. <h2<?php print $title_attributes; ?>>
  33. <?php if ($url): ?>
  34. <a href="<?php print $url; ?>"><?php print $title; ?></a>
  35. <?php else: ?>
  36. <?php print $title; ?>
  37. <?php endif; ?>
  38. </h2>
  39. <?php endif; ?>
  40. <div class="content"<?php print $content_attributes; ?>>
  41. <?php
  42. print render($content);
  43. ?>
  44. </div>
  45. </div>
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.