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
function PHPDiff ($old, $new) { | |
$t1 = $old; | |
$t2 = $new; | |
# build a reverse-index array using the line as key and line number as value | |
# don't store blank lines, so they won't be targets of the shortest distance | |
# search |
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 | |
/** | |
* Check for Jetpack logo and replace with core logo functionality. | |
* | |
* @package granule | |
*/ | |
/** | |
* Remove Jetpack site-logo functionality and replace with support for custom logo. | |
* |
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
// Use a timeout so we can ensure any resizing/ transitions are complete. May need to make the duration a little longer. | |
// This code should be called from the code that makes the hidden widgets visible. For example in the button click event. | |
// Requires jQuery for a couple of bits - shouldn't be a problem since most WordPress themes use it. | |
setTimeout( | |
function() { | |
// Remove any media elements currently initialised. | |
// Should change .sidebar-overlay to match the html on your site. | |
// This should be some sort of container that holds the hidden widgets. | |
// The container is used to ensure widgets in visible sidebars are not affected. |
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 prefix_convert_category_id_to_slug( $value ) { | |
if ( is_int( $value ) ) { | |
$category = get_term( $value, 'category' ); | |
if ( is_wp_error( $category ) ) { | |
return $value; | |
} | |
$value = $category->slug; |
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 | |
/** | |
* Class for creating readable colour schemes | |
* | |
* @package Opti | |
*/ | |
/* | |
csscolor.php | |
Copyright 2004 Patrick Fitzgerald |
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: Enable Privacy Link | |
* Plugin URI: https://prothemedesign.com | |
* Description: Enable a privacy policy link and point it to another url. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package ptd |
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: romero | |
*/ |
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 Broadsheet slide quantity | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change number of posts that appear in the Broadsheet slider. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
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 Mimbo Pro Header Size | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the height of the header image on Mimbo Pro. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: mimbopro | |
*/ |