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
| // debulked onresize handler | |
| function on_resize(c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,100)};return c}; | |
| on_resize(function() { | |
| $('.encadres_item span').each(function() { | |
| var $img = $(this); | |
| var h = $img.height(); | |
| $img.css('margin-top', + h / -2 + "px"); | |
| }); | |
| })(); |
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
| // Check if the block cart is activated for the animation | |
| if (cartBlockOffset != undefined && $picture.size()) | |
| { | |
| $picture.appendTo('body'); | |
| $picture.css({ 'position': 'absolute', 'top': $picture.css('top'), 'left': $picture.css('left'), 'z-index': 4242 }) | |
| .animate({ 'width': '20px', 'height': '20px', 'opacity': 0.8, 'top': cartBlockOffset.top + 20, 'left': cartBlockOffset.left + 20 }, 2000,'easeInOutQuart',function(){ | |
| $('.ajax_cart_quantity').animate({opacity:0},200,"linear",function(){ $(this).animate({opacity:1},2000);}); | |
| $('#popup').bPopup({ | |
| easing: 'easeOutBack', //uses jQuery easing plugin | |
| speed: 450, |
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
| Caroussel responsive : http://www.owlgraphic.com/owlcarousel/ | |
| Meme hauteur pour chaque div : http://tsvensen.github.io/equalize.js/ |
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
| Voir d'un reseau externe : | |
| http://www.pici.picidae.net/ |
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
| img { | |
| max-width: 100%; | |
| height: auto; | |
| width: auto; /* bug ie8 */ | |
| box-sizing: border-box; | |
| } |
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
| // Categories checkbox on top prevent on edit ____________________________________ | |
| function taxonomy_checklist_checked_ontop_filter ($args) { | |
| $args['checked_ontop'] = false; | |
| return $args; | |
| } | |
| add_filter('wp_terms_checklist_args','taxonomy_checklist_checked_ontop_filter'); |
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
| function custom_taxonomies_terms_links() { | |
| global $post, $post_id; | |
| // get post by post id | |
| $post = &get_post($post->ID); | |
| // get post type by post | |
| $post_type = $post->post_type; | |
| // get post type taxonomies | |
| $taxonomies = get_object_taxonomies($post_type); | |
| $out = "<ul>"; | |
| foreach ($taxonomies as $taxonomy) { |
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 | |
| global $post; | |
| $text = get_post_meta( $post->ID, '_cmb_test_text', true ); | |
| echo $text; | |
| ?> |
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
| <section class="home_blog"> | |
| <h2>Dernière actualité</h2> | |
| <?php $query = new WP_Query( array( | |
| 'post_type' => 'post', | |
| 'orderby' => 'date', | |
| 'posts_per_page' => 1 | |
| ) ); | |
| while ($query->have_posts()) : $query->the_post(); | |
| $thumb = get_post_thumbnail_id(); | |
| if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) { |