node.tpl.php

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  1. cis7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  2. cis7 modules/node/node.tpl.php
  3. cis7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  4. cis7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  5. cis7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  6. cis7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  7. cis7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  8. cis7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  9. cis7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  10. cis7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  11. cis7 sites/all/themes/local_contrib/zurb-foundation/templates/node.tpl.php
  12. cis7 profiles/cis/themes/cis-theme/templates/node.tpl.php
  13. cis7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  14. cis7 themes/bartik/templates/node.tpl.php
  15. cis7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  16. cis7 themes/garland/node.tpl.php
  17. cis7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  18. cle7 themes/garland/node.tpl.php
  19. cle7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  20. cle7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  21. cle7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  22. cle7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  23. cle7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  24. cle7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  25. cle7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  26. cle7 sites/all/themes/local_contrib/bootstrap/templates/node.tpl.php
  27. cle7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  28. cle7 themes/bartik/templates/node.tpl.php
  29. cle7 modules/node/node.tpl.php
  30. cle7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  31. cle7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  32. cle7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  33. cle7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  34. cle7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  35. cle7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  36. ecd7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  37. ecd7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  38. ecd7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  39. ecd7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  40. ecd7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  41. ecd7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  42. ecd7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  43. ecd7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  44. ecd7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  45. ecd7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  46. ecd7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  47. ecd7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  48. ecd7 themes/garland/node.tpl.php
  49. ecd7 modules/node/node.tpl.php
  50. ecd7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  51. ecd7 themes/bartik/templates/node.tpl.php
  52. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  53. elmsmedia7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  54. elmsmedia7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  55. elmsmedia7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  56. elmsmedia7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  57. elmsmedia7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  58. elmsmedia7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  59. elmsmedia7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  60. elmsmedia7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  61. elmsmedia7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  62. elmsmedia7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  63. elmsmedia7 themes/bartik/templates/node.tpl.php
  64. elmsmedia7 modules/node/node.tpl.php
  65. elmsmedia7 themes/garland/node.tpl.php
  66. elmsmedia7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  67. elmsmedia7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  68. harmony7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  69. harmony7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  70. harmony7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  71. harmony7 themes/garland/node.tpl.php
  72. harmony7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  73. harmony7 modules/node/node.tpl.php
  74. harmony7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  75. harmony7 themes/bartik/templates/node.tpl.php
  76. harmony7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  77. harmony7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  78. harmony7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  79. harmony7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  80. harmony7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  81. harmony7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  82. harmony7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  83. harmony7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  84. icor7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  85. icor7 themes/garland/node.tpl.php
  86. icor7 modules/node/node.tpl.php
  87. icor7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  88. icor7 themes/bartik/templates/node.tpl.php
  89. icor7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  90. icor7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  91. icor7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  92. icor7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  93. icor7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  94. icor7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  95. icor7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  96. icor7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  97. icor7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  98. icor7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  99. icor7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  100. meedjum_blog7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php
  101. meedjum_blog7 themes/garland/node.tpl.php
  102. meedjum_blog7 modules/node/node.tpl.php
  103. meedjum_blog7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  104. meedjum_blog7 themes/bartik/templates/node.tpl.php
  105. meedjum_blog7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  106. meedjum_blog7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  107. meedjum_blog7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  108. meedjum_blog7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  109. meedjum_blog7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  110. meedjum_blog7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  111. meedjum_blog7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  112. meedjum_blog7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  113. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  114. meedjum_blog7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  115. meedjum_blog7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  116. meedjum_blog7 sites/all/themes/local_contrib/meedjum/templates/node.tpl.php
  117. mooc7 sites/all/themes/local_contrib/zurb_foundation/templates/node.tpl.php
  118. mooc7 modules/node/node.tpl.php
  119. mooc7 themes/garland/node.tpl.php
  120. mooc7 themes/bartik/templates/node.tpl.php
  121. mooc7 sites/all/themes/elmsln_contrib/entity_iframe_theme/node.tpl.php
  122. mooc7 sites/all/themes/ulmus/skeletontheme/templates/node.tpl.php
  123. mooc7 sites/all/themes/ulmus/corolla/templates/node.tpl.php
  124. mooc7 sites/all/themes/ulmus/respond/templates/node.tpl.php
  125. mooc7 sites/all/themes/ulmus/tao/templates/node.tpl.php
  126. mooc7 sites/all/themes/ulmus/fontfolio/templates/node.tpl.php
  127. mooc7 sites/all/themes/ulmus/rubik/templates/node.tpl.php
  128. mooc7 sites/all/themes/ulmus/omega/omega/templates/node.tpl.php
  129. mooc7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
  130. mooc7 sites/all/themes/ulmus/aurora/templates/node/node.tpl.php
  131. mooc7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/node.tpl.php
  132. mooc7 sites/all/themes/elmsln_contrib/foundation_access/templates/node/node.tpl.php

Default theme implementation to display a node.

Available variables:

  • $title: the (sanitized) title of the node.
  • $content: An array of node 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.
  • $user_picture: The node author's picture from user-picture.tpl.php.
  • $date: Formatted creation date. Preprocess functions can reformat it by calling format_date() with the desired parameters on the $created variable.
  • $name: Themed username of node author output from theme_username().
  • $node_url: Direct URL of the current node.
  • $display_submitted: Whether submission information should be displayed.
  • $submitted: Submission information created from $name and $date during template_preprocess_node().
  • $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. The default values can be one or more of the following:

    • node: The current template type; for example, "theming hook".
    • node-[type]: The current node type. For example, if the node is a "Blog entry" it would result in "node-blog". Note that the machine name will often be in a short form of the human readable label.
    • node-teaser: Nodes in teaser form.
    • node-preview: Nodes in preview mode.

    The following are controlled through the node publishing options.

    • node-promoted: Nodes promoted to the front page.
    • node-sticky: Nodes ordered above other non-sticky nodes in teaser listings.
    • node-unpublished: Unpublished nodes visible only to administrators.
  • $title_prefix (array): An array containing additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template.
  • $title_suffix (array): An array containing additional output populated by modules, intended to be displayed after the main title tag that appears in the template.

Other variables:

  • $node: Full node object. Contains data that may not be safe.
  • $type: Node type; for example, story, page, blog, etc.
  • $comment_count: Number of comments attached to the node.
  • $uid: User ID of the node author.
  • $created: Time the node was published formatted in Unix timestamp.
  • $classes_array: Array of html class attribute values. It is flattened into a string within the variable $classes.
  • $zebra: Outputs either "even" or "odd". Useful for zebra striping in teaser listings.
  • $id: Position of the node. Increments each time it's output.

Node status variables:

  • $view_mode: View mode; for example, "full", "teaser".
  • $teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser').
  • $page: Flag for the full page state.
  • $promote: Flag for front page promotion state.
  • $sticky: Flags for sticky post setting.
  • $status: Flag for published status.
  • $comment: State of comment settings for the node.
  • $readmore: Flags true if the teaser content of the node cannot hold the main body content.
  • $is_front: Flags true when presented in the front page.
  • $logged_in: Flags true when the current user is a logged-in member.
  • $is_admin: Flags true when the current user is an administrator.

Field variables: for each field instance attached to the node a corresponding variable is defined; for example, $node->body becomes $body. When needing to access a field's raw values, developers/themers are strongly encouraged to use these variables. Otherwise they will have to explicitly specify the desired field language; for example, $node->body['en'], thus overriding any language negotiation rule that was previously applied.

See also

template_preprocess()

template_preprocess_node()

template_process()

9 theme calls to node.tpl.php
addanother_node_form_message_submit in sites/all/modules/ulmus/addanother/addanother.module
Submit handler if the normal submit button was pressed, however the node has the 'message' feature enabled.
book_node_export in modules/book/book.module
Generates printer-friendly HTML for a node.
comment_links in modules/comment/comment.module
Helper function, build links for an individual comment.
comment_node_view in modules/comment/comment.module
Implements hook_node_view().
ctools_node_comment_form_content_type_render in sites/all/modules/ulmus/ctools/plugins/content_types/node_context/node_comment_form.inc

... See full list

735 string references to the theme hook from node.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_views_default_views in sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
adaptivetheme_form_search_form_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc
hook_form_FORM_ID_alter() Modify the Advanced Search Form
adaptivetheme_preprocess_block in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for block.tpl.php
adaptivetheme_preprocess_comment in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for comment.tpl.php
adaptivetheme_preprocess_node in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for node.tpl.php

... See full list

File

modules/node/node.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a node.
  5. *
  6. * Available variables:
  7. * - $title: the (sanitized) title of the node.
  8. * - $content: An array of node items. Use render($content) to print them all,
  9. * or print a subset such as render($content['field_example']). Use
  10. * hide($content['field_example']) to temporarily suppress the printing of a
  11. * given element.
  12. * - $user_picture: The node author's picture from user-picture.tpl.php.
  13. * - $date: Formatted creation date. Preprocess functions can reformat it by
  14. * calling format_date() with the desired parameters on the $created variable.
  15. * - $name: Themed username of node author output from theme_username().
  16. * - $node_url: Direct URL of the current node.
  17. * - $display_submitted: Whether submission information should be displayed.
  18. * - $submitted: Submission information created from $name and $date during
  19. * template_preprocess_node().
  20. * - $classes: String of classes that can be used to style contextually through
  21. * CSS. It can be manipulated through the variable $classes_array from
  22. * preprocess functions. The default values can be one or more of the
  23. * following:
  24. * - node: The current template type; for example, "theming hook".
  25. * - node-[type]: The current node type. For example, if the node is a
  26. * "Blog entry" it would result in "node-blog". Note that the machine
  27. * name will often be in a short form of the human readable label.
  28. * - node-teaser: Nodes in teaser form.
  29. * - node-preview: Nodes in preview mode.
  30. * The following are controlled through the node publishing options.
  31. * - node-promoted: Nodes promoted to the front page.
  32. * - node-sticky: Nodes ordered above other non-sticky nodes in teaser
  33. * listings.
  34. * - node-unpublished: Unpublished nodes visible only to administrators.
  35. * - $title_prefix (array): An array containing additional output populated by
  36. * modules, intended to be displayed in front of the main title tag that
  37. * appears in the template.
  38. * - $title_suffix (array): An array containing additional output populated by
  39. * modules, intended to be displayed after the main title tag that appears in
  40. * the template.
  41. *
  42. * Other variables:
  43. * - $node: Full node object. Contains data that may not be safe.
  44. * - $type: Node type; for example, story, page, blog, etc.
  45. * - $comment_count: Number of comments attached to the node.
  46. * - $uid: User ID of the node author.
  47. * - $created: Time the node was published formatted in Unix timestamp.
  48. * - $classes_array: Array of html class attribute values. It is flattened
  49. * into a string within the variable $classes.
  50. * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
  51. * teaser listings.
  52. * - $id: Position of the node. Increments each time it's output.
  53. *
  54. * Node status variables:
  55. * - $view_mode: View mode; for example, "full", "teaser".
  56. * - $teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser').
  57. * - $page: Flag for the full page state.
  58. * - $promote: Flag for front page promotion state.
  59. * - $sticky: Flags for sticky post setting.
  60. * - $status: Flag for published status.
  61. * - $comment: State of comment settings for the node.
  62. * - $readmore: Flags true if the teaser content of the node cannot hold the
  63. * main body content.
  64. * - $is_front: Flags true when presented in the front page.
  65. * - $logged_in: Flags true when the current user is a logged-in member.
  66. * - $is_admin: Flags true when the current user is an administrator.
  67. *
  68. * Field variables: for each field instance attached to the node a corresponding
  69. * variable is defined; for example, $node->body becomes $body. When needing to
  70. * access a field's raw values, developers/themers are strongly encouraged to
  71. * use these variables. Otherwise they will have to explicitly specify the
  72. * desired field language; for example, $node->body['en'], thus overriding any
  73. * language negotiation rule that was previously applied.
  74. *
  75. * @see template_preprocess()
  76. * @see template_preprocess_node()
  77. * @see template_process()
  78. *
  79. * @ingroup themeable
  80. */
  81. ?>
  82. <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  83. <?php print $user_picture; ?>
  84. <?php print render($title_prefix); ?>
  85. <?php if (!$page): ?>
  86. <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  87. <?php endif; ?>
  88. <?php print render($title_suffix); ?>
  89. <?php if ($display_submitted): ?>
  90. <div class="submitted">
  91. <?php print $submitted; ?>
  92. </div>
  93. <?php endif; ?>
  94. <div class="content"<?php print $content_attributes; ?>>
  95. <?php
  96. // We hide the comments and links now so that we can render them later.
  97. hide($content['comments']);
  98. hide($content['links']);
  99. print render($content);
  100. ?>
  101. </div>
  102. <?php print render($content['links']); ?>
  103. <?php print render($content['comments']); ?>
  104. </div>

Related topics

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.