Révision a08833bd
Ajouté par Assos Assos il y a presque 8 ans
drupal7/sites/all/themes/adaptivetheme/at_core/inc/process.inc | ||
---|---|---|
28 | 28 |
/** |
29 | 29 |
* Process variables for the html tag |
30 | 30 |
*/ |
31 |
/* Deprecate due to: https://www.drupal.org/node/2312157, I don't think we really need to do this for html5. |
|
31 | 32 |
function adaptivetheme_process_html_tag(&$vars) { |
32 | 33 |
$tag = &$vars['element']; |
33 | 34 |
if ($tag['#tag'] === 'style' || $tag['#tag'] === 'script') { |
... | ... | |
39 | 40 |
} |
40 | 41 |
} |
41 | 42 |
} |
43 |
*/ |
|
42 | 44 |
|
43 | 45 |
/** |
44 | 46 |
* Process variables for page.tpl.php |
... | ... | |
86 | 88 |
// Remove the frontpage title if set in theme settings |
87 | 89 |
if (at_get_setting('frontpage_remove_title') === 1 && $vars['is_front'] === TRUE) { |
88 | 90 |
$vars['title'] = ''; |
91 |
drupal_set_title(''); |
|
92 |
if (isset($vars['node'])) { |
|
93 |
$vars['node']->title = ''; |
|
94 |
} |
|
89 | 95 |
} |
90 | 96 |
} |
91 | 97 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules