popsuNoteTheme 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* implements template_preprocess_region() */
  2. /*function popsu_preprocess_region(&$variables){
  3. kint($variables);
  4. if (isset($variables['region']) && $variables['region'] == 'header_top_right') {
  5. $variables['attributes']['class'][] = "poopooboy" ;
  6. }
  7. }*/
  8. /*function popsu_preprocess_views_view_unformatted(&$variables){
  9. $variables['attributes']['class'][] = "test" ;
  10. //kint($variables).die();
  11. }*/
  12. /**
  13. * Add an alternative to file name suggestions the Custom Search form block.
  14. *
  15. * Implements hook__suggestions_HOOK_alter().
  16. * @return array Suggestions.
  17. */
  18. /*function popsu_theme_suggestions_views_view_unformatted_alter(array &$suggestions, array $variables) {
  19. $suggestions[] = 'views_view__headerView';
  20. /*if($variables['elements']['#id'] == 'customsearchform'){
  21. $suggestions[] = 'block__custom_search_form';
  22. }*/
  23. //}
  24. /*
  25. * Implements hook__suggestions_HOOK_alter().
  26. * @return array Suggestions.
  27. */
  28. /*function popsu_theme_suggestions_block_alter(array &$suggestions, array $variables) {
  29. if($variables['elements']['#id'] == 'customsearchform'){
  30. $suggestions[] = 'block__custom_search_form';
  31. }
  32. }*/