12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- // dsm($vars);
- $node = $vars['node'];
- // $classes = array();
- $vars['classes_array'][] = 'node-'.$node->nid;
- // $vars['classes_array'][] = 'node type-'.$node->type;
- $vars['classes_array'][] = 'vm-'.$vars['view_mode'];
- // $classes[] = 'node-' . $vars['type'] . '-' . $vars['view_mode'];
- if($vars['sticky'])
- $vars['classes_array'][] = "sticky";
- if (!$vars['status'])
- $vars['classes_array'][] = "unpublished";
- if (isset($vars['flags']))
- $vars['classes_array'][] = "flaged";
- // $vars['classes_array'][] = $hook.' '.$hook.'-'.$vars['zebra'];
- if (isset($vars['workflow']))
- $vars['classes_array'][] = "workflow-".$vars['workflow'];
- $vars['theme_hook_suggestions'][] = 'node__'.$vars['view_mode'];
- $vars['theme_hook_suggestions'][] = 'node__' . $vars['type'] . '__' . $vars['view_mode'];
- if($vars['view_mode'] == 'bookmark')
- unset($vars['content']['links']);
- // dsm($vars);
- if($vars['type'] == 'didactique'){
- // dsm($node, 'node');
- if(!empty($node->field_emvideo))
- $vars['classes_array'][] = "emvideo";
- }
-
|