You are here

qtip.theme.inc in qTip (Stylish jQuery Tooltips) 7.2

File

includes/qtip.theme.inc
View source
<?php

/**
 * Theme function for a qtip.
 */
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;
}
function theme_qtip_form($vars) {
  $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;
}

Functions

Namesort descending Description
theme_qtip Theme function for a qtip.
theme_qtip_form