| @@ 1712-1721 (lines=10) @@ | ||
| 1709 | $content); |
|
| 1710 | ||
| 1711 | $pieces = explode('<@IF:', $content); |
|
| 1712 | foreach ($pieces as $i => $split) { |
|
| 1713 | if ($i === 0) { |
|
| 1714 | $content = $split; |
|
| 1715 | continue; |
|
| 1716 | } |
|
| 1717 | list($cmd, $text) = explode('>', $split, 2); |
|
| 1718 | $cmd = str_replace("'", "\'", $cmd); |
|
| 1719 | $content .= "<?php if(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
| 1720 | $content .= $text; |
|
| 1721 | } |
|
| 1722 | $pieces = explode('<@ELSEIF:', $content); |
|
| 1723 | foreach ($pieces as $i => $split) { |
|
| 1724 | if ($i === 0) { |
|
| @@ 1723-1732 (lines=10) @@ | ||
| 1720 | $content .= $text; |
|
| 1721 | } |
|
| 1722 | $pieces = explode('<@ELSEIF:', $content); |
|
| 1723 | foreach ($pieces as $i => $split) { |
|
| 1724 | if ($i === 0) { |
|
| 1725 | $content = $split; |
|
| 1726 | continue; |
|
| 1727 | } |
|
| 1728 | list($cmd, $text) = explode('>', $split, 2); |
|
| 1729 | $cmd = str_replace("'", "\'", $cmd); |
|
| 1730 | $content .= "<?php elseif(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
| 1731 | $content .= $text; |
|
| 1732 | } |
|
| 1733 | ||
| 1734 | $content = str_replace(array('<@ELSE>', '<@ENDIF>'), array('<?php else:?>', '<?php endif;?>'), $content); |
|
| 1735 | ob_start(); |
|