@@ 1513-1522 (lines=10) @@ | ||
1510 | $content); |
|
1511 | ||
1512 | $pieces = explode('<@IF:', $content); |
|
1513 | foreach ($pieces as $i => $split) { |
|
1514 | if ($i === 0) { |
|
1515 | $content = $split; |
|
1516 | continue; |
|
1517 | } |
|
1518 | list($cmd, $text) = explode('>', $split, 2); |
|
1519 | $cmd = str_replace("'", "\'", $cmd); |
|
1520 | $content .= "<?php if(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
1521 | $content .= $text; |
|
1522 | } |
|
1523 | $pieces = explode('<@ELSEIF:', $content); |
|
1524 | foreach ($pieces as $i => $split) { |
|
1525 | if ($i === 0) { |
|
@@ 1524-1533 (lines=10) @@ | ||
1521 | $content .= $text; |
|
1522 | } |
|
1523 | $pieces = explode('<@ELSEIF:', $content); |
|
1524 | foreach ($pieces as $i => $split) { |
|
1525 | if ($i === 0) { |
|
1526 | $content = $split; |
|
1527 | continue; |
|
1528 | } |
|
1529 | list($cmd, $text) = explode('>', $split, 2); |
|
1530 | $cmd = str_replace("'", "\'", $cmd); |
|
1531 | $content .= "<?php elseif(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
1532 | $content .= $text; |
|
1533 | } |
|
1534 | ||
1535 | $content = str_replace(array('<@ELSE>', '<@ENDIF>'), array('<?php else:?>', '<?php endif;?>'), $content); |
|
1536 | ob_start(); |