Last active
December 23, 2015 01:29
-
-
Save gregoirenoyelle/6560402 to your computer and use it in GitHub Desktop.
Genesis Template
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 | |
if ( get_field('gn_publier_bio') ) : | |
echo '<h3 class="bio-wordcampeur">Bio</h3>'; | |
if ( in_array('biofr', get_field('gn_publier_bio') ) ) : | |
echo '<section class="bio-french">'; | |
the_field('gn_bio'); | |
endif; | |
echo '</section>'; | |
if ( in_array('bioeng', get_field('gn_publier_bio') ) ) : | |
echo '<section class="bio-english">'; | |
the_field('gn_bio_eng'); | |
echo '</section>'; | |
endif; | |
endif; | |
?> |
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 | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
add_action('genesis_entry_content', 'gn_content_wordcampeur_base', 50); | |
function gn_content_wordcampeur_base() { | |
gn_meta_wordcampeur_image('wordcampeur', 250); | |
gn_meta_wordcampeur_texte(); | |
} // gn_content_wordcampeur | |
add_action('genesis_entry_content', 'gn_content_wordcampeur_sup', 60); | |
function gn_content_wordcampeur_sup() { | |
global $post; | |
echo '<p class="entry-taxo">'; | |
echo get_the_term_list($post->ID, 'gntx_pays', 'Pays : ', ', ', '<br />' ); | |
echo get_the_term_list($post->ID, 'gntx_evenement', 'Événement : ', ', ', '<br />' ); | |
echo get_the_term_list($post->ID, 'gntx_spectateur', 'Événement : ', ', ', '' ); | |
echo '</p>'; | |
echo '<h3>Bio</h3>'; | |
echo '<section class="bio-french">'; | |
the_field('gn_bio'); | |
echo '</section>'; | |
if ( get_field('gn_bio_eng') ) : | |
echo '<section class="bio-english">'; | |
the_field('gn_bio_eng'); | |
echo '</section>'; | |
endif; | |
} // gn_content_wordcampeur | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment