Skip to content

Commit

Permalink
added bot link
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Apr 16, 2024
1 parent 75af9ef commit 180f59a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public_html/appcode/top_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ function get_mailto_editors()
$sitename_editors_email = SITENAME_EDITORS_EMAIL;
return "<a href=\"mailto:$sitename_editors_email\">$sitename_editors_email</a>";
}

function get_telegram_bot()
{
$botname = SITENAME_EDITORS_BOT;
return "<a href=\"https://t.me/$botname\"><img src='/img/telegram.png' style='margin-bottom: -3px;'/>$botname</a>";
}

function get_page_header()
{
Expand Down Expand Up @@ -188,7 +194,7 @@ function show ()

if (!$username && $this -> show_add_adv)
{
echo '<b>Нет нужной игры</b>? <a href="' . get_game_edit_link(NULL). '">Добавьте</a> самостоятельно или напишите на ' . $this -> get_mailto_editors();
echo '<b>Нет нужной игры</b>? <a href="' . get_game_edit_link(NULL). '">Добавьте</a> самостоятельно или напишите в '. $this -> get_telegram_bot() .' или на ' . $this -> get_mailto_editors();
}
}

Expand Down
1 change: 1 addition & 0 deletions public_html/common/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
define ("SITENAME_SIGNATURE", "Редакторы КогдаИгры");
define ("SITENAME_HOST", array_key_exists("SITENAME_HOST", $_ENV) ? $_ENV["SITENAME_HOST"] : "kogda-igra.ru");
define ("SITENAME_EDITORS_EMAIL", 'rpg@' . SITENAME_HOST);
define ("SITENAME_EDITORS_BOT", 'kogda_igra_bot');
define ("SITENAME_SCHEME", "https");
define ("GA_ANALYTICS", "UA-1194519-2");

Expand Down

0 comments on commit 180f59a

Please sign in to comment.