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
// Creates iframe to submit lead data to pardot | |
// @paramList should be in the format param1=something¶m2=somethingelse | |
function submitPardotLead(formHandlerUrl = '//localhost/no-valid-form-handler-url', | |
paramList = 'noparams=provided', | |
callbackFn = function() {}) { | |
// build URL | |
var srcUrl = formHandlerUrl + '?' + paramList; | |
// create iframe el |
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
# Docker Compose for WordPress with Data Persistence | |
# | |
# Resources | |
# https://medium.com/@tatemz/local-wordpress-development-with-docker-3-easy-steps-a7c375366b9 | |
# https://hub.docker.com/_/wordpress/ | |
# https://hub.docker.com/r/_/mariadb/ | |
# https://stackoverflow.com/a/39208187/648844 | |
# https://github.com/nezhar/wordpress-docker-compose | |
# | |
version: "2" |
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
<html> | |
<head> | |
<title>Pardot Example Form Handler Submit</title> | |
<!-- Include jQuery --> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<!-- Post to Pardot function --> | |
<script type="text/javascript"> | |
// set the pardot form handler url and form element id |
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 | |
$redirects = array( | |
"/aboutus.php" => "/about-us/", | |
"/blog/2010/02" => "/blog/", | |
"/blog/2010/04" => "/blog/", | |
"/blog/2010/07" => "/blog/", | |
"/blog/2010/12" => "/blog/", | |
"/blog/2011/01" => "/blog/", | |
); |
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 | |
/* | |
* Add ACF Fields to REST responses | |
* Modified from: https://support.advancedcustomfields.com/forums/topic/rest-api/#post-32890 | |
*/ | |
add_action( 'rest_api_init', 'slug_register_acf' ); | |
function slug_register_acf() { | |
$post_types = get_post_types(['public'=>true], 'names'); | |
foreach ($post_types as $type) { | |
register_rest_field( $type, |
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
const webpack = require('webpack'); | |
// Let's us put the CSS in a separate file | |
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
// Minifies the JavaScript | |
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin'); | |
// Cleans the build directory before each build | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); |
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
// Styling Cross-Browser Compatible Range Inputs with Sass | |
// Modified from Github: https://github.com/darlanrod/input-range-sass | |
$track-color: #9896AB !default; | |
$thumb-color: $color-purple-6 !default; | |
$thumb-radius: 50% !default; | |
$thumb-height: 24px !default; | |
$thumb-width: 24px !default; | |
$thumb-shadow-size: 4px !default; |
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
'use strict'; | |
const GEOLOCATION_TYPE = { | |
GEOPOSITION: 'GEOPOSITION', | |
FREEGEOIP: 'FREEGEOIP' | |
}; | |
class Localizer { | |
constructor() { |
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 | |
// put message in ACF interface to warn people to edit custom fields here | |
function acf_warning( $hook ) { | |
if ('edit.php' != $hook) { | |
return; | |
} | |
$javascript = " | |
var acfFieldGroupEl = document.getElementById('acf-field-group-wrap'); |