Skip to content

Instantly share code, notes, and snippets.

View DevinWalker's full-sized avatar
🌱
Coding for good

Devin Walker DevinWalker

🌱
Coding for good
View GitHub Profile
@DevinWalker
DevinWalker / cmb2-address.php
Created July 29, 2015 22:15
Plugin demonstrating CMB2 address field as repeatable
<?php
/*
* Plugin Name: CMB2 Custom Field Type - Address
* Description: Makes available an 'address' CMB2 Custom Field Type. Based on https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types#example-4-multiple-inputs-one-field-lets-create-an-address-field
* Author: jtsternberg
* Author URI: http://dsgnwrks.pro
* Version: 0.1.0
*/
/**
@DevinWalker
DevinWalker / resize_local_machine.sh
Created July 23, 2019 23:00 — forked from claygriffiths/resize_local_machine.sh
Resize Local by Flywheel VirtualBox image
# Steps we will take:
# 1. Change Local (Docker Machine) image type (this will take a bit)
# 2. Resize image
# 3. Resize partion
#
# Also see: https://docs.docker.com/articles/b2d_volume_resize/
# IMPORTANT: Make sure Local is not running!
VM_NAME="local-by-flywheel"
NEW_DISK_SIZE=50000
@DevinWalker
DevinWalker / jflow-basic-markup.html
Created April 4, 2013 05:57
The jFlow markup - Copy and paste the following markup within your body tags in the appropriate DOM node.
<div id="sliderContainer">
<div id="mySlides">
<div id="slide1" class="slide">
<img src="images/jflow-sample-slide1.jpg" alt="Slide 1 jFlow Plus" />
<div class="slideContent">
<h3>You Asked, jFlow Delivered</h3>
@DevinWalker
DevinWalker / formidable-givewp-pass-values-proof-of-concept.php
Created November 22, 2019 19:34
If you'd like to pre-populate a Formidable form on the donation thank you receipt page this is a simple way to pass values to $_GET which it expects.
<?php
/**
* Passing receipt values to $_GET for formidable forms.
*
* @see: https://formidableforms.com/knowledgebase/using-dynamic-default-values-in-fields/#kb-pass-a-value-to-a-form
*
* @param $donation
* @param $give_receipt_args
*/
@DevinWalker
DevinWalker / shortcode-donor-wall.php
Created November 14, 2019 17:36
GiveWP donor wall template customized to display tribute / dedicated donations
<?php
/**
* This template is used to display the donation grid with [give_donor_wall]
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@DevinWalker
DevinWalker / theme-tour.php
Last active March 27, 2018 17:57
Theme activation welcome message
<?php
/**
* Theme Activation Tour
*
* This class handles the pointers used in the introduction tour.
* @package Popup Demo
*
*/
class WordImpress_Theme_Tour {
@DevinWalker
DevinWalker / Gravity-Form-Base-Styles.css
Last active February 25, 2018 14:50
Styles to help frontend development of Gravity Forms with the plugin's CSS turned off.
/* ==========================================================================
Gravity Forms
========================================================================== */
ul.gform_fields {
padding: 0;
margin: 0;
}
.gform_fields, .content .gform_fields {
@DevinWalker
DevinWalker / functions.php
Last active May 13, 2017 16:11 — forked from dougedgington/functions.php
WooCommerce force SSL entire shop
<?php
/*
Author: Doug Edgington
Description: modified version of Woocomemrce SSL functionality, forces ssl on Woocommerce pages and two additional custom pages
*/
function dee_ssl_template_redirect() {
if ( ! is_ssl() ) {
if ( is_checkout() || is_account_page() || is_woocommerce() ) {
@DevinWalker
DevinWalker / base-typography.css
Created May 13, 2014 18:28
Nice set of base styles for WordPress Blank themes and Roots theme
/*-----------------------------------------
Typography
--------------------------------------------*/
img.alignleft, img.alignright, img.alignnone {
border-radius: 0;
border: none;
}
/* Basic form style cleanup */
ul#give-donation-level-radio-list {
list-style: none;
padding: 0;
}
ul#give-donation-level-radio-list input {
margin: 0 5px 0 3px;
}