This file contains hidden or 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">'; |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ma page web</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="styles.css"> | |
</head> |
This file contains hidden or 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
@import url('style.css'); | |
.mceContentBody { | |
background-color: #fff; | |
} | |
.mceContentBody .content { | |
padding: 15px 18px 10px; | |
width: 100%; | |
} | |
.mceContentBody ul { |
This file contains hidden or 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
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_selector": "source, text", | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
This file contains hidden or 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 | |
/** | |
* Home page with Widget for Sample Theme | |
* | |
* @author Grégoire Noyelle | |
* @package Sample Theme | |
* @subpackage Customizations | |
*/ | |
add_action( 'genesis_meta', 'gn_sample_home_genesis_meta' ); |
This file contains hidden or 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 | |
// Mettre dans fichier functions.php | |
// bien retirer la balise PHP du début | |
add_action( 'template_redirect', 'gn_filter_content_no_loged'); | |
function gn_filter_content_no_loged( ) { | |
if( is_user_logged_in() || is_home() || is_page( array('3096','3074')) ) | |
return; | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
remove_action('genesis_loop','genesis_do_loop'); |
This file contains hidden or 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 // BALISE PHP À ENLEVER | |
/** | |
* Ajouter page d'options ACF 5 | |
* | |
* @package ACF | |
*/ | |
if( function_exists('acf_add_options_page') ) { | |
// Premier menu d'options |
This file contains hidden or 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 | |
/* initialiser la taxonomie */ | |
add_action( 'init', 'gncom_register_taxonomy', 0 ); | |
/* fonction pour parametrer l'enregistrement */ | |
function gncom_register_taxonomy() { | |
/************************** | |
Type Image |