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
if(function_exists("register_field_group")) | |
{ | |
register_field_group(array ( | |
'id' => 'acf_faculty-directory', | |
'title' => 'Faculty Directory', | |
'fields' => array ( | |
array ( | |
'key' => 'field_537a538dd069f', | |
'label' => 'Basic Info', | |
'name' => '', |
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
// Events Calendar Modifications | |
if(class_exists( 'TribeEventsPro' )) { | |
include_once( CHILD_DIR . '/lib/events-widgets.php'); | |
remove_action( 'widgets_init', 'events_calendar_load_featured_widget',100); | |
remove_action( 'widgets_init', 'events_list_load_widgets', 91 ); | |
remove_action( 'widgets_init', 'events_calendar_load_widgets',100); | |
// Crazy-pants advanced widget magic | |
// $TribeEventsPro = new TribeEventsPro; | |
// remove_action( 'widgets_init', array($TribeEventsPro, 'pro_widgets_init'), 101 ); | |
function do_it_activate_widgets() { |
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 | |
/** | |
* Master Calendar Upcoming Widget | |
*/ | |
if( !class_exists( 'MasterCalendarUpcoming') ) { | |
class MasterCalendarUpcoming extends WP_Widget { | |
function MasterCalendarUpcoming() { | |
$widget_ops = array('classname' => 'MasterCalendarUpcoming', 'description' => __( 'Upcoming Events List from Master Calendar') ); |
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
//* Reposition Breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
add_action( 'genesis_after_header', 'genesis_do_breadcrumbs', 6 ); | |
//Page title relocation gateway, home & interior | |
add_action('genesis_after_header', 'relocate_page_titles', 8 ); | |
function relocate_page_titles(){ | |
if( is_front_page() ){ | |
if( !is_main_site() ){ |
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
add_action ( 'gsfc_post_content','add_subtitle', 10); | |
function add_subtitle(){ | |
if ( function_exists( 'the_subtitle' ) ) { | |
the_subtitle( '<p class="entry-subtitle">', '</p>' ); | |
} | |
} |
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 ( ! defined( 'ABSPATH' ) ) die('-1'); | |
/* | |
* WDG-customized version of the Events Calendar Pro mini calendar widget. | |
* Changes are noted inline. | |
* Replacing class name: Tribe__Events__Pro__Mini_CalendarWidget | |
*/ | |
class MultisiteTribeEventsProMiniCalendarWidget extends WP_Widget { | |
function __construct() { |
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
// customize embed settings | |
function custom_youtube_settings($code){ | |
if(strpos($code, 'youtu.be') !== false || strpos($code, 'youtube.com') !== false){ | |
$return = preg_replace("@src=(['\"])?([^'\">\s]*)@", "src=$1$2&showinfo=0&rel=0&autohide=1", $code); | |
return $return; | |
} | |
return $code; | |
} | |
add_filter('embed_handler_html', 'custom_youtube_settings'); |
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 Featured Sandbox - Switch to Blog 1 | |
add_action ( 'gsfc_before_loop','add_category_links', 10); | |
function add_category_links(){ | |
global $blog_id; | |
if( $blog_id == '1' ) { | |
echo '<div id="nav" class="filter-news"><div class="wrap"><div class="hover-drop"><a class="filter-click suicon-angle-circled-down" href="javascript:void(0)">Filter News</a>'; | |
wp_nav_menu( |
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 Featured Sandbox - Switch to Blog 1 | |
add_action ( 'gsfc_before_post_content','add_event_info', 10); | |
function add_event_info(){ | |
global $post; | |
if (tribe_get_start_date() !== tribe_get_end_date() ) { | |
echo tribe_get_start_date( null, false, 'l\, F jS' ) . ' from <meta itemprop="startDate" content="' . tribe_get_start_date( null, false, 'Y-m-d-h:i:s' ) . '"/>' . tribe_get_start_date(null, false, 'g:i a') . 'to <meta itemprop="endDate" content="' . tribe_get_end_date( null, false, 'Y-m-d-h:i:s' ) . '"/>' . tribe_get_end_date(null, false, 'g:i a'); | |
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 ( !(tribe_event_featured_image())) { echo '<div><a href="' . tribe_get_event_link() . '"><img src="[image url goes here]" alt="' . the_title() . '" /></a></div>';} else { echo tribe_event_featured_image(null,'thumbnail'); } ?> |