- Control Panel Body Classes plugin
- Control Panel JavaScript plugin
- Control Panel CSS plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .')'; | |
} |
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.
- Originally published: 3rd November 2015
- Last updated: 3rd November 2015
- Written and maintained by Andrew Fairlie http://twitter.com/andiefairlie
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Load Google Maps for geocoding of postcode --> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> | |
<!-- Check we have a valid UK postcode before attempting geocode lookup --> | |
<script> | |
function checkPostCode(toCheck) { | |
// Permitted letters depend upon their position in the postcode. | |
var alpha1 = "[abcdefghijklmnoprstuwyz]"; // Character 1 | |
var alpha2 = "[abcdefghklmnopqrstuvwxy]"; // Character 2 |