Skip to content

Instantly share code, notes, and snippets.

View pauloiankoski's full-sized avatar

Paulo Iankoski pauloiankoski

View GitHub Profile
jQuery.extend(jQuery.validator.messages, {
required: "This field is required.",
remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter a valid number.",
digits: "Please enter only digits.",
creditcard: "Please enter a valid credit card number.",
<?php
/**
* Customize Image Reloaded Class
*
* Extend WP_Customize_Image_Control allowing access to uploads made within
* the same context
*/
class My_Customize_Image_Reloaded_Control extends WP_Customize_Image_Control {
/**
* Constructor.
@pauloiankoski
pauloiankoski / functions.php
Created August 1, 2013 13:22 — forked from claudiosanches/functions.php
Imagem de carregamento no product-single
<?php
function cs_woocommerce_add_to_cart_load() {
if ( is_product() ) {
?>
<script>
jQuery(document).ready(function($) {
$(".single_add_to_cart_button").on('click', function() {
$('<p><img src="LINK DA IMAGEM" alt="carregando" /></p>').insertAfter($(this));
});