A Pen by Sutterlity on CodePen.
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
{ | |
"auto_complete": true, | |
"auto_indent": true, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
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 custom class to link NEXT & PREV | |
function popy_add_class_next_post_link($html){ | |
$html = str_replace('<a','<a class="icon-next"',$html); | |
return $html; | |
} | |
add_filter('next_post_link','popy_add_class_next_post_link',10,1); | |
function popy_add_class_previous_post_link($html){ | |
$html = str_replace('<a','<a class="icon-prev"',$html); | |
return $html; |
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
// Custom post type | |
function codex_custom_init() { | |
$labels = array( | |
'name' => 'Projets', | |
'singular_name' => 'Projet', | |
'add_new' => 'Ajouter', | |
'add_new_item' => 'Ajouter un projet', | |
'edit_item' => 'Editer le projet', | |
'new_item' => 'Nouveau projet', | |
'all_items' => 'Tout les projets', |
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
.wrapper { | |
max-width: 940px; | |
min-width: 768px; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.row { | |
margin-left: -2.12766%; | |
} |
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 setToSameHeight(elementBase, element){ | |
$(window).load(function() { | |
elementBaseHeight = $(elementBase).height(); | |
element = $(element); | |
$(element).css('height', elementBaseHeight); | |
}); | |
$(window).resize(function() { | |
elementBaseHeight = $(elementBase).height(); | |
element = $(element); | |
$(element).css('height', 'auto'); |
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
$("p").click(function () { | |
$(this).toggleClass("highlight"); | |
}); |
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
<!--[if lte IE 8]> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="assets/js/vendor/jquery-1.10.2.min.js"><\/script>')</script> | |
<![endif]--> | |
<!--[if gt IE 8]><!--> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="assets/js/vendor/jquery-2.0.3.min.js"><\/script>')</script> | |
<!--<![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
{ | |
"default_encoding": "UTF-8", | |
"font_face": "Inconsolata", | |
"font_size": 16.0, | |
"tab_size": 4, | |
"theme": "Flatland Dark.sublime-theme", | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"auto_complete": 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
module.exports = function(grunt) { | |
// Charge toutes les tâches de Grunt | |
require('load-grunt-tasks')(grunt); | |
// Configuration de Grunt | |
grunt.initConfig({}) | |
// Définition des tâches Grunt | |
grunt.registerTask('default', '') |
OlderNewer