function typogrify_filter_tips in Typogrify 5
Same name and namespace in other branches
- 6 typogrify.module \typogrify_filter_tips()
File
- ./
typogrify.module, line 27
Code
function typogrify_filter_tips($delta = 0, $format = -1, $long) {
if ($long) {
$the_output = t('Typogrify.module brings the typographic refinements of Typogrify to Drupal.<ul>
<li>Wraps ampersands (the $ldquo;&” character) with <span class=\\"amp\\">&</span>.</li>
<li>Prevents single words from wrapping onto their own line using Shaun Inman\'s Widont technique.</li>
<li>Converts straight quotation marks to typographer\'s quotation marks, using SmartyPants.</li>
<li>Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.</li>
<li>Wraps multiple capital letters with <span class=\\"caps\\">CAPS</span>.</li>
<li>Wraps initial quotation marks with <span class=\\"quo\\"></span> or <span class=\\"dquo\\"></span>.</li>
<li>Adds a css style sheet that uses the <span> tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks.</li></ul>');
}
else {
$the_output = t('Adds typographic refinements.');
}
return $the_output;
}