{"id":199,"date":"2018-01-24T11:20:50","date_gmt":"2018-01-24T11:20:50","guid":{"rendered":"http:\/\/global-labour.info\/fr\/?page_id=199"},"modified":"2018-05-28T17:54:50","modified_gmt":"2018-05-28T17:54:50","slug":"hyperliens","status":"publish","type":"page","link":"https:\/\/global-labour.info\/fr\/hyperliens\/","title":{"rendered":"Liens"},"content":{"rendered":"<p>[insert_php]<br \/>\nfunction match_uri($str)<br \/>\n{<br \/>\npreg_match(&#8216;|^\/([^\/]+)|&#8217;, $str, $matches);<\/p>\n<p>if (!isset($matches[1]))<br \/>\nreturn false;<\/p>\n<p>return $matches[1];<br \/>\n}<\/p>\n<p>$LANGUAGE = match_uri($_SERVER[&#8216;REQUEST_URI&#8217;]);<\/p>\n<p>if ($LANGUAGE==&#8221;fr&#8221;) {<br \/>\necho &#8220;FRAN&#8221;;<br \/>\necho &#8220;\u00c7&#8221;;<br \/>\necho &#8220;AIS&#8221;;<br \/>\n}<\/p>\n<p>[\/insert_php]<\/p>\n<p>Les liens ci-dessous peuvent \u00eatre internes, \u00e0 une page sur ce site, ou externes, \u00e0 une page sur un autre site. Nous ne sommes pas responsables des sites externes et ne pouvons m\u00eame pas garantir que les liens fonctionneront.<\/p>\n<p>[carousel-horizontal-posts-content-slider]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] function match_uri($str) { preg_match(&#8216;|^\/([^\/]+)|&#8217;, $str, $matches); if (!isset($matches[1])) return false; return $matches[1]; } $LANGUAGE = match_uri($_SERVER[&#8216;REQUEST_URI&#8217;]); if ($LANGUAGE==&#8221;fr&#8221;) { echo &#8220;FRAN&#8221;; echo &#8220;\u00c7&#8221;; echo &#8220;AIS&#8221;; } [\/insert_php] Les liens ci-dessous peuvent \u00eatre internes, \u00e0 une page sur ce site, ou externes, \u00e0 une page sur un autre site. Nous ne sommes pas responsables des [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/pages\/199"}],"collection":[{"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":22,"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/pages\/199\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/pages\/199\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/global-labour.info\/fr\/wp-json\/wp\/v2\/media?parent=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}