This file contains hidden or 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 | |
// Hide Email from Spam Bots | |
function cwc_mail_shortcode( $atts , $content = null ) { | |
if ( ! is_email( $content ) ) | |
return; | |
for ( $i = 0; $i < strlen( $content ); $i++ ) | |
$encodedmail .= "&#" . ord( $content[$i] ) . ';'; | |
return '<a href="' . esc_url( 'mailto:' . $encodedmail ) . '">Email</a>'; |
This file contains hidden or 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
#!/bin/bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/Sites/wp-plugins/$DIR_NAME/$BRANCH |
OlderNewer