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 | |
// Show currency symbol on the right for prices in French language | |
function filter_currency_pos( $format ) { | |
$current_lang = apply_filters( 'wpml_current_language', NULL ); | |
if ($current_lang == 'fr') { | |
$format = '%2$s %1$s'; | |
} | |
return $format; | |
}; |
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
var removeClassRegex = function($element, regex) { | |
return $element.attr('class', function(i, c) { | |
return c.replace(regex, ''); | |
}); | |
}; |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "assets/css" | |
sass_dir = "assets/sass" | |
images_dir = "assets/images" | |
javascripts_dir = "assets/js" | |
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
$('#back-top').on('click', function () { | |
$('body,html').animate({ | |
scrollTop: 0 | |
}, 800); | |
return false; | |
}); |