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
RewriteCond %{REQUEST_URI} ^/produits.aspx$ | |
RewriteCond %{QUERY_STRING} ^catID=2$ | |
RewriteRule ^(.*)$ http://canotslegare.com/nos-produits/? [R=301,L] |
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
<script> | |
(function(d, t) { | |
var g = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
g.src = '<?= TEMPLATE_DIRECTORY ?>/js/script.js?v=<?php echo filemtime (TEMPLATE_PHYSICAL_DIRECTORY.'js/script.js' ) ?>'; | |
s.parentNode.insertBefore(g, s); | |
}(document, 'script')); | |
</script> |
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
if( have_rows('repeater_field_name') ){ | |
while ( have_rows('repeater_field_name') ){ | |
the_sub_field('sub_field_name'); | |
} | |
} |
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
$.getJSON( "file.php", function(data) { | |
}); |
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
$('').on('', function(){ | |
}); |
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.'], |
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 fc_count_posts_with_term($term_slug, $taxonomy) | |
{ | |
global $wpdb; | |
$term = get_term_by( 'slug', $term_slug, $taxonomy ); | |
$st = $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->posts p | |
INNER JOIN $wpdb->term_relationships tr | |
ON (p.ID = tr.object_id) | |
INNER JOIN $wpdb->term_taxonomy tt | |
ON (tr.term_taxonomy_id = tt.term_taxonomy_id) |
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(){ | |
}()); |
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
#Forcer https | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://quebecboattour.com/$1 [R,L] | |
</IfModule> |
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
/* iPhone */ | |
@media only screen and (width:320px) and (device-width:320px) and (device-height:480px) and (orientation: landscape) { | |
body { | |
-webkit-transform: scale(0.667); | |
-webkit-transform-origin: top right; | |
position: absolute; | |
right: 0; | |
top: 0; | |
width: 480px; | |
} |
NewerOlder