Remove code that was commented out
This commit is contained in:
parent
aedc95780a
commit
cdd8d07fe8
21
header.php
21
header.php
|
@ -1,27 +1,6 @@
|
|||
<?php
|
||||
$langs = ["ru","fr","zh","pt","ko_KR","ja","es"];
|
||||
$pathArray = explode('/', $_SERVER[REQUEST_URI]);
|
||||
// Redirect non-english posts for translation
|
||||
/*
|
||||
if (is_single()){
|
||||
$pubDate = get_the_date(U);
|
||||
if ( (in_array($pathArray[1], $langs)) && ($pubDate <= 1489363200 ) ) { // Published on or before 2017-03-13
|
||||
$redirectLang = strtolower($pathArray[1]);
|
||||
if ($redirectLang === 'pt') {
|
||||
$redirectLang = 'pt_br';
|
||||
}
|
||||
$origURL = 'https://z.cash/'.$redirectLang.'/blog/'.$pathArray[2].'.html';
|
||||
echo '<a href="'.$origPost.'" target="_blank">'.$origPost.'</a>';
|
||||
function Redirect($url, $permanent = false) {
|
||||
if (headers_sent() === false) {
|
||||
header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
|
||||
}
|
||||
exit();
|
||||
}
|
||||
Redirect($origURL);
|
||||
}
|
||||
}
|
||||
*/
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?> class="no-js no-svg">
|
||||
<head>
|
||||
|
|
Loading…
Reference in New Issue