diff --git a/inc/rain.tpl.class.php b/inc/rain.tpl.class.php index 7219422..cfdf1bc 100755 --- a/inc/rain.tpl.class.php +++ b/inc/rain.tpl.class.php @@ -350,6 +350,7 @@ protected function compileTemplate( $template_code, $tpl_basedir ){ //tag list $tag_regexp = array( 'loop' => '(\{loop(?: name){0,1}="\${0,1}[^"]*"\})', 'break' => '(\{break\})', + 'continue' => '(\{continue\})', 'loop_close' => '(\{\/loop\})', 'if' => '(\{if(?: condition){0,1}="[^"]*"\})', 'elseif' => '(\{elseif(?: condition){0,1}="[^"]*"\})', @@ -497,6 +498,14 @@ protected function compileCode( $parsed_code ){ $compiled_code .= ''; } + + // loop continue + elseif( strpos( $html, '{continue}' ) !== FALSE ) { + + //else code + $compiled_code .= ''; + + } //close loop tag elseif( strpos( $html, '{/loop}' ) !== FALSE ) {