Changeset 1122:a3930c0388b2 for inc/public
- Timestamp:
- 03/20/13 11:38:16 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r980 r1122 42 42 # Loops test tags 43 43 $this->addBlock('LoopPosition',array($this,'LoopPosition')); 44 $this->addValue('LoopIndex',array($this,'LoopIndex')); 44 45 45 46 # Archives … … 528 529 "<?php endif; ?>"; 529 530 } 531 532 public function LoopIndex($attr) 533 { 534 $f = $this->getFilters($attr); 535 return '<?php '.sprintf($f,'(!$_ctx->cur_loop ? 0 : $_ctx->cur_loop->index() + 1)').' ?>'; 536 } 530 537 531 538
Note: See TracChangeset
for help on using the changeset viewer.