You are here

function theme_service_links_fisheye_format in Service links 7.2

Same name and namespace in other branches
  1. 6.2 service_links.theme.inc \theme_service_links_fisheye_format()

Format the items shown in the Fisheye block.

3 theme calls to theme_service_links_fisheye_format()
service_links_block_view in ./service_links.module
Implements hook_block_view().
service_links_service_links_content_type_render in plugins/content_types/service_links.inc
Output function for the 'service_links' content type.
theme_sld_group_fisheye in plugins/service_links_displays.module
Apply the FishEye format to the field Service Links Group.

File

./service_links.theme.inc, line 153
Theme function used by Service Links.

Code

function theme_service_links_fisheye_format($variables) {
  $items = $variables['items'];
  drupal_add_js(service_links_expand_path('interface.js', 'javascript'), array(
    'weight' => 90,
  ));
  drupal_add_js(service_links_expand_path('service_links_fisheye.js', 'javascript'), array(
    'weight' => 90,
  ));
  drupal_add_css(service_links_expand_path('service_links_fisheye.css', 'css'));
  return "<div class=\"fisheye\"><div class=\"fisheyeContainer\">\r\n" . implode("\r\n", $items) . "\r\n</div></div>";
}