node.tpl.php

  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

Adaptivetheme implementation to display a node.

Adaptivetheme variables: AT Core sets special time and date variables for use in templates:

  • $submitted: Submission information created from $name and $date during adaptivetheme_preprocess_node(), uses the $publication_date variable.
  • $datetime: datetime stamp formatted correctly to ISO8601.
  • $publication_date: publication date, formatted with time element and pubdate attribute.
  • $datetime_updated: datetime stamp formatted correctly to ISO8601.
  • $last_update: last updated date/time, formatted with time element and pubdate attribute.
  • $custom_date_and_time: date time string used in $last_update.
  • $header_attributes: attributes such as classes to apply to the header element.
  • $footer_attributes: attributes such as classes to apply to the footer element.
  • $links_attributes: attributes such as classes to apply to the nav element.
  • $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return TRUE for mobile. Note that tablets are also considered mobile devices. Returns NULL if the feature could not be detected.
  • $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets. Returns NULL if the feature could not be detected.

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.
  • $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, i.e., "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, i.e. 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, e.g. '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, e.g. $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, e.g. $node->body['en'], thus overriding any language negotiation rule that was previously applied.

See also

template_preprocess()

template_preprocess_node()

template_process()

adaptivetheme_preprocess_node()

adaptivetheme_process_node()

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

746 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

sites/all/themes/ulmus/adaptivetheme/at_core/templates/node.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Adaptivetheme implementation to display a node.
  5. *
  6. * Adaptivetheme variables:
  7. * AT Core sets special time and date variables for use in templates:
  8. * - $submitted: Submission information created from $name and $date during
  9. * adaptivetheme_preprocess_node(), uses the $publication_date variable.
  10. * - $datetime: datetime stamp formatted correctly to ISO8601.
  11. * - $publication_date: publication date, formatted with time element and
  12. * pubdate attribute.
  13. * - $datetime_updated: datetime stamp formatted correctly to ISO8601.
  14. * - $last_update: last updated date/time, formatted with time element and
  15. * pubdate attribute.
  16. * - $custom_date_and_time: date time string used in $last_update.
  17. * - $header_attributes: attributes such as classes to apply to the header element.
  18. * - $footer_attributes: attributes such as classes to apply to the footer element.
  19. * - $links_attributes: attributes such as classes to apply to the nav element.
  20. * - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
  21. * TRUE for mobile. Note that tablets are also considered mobile devices.
  22. * Returns NULL if the feature could not be detected.
  23. * - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
  24. * Returns NULL if the feature could not be detected.
  25. *
  26. * Available variables:
  27. * - $title: the (sanitized) title of the node.
  28. * - $content: An array of node items. Use render($content) to print them all,
  29. * or print a subset such as render($content['field_example']). Use
  30. * hide($content['field_example']) to temporarily suppress the printing of a
  31. * given element.
  32. * - $user_picture: The node author's picture from user-picture.tpl.php.
  33. * - $date: Formatted creation date. Preprocess functions can reformat it by
  34. * calling format_date() with the desired parameters on the $created variable.
  35. * - $name: Themed username of node author output from theme_username().
  36. * - $node_url: Direct url of the current node.
  37. * - $display_submitted: Whether submission information should be displayed.
  38. * - $classes: String of classes that can be used to style contextually through
  39. * CSS. It can be manipulated through the variable $classes_array from
  40. * preprocess functions. The default values can be one or more of the
  41. * following:
  42. * - node: The current template type, i.e., "theming hook".
  43. * - node-[type]: The current node type. For example, if the node is a
  44. * "Blog entry" it would result in "node-blog". Note that the machine
  45. * name will often be in a short form of the human readable label.
  46. * - node-teaser: Nodes in teaser form.
  47. * - node-preview: Nodes in preview mode.
  48. * The following are controlled through the node publishing options.
  49. * - node-promoted: Nodes promoted to the front page.
  50. * - node-sticky: Nodes ordered above other non-sticky nodes in teaser
  51. * listings.
  52. * - node-unpublished: Unpublished nodes visible only to administrators.
  53. * - $title_prefix (array): An array containing additional output populated by
  54. * modules, intended to be displayed in front of the main title tag that
  55. * appears in the template.
  56. * - $title_suffix (array): An array containing additional output populated by
  57. * modules, intended to be displayed after the main title tag that appears in
  58. * the template.
  59. *
  60. * Other variables:
  61. * - $node: Full node object. Contains data that may not be safe.
  62. * - $type: Node type, i.e. story, page, blog, etc.
  63. * - $comment_count: Number of comments attached to the node.
  64. * - $uid: User ID of the node author.
  65. * - $created: Time the node was published formatted in Unix timestamp.
  66. * - $classes_array: Array of html class attribute values. It is flattened
  67. * into a string within the variable $classes.
  68. * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
  69. * teaser listings.
  70. * - $id: Position of the node. Increments each time it's output.
  71. *
  72. * Node status variables:
  73. * - $view_mode: View mode, e.g. 'full', 'teaser'...
  74. * - $teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser').
  75. * - $page: Flag for the full page state.
  76. * - $promote: Flag for front page promotion state.
  77. * - $sticky: Flags for sticky post setting.
  78. * - $status: Flag for published status.
  79. * - $comment: State of comment settings for the node.
  80. * - $readmore: Flags true if the teaser content of the node cannot hold the
  81. * main body content.
  82. * - $is_front: Flags true when presented in the front page.
  83. * - $logged_in: Flags true when the current user is a logged-in member.
  84. * - $is_admin: Flags true when the current user is an administrator.
  85. *
  86. * Field variables: for each field instance attached to the node a corresponding
  87. * variable is defined, e.g. $node->body becomes $body. When needing to access
  88. * a field's raw values, developers/themers are strongly encouraged to use these
  89. * variables. Otherwise they will have to explicitly specify the desired field
  90. * language, e.g. $node->body['en'], thus overriding any language negotiation
  91. * rule that was previously applied.
  92. *
  93. * @see template_preprocess()
  94. * @see template_preprocess_node()
  95. * @see template_process()
  96. * @see adaptivetheme_preprocess_node()
  97. * @see adaptivetheme_process_node()
  98. */
  99. /**
  100. * Hide Content and Print it Separately
  101. *
  102. * Use the hide() function to hide fields and other content, you can render it
  103. * later using the render() function. Install the Devel module and use
  104. * <?php dsm($content); ?> to find variable names to hide() or render().
  105. */
  106. hide($content['comments']);
  107. hide($content['links']);
  108. ?>
  109. <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  110. <?php print render($title_prefix); ?>
  111. <?php if ($title && !$page): ?>
  112. <header<?php print $header_attributes; ?>>
  113. <?php if ($title): ?>
  114. <h1<?php print $title_attributes; ?>>
  115. <a href="<?php print $node_url; ?>" rel="bookmark"><?php print $title; ?></a>
  116. </h1>
  117. <?php endif; ?>
  118. </header>
  119. <?php endif; ?>
  120. <?php if(!empty($user_picture) || $display_submitted): ?>
  121. <footer<?php print $footer_attributes; ?>>
  122. <?php print $user_picture; ?>
  123. <p class="author-datetime"><?php print $submitted; ?></p>
  124. </footer>
  125. <?php endif; ?>
  126. <div<?php print $content_attributes; ?>>
  127. <?php print render($content); ?>
  128. </div>
  129. <?php if ($links = render($content['links'])): ?>
  130. <nav<?php print $links_attributes; ?>><?php print $links; ?></nav>
  131. <?php endif; ?>
  132. <?php print render($content['comments']); ?>
  133. <?php print render($title_suffix); ?>
  134. </article>
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.