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
/* iPad [portrait + landscape] and iPhone [portrait + landscape] */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) { | |
/* code here */ | |
} | |
/* iPad [portrait + landscape] */ | |
@media only screen and (device-width: 768px) { | |
/* code here */ | |
} |
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
/* iPhone [portrait + landscape] */ | |
@media only screen and (max-device-width: 480px) { | |
body { min-width: 550px; } | |
.tribe-events-thismonth, .tribe-events-othermonth { min-width: 50px; max-width:60px; } | |
#tribe-events-calendar-header { padding-top: 3em; } | |
.tribe-events-calendar-buttons { top:0; left:0; } | |
.tribe-events-calendar-widget td a.tribe-events-mini-has-event { cursor: pointer; } | |
} |
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( admin_head, 'return_meta' ); | |
function return_meta() { | |
get_user_meta_field_data ( 'drmc-department' ); | |
get_user_meta_field_data ( 'drmc-department', 'er' ); | |
} | |
function get_users_by_meta_data( $meta_key, $meta_value ) { | |
// Query for users based on the meta data |
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( 'http_api_debug', 'viper_http_api_debug', 15, 5 ); | |
function viper_http_api_debug( $response, $type, $class, $args, $url ) { | |
// You can change this from error_log() to var_dump() but it can break AJAX requests | |
var_dump( "\n<br />" . 'Request URL: ' . var_export( $url, true ) ); | |
var_dump( "\n<br />" . 'Request Args: ' . var_export( $args, true ) ); | |
var_dump( "\n<br />" . 'Request Response : ' . var_export( $response, true ) ); | |
} |
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
// Try to stop the first event category from being added to the article classes | |
// (when the default page template is used) - Thanks Barry | |
add_filter('post_class', 'remove_tribe_cat_once', 1); | |
function remove_tribe_cat_once(array $classes) { | |
if ( class_exists('TribeEvents') ) { | |
// The Main Calendar Page or Calendar Category Page | |
if (( tribe_is_month() && !is_tax() ) || ( tribe_is_month() && is_tax() )) { | |
static $count = 0; | |
if ($count++ === 0) { |
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_action( 'wp_head', 'template_name' ); | |
function template_name() { | |
if ( class_exists( 'TribeEvents' ) ) { | |
if ( tribe_is_month() && !is_tax() ) { // The Main Calendar Page | |
$template = TribeEvents::getOption('tribeEventsTemplate'); | |
print_r( $template ); | |
} | |
} | |
} |
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 | |
// Place in {your-theme}/tribe-events/pro/week/tooltip.php | |
/** | |
* | |
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates. | |
* | |
*/ |
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( 'tribe_get_ical_link' ) ) { | |
$calurl = tribe_get_ical_link(); | |
$icalurl = preg_replace('(https?://)', 'webcal://', $calurl ); | |
$gcalurl = 'https://www.google.com/calendar/render?cid=' . $calurl ; | |
} | |
?> | |
<a href="<?php echo $icalurl; ?>" title="Subscribe to this calendar using your favorite calendar program (iCal, Outlook, etc.)" class="ical">iCal Subscribe</a> | |
<a href="<?php echo $gcalurl; ?>" title="Subscribe to this calendar in your Google Calendar" class="gcal-add" target="_blank">Subscribe in Google Calendar</a> |
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
/*Another useful media feature is device-aspect-ratio.*/ | |
/*Note that the iPhone 5 does not have a 16:9 aspect ratio. It is in fact 40:71.*/ | |
/*iPhone < 5:*/ | |
@media screen and (device-aspect-ratio: 2/3) {} | |
/*iPhone 5:*/ | |
@media screen and (device-aspect-ratio: 40/71) {} |
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('tribe_get_events_title','my_custom_titles'); | |
function my_custom_titles($title) { | |
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page | |
return 'JazzSchool Events'; | |
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages | |
return 'JazzSchool Events' . ' » ' . single_term_title('', false); | |
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List |