$canonical= @$params['meta'][$current_lang][$current_path]['canonical']; // echo "$current_lang $current_path"; // debug $curr_page_with_query= $curr_page. (@$current_query? '?'. $current_query: ''); $ext_canonical= (strpos($canonical,'https://') !== false); if ($canonical) echo " "; // link to canonical, whereas "ru" and "en" are external canonical links elseif ($current_query) echo " "; // if this is a canonical page, but with a query string, then link to itself without query string /* if (0) { // false for debug purposes; should be no alternates for russian and english pages with external canonical if (file_exists($site_root. '/view/en/'. $curr_real_page )) echo " "; if (file_exists($site_root. '/view/ru/'. $curr_real_page )) echo " "; } if (file_exists($site_root. '/view/de/'. $curr_real_page )) echo " "; if (file_exists($site_root. '/view/ua/'. $curr_real_page )) echo " "; */ ?> $test_mode=(strpos($server_name,'tst')!==false?1:0); // 1 - test environment if ($test_mode) echo ""; ?> $dsgn=@$params['meta'][$current_lang][$current_path]['design']; if (@$dsgn) echo ""; if (@$_GET['google-ads']) echo ""; ?> if ($curr_page == 'contact') echo " "; ?> if (@$contact_form_sent) echo " "; ?>