Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert kalatheme_menu_local_tasks #273

Open
labboy0276 opened this issue Jun 9, 2016 · 1 comment
Open

Convert kalatheme_menu_local_tasks #273

labboy0276 opened this issue Jun 9, 2016 · 1 comment
Assignees
Milestone

Comments

@labboy0276
Copy link

labboy0276 commented Jun 9, 2016

Reference: https://www.drupal.org/node/1354#themepreprocess

Convert kalatheme_menu_local_tasks in includes/menu.inc to template_preprocess_menu_local_tasks(&$variables) in KalathemeBootstrap Class (John added placeholder it to the interface):

Add in menu-local-tasks.html.twig

Also there is some residual code for this in kalatheme_process_page (move to preprocess):

  // Define variables to theme local actions as a dropdown.
  $dropdown_attributes = array(
    'container' => array(
      'class' => array('dropdown', 'actions', 'pull-right'),
    ),
    'toggle' => array(
      'class' => array('dropdown-toggle', 'enabled'),
      'data-toggle' => array('dropdown'),
      'href' => array('#'),
    ),
    'content' => array(
      'class' => array('dropdown-menu'),
    ),
  );

  // Add local actions as the last item in the local tasks.
  if (!empty($variables['action_links'])) {
    $variables['tabs']['#primary'][]['#markup'] = theme('menu_local_actions', array('menu_actions' => $variables['action_links'], 'attributes' => $dropdown_attributes));
    $variables['action_links'] = FALSE;
  }
@labboy0276 labboy0276 added this to the 8.x-alpha milestone Jun 9, 2016
@labboy0276
Copy link
Author

I updated the task some after initial entry

@labboy0276 labboy0276 changed the title kalatheme_menu_local_tasks Convert kalatheme_menu_local_tasks Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants