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 | |
function getTwitterAvatar( $username, $size = "normal" ) { | |
// mini = 24px, normal = 48px, bigger = 73px | |
$sizes = array( "mini", "normal", "bigger" ); | |
// Check for size, default to normal | |
if( in_array( $size, $sizes ) ) { | |
$variant = $size; | |
} else { | |
$variant = "normal"; |
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 | |
/** | |
* Plugin Name: Block Editor Full Width | |
* Description: Fix the Gutenberg block editor width to the full window (with a max-width) | |
* Author: Patrick Haney | |
* Author URI: http://patrickhaney.com | |
* Version: 1.0.0 | |
* Text Domain: block_editor_full_width | |
* License: GPL2+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
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 | |
/** | |
* Plugin Name: Force WP Engine SSL | |
* Description: Prevent WP Engine's Staging & Development environments from loading via http | |
* Version: 1.0 | |
* Author: Patrick Haney | |
* | |
* This program is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License version 2, as published by the | |
* Free Software Foundation. You may NOT assume that you can use any other |
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
{ | |
"basics": { | |
"name": "Patrick Haney", | |
"label": "UX Designer & Front-End Developer", | |
"picture": "", | |
"email": "patrick@hanerino.com", | |
"phone": "", | |
"website": "http://patrickhaney.com", | |
"summary": "Patrick Haney is not a sausage. He’s a UX Designer & Front-End Developer, an instructor at RIT’s School of Design, and an accomplished conference speaker.", | |
"location": { |
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 | |
/* | |
* WordPress filters to remove default image sizes and add custom sizes. | |
* Replace PREFIX with your theme's prefix as necessary. | |
* Regenerate thumbnails after adding this to your theme's functions.php file. | |
*/ | |
// This function unsets the default image sizes | |
function PREFIX_remove_default_image_sizes( $sizes ) { | |