Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-level navigation and easy menu definition
#26
Connie Wrote:I modified this to

Code:
<h3><?php
    if (isset($pages[$slug]['children'])) {
    $bc = return_i18n_breadcrumbs(return_page_slug()); echo $bc[0]['menu']; echo ':';} ?></h3>

so there is output only when there are subpages, but now it is not showing anything...

$pages and $slug are not set. Try the following:

Code:
<?php
      $bc = return_i18n_breadcrumbs(return_page_slug());
      $slug = $bc[0]['url'];
      $pages = return_i18n_pages();
      if (isset($pages[$slug]['children'])) echo '<h3>'.$bc[0]['menu'].'</h3>';
    ?>

(attention: it will show the h3 even if there are only non-menu children)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Multi-level navigation and easy menu definition - by mvlcek - 2011-04-04, 00:08:07



Users browsing this thread: 1 Guest(s)