View bunny-hop.php
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: Bunny Hop. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Swap Google fonts for Bunny Fonts to make the fonts GDPR compliant. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
*/ |
View chronicle-featured-content.php
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: Change Featured Content Properties | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change featured content properties | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: pdu | |
*/ |
View grandchild.php
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: Grandchild Theme | |
* Description: Load template files from a plugin. | |
* Author: Ben Gillbanks | |
* Version: 1.0.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package grandchild | |
*/ |
View broadsheet-thumnail-size.php
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: Change Archive Image Thumbnail size. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the archive image thumbnails so that they can be made full width. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
View buffer-example.php
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 | |
// Uses: https://github.com/thewebguy/bufferapp-php/blob/master/buffer.php | |
$buffer = new BufferApp( $client_id, $client_secret, $callback_url ); | |
$buffer->set_access_token( $access_token ); | |
$buffer->go( | |
'/updates/create', | |
array( | |
'text' => $message, |
View maze.php
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 | |
/** | |
* Maze.php | |
* | |
* Based on: https://github.com/chimericdream/PHP-Maze-Generator/blob/master/Maze.php | |
* This file contains the declaration for the Maze class. | |
* | |
* @file Maze.php | |
* @author Bill Parrott <bparrott@ku.edu> | |
* @date 11/30/2012 |
View gutenberg-image-alignment.php
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: Gutenberg Image Alignment | |
* Plugin URI: https://prothemedesign.com | |
* Description: Fix image alignment classes in Gutenberg. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package ptd |
View scrollbar.css
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
::-webkit-scrollbar { | |
width: 0.5rem; | |
height: 0.5rem; | |
background-color: $mid-grey; | |
border-radius: 1rem; | |
} | |
::-webkit-scrollbar-thumb { |
View the_content_filter.php
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 example( $content ) { | |
/** | |
* Only add social sharing links to the_content and not content passed through get_the_excerpt. | |
*/ | |
global $wp_current_filter; | |
if ( in_array( 'get_the_excerpt', $wp_current_filter, true ) ) { |
View bm_var_dump.php
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 | |
/** | |
* A custom var_dump that wraps the content in pre elements so it's easier to read. | |
* Inspired by: https://twitter.com/wpmark/status/1310870151483584514 | |
* | |
* @param mixed $things A variable length list of things to be output. | |
* @return void | |
*/ | |
function bm_var_dump( ...$things ) { |
NewerOlder