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
<?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
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
//* 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
<?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
// 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
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
<?php | |
/* | |
Plugin Name: Faculty Custom Post Type | |
Description: Adds custom post types for faculty members | |
Version: 0.1 | |
License: GPL | |
Author: Oli Dale | |
Author URI: http://wplift.com | |
*/ |
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 | |
/** | |
* Template Name: Departmental Taxonomy Template | |
* | |
* | |
* @category faculty | |
* @package Templates | |
* @author Thomas Finley <[email protected]> | |
* @copyright Copyright (c) 2014, Shenandoah University | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
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 | |
/** | |
* Faculty Archive | |
* | |
*/ | |
add_action('genesis_meta', 'faculty_styles'); | |
function faculty_styles() { | |
wp_enqueue_style( 'faculty-css', get_stylesheet_directory_uri() . '/css/faculty.css'); |