Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Please change function _getclicky_output_js_code_secure_or_unsecure with this code:
function _getclicky_output_js_code_secure_or_unsecure($site_id_number, $secure) {
if ($secure == 'secure') {
$http_or_https = "https";
}
else {
$http_or_https = "http";
}
$js_code .= '
<script src="' . $http_or_https . '://static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript"><!--//--><![CDATA[//><!--
clicky.init(' . $site_id_number . ');
//--><!]]></script>
<noscript><p><img alt="Clicky" src="' . $http_or_https . '://static.getclicky.com/' . $site_id_number . 'ns.gif" /></p></noscript>';
// Add any custom code snippets if specified
$codesnippet = variable_get('getclicky_codesnippet', '');
if (!empty($codesnippet)) {
$js_code .= '<script type="text/javascript"><!--//--><![CDATA[//><!--';
$js_code .= $codesnippet;
$js_code .='//--><!]]></script>';
}
return $js_code;
}
this change output to validate XHTML code.
Comment | File | Size | Author |
---|---|---|---|
#2 | 759438-generate-valid-html-code.patch | 1.26 KB | mavimo |
Comments
Comment #1
rsvelko CreditAttribution: rsvelko commentedI will very soon
Comment #2
mavimo CreditAttribution: mavimo commentedPatch added.
Comment #3
rsvelko CreditAttribution: rsvelko commentedfixed in commit http://drupalcode.org/project/getclicky.git/commitdiff/c902623