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
/* | |
* Genesis Remove Genesis Meta Filter on Event Calendar Pages | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
* | |
*/ | |
add_action( 'genesis_doctype', 'tribe_genesis_meta_title' ); | |
function tribe_genesis_meta_title() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { |
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 | |
/* | |
* ZENDESK API | |
*/ | |
define("ZDAPIKEY", "YOUR Zendesk API Key"); | |
define("ZDUSER", "YOUR ZENDESK USERNAME (e-mail)"); | |
define("ZDURL", "https://yourdomain.zendesk.com/api/v2"); | |
/* | |
* Here goes the Gravity Forms Functions | |
*/ |
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
/* | |
* The Events Calendar Filter Bar - Move the Filter Bar Below the Title | |
* @3.8 | |
*/ | |
add_action( 'wp_enqueue_scripts', 'removeTribeFilterBarDefaultDisplay', 50 ); | |
function removeTribeFilterBarDefaultDisplay() { | |
$filterClass = TribeEventsFilterView::instance(); | |
remove_action('tribe_events_before_template', array($filterClass, 'displaySidebar'), 25); | |
remove_action('tribe_events_bar_after_template', array($filterClass, 'displaySidebar'), 25); | |
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 | |
/** | |
* Events Pro List Widget Modified and Styled for to look like the Mini Calendar List | |
* The Events Calendar Pro @3.8 | |
* | |
* This is the template for the output of the events list widget. | |
* All the items are turned on and off through the widget admin. | |
* There is currently no default styling, which is highly needed. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/list-widget.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
/*List Widget Styled like the Mini Calendar List of the Events Calendar */ | |
.tribe-list-event-mini-styled { | |
border-bottom: 1px dotted #2f2f2f; | |
margin-bottom: 5px; | |
overflow: hidden; | |
padding-bottom: 5px; | |
width: 100%; | |
} | |
.tribe-list-event-mini-styled .list-date { |
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
/* | |
* Remove Genesis Breadcrumbs from the Event Calendar View Pages | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
*/ | |
add_action( 'genesis_before', 'tribe_remove_genesis_breadcrumbs' ); | |
function tribe_remove_genesis_breadcrumbs() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
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
/* | |
* Remove Ajax from The Events Calendar Pagination on Month, List, and Day Views | |
* @3.8 | |
* | |
*/ | |
add_action('wp_print_scripts', 'events_calendar_remove_scripts' , 10); | |
function events_calendar_remove_scripts() { | |
wp_dequeue_script( 'tribe-events-calendar'); | |
wp_dequeue_script( 'tribe-events-list'); |
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
/** | |
* The Events Calendar List Widget Get Events from a Specific Month @3.8 | |
* $month_num is set manually to November | |
*/ | |
add_filter( 'tribe_events_list_widget_query_args', 'customize_list_widget', 10, 1 ); | |
function customize_list_widget( $tribe_args_list ) { | |
$month_num = '11'; | |
$tribe_args_list['eventDate'] = date('Y') . "-$month_num-01 00:00:00"; |
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
function custom_widget_featured_image() { | |
global $post; | |
echo tribe_event_featured_image( $post->ID, 'thumbnail' ); | |
} | |
add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' ); |
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 Estimated Post Reading Time in Genesis Framework using Estimated Post Reading Time plugin | |
add_filter( 'genesis_post_info', 'afn_post_info_filter' ); | |
function afn_post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] Estimated reading time: [est_time]'; | |
return $post_info; | |
} |