mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 15:26:12 +00:00
Fixed wiki redirect. Fix footer.
This commit is contained in:
parent
f407d3be06
commit
de90c5c409
@ -187,14 +187,14 @@
|
||||
/**
|
||||
* Путь до корня сайта с подставкой языка, нужна для ссылок
|
||||
*/
|
||||
function SiteRoot($uri = '')
|
||||
function SiteRoot($uri = '', $add_lang = true)
|
||||
{
|
||||
global $g_config;
|
||||
|
||||
$uri = $uri == $g_config['defaultComponent'] ? '' : $uri;
|
||||
|
||||
$dir = SITE_IN_DIR ? (SITE_IN_DIR . '/') : '';
|
||||
$lang = LANG == DEF_LANG ? '' : (LANG . '/');
|
||||
$lang = LANG == DEF_LANG || !$add_lang ? '' : (LANG . '/');
|
||||
$ret = $lang || $uri ? "/{$dir}?q={$lang}{$uri}" : "/{$dir}";
|
||||
$ret = empty($ret) ? '/' : $ret;
|
||||
$ret = $g_config['useModRewrite'] ?
|
||||
|
@ -12,6 +12,6 @@
|
||||
$g_lang["menu_9"] = "Using graph example";
|
||||
$g_lang["menu_10"] = "Open source";
|
||||
$g_lang["menu_11"] = "Using edge list";
|
||||
$g_lang["footer_info"] = "<a href=\"/en/\">Graph Online</a> is online project aimed at creation and easy visualization of graph and <a href=\"/en/\">shortest path searching</a>. Also you can create <a href=\"http://graphonline.ru/en/create_graph_by_matrix\">graph from adjacency matrix</a>. <a href=\"/en/about\">About project</a> and <a href=\"http://graphonline.ru/en/help\">look help page</a>.\n";
|
||||
$g_lang["footer_info"] = "<a href=\"/en/\">Graph Online</a> is online project aimed at creation and easy visualization of graph and <a href=\"/en/\">shortest path searching</a>. Also you can create <a href=\"/en/create_graph_by_matrix\">graph from adjacency matrix</a>. <a href=\"/en/about\">About project</a> and <a href=\"/en/help\">look help page</a>.\n";
|
||||
$g_lang["lang"] = "Language";
|
||||
?>
|
@ -42,7 +42,7 @@
|
||||
"link" => SiteRoot("help"),),
|
||||
array(
|
||||
"title" => L("menu_6"),
|
||||
"link" => SiteRoot("wiki"),),
|
||||
"link" => SiteRoot(LANG != 'ru' ? "en/wiki" : "wiki", false),),
|
||||
array(
|
||||
"title" => L("menu_10"),
|
||||
"link" => SiteRoot("opensource"),)
|
||||
|
Loading…
x
Reference in New Issue
Block a user