Changeset 2774:65395d6bf0a5 for inc/public/lib.tpl.context.php
- Timestamp:
- 11/10/14 15:46:31 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r2676 r2774 59 59 60 60 # Loop position tests 61 public function loopPosition($start,$length=null,$even=null )61 public function loopPosition($start,$length=null,$even=null,$modulo=null) 62 62 { 63 63 if (!$this->cur_loop) { … … 94 94 if ($even !== null) { 95 95 $test = $test && $index%2 == $even; 96 } 97 98 if ($modulo !== null) { 99 $test = $test && ($index % $modulo == 0); 96 100 } 97 101
Note: See TracChangeset
for help on using the changeset viewer.