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
<?php | |
$output .= "\n<option id='{$taxonomy}-{$term->term_id}'$class value='". esc_attr( $term->name ) . "'" . selected( in_array( $term->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . $indent . esc_html( apply_filters('the_category', $term->name )) . '</option>'; |
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
.gist { | |
color: #e4322e; | |
} | |
.gistdiv { | |
padding: 0; | |
margin: 0; | |
} | |
.gist .gist-file { |
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
// line 205 of web.py | |
self.data['sortable_headers']['sorting_method] = { 'name': sorting_method_name, 'link': link, 'html_class': html_class } |
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 | |
add_filter( 'tribe_ical_feed_item', 'tribe_ical_add_alarm', 10, 2 ); | |
function tribe_ical_add_alarm( $item, $eventPost ) { | |
$alarm = tribe_get_custom_field( 'Alarm', $eventPost->ID ); | |
if ( !empty( $alarm ) ) { | |
$item[] = 'BEGIN:VALARM'; | |
$item[] = 'TRIGGER:-PT' . (int) $alarm . "M"; | |
$item[] = 'END:VALARM'; | |
} | |
return $item; |
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
tribe_ical_add_alarm |
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 | |
if ( is_page() ) { | |
echo 'this is a page'; | |
} elseif ( is_single() ) { | |
echo 'this is a post'; | |
echo <br>how wonderful!'; |
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 | |
if ( !defined( 'MEDIAWIKI' ) ) { | |
die( 'This file is a MediaWiki extension, it is not a valid entry point' ); | |
} | |
$wgExtensionCredits['other'][] = array( | |
'path' => __FILE__, | |
'name' => 'Google Analytics Integration', | |
'version' => '2.0.2', | |
'author' => 'Tim Laqua', |
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 | |
/** | |
* Exclude a specific category from Events Grid View | |
* | |
* @author jkudish | |
* @uses pre_get_posts filter | |
* @param object $query the query object | |
* @return object $query the filtered object | |
*/ |
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 | |
/* | |
Plugin Name: Optimizely | |
Description: Runs Optimizely experiments. | |
Author: koop, evansolomon | |
Version: 0.2 | |
*/ | |
class WPCOM_Optimizely { | |
public $version; |