diff -crB ../../public/class.dc.template.php ../inc/public/class.dc.template.php
*** ../../public/class.dc.template.php	2014-08-18 11:21:37.221625574 -0400
--- ../inc/public/class.dc.template.php	2014-08-18 11:09:10.692467885 -0400
***************
*** 519,532 ****
  	{
  		$start = isset($attr['start']) ? (integer) $attr['start'] : '0';
  		$length = isset($attr['length']) ? (integer) $attr['length'] : 'null';
! 		$even = isset($attr['even']) ? (integer) (boolean) $attr['even'] : 'null';
  
  		if ($start > 0) {
  			$start--;
  		}
  
  		return
! 		'<?php if ($_ctx->loopPosition('.$start.','.$length.','.$even.')) : ?>'.
  		$content.
  		"<?php endif; ?>";
  	}
--- 519,532 ----
  	{
  		$start = isset($attr['start']) ? (integer) $attr['start'] : '0';
  		$length = isset($attr['length']) ? (integer) $attr['length'] : 'null';
! 		$mod = isset($attr['mod']) ? (integer) $attr['mod'] : 'null';
  
  		if ($start > 0) {
  			$start--;
  		}
  
  		return
! 		'<?php if ($_ctx->loopPosition('.$start.','.$length.','.$mod.')) : ?>'.
  		$content.
  		"<?php endif; ?>";
  	}
diff -crB ../../public/lib.tpl.context.php ../inc/public/lib.tpl.context.php
*** ../../public/lib.tpl.context.php	2014-08-18 11:21:36.464956399 -0400
--- ../inc/public/lib.tpl.context.php	2014-08-18 11:17:09.624069735 -0400
***************
*** 58,64 ****
  	}
  
  	# Loop position tests
! 	public function loopPosition($start,$length=null,$even=null)
  	{
  		if (!$this->cur_loop) {
  			return false;
--- 58,64 ----
  	}
  
  	# Loop position tests
! 	public function loopPosition($start,$length=null,$mod=null)
  	{
  		if (!$this->cur_loop) {
  			return false;
***************
*** 91,98 ****
  			}
  		}
  
! 		if ($even !== null) {
! 			$test = $test && $index%2 == $even;
  		}
  
  		return $test;
--- 91,98 ----
  			}
  		}
  
! 		if ($mod !== null) {
! 			$test = $test && $index % $mod == 0;
  		}
  
  		return $test;
