$text, 'href' => $url[0], 'query' => $query, 'attributes' => $attributes, ); break; case SERVICE_LINKS_STYLE_IMAGE: $link = array( 'title' => theme('image', service_links_expand_path($image), $text), 'href' => $url[0], 'query' => $query, 'attributes' => $attributes, 'html' => TRUE, ); break; case SERVICE_LINKS_STYLE_IMAGE_AND_TEXT: $link = array( 'title' => theme('image', service_links_expand_path($image), $text) .' '. $text, 'href' => $url[0], 'query' => $query, 'attributes' => $attributes, 'html' => TRUE, ); break; case SERVICE_LINKS_STYLE_EMPTY: $link = array( 'title' => '', 'href' => $url[0], 'query' => $query, 'attributes' => $attributes, ); break; default: $link = theme($style, $text, $url, $image, $nodelink, $attributes); } } else { $attributes = array('attributes' => $attributes); if (isset($url[1])) { $attributes['query'] = $url[1]; } switch ($style) { case SERVICE_LINKS_STYLE_TEXT: $link = l($text, $url[0], $attributes); break; case SERVICE_LINKS_STYLE_IMAGE: $attributes = array_merge($attributes, array('html' => TRUE)); $link = l(theme('image', service_links_expand_path($image), $text), $url[0], $attributes); break; case SERVICE_LINKS_STYLE_IMAGE_AND_TEXT: $attributes = array_merge($attributes, array('html' => TRUE)); $link = l(theme('image', service_links_expand_path($image), $text) .' '. $text, $url[0], $attributes); break; case SERVICE_LINKS_STYLE_EMPTY: $link = l('', $url[0], $attributes); break; case SERVICE_LINKS_STYLE_FISHEYE: $attributes['attributes']['class'] = isset($attributes['attributes']['class']) ? $attributes['attributes']['class'] .' fisheyeItem' : 'fisheyeItem' ; $attributes = array_merge($attributes, array('html' => TRUE)); $link = l(theme('image', service_links_expand_path($image, 'fisheye', 'icons'), $text, NULL, NULL, FALSE) .''. $text .'', $url[0], $attributes); break; default: $link = theme($style, $text, $url, $image, $nodelink, $attributes); } } return $link; } /** * Format the items shown in the node. */ function theme_service_links_node_format($links, $label = NULL) { if (isset($label) && !empty($label)) { return '