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 | |
| /** | |
| * Range Control Class | |
| */ | |
| class WP_Customize_Range_Control extends WP_Customize_Control { | |
| /** | |
| * @access public | |
| * @var string |
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
| <style type="text/css" media="print"> | |
| .events-list.events-archive .tribe-events-list-event-description, | |
| .events-list.events-archive #tribe-events-bar, | |
| .events-list.events-archive #tribe-events-footer, | |
| .events-list.events-archive a.tribe-events-button, | |
| .events-list.events-archive header, | |
| .events-list.events-archive footer { | |
| display: none !important; | |
| } | |
| .events-list.events-archive .tribe-events-list .type-tribe_events { |
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_get_event_website_link', 'beatrice_event_website_rel_nofollow', 10, 2); | |
| function beatrice_event_website_rel_nofollow( $html ) { | |
| // bail if not an HTML link element | |
| if ( false === strripos( $html, '<a ' ) ) { | |
| return $html; | |
| } | |
| // bail if already has 'rel=' in HTML link element |
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 | |
| // USA timezones available at http://php.net/manual/en/timezones.america.php#114172 --> links to http://stackoverflow.com/questions/4989209/list-of-us-time-zones-for-php-to-use | |
| /* | |
| * change Gravity Forms date fields to timestamps, and do other formatting stuff as needed | |
| * inspired by https://gist.github.com/norcross/2277175 or https://gist.github.com/BronsonQuick/2834114 | |
| * https://www.gravityhelp.com/documentation/article/gform_pre_submission/ | |
| */ | |
| // http://php.net/manual/en/function.date.php | |
| // Make two fields of type 'Hidden' (NOT visibility -> Admin-only) on your GF form |
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
| // Fix .section-elsue-single-bits a { color: inherit; } making links the same color as regular text | |
| #site .section-elsue-single-bits a { | |
| color: #1C5E91; // or the LESS Variable @pl-link if that's the same | |
| &:hover { | |
| color: #40BBBF; // could use another LESS variable like @linkColorHover | |
| } | |
| &:visited { | |
| color: #647875; // could use LESS variable if set -- or even something like darken( @pl-link, 10% ); | |
| } | |
| } |
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 | |
| // https://gist.github.com/cliffordp/013e3e43a3f3bca9b7cc | |
| add_action( 'tribe_events_single_event_before_the_meta', 'forum_1005858_ticket_header_img' ); | |
| /* | |
| could use different actions to output to different places on event single page | |
| -- see /wp-content/plugins/the-events-calendar/src/views/single-event.php for more actions | |
| -- also listed below: | |
| tribe_events_single_event_before_the_content | |
| tribe_events_single_event_after_the_content |
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 you use this snippet as-is, ALL of The Events Calendar (i.e. "Core") and Pro add-on styles will NOT be loaded. | |
| // (although there may be some $handles that I didn't detect... especially from widgets, shortcodes, and the like... no guarantess ;-) | |
| // Comment out the line of each style you DO want to load. | |
| // Note the comments within each array regarding the Display style options -- https://theeventscalendar.com/knowledgebase/wp-admin-settings-overview/#display | |
| // The Display styles are "stacked". | |
| // In other words, the Skeleton files are always loaded, and the Full styles are loaded when Tribe Events Styles (i.e. Theme) is selected. | |
| // However, the commented .css example file names can change, e.g. 'full.min.css' instead of 'skeleton.min.css' or 'theme-mobile.min.css' instead of 'full-mobile.min.css' | |
| // |
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 | |
| // http://theeventscalendar.com/support/forums/topic/events-list-widget-not-showing-the-month-just-day-name-and-day-number/ | |
| // | |
| // Mini-Calendar Widget: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php | |
| // output month name abbreviation instead of day name abbreviation | |
| // e.g. change "Sat" to "Oct" | |
| add_filter( 'tribe-mini_helper_tribe_events_ajax_list_dayname', 'cliff_1011625_mini_cal_month_instead_of_day_of_week' ); | |
| function cliff_1011625_mini_cal_month_instead_of_day_of_week( $postDate ) { | |
| return date_i18n( 'M', strtotime( $postDate ) ); // changing from 'D' to 'M' -- could also use any other date format from http://php.net/manual/en/function.date.php |
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 | |
| function tec_1019677_dequeue_geoloc_script() { | |
| wp_dequeue_script( 'tribe-events-pro-geoloc' ); | |
| } | |
| add_action( 'wp_print_scripts', 'tec_1019677_dequeue_geoloc_script', 100 ); |
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_action( 'tribe_events_single_event_after_the_content', 'forum_1020203_custom_content' ); | |
| /* | |
| could use different actions to output to different places on event single page | |
| -- see /wp-content/plugins/the-events-calendar/src/views/single-event.php for more actions | |
| -- also listed below: | |
| tribe_events_single_event_before_the_content | |
| tribe_events_single_event_after_the_content | |
| tribe_events_single_event_before_the_meta | |
| tribe_events_single_event_after_the_meta |