what-did-they-say/transcript-filters/left-justified-basic/LeftJustifiedBasic.inc

18 lines
527 B
PHP
Raw Permalink Normal View History

2009-10-14 02:56:45 +00:00
<?php
class LeftJustifiedBasic extends WDTSDisplayFilters {
/**
* Filter for dialog short code.
*/
function filter_shortcode_dialog($name, $direction, $speech, $content) {
$content = '<div class="wdts-dialog"><span class="wdts-name">' . $name . '</span>';
if (!empty($direction)) {
$content .= ' <span class="wdts-direction">' . $direction . '</span>';
}
$content .= ': <span class="wdts-speech">' . $speech . '</span></div>';
return array($name, $direction, $speech, $content);
}
}
?>