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
| //Realisations | |
| $labels = array( | |
| 'name' => __('Realisations', 'realisations'), | |
| 'singular_name' => __('Realisation', 'realisations'), | |
| 'add_new' => __('Ajouter', 'realisations'), | |
| 'add_new_item' => __('Ajouter Realisation', 'realisations'), | |
| 'edit_item' => __('Modifier Realisation', 'realisations'), | |
| 'new_item' => __('Realisation Realisation', 'realisations'), | |
| 'view_item' => __('Voir Realisation', 'realisations'), | |
| 'search_items' => __('Rechercher Realisation', 'realisations'), |
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
| global $query_string; | |
| query_posts( $query_string . '&order=ASC&posts_per_page=-1' ); |
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
| $arguments = array( | |
| 'post_type' => 'type', | |
| 'posts_per_page' => -1, | |
| //'meta_key'=> 'my-sort-key', | |
| 'orderby'=> 'menu_order', | |
| 'order' => 'ASC' | |
| ); | |
| query_posts($arguments); |
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
| <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"> | |
| <param name="movie" value="myContent.swf" /> | |
| <!--[if !IE]>--> | |
| <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420"> | |
| <!--<![endif]--> | |
| <!-- CODE DE REMPLACEMENT DE FLASH ICI --> | |
| <!--[if !IE]>--> | |
| </object> | |
| <!--<![endif]--> | |
| </object> |
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 | |
| setlocale(LC_ALL, 'fr_FR'); | |
| list($year, $month, $day) = explode('-', get_field('date')); | |
| $dateString = strftime("%e %B %Y", mktime(0, 0, 0, $month, $day, $year)); | |
| ?> |
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
| $('html, body').animate({ | |
| scrollTop: $("#element").offset().top | |
| }, 1200); |
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
| <style> | |
| #sticky.stick { | |
| position: fixed; | |
| top: 0; | |
| z-index: 99999999999; | |
| } | |
| </style> | |
| <script> | |
| function sticky_relocate() { | |
| var window_top = $(window).scrollTop(); |
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
| .jGrid { | |
| text-align: justify; | |
| display: block; | |
| padding: 0; | |
| margin: 0; | |
| letter-spacing: 0.1px; | |
| text-rendering: optimizespeed; | |
| } | |
| .jGrid:after{ | |
| content: ''; |
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 doOnOrientationChange() | |
| { | |
| switch(window.orientation) | |
| { | |
| case -90: | |
| case 90: | |
| alert('landscape'); | |
| break; | |
| default: | |
| alert('portrait'); |
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
| //Localisation du calendrier | |
| $.datepicker.regional['fr-CA'] = { | |
| closeText: 'Fermer', | |
| prevText: 'Précédent', | |
| nextText: 'Suivant', | |
| currentText: 'Aujourd\'hui', | |
| monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', | |
| 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], | |
| monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin', | |
| 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], |