Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<script type="text/javascript" defer="true" src="//www.outdooractive.com/alpportal/oa_head.js?proj=api-aupaysdustbernard&key=IRFNHNTB-EMWGMGXI-4OSSAFZ3&lang=fr" done="true"> | |
</script> | |
<script> | |
(function (){ | |
$(function () { | |
oax.api.maps(initOAX); | |
function initOAX(oamaps, gm) { |
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
/*! | |
Original File https://raw.githubusercontent.com/windycom/leaflet-kml/master/L.KML.js | |
Copyright (c) 2011-2015, Pavel Shramov, Bruno Bergot - MIT licence | |
*/ | |
L.KML = L.FeatureGroup.extend({ | |
initialize: function (kml, kmlOptions) { | |
this._kml = kml; | |
this._layers = {}; |
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
/** | |
* Use this mixin to generate a grid layout with flexbox. | |
* @param $gutter: the distance between two elements. | |
* @param $elementsPerLine: the number of elements on every row. | |
* @param $children: the children selector. Default value every children directly inside the wrapper. | |
* @param $elementsPerLineSmall: the number of elements on every row on smaller screens. | |
*/ | |
@mixin display-flex-with-gutter($gutter, $elementsPerLine, $children: '*', $elementsPerLineSmall: 0) { | |
display: flex; | |
flex-wrap: wrap; |
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
<?php | |
/** | |
* Add the post/page categories in the body class list. | |
* | |
* @param string[] $classes An array of body class names. | |
* | |
* @return array | |
*/ | |
function timwp_add_category_name_to_body_classes( array $classes ): array { |
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
<?php | |
/** | |
* Add a spcae after the CHF currency in WooCommerce. | |
* | |
* @param string $currency_symbol | |
* @param string $currency | |
* | |
* @return string | |
*/ |
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
<?php | |
/** | |
* Force ACF fields loaded over JSON fiels to be translated though gettext | |
*/ | |
add_filter( 'acf/load_field', | |
/** | |
* Force ACF to try to translate fields even when they come from JSON. | |
* |
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
<?php | |
// Load the translations and store them in the session | |
/** | |
* Define the string messages to override | |
*/ | |
if ( ! isset( $_SESSION['translation-override']['fr_FR'] ) ) { | |
$_SESSION['translation-override']['fr_FR'] = []; | |
} |
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
/** | |
* This checks if the fullscreen mode is "on" on page load and toggle it off. | |
*/ | |
(function (wp) { | |
const isFullscreenMode = wp.data.select('core/edit-post').isFeatureActive('fullscreenMode'); | |
if (isFullscreenMode) { | |
wp.data.dispatch('core/edit-post').toggleFeature('fullscreenMode'); | |
} | |
})(window.wp); |
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
<?php | |
// undefined variable | |
echo "?? prints 'default'"; | |
echo "<br>"; | |
var_dump($a ?? 'default'); | |
echo "<br><br>"; | |
echo "?: sends a notice 'undefined variable' and prints 'default'"; |
NewerOlder