I installed the iUI theme and related modules

- Mobile theme
- Browscap
- Mobile Tools

Everything seems to work and the new theme is selected for my iPhone. It seems that menus are messed up though

Top page:
Primary and secondary links colapse on top of each other
UC products are not accessible (nodes on frontpage)

Terms and conditions:
Designed as a book, shows correctly
When going to book page I get directed to secondary links menu

Contact form:
Too wide for screen. Goes outside and text is not visible

Secondary link - external url
is not accessible...

Comments

hebhansen’s picture

It seems that the theme grabs the help text (Mouse over) for display in mobile menu and not the actual menu text!

hebhansen’s picture

http://drupal.org/node/698906

Screendumps attached

hebhansen’s picture

Looking further into the iUI theme, it turns out that the theme is not a Drupal ready theme in itself....

The theme available at drupal.org is old code. Also the dev...

Looking at: http://www.k10design.net/articles/iui/
there are a couple of changes bottom of page for:
iui.js

req.open(method || "GET", href, true);

changed into:

req.open("POST", href, true);

and function submit form around line 327 should be:

function submitForm(form)
{
	if (form.getAttribute("target") == "_self")
			form.submit();
	Else
			iui.showPageByHref(form.action, encodeForm(form), form.method || "POST");
}
hebhansen’s picture

The theme grabs help text (yellow field when hover) instead of the actual link.

This is the code that does the job:

// Show the secondary links if they exist
if (!empty($secondary_links)) {
  $links = '';
  foreach($secondary_links as $link_name => $link) {
    $links .= "<li><a href='{$link['href']}'>{$link['attributes']['title']}</a></li>";
    // Don't display the secondary links if you're already looking at one.
    if ($_GET['q'] == $link['href']) {
      $links = '';
      break;
    }
  }

Could someone point out why, and what could solve the issue???

hebhansen’s picture

Primary links do not link anywhere...

This the code

  // Display the primary links
  if (!empty($primary_links)) {
    echo '<ul id="home" title="' . ($title ? $title : $site_name) . '" selected="true">';
    foreach($primary_links as $link_name => $link) {
      $link_title = $link['attributes']['title'] ? $link['attributes']['title'] : $link['title'];
      echo "<li><a href='{$link['href']}'>{$link_title}</a></li>";
    }
    if (!empty($content)) {
        print $content;
    }
    echo '</ul>';
  } // if (!empty($primary_links))
martinwillb’s picture

@hebhansen.... What all is need for this iUI theme to work no your iphone. I extracted it into my theme folder, enabled it, went to my drupal site via my iphone and all I see is a blank screen with a steal blueish gray blank header bar...

thx

hebhansen’s picture

This theme requires a lot of development, to really work with your site. So go over the documentation and demo's