Return to Snippet

Revision: 5175
at February 16, 2008 07:41 by chucktrukk


Initial Code
<?php

$ar_chunks = split(',',$chunks);
$ar_chunks = array_unique($ar_chunks);

$output = '';

foreach ($ar_chunks as $chunk) {
  if ($chunk != '') {
    $c = $modx->getChunk($chunk);
    if ($c) $output .= $c;
  }
} 

if ($output != '' && isset($wrapperdiv)) {
  $output = '<div id="'.$wrapperdiv.'">'.$output.'</div>';
}

return $output;

?>

Initial URL

                                

Initial Description

                                

Initial Title
chunkListParser

Initial Tags
php, textmate, template

Initial Language
PHP