Skip to content
Snippets Groups Projects
Commit 02e4cab6 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #1472724 by jibran, balsama, kiamlaluno, asrob, mjonesdinero: Fix bad...

Issue #1472724 by  jibran, balsama, kiamlaluno, asrob, mjonesdinero: Fix bad usage of i.e. and e.g. in node.tpl.php files
parent 3013324c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -21,11 +21,12 @@
* - $attributes: An instance of Attributes class that can be manipulated as an
* array and printed as a string.
* It includes the 'class' information, which includes:
* - node: The current template type, i.e., "theming hook".
* - node: The current template type; for example, "theming hook".
* - node-[type]: The current node type. For example, if the node is a
* "Article" it would result in "node-article". Note that the machine
* name will often be in a short form of the human readable label.
* - view-mode-[view_mode]: The View Mode of the node e.g. teaser or full.
* - view-mode-[view_mode]: The View Mode of the node; for example, "teaser"
* or "full".
* - preview: Nodes in preview mode.
* The following are controlled through the node publishing options.
* - promoted: Nodes promoted to the front page.
......@@ -41,7 +42,7 @@
*
* Other variables:
* - $node: Full node entity. Contains data that may not be safe.
* - $type: Node type, i.e. page, article, etc.
* - $type: Node type; for example, page, article, 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.
......@@ -50,7 +51,7 @@
* - $id: Position of the node. Increments each time it's output.
*
* Node status variables:
* - $view_mode: View mode, e.g. 'full', 'teaser'...
* - $view_mode: View mode; for example, "teaser" or "full".
* - $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.
......@@ -64,11 +65,11 @@
* - $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.
* 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 template_preprocess()
* @see template_preprocess_node()
......
......@@ -12,8 +12,7 @@
* 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.
* 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.
......@@ -22,11 +21,12 @@
* - $attributes: An instance of Attributes class that can be manipulated as an
* array and printed as a string.
* It includes the 'class' information, which includes:
* - node: The current template type, i.e., "theming hook".
* - node: The current template type; for example, "theming hook".
* - node-[type]: The current node type. For example, if the node is a
* "Article" it would result in "node-article". Note that the machine
* name will often be in a short form of the human readable label.
* - view-mode-[view_mode]: The View Mode of the node e.g. teaser or full.
* - view-mode-[view_mode]: The View Mode of the node; for example, "teaser"
* or "full".
* - preview: Nodes in preview mode.
* The following are controlled through the node publishing options.
* - promoted: Nodes promoted to the front page.
......@@ -42,7 +42,7 @@
*
* Other variables:
* - $node: Full node entity. Contains data that may not be safe.
* - $type: Node type, i.e. page, article, etc.
* - $type: Node type; for example, page, article, 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.
......@@ -51,7 +51,7 @@
* - $id: Position of the node. Increments each time it's output.
*
* Node status variables:
* - $view_mode: View mode, e.g. 'full', 'teaser'...
* - $view_mode: View mode; for example, "teaser" or "full".
* - $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.
......@@ -65,11 +65,11 @@
* - $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
* 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, e.g. $node->body['en'], thus overriding
* any language negotiation rule that was previously applied.
* specify the desired field language; for example, $node->body['en'], thus
* overriding any language negotiation rule that was previously applied.
*
* @see template_preprocess()
* @see template_preprocess_node()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment