Skip to content

Instantly share code, notes, and snippets.

View bpmore's full-sized avatar

Brent Passmore bpmore

View GitHub Profile
@bpmore
bpmore / events-widgets.php
Created August 2, 2016 18:56 — forked from electricbrick/events-widgets.php
The Events Calendar Pro - Cross-site Events Widget
<?php
if ( ! defined( 'ABSPATH' ) ) die('-1');
/*
* WDG-customized version of the Events Calendar Pro mini calendar widget.
* Changes are noted inline.
* Replacing class name: TribeEventsMiniCalendarWidget
*/
class MultisiteTribeEventsMiniCalendarWidget extends WP_Widget {
function __construct() {
add_action( 'genesis_entry_content', 'os_show_featured_image_single_posts', 9 );
function os_show_featured_image_single_posts() {
global $post;
if ( ! is_singular( 'post' ) ) {
return;
}
// Get the featured image HTML