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
diff --git a/tools/checkstyle.sh b/tools/checkstyle.sh | |
index 8f536e2..e206727 100755 | |
--- a/tools/checkstyle.sh | |
+++ b/tools/checkstyle.sh | |
@@ -1,7 +1,7 @@ | |
#!/bin/sh | |
-if [ x"$1" == x ]; then | |
+if [ -z "$1" ]; then | |
checkstyle -c cq-configs/checkstyle/checkstyle.xml -r src/ |
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 | |
vip_register_async_script( 'twitter', 'https://platform.twitter.com/widgets.js' ); |
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
<script type="text/javascript"> | |
// Save the hash the user loaded the page with | |
var page = (location.hash) ? location.hash : ''; | |
// When you instantiate the jQTouch object, it will revert the hash to the top div on the page or the div with class="current" | |
$jQT = new $.jQTouch({ | |
icon: 'jqtouch.png', | |
statusBar: 'black-translucent', | |
preloadImages: [ | |
'themes/jqt/img/chevron_white.png', |
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 filter_recipients($recipients, $post) { | |
// grab the users we want to filter | |
$author = get_userdata($post->post_author); | |
$current_user = wp_get_current_user(); | |
// Remove author and user who made the change from notification | |
$recipients = array_values( array_diff( $recipients,array($author->user_email, $current_user->user_email) ) ); // sorta hacky way to remove the element, found here: http://www.bin-co.com/php/scripts/array_remove.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 | |
add_filter( 'wp_mail_from', 'mycustom_wp_mail_from' ); | |
function mycustom_wp_mail_from( $from_email ) { | |
return 'abc@xyz.com'; | |
} | |
add_filter( 'wp_mail_from_name', 'mycustom_wp_mail_from_name' ); | |
function mycustom_wp_mail_from_name( $from_name ) { | |
return 'John Doe'; |
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 events_get_next_event() { | |
global $wpdb; | |
$events_table = $wpdb->prefix . 'events'; | |
$date_now = current_time('timestamp'); | |
$query = $wpdb->prepare("SELECT * FROM $events_table WHERE thetime > %s ORDER BY thetime ASC LIMIT 1", $date_now); | |
$event = $wpdb->get_row($query); | |
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
<div style="text-align: center; font-size: 10px"> | |
<img src="http://gleesays.com/quote/" alt="Glee Quote!" /> | |
<br /> | |
<a href="http://gleeksunited.wordpress.com">Powered by Gleeks United</a> | |
</div> |
OlderNewer