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 | |
/** Custom Functions... **/ | |
require_once( 'lib/custom-functions.php' ); | |
/** And Now Our Regularly Scheduled Brogramming... **/ | |
if ( ! class_exists( 'Timber' ) ) { | |
add_action( 'admin_notices', function() { | |
echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="' . esc_url( admin_url( 'plugins.php#timber' ) ) . '">' . esc_url( admin_url( 'plugins.php' ) ) . '</a></p></div>'; |
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 | |
/* /test/module/ModuleTest.php */ | |
class ModuleTest extends PlatformSpecificTestCase { | |
public function setUp() { | |
$this->login(); | |
} | |
// test stuff |
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
# detect the public html directory of your WP repo | |
wp-html-dir() { | |
root=$(git rev-parse --show-toplevel) | |
if [[ -d $root/html/wp ]] ; then | |
html=$root/html/wp | |
elif [[ -d $root/html ]] ; then | |
html=$root/html | |
elif [[ -d $root/wp ]] ; then | |
html=$root/wp | |
fi |
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
# .grab/config | |
GRAB_USER='user' | |
GRAB_HOST='hostname' | |
GRAB_REMOTE_ROOT='/var/www/html/some/path' |
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
<style> | |
body { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
</style> |
NewerOlder