Révision 74f6bef0
Ajouté par Assos Assos il y a plus de 10 ans
drupal7/sites/all/themes/adaptivetheme/at_core/templates/node.tpl.php | ||
---|---|---|
17 | 17 |
* - $header_attributes: attributes such as classes to apply to the header element. |
18 | 18 |
* - $footer_attributes: attributes such as classes to apply to the footer element. |
19 | 19 |
* - $links_attributes: attributes such as classes to apply to the nav element. |
20 |
* - $is_mobile: Bool, requires the Browscap module to return TRUE for mobile |
|
21 |
* devices. Use to test for a mobile context. |
|
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. |
|
22 | 25 |
* |
23 | 26 |
* Available variables: |
24 | 27 |
* - $title: the (sanitized) title of the node. |
... | ... | |
95 | 98 |
*/ |
96 | 99 |
|
97 | 100 |
/** |
98 |
* Hiding Content and Printing it Separately
|
|
101 |
* Hide Content and Print it Separately
|
|
99 | 102 |
* |
100 | 103 |
* Use the hide() function to hide fields and other content, you can render it |
101 | 104 |
* later using the render() function. Install the Devel module and use |
102 |
* <?php print dsm($content); ?> to find variable names to hide() or render().
|
|
105 |
* <?php dsm($content); ?> to find variable names to hide() or render(). |
|
103 | 106 |
*/ |
104 | 107 |
hide($content['comments']); |
105 | 108 |
hide($content['links']); |
Formats disponibles : Unified diff
Weekly update of contrib modules