summaryrefslogtreecommitdiff
path: root/lib/smarty-plugins/block.vertical.php
blob: f0c0c13372fe596fbdf38a4b544cff43db38d6ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

function smarty_block_vertical($params, $text, &$smarty) {

    if (isset($params['strip'])) {
        $text = strip_tags($text);
    }

    $array = array();
    preg_match_all('/<.*>|[^\.]\.*/', $text, $array);

    return join('<br />', $array[0]);

}

?>