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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title> Checkout | Gala Demo 2011</title> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<meta name="robots" content="" /> | |
<link rel="stylesheet" href="http://76.179.10.111/2011/wp-content/ms-themes/3/demo-gala-1/style.css"> |
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
/** | |
* strip_articles_from_slug | |
* | |
* Remove a, an, the from post slugs on new posts, so post listings | |
* can be alphabetized by slug and ignore leading articles | |
* | |
* @param $postarr post being set up | |
* @param $data data for the database | |
* @return array | |
* @author Jessica Yazbek |
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
/** | |
* terms_clauses | |
* | |
* filter the terms clauses in get_terms(), allow post_type arg | |
* | |
* @param $clauses array | |
* @param $taxonomy string | |
* @param $args array | |
* @return array | |
* @author Jessica Yazbek |
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 Slide_Carousel { | |
/** | |
* class base for this component | |
* | |
* @var string | |
**/ | |
static $id = 'slide-carousel'; |
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
add_filter('add_post_metadata', 'create_acf_repeater', 10); | |
function create_acf_repeater($check, $object_id, $meta_key, $meta_value) | |
{ | |
if (strpos($meta_key, 'acf_repeater_') === 0) | |
{ | |
$key_base = str_replace('acf_repeater_', '', $meta_key); | |
$meta_values = explode("\n", $meta_value); | |
add_post_meta($object_id, substr($key_base, 0, strpos($key_base, '_x_')), count($meta_values)); | |
foreach ($meta_values as $i => $value) | |
{ |
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
// sfw endpoint | |
add_action( 'init', 'add_sfw_endpoint' ); | |
function add_sfw_endpoint() | |
{ | |
add_rewrite_endpoint( 'sfw', EP_ALL ); | |
} | |
add_action( 'pre_get_posts', 'sfw_pre_get_posts' ); | |
function sfw_pre_get_posts($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
<?php | |
add_action('wp_enqueue_scripts', 'enqueue_month_view_scripts'); | |
function enqueue_month_view_scripts() { | |
Tribe_Template_Factory::asset_package('ajax-calendar'); | |
Tribe_Template_Factory::asset_package('events-css'); | |
} | |
?> |
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( 'init', 'tribe_events_wootheme_compatibility' ); | |
function tribe_events_wootheme_compatibility() { | |
if ( ! is_home() ) { | |
remove_filter( 'pre_get_posts', 'woo_exclude_categories_homepage', 10 ); | |
} | |
} |
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
// Fix datepicker | |
add_action('tribe_events_form_metabox_the_date', 'tribe_fix_midway_datepicker'); | |
function tribe_fix_midway_datepicker($html) { | |
echo ThemexInterface::renderOption(array('type' => 'date')); | |
return $html; | |
} |
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
add_filter('tribe-events-bar-views', 'tribe_filter_view_names', 100); | |
function tribe_filter_view_names($views){ | |
foreach ( $views as &$view ) { | |
if ( $view['anchor'] == 'Month' ) { | |
$view['anchor'] = 'Calendar'; | |
} else if ( $view['anchor'] == 'Photo') { | |
$view['anchor'] = 'List'; | |
} | |
} | |
return $views; |
OlderNewer