post_name); $oldPage = true; if (in_array($currentPage, $oldPages) || is_blog()) { // It's an old page, use the old template ob_clean(); ob_start(); get_template_part('templates/head-old'); $html .= ob_get_contents(); ob_end_clean(); } else { // It's a new page, use the new template ob_clean(); ob_start(); get_template_part('templates/head'); $html .= ob_get_contents(); ob_end_clean(); $oldPage = false; } $html .= '
'; ob_end_clean(); ob_clean(); ob_start(); get_template_part('templates/header-top-navbar'); $html .= ob_get_contents(); ob_end_clean(); // The basic translation for the files $l = new L10N(get_post()->post_name); if ($oldPage === true) { $html .= '