Skip to content

Instantly share code, notes, and snippets.

if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
function your_shipping_method_init() {
if ( ! class_exists( 'WC_Your_Shipping_Method' ) ) {
class WC_Your_Shipping_Method extends WC_Shipping_Method {
/**
* Constructor for your shipping class
*
* @access public
* @return void
@media (min-width:768px){
.gallery-item .gallery-caption {
-webkit-animation: fadeIn ease-in-out 1;
-moz-animation: fadeIn ease-in-out 1;
animation: fadeIn ease-in-out 1;
}
}
@phoenixMag00
phoenixMag00 / three-dot-nine.php
Last active January 6, 2016 00:58
custom jmig 3.9
<?php
defined('ABSPATH') or die("No script kiddies please!");
$jmig_options = get_option('jmig_option');
if (!isset($jmig_options['no_added_css'])) {
function jmig_html5_gallery()
{
@phoenixMag00
phoenixMag00 / gist:34fdf092d5c98c9f72f0
Created January 21, 2015 21:13
functions/three-dot-nine.php
<?php
$jmig_options = get_option('jmig_option');
if(!isset($jmig_options['no_added_css'])) {
function jmig_html5_gallery() {
add_theme_support( 'html5', array( 'gallery', 'caption' ) );
(function($) {
/*
* render_map
*
* This function will render a Google Map onto the selected jQuery element
*
* @type function
* @date 8/11/2013
* @since 4.3.0
@phoenixMag00
phoenixMag00 / gist:680779f6fa15ba9d28ef
Created May 14, 2014 19:27
Grunt File to UNCSS WordPress site
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec: {
set_max_files: {
command: 'ulimit -n 1024'
},
get_grunt_sitemap: {