Skip to content

Instantly share code, notes, and snippets.

View miguelmich's full-sized avatar

Miguel Henao miguelmich

View GitHub Profile
@miguelmich
miguelmich / edd_google_tracking_code.php
Created November 30, 2014 00:14
Easy Digital Downloads - Google Conversion Tracking Code
<?php
//Google Analytics E-commerce Tracking code
function your_prefix_google_ecommerce_tracking_code() {
$success_page = edd_get_option( 'success_page' ) ? is_page( edd_get_option( 'success_page' ) ) : false;
if ( ! $success_page || !edd_is_success_page() ){
return;
}
@miguelmich
miguelmich / wizard-validation.html
Created December 23, 2014 14:26
Fuel UX - Wizard Parsley Validation
<script type="text/javascript">
$(document).ready(function(){
App.init();
App.wizard();
$('form').parsley();
$('#wizard1').on('actionclicked.fu.wizard', function (evt, data) {
if( !$("#your-form-id").parsley().validate() ){
@miguelmich
miguelmich / rows-number.js
Created January 22, 2015 15:40
Data Tables Rows number
var oTable = $('#datatable2').dataTable( {
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 0 ] }
],
"aaSorting": [[1, 'asc']],
"iDisplayLength": 5
});