Changeset 915:1420c60ab718
- Timestamp:
- 10/26/12 15:31:03 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r912 r915 85 85 $this->addValue('CategoryDescription',array($this,'CategoryDescription')); 86 86 $this->addValue('CategoryTitle',array($this,'CategoryTitle')); 87 $this->addValue('CategoryEntriesCount',array($this,'CategoryEntriesCount')); 87 88 88 89 # Comments … … 1097 1098 return '<?php echo '.sprintf($f,'$_ctx->categories->cat_title').'; ?>'; 1098 1099 } 1100 1101 /*dtd 1102 <!ELEMENT tpl:CategoryEntriesCount - O -- Category number of entries --> 1103 */ 1104 public function CategoryEntriesCount($attr) 1105 { 1106 $f = $this->getFilters($attr); 1107 return '<?php echo '.sprintf($f,'$_ctx->categories->nb_post').'; ?>'; 1108 } 1099 1109 1100 1110 /* Entries -------------------------------------------- */
Note: See TracChangeset
for help on using the changeset viewer.