View gist:1a2df68946f5e2a9889e3c7eaa8a84e2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
'use strict'; | |
var gulp = require('gulp'); | |
var path = require('path'); | |
var livereload = require('gulp-livereload'); | |
var sass = require('gulp-sass'); | |
var maps = require('gulp-sourcemaps'); | |
var cleanCSS = require('gulp-clean-css'); | |
var postcss = require('gulp-postcss'); |
View gist:fe0ac1d1a76080f86d72b6586ba0f9bc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="location-wrapper"> | |
<div class="facets-wrapper"> | |
<?php dynamic_sidebar('location-facet-widget'); ?> | |
<?php echo facetwp_display( 'facet', 'my_search' ); ?> | |
</div> | |
<div class="main-content-wrapper"> | |
<div class="facetwp-template"> | |
<?php |
View kia_convert_country_code.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Converts the WooCommerce country codes to 3-letter ISO codes | |
* https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 | |
* @param string WooCommerce's 2 letter country code | |
* @return string ISO 3-letter country code | |
*/ | |
function kia_convert_country_code( $country ) { | |
$countries = array( | |
'AF' => 'AFG', //Afghanistan |