Skip to content

Instantly share code, notes, and snippets.

View phpkidindia's full-sized avatar

Ashok phpkidindia

View GitHub Profile
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th class="link">Longitude</th>
<th>Latitude</th>
<th>Location Name</th>
<th>Common Name</th>
<th>How Many</th>
<th>Scientific Name</th>
</tr>
@phpkidindia
phpkidindia / jq.timer.css
Created December 28, 2013 16:06
CSS and JavaScript files to be included for the dealodeal app to be working fine.....
/* jQuery Countdown styles 1.6.3. */
.hasCountdown {
border: 1px solid #ccc;
background-color: #eee;
height: 35px;
padding: 10px;
}
.countdown_rtl {
direction: rtl;
}
@phpkidindia
phpkidindia / dealTimer.liquid
Created December 28, 2013 16:05
Code Snippet for Timer app to be included in the snippets folder int the theme...
{{ 'jq.timer.js' | asset_url | script_tag }}
{{ 'jq.timer.css' | asset_url | stylesheet_tag }}
<h2>Deal Ends In</h3>
<div id="defaultCountdown"></div>
<script>
$(function () {
var my_date = '{{ product.metafields.deal.deal_date }}';
var split_date = my_date.split("-");
var split_date2 = split_date[2].split(" ")
var austDay = new Date();
@phpkidindia
phpkidindia / existing-class-wc-pay-to-upload.php
Last active December 14, 2015 21:49
Existing woocommerce pay to upload function in the /wp-content/plugins/woocommerce-pay-to-upload/classes/class-wc-pay-to-upload.php which is not working line number : 155 to 176 Replace the existing file content with the new file content.
<?php
/**
* check_for_uploadables function.
*
* @access public
* @param mixed $order_id
* @return void
*/
function check_for_uploadables( $order_id ) {
$items = get_post_meta( $order_id, '_order_items', true );