qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
8 changed files
with
21 additions
and
17 deletions
This diff is collapsed.
Click to expand it.
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(); | ... | @@ -97,7 +97,16 @@ get_header(); |
| 97 | </div> | 97 | </div> |
| 98 | 98 | ||
| 99 | <!-- The pagination component --> | 99 | <!-- The pagination component --> |
| 100 | 100 | <!-- The pagination component --> | |
| 101 | <script> | ||
| 102 | jQuery(document).ready(function($) { | ||
| 103 | if ($('html:lang(fr-FR)').length && $('.news-search').length) { | ||
| 104 | $('.wpml-ls-link').attr('href', document.location.origin + '/news/'); | ||
| 105 | }else if($('.news-search').length){ | ||
| 106 | $('.wpml-ls-link').attr('href', document.location.origin + '/news/?lang=fr'); | ||
| 107 | } | ||
| 108 | }); | ||
| 109 | </script> | ||
| 101 | 110 | ||
| 102 | 111 | ||
| 103 | 112 | ... | ... |
| ... | @@ -83,8 +83,15 @@ get_header(); | ... | @@ -83,8 +83,15 @@ get_header(); |
| 83 | </div> | 83 | </div> |
| 84 | 84 | ||
| 85 | <!-- The pagination component --> | 85 | <!-- The pagination component --> |
| 86 | 86 | <script> | |
| 87 | 87 | jQuery(document).ready(function($) { | |
| 88 | if ($('html:lang(fr-FR)').length && $('#search-wrapper:not(.news-search)').length) { | ||
| 89 | $('.wpml-ls-link').attr('href', document.location.origin + '/search/'); | ||
| 90 | }else if($('#search-wrapper:not(.news-search)').length){ | ||
| 91 | $('.wpml-ls-link').attr('href', document.location.origin + '/search/?lang=fr'); | ||
| 92 | } | ||
| 93 | }); | ||
| 94 | </script> | ||
| 88 | 95 | ||
| 89 | 96 | ||
| 90 | </div><!-- #content --> | 97 | </div><!-- #content --> | ... | ... |
| ... | @@ -3,13 +3,12 @@ import jquery from 'jquery'; | ... | @@ -3,13 +3,12 @@ import jquery from 'jquery'; |
| 3 | import LazyLoad from "vanilla-lazyload"; | 3 | import LazyLoad from "vanilla-lazyload"; |
| 4 | import DataTable from 'datatables.net-dt'; | 4 | import DataTable from 'datatables.net-dt'; |
| 5 | 5 | ||
| 6 | 6 | import "./_post-list-load-more"; | |
| 7 | import "./_search"; | 7 | import "./_search"; |
| 8 | import "./_header_menu"; | 8 | import "./_header_menu"; |
| 9 | import "./_side_menu"; | 9 | import "./_side_menu"; |
| 10 | import "./_image_captionation"; | 10 | import "./_image_captionation"; |
| 11 | import "./_carousels"; | 11 | import "./_carousels"; |
| 12 | import "./_post-list-load-more"; | ||
| 13 | 12 | ||
| 14 | 13 | ||
| 15 | 14 | ||
| ... | @@ -36,17 +35,6 @@ window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) { | ... | @@ -36,17 +35,6 @@ window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) { |
| 36 | 35 | ||
| 37 | jQuery(document).ready(function($) { | 36 | jQuery(document).ready(function($) { |
| 38 | 37 | ||
| 39 | if ($('html:lang(fr-FR)').length && $('#search-wrapper:not(.news-search)').length) { | ||
| 40 | $('.wpml-ls-link').attr('href', document.location.origin + '/search/'); | ||
| 41 | }else if($('#search-wrapper:not(.news-search)').length){ | ||
| 42 | $('.wpml-ls-link').attr('href', document.location.origin + '/search/?lang=fr'); | ||
| 43 | } | ||
| 44 | |||
| 45 | if ($('html:lang(fr-FR)').length && $('.news-search').length) { | ||
| 46 | $('.wpml-ls-link').attr('href', document.location.origin + '/news/'); | ||
| 47 | }else if($('.news-search').length){ | ||
| 48 | $('.wpml-ls-link').attr('href', document.location.origin + '/news/?lang=fr'); | ||
| 49 | } | ||
| 50 | 38 | ||
| 51 | trim_text(); | 39 | trim_text(); |
| 52 | $('#relevant-resources').dataTable( { | 40 | $('#relevant-resources').dataTable( { | ... | ... |
| ... | @@ -2,5 +2,5 @@ | ... | @@ -2,5 +2,5 @@ |
| 2 | Theme Name: MSF CA Child | 2 | Theme Name: MSF CA Child |
| 3 | Author: Tenzing Communications | 3 | Author: Tenzing Communications |
| 4 | Template: msf-ca | 4 | Template: msf-ca |
| 5 | Version: 1.0.57 | 5 | Version: 1.0.58 |
| 6 | */ | 6 | */ |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment