This file contains 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
//* Conditional CSS | |
add_action( 'wp_enqueue_scripts', 'child_add_ie8_style_sheet', 200 ); | |
function child_add_ie8_style_sheet() { | |
global $wp_styles; | |
wp_enqueue_style( 'child-ie8', get_stylesheet_directory_uri() . '/style-ie8.css', array(), '1.0' ); | |
$wp_styles->add_data( 'child-ie8', 'conditional', 'lte IE 8' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_add_ie7_style_sheet', 200 ); | |
function child_add_ie7_style_sheet() { |
This file contains 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 | |
* | |
*/ | |
# Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
This file contains 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
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); // get current term | |
$parent = get_term($term->parent, get_query_var('taxonomy') ); // get parent term | |
$children = get_term_children($term->term_id, get_query_var('taxonomy')); // get children | |
if(($parent->term_id!="" && sizeof($children)>0)) { | |
// has parent and child |
This file contains 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'); |
This file contains 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 <tfinley@su.edu> | |
* @copyright Copyright (c) 2014, Shenandoah University | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
This file contains 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 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 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 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 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() ){ |
OlderNewer