Forked from the popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally forked: 30th October 2015
- Latest revision: 7th December 2015
This is an open source document for web designers to modify and adapt as they see fit. The idea is that it provides a good grounding for clients to understand what makes good feedback.
| public function modifyEntrySources(&$sources, $context) | |
| { | |
| if ($context === 'index') { | |
| foreach ($sources as &$source) { | |
| if (!isset($source['label'])) { | |
| continue; | |
| } | |
| $total = craft()->elements->getTotalElements($source['criteria']); | |
| $source['label'] .= ' ('. $total .')'; | |
| } |