This problem caused from non-printing of $tabs2.

Comments

gtsopour’s picture

This problem caused from non-printing of $tabs2. I committed those changes, so will be included in next Bluemasters theme release.

However, in order to fix this issue directly, follow the instructions below:

1. Add to your template.php file the code

/**
 * Override or insert PHPTemplate variables into the templates.
 */
function phptemplate_preprocess_page(&$vars) {
  $vars['tabs2'] = menu_secondary_local_tasks();
}

2. then, print $tabs2 at your page.tpl.php file (under "print $tabs;")

.
.
.
<?php print $tabs;?>   
<?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
.
.
.

Finally, in order to see tabs2 you should clear your cache through admin/settings/performance.

gtsopour’s picture

Status: Active » Fixed

Fixed and committed.

Bitvark’s picture

Hi,
it should be better edit only template.php file and add to phptemplate_menu_local_tasks function following code before returning output:

if ($secondary = menu_secondary_local_tasks()) {
    $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
  }

function should become as follows:

function phptemplate_menu_local_tasks() {
  $output = '';

  if ($primary = menu_primary_local_tasks()) {
    $output .= "<ul class=\"tabs primary\">\n". $primary ."</ul>\n";
  }
  if ($secondary = menu_secondary_local_tasks()) {
    $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
  }
  return $output;
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bkenro’s picture

It doesn't seem to be fixed for me.
phptemplate_menu_local_tasks missing the if-clause for $secondary.

beto_beto’s picture

i have the same problem here ,, in other theme

the sub-tab containing [ *Form Components *E-mails *Form Settings] under Webform.

dose not show .