You are here

function shortcode_basic_tags_shortcode_clear_tip in Shortcode 7

Same name and namespace in other branches
  1. 6 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_clear_tip()
  2. 7.2 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_clear_tip()

File

shortcode_basic_tags/shortcode_basic_tags.module, line 328

Code

function shortcode_basic_tags_shortcode_clear_tip($format, $long) {
  $output = '';
  if (shortcode_shortcode_is_enabled('clear', $format)) {
    $output = '<p><strong>[clear (class="additional class"|id=item id|type=div,d,span,s)]text[/clear]</strong>';
    if ($long) {
      $output .= ' Insert a html item (type parameter = div or span) around the given text.</p>';
      $output .= '<p>Additional class names can be added by the <em>class</em> parameter. Id parameter gives the html an unique css id.</p>';
      $output .= '<p>&nbsp</p>';
    }
    else {
      $output .= ' Insert a html item (div or span) around the given text.</p>';
    }
  }
  return $output;
}