Révision 74f6bef0
Ajouté par Assos Assos il y a plus de 10 ans
drupal7/sites/all/themes/adaptivetheme/at_core/layouts/panels/five_5x20/five_5x20.inc | ||
---|---|---|
138 | 138 |
* Preprocess variables for five-5x20.tpl.php |
139 | 139 |
*/ |
140 | 140 |
function template_preprocess_five_5x20(&$vars) { |
141 |
// We need to initialize these variables when Panels is displaying the template. |
|
142 |
// These are used primarily when the template is being rendered via Display suite |
|
143 |
// as a "node" so we can programatically wrap the layout in <article> elements |
|
144 |
// with appropriate classes and id. |
|
141 |
/** |
|
142 |
* We need to initialize these variables when Panels is displaying the template. |
|
143 |
* These are used primarily when the template is being rendered via Display suite |
|
144 |
* as a "node" so we can programatically wrap the layout in <article> elements |
|
145 |
* with appropriate classes and id. |
|
146 |
* |
|
147 |
* Note that in Display Suite layout plugin preprocess and process functions are |
|
148 |
* not fired, instead we need to use the functions for the template being |
|
149 |
* modified by DS, such as node, user or search. AT Core sets these prefix and |
|
150 |
* suffix vars for nodes in adaptivetheme_process_node(). |
|
151 |
*/ |
|
145 | 152 |
$vars['panel_prefix'] = ''; |
146 | 153 |
$vars['panel_suffix'] = ''; |
147 |
|
|
148 |
// Set up attributes array |
|
149 |
$vars['attributes_array']['id'][] = $vars['css_id']; |
|
150 |
//<?php if (!empty($css_id)) { print "id=\"$css_id\""; } |
|
151 | 154 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules