This file contains hidden or 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
<option disabled selected>Select a region</option> | |
<option value="northland">Northland</option> | |
<option value="north-shore-auckland">North Shore - Auckland</option> | |
<option value="auckland">Auckland</option> | |
<option value="waikato">Waikato</option> | |
<option value="bay-of-plenty">Bay of Plenty</option> | |
<option value="hawkes-bay">Hawkes Bay</option> | |
<option value="wellington">Wellington</option> | |
<option value="christchurch">Christchurch</option> | |
<option value="queenstown">Queenstown</option> |
This file contains hidden or 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 $temp_query = $wp_query; | |
$args = array( | |
'post_type' => 'region' | |
); | |
query_posts($args); | |
if (have_posts()) { ?> | |
<form> | |
<select id="event-region-select" autocomplete="off" onchange='doSubmit();'> |
This file contains hidden or 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
function lockBody(){ | |
$body.css('overflow', 'hidden'); | |
} | |
function unlockBody(){ | |
$body.css('overflow', 'scroll'); | |
} |
This file contains hidden or 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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
gulp.task('sass', function () { | |
return gulp.src('style.scss') | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('')); | |
}); | |
This file contains hidden or 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 | |
function adding_products() { | |
// API call | |
$feed = new Boats_API_Client( 'yachtall', 'en', array( 'code' => 'xxx', 'site_id' => 'xxx', 'bt_vers' => '3.0', 'api_vers' => '1.0' ) ); | |
echo '<pre>'; | |
var_dump($feed); | |
echo '</pre>'; |
This file contains hidden or 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 | |
/* | |
* get the abbreviated language code from get_locale() | |
*/ | |
public function get_locale_abbr() { | |
return strtok( get_locale(), "_" ); | |
} |
This file contains hidden or 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# uploaded files | |
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] |
This file contains hidden or 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
This file contains hidden or 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
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# mu-plugins, plugins, and themes directories | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
This file contains hidden or 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
# open host file | |
sudo nano /private/etc/hosts | |
# clear DNS cache | |
dscacheutil -flushcache;sudo killall -HUP mDNSResponder |