]*>([^<]*)~', '$2'. '', $link); return $output; } // $id$ function Khaingthem_regions() { return array( 'left' => t('left sidebar'), 'right' => t('right sidebar'), 'content' => t('content')); } function Khaingthem_breadcrumb($breadcrumb) { return art_breadcrumb_woker($breadcrumb); } function Khaingthem_comment_wrapper($content, $type = null) { return art_comment_woker($content, $type = null); } function Khaingthem_links($links, $attributes = array('class' => 'links')) { return art_links_woker($links, $attributes = array('class' => 'links')); } function Khaingthem_menu_local_tasks() { return art_menu_local_tasks(); } /** * Returns a rendered menu tree for Drupal 6.x. * * @param $tree * A data structure representing the tree as returned from menu_tree_data. * @return * The rendered HTML of that data structure. */ function art_menu_tree_output_d6($tree) { $tree = art_menu_tree_d6($tree); if (!empty($tree)) { return ''; } } function art_menu_tree_d6($tree) { $output = ''; $items = array(); // Pull out just the menu items we are going to render so that we // get an accurate count for the first/last classes. foreach ($tree as $data) { if (!$data['link']['hidden']) { $items[] = $data; } } $num_items = count($items); foreach ($items as $i => $data) { $link = art_menu_item_link_d6($data['link']); if ($data['below']) { $output .= art_menu_item_d6($link, art_menu_tree_d6($data['below'])); } else { $output .= art_menu_item_d6($link, ''); } } return $output; } /** * Generate the HTML output for a menu item and submenu for Drupal 6.x. * * @ingroup themeable */ function art_menu_item_d6($link, $menu = '') { if ('' != $menu) { $menu = "\n"; } return '
  • '. $link . $menu . "
  • \n"; } /** * Generate the HTML output for a single menu link for Drupal 6.x. * * @ingroup themeable */ function art_menu_item_link_d6($link) { if (empty($link['localized_options'])) { $link['localized_options'] = array(); } $link = l($link['title'], $link['href'], $link['localized_options']); return preg_replace('~(]*>)(.*)()~', '$1$2$3', $link); }