Drupal: link
l('label', 'path', array('query' => 'destination=node'));
Added to Drupal by David Reed
Sitemap XML
<?xml version=”1.0” encoding=’UTF-8’?>
<urlset xmlns=’//www.sitemaps.org/schemas/sitemap/0.9’>
<url>
<loc>//www.site.com/</loc>
<lastmod>2008-11-04</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
</urlset>
Added to Misc by Nikos Mouratidis
Clearing div
.clearing {clear:both; height:0; overflow:hidden; margin:-1px 0 0 0;}
Added to CSS by Mark Evans
Get Value of Select and Load external file to div (jQuery)
$(document).ready(function(){
$('#contactFormSelect :selected').val();
$("#contactFormSelect").change(function(){
$('#formLoader').load($('#contactFormSelect').val());
});
});
Added to JS by Mark Evans
Textarea Character Count (jQuery)
// controls character input/counter
$('textarea#body').keyup(function() {
var charLength = $(this).val().length;
// Displays count
$('span#charCount').html(charLength + ' of 250 characters used');
// Alerts when 250 characters is reached
if($(this).val().length > 250)
$('span#charCount').html('<strong>You may only have up to 250 characters.</strong>');
});
Added to JS by Mark Evans
AMFPHP class
<?php
class service {
public function __construct() {
}
/**
* description
* @returns value
*/
function name() {
}
}
?>