@@ 1912-1921 (lines=10) @@ | ||
1909 | $content = str_replace(array('<?php', '<?=', '<?', '?>'), array("{$sp}b", "{$sp}p", "{$sp}s", "{$sp}e"), $content); |
|
1910 | ||
1911 | $pieces = explode('<@IF:', $content); |
|
1912 | foreach ($pieces as $i => $split) { |
|
1913 | if ($i === 0) { |
|
1914 | $content = $split; |
|
1915 | continue; |
|
1916 | } |
|
1917 | list($cmd, $text) = explode('>', $split, 2); |
|
1918 | $cmd = str_replace("'", "\'", $cmd); |
|
1919 | $content .= "<?php if(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
1920 | $content .= $text; |
|
1921 | } |
|
1922 | $pieces = explode('<@ELSEIF:', $content); |
|
1923 | foreach ($pieces as $i => $split) { |
|
1924 | if ($i === 0) { |
|
@@ 1923-1932 (lines=10) @@ | ||
1920 | $content .= $text; |
|
1921 | } |
|
1922 | $pieces = explode('<@ELSEIF:', $content); |
|
1923 | foreach ($pieces as $i => $split) { |
|
1924 | if ($i === 0) { |
|
1925 | $content = $split; |
|
1926 | continue; |
|
1927 | } |
|
1928 | list($cmd, $text) = explode('>', $split, 2); |
|
1929 | $cmd = str_replace("'", "\'", $cmd); |
|
1930 | $content .= "<?php elseif(\$this->_parseCTagCMD('" . $cmd . "')): ?>"; |
|
1931 | $content .= $text; |
|
1932 | } |
|
1933 | ||
1934 | $content = str_replace(array('<@ELSE>', '<@ENDIF>'), array('<?php else:?>', '<?php endif;?>'), $content); |
|
1935 | ob_start(); |