function shortcode_basic_tags_shortcode_highlight_tip in Shortcode 7.2
Same name and namespace in other branches
- 6 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_highlight_tip()
- 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_highlight_tip()
Provides tip callback for highlight Shortcode.
1 string reference to 'shortcode_basic_tags_shortcode_highlight_tip'
- shortcode_basic_tags_shortcode_info in shortcode_basic_tags/
shortcode_basic_tags.module - Implements hook_shortcode_info().
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 180 - Provides basic ShortCodes (as examples).
Code
function shortcode_basic_tags_shortcode_highlight_tip($format, $long) {
$output = array();
$output[] = '<p><strong>' . t('[highlight (class="additional class")]text[/highlight]') . '</strong> ';
if ($long) {
$output[] = t('Inserts span.highlight around the text.') . '</p>';
$output[] = '<p>' . t('Sample css:') . '</p>';
$output[] = '
<code>
span.highlight{
background-color:red;
}
span.highlight2{
background-color:cyan;
}
</code><p> </p>';
}
else {
$output[] = t('Inserts span.highlight around the text. Additional class names can be added by the <em>class</em> parameter.') . '</p>';
}
return implode(' ', $output);
}