Skip to content

Instantly share code, notes, and snippets.

View MatthewEppelsheimer's full-sized avatar

Matthew Eppelsheimer MatthewEppelsheimer

View GitHub Profile
@MatthewEppelsheimer
MatthewEppelsheimer / state-shortcode.php
Created December 19, 2011 20:10
WP Contact Form 7 shortcode with list of United States
<?php
[select member-1-state "Alabama" "Alaska" "Arizona" "Arkansas" "California" "Colorado" "Connecticut" "Delaware" "Florida" "Georgia" "Hawaii" "Idaho" "Illinois" "Indiana" "Iowa" "Kansas" "Kentucky" "Louisiana" "Maine" "Maryland" "Massachusetts" "Michigan" "Minnesota" "Mississippi" "Missouri" "Montana" "Nebraska" "Nevada" "New Hampshire" "New Jersey" "New Mexico" "New York" "North Carolina" "North Dakota" "Ohio" "Oklahoma" "Oregon" "Pennsylvania" "Rhode Island" "South Carolina" "South Dakota" "Tennessee" "Texas" "Utah" "Vermont" "Virginia" "Washington" "West Virginia" "Wisconsin" "Wyoming" "--" "District of Columbia" "Puerto Rico" "Guam" "American Samoa" "U.S. Virgin Islands" "Northern Mariana Islands"]
@MatthewEppelsheimer
MatthewEppelsheimer / country-shortcode.php
Last active February 27, 2023 11:44
WP Contact Form 7 shortcode with list of Countries
<?php
/*
Localizations:
- [Spanish](https://gist.github.com/MatthewEppelsheimer/1498955#gistcomment-3317461) props @chdgp
UPDATED: 2020-03-09
@MatthewEppelsheimer
MatthewEppelsheimer / gist:1557177
Created January 3, 2012 22:03
Improved default system messages for WP-Contact-Form-7
Key:
# Message Type
Custom Message (English)
---------
# Sender's message was sent successfully
Your message was sent successfully. Thank you!
# Sender's message was failed to send
@MatthewEppelsheimer
MatthewEppelsheimer / breakpoints.css
Created January 8, 2012 06:17
Responsive Break Point Media Query Boilerplate
// Mobile First
@media screen and (min-width: 321px) { // iPhone landscape
}
@media screen and (min-width: 481px) { // iPad portrait
}
@MatthewEppelsheimer
MatthewEppelsheimer / hack.sh
Created March 31, 2012 23:00 — forked from erikh/hack.sh
OSX Settings
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2269385/a714e0e69ba99936f914ade0083709dcca6f8438/hack.sh | sh
#
@MatthewEppelsheimer
MatthewEppelsheimer / rli-wp-gitignore
Last active December 10, 2015 16:08
Ignore WordPress core files in our site-specific repos.
# --- Ignore uploads
wp-content/uploads/
# --- Ignore default content
wp-content/themes/twentyeleven/
wp-content/themes/twentytwelve/
wp-content/themes/twentythirteen/
wp-content/themes/twentyfourteen/
@MatthewEppelsheimer
MatthewEppelsheimer / gist:4527277
Created January 14, 2013 02:05
Remove addition of " (Publication)" to WP Publication Archive title output. Note! This requires addition of the 'wp_pubarch_publication_title' filter to line 681 of https://github.com/ericmann/WP-Publication-Archive/blob/master/lib/class.wp-publication-archive.php
<?php
// Remove addition of "(Publication)" to WP Publication Archive title output
function rli_normalize_wp_pubarch_title_output( $modified_title, $original_title ) {
return $original_title;
}
add_filter( 'wp_pubarch_publication_title', 'rli_normalize_wp_pubarch_title_output', 100, 2 );
@MatthewEppelsheimer
MatthewEppelsheimer / boilerplate_register_taxonomy
Last active March 4, 2016 16:08
WordPress register_taxonomy() boilerplate
// Prepare post types to associate taxonomy with
// This will only return public post types (excluding for example attachments, revisions, and nav_menu_items)
$object_types = get_post_types( array( 'public' => true ), 'names' );
// Prepare args to register taxonomy
$args = array(
'label' => _x( 'Objects', 'object taxonomy label' ) // plural label
@MatthewEppelsheimer
MatthewEppelsheimer / gist:6300605
Created August 21, 2013 21:39
An idea for Fractal to support classes packaged with themes to overriding/interrupt inheritance of Fractal plugin classes
// An idea for a way to always look in the child theme first, even if you're in a Fractal (parent theme) class.
// Every time you use would require_once for a file with a class you're about to extend, use fractal_require(), instead.
function fractal_require( $file_name_without_extension ) {
$overriding_file = get_stylesheet_directory() . "/fractal/$file_name_without_extension.php";
if ( file_exists( $overriding_file ) ) {
require_once $overriding_file;
return true;
}
// At this point, fall back to just require_once, and assume in the same directory
@MatthewEppelsheimer
MatthewEppelsheimer / bandwidthism.md
Last active December 27, 2015 04:59
Bandwidthism

Bandwidthism is differential treatment based on bandwidth quality or perceived bandwidth quality. Bandwidthism is the systematic oppression of subordinated bandwidth quality classes to advantage and strengthen the dominant bandwidth quality classes. It’s the systematic assignment of characteristics of worth and ability based on bandwidth class.

Adapted from Class Action's definition of Classism