file theme.inc

The UIkit theme system, which controls the output of the UIkit theme.

The theme system allows for nearly all output of the Drupal system to be customized by UIkit themes.

File

includes/theme.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * The UIkit theme system, which controls the output of the UIkit theme.
  5. *
  6. * The theme system allows for nearly all output of the Drupal system to be
  7. * customized by UIkit themes.
  8. *
  9. * @ingroup uikit_themeable
  10. */
  11. /**
  12. * Implements hook_theme().
  13. */
  14. function uikit_theme($existing, $type, $theme, $path) {
  15. $items['menu__navbar'] = [
  16. 'base hook' => 'menu',
  17. 'variables' => ['items' => [], 'attributes' => []],
  18. 'path' => drupal_get_path('theme', 'uikit') . '/templates/navigation',
  19. 'template' => 'menu--navbar',
  20. ];
  21. $items['menu__offcanvas'] = [
  22. 'base hook' => 'menu',
  23. 'variables' => ['items' => [], 'attributes' => []],
  24. 'path' => drupal_get_path('theme', 'uikit') . '/templates/navigation',
  25. 'template' => 'menu--offcanvas',
  26. ];
  27. return $items;
  28. }

Functions

Name Description
uikit_themeImplements hook_theme().

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in