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 | |
/** | |
* A template to display team member content | |
*/ | |
global $post; | |
?> | |
<?php | |
$team_member_email = esc_attr( get_post_meta( $post->ID, '_gravatar_email', true ) ); | |
$user = esc_attr( get_post_meta( $post->ID, '_user_id', true ) ); |
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
/** | |
* Check for IE. | |
* | |
*/ | |
if ( ! function_exists( 'is_ie' ) ) { | |
function is_ie ( $version = '6.0' ) { | |
$supported_versions = array( '6.0', '7.0', '8.0', '9.0', '10' ); | |
$agent = substr( $_SERVER['HTTP_USER_AGENT'], 25, 4 ); | |
$current_version = substr( $_SERVER['HTTP_USER_AGENT'], 30, 3 ); | |
$response = false; |
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
add_filter( 'projects_loop_columns', 'jk_projects_columns' ); | |
function jk_projects_columns( $columns ) { | |
$columns = 3; | |
return $columns; | |
} |
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
function our_team_speakers_labels( $args ) { | |
$labels['name'] = __( 'Speakers' ); | |
$labels['add_new_item'] = sprintf( __( 'Add New %s' ), __( 'Speaker' ) ); | |
$labels['add_new'] = _x( 'Add New', 'speaker' ); | |
$labels['singular_name'] = _x( 'Speaker', 'post type singular name' ); | |
$args['labels'] = $labels; | |
return $args; | |
} |
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
add_filter( 'zephyr_header_gravatar_email', 'jk_change_intro_grav_email' ); | |
function jk_change_intro_grav_email( $email ) { | |
$email = email@email.com; | |
return $email; | |
} |
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
add_filter( 'zephyr_header_gravatar', '__return_false' ); |
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
add_filter( 'subscribe_and_connect_networks_list', 'jk_change_social_links_markup' ); | |
function jk_change_social_links_markup( $list ) { | |
global $subscribe_and_connect; | |
$settings = $subscribe_and_connect->get_settings(); | |
$networks = Subscribe_And_Connect_Utils::get_networks_in_order( $settings['connect']['networks'], $settings['connect']['networks_order'] ); | |
$list = ''; | |
if ( 0 < count( $networks ) ) { | |
foreach ( $networks as $k => $v ) { | |
if ( ! isset( $v['url'] ) || '' == $v['url'] ) continue; |
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
add_action( 'init', 'jk_customise_storefront' ); | |
function jk_customise_storefront() { | |
// Remove the storefromt post content function | |
remove_action( 'storefront_loop_post', 'storefront_post_content', 30 ); | |
// Add our own custom function | |
add_action( 'storefront_loop_post', 'jk_custom_storefront_post_content', 30 ); | |
} |
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
<div style="text-align: center; background: #000; color: #fff; padding: .53em; font-weight: bold;"> | |
<span style="margin: 0 1em;">Check out our new Jackets!</span> | |
<span style="margin: 0 1em;">Get 25% off your first order!</span> | |
<span style="margin: 0 1em;">Free shipping on all orders over $100!</span> | |
</div> |
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
.left-sidebar .content-area { | |
margin-left: 0; | |
margin-right: 0; | |
width: 74%; | |
} | |
.page-template-template-fullwidth-php .content-area, | |
.page-template-template-homepage-php .content-area, | |
.storefront-full-width-content .content-area { | |
margin-left: 0; |