function uikit_theme

8.x-3.x theme.inc uikit_theme($existing, $type, $theme, $path)
8.x-2.x theme.inc uikit_theme($existing, $type, $theme, $path)

Implements hook_theme().

File

includes/theme.inc, line 16
The UIkit theme system, which controls the output of the UIkit theme.

Code

function uikit_theme($existing, $type, $theme, $path) {
  $items ['menu__navbar'] = [
    'base hook' => 'menu',
    'variables' => ['items' => [], 'attributes' => []],
    'path' => drupal_get_path('theme', 'uikit') . '/templates/navigation',
    'template' => 'menu--navbar',
  ];
  $items ['menu__offcanvas'] = [
    'base hook' => 'menu',
    'variables' => ['items' => [], 'attributes' => []],
    'path' => drupal_get_path('theme', 'uikit') . '/templates/navigation',
    'template' => 'menu--offcanvas',
  ];

  return $items;
}

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