Skip to content

Instantly share code, notes, and snippets.

Grégoire Noyelle gregoirenoyelle

Block or report user

Report or block gregoirenoyelle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View css-wp-editor-style.css
@import url('style.css');
.mceContentBody {
background-color: #fff;
}
.mceContentBody .content {
padding: 15px 18px 10px;
width: 100%;
}
.mceContentBody ul {
View sb2-pref-cover-video.txt
{
"auto_complete_commit_on_tab": true,
"auto_complete_selector": "source, text",
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
View sample-front-page.php
<?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' );
View wp-genesis-private-call-widget.php
<?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');
View wp-menu-recherche-date.html
<!-- Structure et fonction pour le menu de date -->
<li class="menu-item">
<select name="archive-dropdown" id="date">
<option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option>
<?php wp_get_archives( array('format'=>'option', 'show_post_count'=>1) ); ?>
</select>
<script type="text/javascript">
var menuDate = document.getElementById("date");
function onCatChange() {
@gregoirenoyelle
gregoirenoyelle / wp-taxonomy-attachment.php
Last active Aug 29, 2015
Créer taxonomie pour image
View wp-taxonomy-attachment.php
<?php
/* initialiser la taxonomie */
add_action( 'init', 'gncom_register_taxonomy', 0 );
/* fonction pour parametrer l'enregistrement */
function gncom_register_taxonomy() {
/**************************
Type Image
View add_custom_image_size_media_window.php
<?php
/****
* New image size
* @gregoirenoyelle
****/
// Create a new image size
add_image_size('Vign Haut de Page', 266, 168, TRUE);
View module-html-css.html
<html>
<head>
<title></title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
.text-gras {font-weight: bold;}
</style>
<script type="text/javascript">
/*
View balise-ouverture-fermeture.html
<!DOCTYPE HTML>
<html>
<head>
<title>Ma page type</title>
<meta charset="utf-8">
</head>
<body>
<!-- commentaire dans le htlm -->
<p>Mon paragraphe <br />
View genesis-custom-post-type-hook.php
<?php
/** Supprimer les post info */
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
/** Suprimer les post meta */
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
You can’t perform that action at this time.