You are here

function theme_qtip in qTip (Stylish jQuery Tooltips) 7.2

Theme function for a qtip.

8 theme calls to theme_qtip()
ctools_qtip_content_type_render in plugins/content_types/qtip.inc
Check if there are errors and if any display message.
qtip_field_field_widget_form_alter in modules/qtip_field/qtip_field.module
Implements hook_field_widget_form_alter().
qtip_field_preprocess_field in modules/qtip_field/qtip_field.module
Implements hook_preprocess_field().
qtip_list in includes/forms/qtip.list.inc
Page callback to list qTips in the system.
qtip_panels_panels_pane_prerender in modules/qtip_panels/qtip_panels.module
Implements hook_panels_pane_prerender().

... See full list

File

includes/qtip.theme.inc, line 6

Code

function theme_qtip($vars) {
  if (is_array($vars['attributes'])) {
    $vars['attributes']['class'][] = 'qtip-link';
    $output = '<span' . drupal_attributes($vars['attributes']) . '>';
  }
  else {
    $output = '<span class="qtip-link">';
  }
  $output .= filter_xss_admin($vars['content']);
  $output .= '</span>';
  $output .= '<span class="qtip-tooltip"' . (isset($vars['title']) ? ' data-qtip-title="' . filter_xss_admin($vars['title']) . '"' : '') . (isset($vars['instance']) ? ' data-qtip-instance="' . $vars['instance'] . '"' : '') . '>' . filter_xss_admin($vars['tooltip']) . '</span>';
  return $output;
}