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 | |
if ( version_compare( PHP_VERSION, '5.0.0', '>=' ) ) { | |
echo 'I am using PHP 5, my PHP_VERSION: ' . PHP_VERSION; | |
} | |
echo '<br>My phpversion(): ' . phpversion(); | |
if ( defined ( 'PHP_VERSION_ID' ) ) { | |
echo '<br>My PHP_VERSION_ID: ' . PHP_VERSION_ID; |
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_action('action_hook_espresso_social_display_buttons', 'single_custom_cart_link'); | |
function single_custom_cart_link($event_id) { | |
global $wpdb; | |
$event_name = $wpdb->get_var("SELECT event_name FROM " . EVENTS_DETAIL_TABLE . " WHERE id='" . $event_id . "'"); | |
?><div class="custom-cart-link" style="display:block;"> |
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 | |
if (!function_exists('espresso_ticket_information')) { | |
function espresso_ticket_information($atts) { | |
global $wpdb; | |
extract($atts); | |
$price_option = "{$price_option}"; | |
$type = "{$type}"; |
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 my_change_check( $content ) { | |
$content = str_replace( '<td>Check</td>', '<td>Cheque</td>', $content); | |
return $content; | |
} |
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 espresso_ticket_information($atts) { | |
global $wpdb; | |
extract($atts); | |
$price_option = "{$price_option}"; | |
$type = "{$type}"; | |
switch ($type) { | |
case 'ticket': |
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 espresso_display_purchase_order($payment_data) { | |
global $org_options; | |
extract($payment_data); | |
$default_gateway_version = empty($default_gateway_version) ? '' : $default_gateway_version; | |
echo '<!-- Event Espresso Purchase Order Gateway Version ' . $default_gateway_version . '-->'; | |
$po_payment_settings = get_option('event_espresso_purchase_order_payment_settings'); |
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 | |
//* Do NOT include the opening php tag | |
//* Load Lato and Merriweather Google fonts | |
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' ); | |
function bg_load_google_fonts() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700|Merriweather:300,700', array(), CHILD_THEME_VERSION ); | |
} |
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 EEDateTime extends DateTime | |
{ | |
public static function createFromFormat($format, $time, $timezone = null) | |
{ | |
if(!$timezone) $timezone = new DateTimeZone(date_default_timezone_get()); | |
$version = explode('.', phpversion()); | |
if(((int)$version[0] >= 5 && (int)$version[1] >= 2 && (int)$version[2] > 17)){ | |
return parent::createFromFormat($format, $time, $timezone); |
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 | |
/* | |
Template Name: minimal | |
*/ | |
?> | |
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> |
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 | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
// Add a class name to the event post's post class that's based on the category it's assigned to | |
add_filter( 'post_class', 'ee_add_taxonomy_post_class', 10, 3 ); | |
function ee_add_taxonomy_post_class( $classes, $class, $ID ) { | |
$taxonomy = 'espresso_event_categories'; | |
$terms = get_the_terms( (int) $ID, $taxonomy ); |
OlderNewer