eaa7ada6 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 2439b51a
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -97,7 +97,16 @@ get_header();
</div>
<!-- The pagination component -->
<!-- The pagination component -->
<script>
jQuery(document).ready(function($) {
if ($('html:lang(fr-FR)').length && $('.news-search').length) {
$('.wpml-ls-link').attr('href', document.location.origin + '/news/');
}else if($('.news-search').length){
$('.wpml-ls-link').attr('href', document.location.origin + '/news/?lang=fr');
}
});
</script>
......
......@@ -83,8 +83,15 @@ get_header();
</div>
<!-- The pagination component -->
<script>
jQuery(document).ready(function($) {
if ($('html:lang(fr-FR)').length && $('#search-wrapper:not(.news-search)').length) {
$('.wpml-ls-link').attr('href', document.location.origin + '/search/');
}else if($('#search-wrapper:not(.news-search)').length){
$('.wpml-ls-link').attr('href', document.location.origin + '/search/?lang=fr');
}
});
</script>
</div><!-- #content -->
......
......@@ -3,13 +3,12 @@ import jquery from 'jquery';
import LazyLoad from "vanilla-lazyload";
import DataTable from 'datatables.net-dt';
import "./_post-list-load-more";
import "./_search";
import "./_header_menu";
import "./_side_menu";
import "./_image_captionation";
import "./_carousels";
import "./_post-list-load-more";
......@@ -36,17 +35,6 @@ window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) {
jQuery(document).ready(function($) {
if ($('html:lang(fr-FR)').length && $('#search-wrapper:not(.news-search)').length) {
$('.wpml-ls-link').attr('href', document.location.origin + '/search/');
}else if($('#search-wrapper:not(.news-search)').length){
$('.wpml-ls-link').attr('href', document.location.origin + '/search/?lang=fr');
}
if ($('html:lang(fr-FR)').length && $('.news-search').length) {
$('.wpml-ls-link').attr('href', document.location.origin + '/news/');
}else if($('.news-search').length){
$('.wpml-ls-link').attr('href', document.location.origin + '/news/?lang=fr');
}
trim_text();
$('#relevant-resources').dataTable( {
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.57
Version: 1.0.58
*/
\ No newline at end of file
......