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: Daily Specials | |
* Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
*/ | |
remove_action('genesis_loop', 'genesis_do_loop'); | |
add_action('genesis_loop', 'custom_do_cat_loop'); | |
/** Remove Post Info */ |
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: Hybrid Template | |
* This file handles blog post listings within a page. | |
* | |
*/ | |
add_action('genesis_loop', 'custom_do_cat_loop'); |
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: Tonight's Menu | |
* Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
*/ | |
remove_action('genesis_loop', 'genesis_do_loop'); | |
add_action('genesis_loop', 'custom_do_cat_loop'); | |
/** Remove Post Info */ |
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
<?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 <[email protected]> | |
* @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 | |
*/ |
OlderNewer