Révision e4c061ad
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/ctools/includes/wizard.theme.inc | ||
---|---|---|
7 | 7 |
|
8 | 8 |
function ctools_wizard_theme(&$theme) { |
9 | 9 |
$theme['ctools_wizard_trail'] = array( |
10 |
'variables' => array('trail' => NULL), |
|
10 |
'variables' => array('trail' => NULL, 'form_info' => NULL, 'divider' => ' » '),
|
|
11 | 11 |
'file' => 'includes/wizard.theme.inc', |
12 | 12 |
); |
13 | 13 |
} |
14 | 14 |
|
15 | 15 |
/** |
16 |
* Themable display of the 'breadcrumb' trail to show the order of the |
|
17 |
* forms. |
|
16 |
* Themable display of the 'breadcrumb' trail to show the order of the forms. |
|
18 | 17 |
*/ |
19 | 18 |
function theme_ctools_wizard_trail($vars) { |
20 |
$trail = $vars['trail']; |
|
21 |
if (!empty($trail)) { |
|
22 |
return '<div class="wizard-trail">' . implode(' » ', $trail) . '</div>'; |
|
19 |
if (!empty($vars['trail'])) { |
|
20 |
return '<div class="wizard-trail">' . implode($vars['divider'], $vars['trail']) . '</div>'; |
|
23 | 21 |
} |
24 | 22 |
} |
25 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules