Skip to content

Instantly share code, notes, and snippets.

@carolinan
Created February 5, 2015 06:23
Show Gist options
  • Save carolinan/78cba06e0c5c2a9b06a7 to your computer and use it in GitHub Desktop.
Save carolinan/78cba06e0c5c2a9b06a7 to your computer and use it in GitHub Desktop.
aaron_portfolio_footer
if ( ! function_exists( 'aaron_portfolio_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function aaron_portfolio_footer() {
if( get_theme_mod('aaron_hide_meta')=="" ){
echo '<footer class="entry-footer">';
global $post;
echo '<a href="' . esc_url( home_url('/portfolio/') ) . '"><b>' . __('Portfolio','aaron') . '</b></a><br/><br/>';
//the_terms( $id, $taxonomy, $before, $sep, $after );
echo the_terms($post->ID, 'jetpack-portfolio-type', '<span class="jetpack-portfolio-type">' . __('Project Type: ','aaron') ,', ', '</span>');
echo the_terms($post->ID, 'jetpack-portfolio-tag', '<span class="tags-links">' . __( 'Project Tags: ', 'aaron' ),', ', '</span>');
/* translators: % is the post title */
edit_post_link( sprintf( __( 'Edit %s', 'aaron' ), get_the_title() ), '<span class="edit-link">', '</span>' );
/* Display jetpack's share if it's active*/
if ( function_exists( 'sharing_display' ) ) {
echo sharing_display();
}
/* Display jetpack's like if it's active */
if ( class_exists( 'Jetpack_Likes' ) ) {
$aaron_custom_likes = new Jetpack_Likes;
echo $aaron_custom_likes->post_likes( '' );
}
echo '</footer><!-- .entry-footer -->';
}
}
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment