function shortcode_basic_tags_shortcode_highlight_tip in Shortcode 6
Same name and namespace in other branches
- 7.2 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()
1 call to shortcode_basic_tags_shortcode_highlight_tip()
- shortcode_basic_tags_shortcodes in shortcode_basic_tags/
shortcode_basic_tags.module - shortcodes hook implementation
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 89
Code
function shortcode_basic_tags_shortcode_highlight_tip($format, $long) {
$output = '';
if (shortcode_shortcode_is_enabled('highlight', $format)) {
$output = '<p><strong>[highlight (class="additional class")]text[/highlight]</strong>';
if ($long) {
$output .= ' insert a span.highlight around the text.</p>';
$output .= '<p>Sample css:</p>';
$output .= '<code>
span.highlight{
background-color:red;
}
span.highlight2{
background-color:cyan;
}
</code><p> </p>';
}
else {
$output .= ' insert a span.highlight around the text. Additional class names can be added by the <em>class</em> parameter.</p>';
}
}
return $output;
}