summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Quillen2013-10-28 04:36:02 (GMT)
committer Kevin Quillen2013-10-28 04:36:02 (GMT)
commitc9946bc51337b27edff0ad3474d7d9d798defcc7 (patch)
tree3ff424637d7037c4318e3c0813188268e3a3ea63
parent2ec4291367e5d173b83a54c83ab83bf85c59aa1c (diff)
Update references of node->type to node->bundle()
-rw-r--r--zurb_foundation.theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/zurb_foundation.theme b/zurb_foundation.theme
index dee7088..d84f58a 100644
--- a/zurb_foundation.theme
+++ b/zurb_foundation.theme
@@ -376,7 +376,7 @@ function zurb_foundation_preprocess_html(&$variables) {
*/
function zurb_foundation_preprocess_node(&$variables) {
// Add node--node_type--view_mode.html.twig suggestions
- $variables['theme_hook_suggestions'][] = 'node__' . $variables['elements']['#node']->type . '__' . $variables['view_mode'];
+ $variables['theme_hook_suggestions'][] = 'node__' . $variables['elements']['#node']->bundle() . '__' . $variables['view_mode'];
// Add node--view_mode.html.twig suggestions
$variables['theme_hook_suggestions'][] = 'node__' . $variables['view_mode'];
@@ -426,7 +426,7 @@ function zurb_foundation_preprocess_page(&$variables) {
// Add page--node_type.html.twig suggestions
if (!empty($variables['node'])) {
- $variables['theme_hook_suggestions'][] = 'page__' . $variables['node']->type;
+ $variables['theme_hook_suggestions'][] = 'page__' . $variables['node']->bundle();
}
$variables['logo_img'] = '';