diff --git a/functions.php b/functions.php index 3df02628..cd1c6eb1 100644 --- a/functions.php +++ b/functions.php @@ -246,7 +246,7 @@ function isJSON($string) { } function to_menu($blockchain, $permlink, $ankor, $category = 'no_category') { -if ($blockchain != 'favicon.ico') { + if (is_dir(__DIR__.'/blockchains/'.$blockchain)) { $file = file_get_contents(__DIR__.'/menu.json'); $taskList = json_decode($file, TRUE); unset($file); diff --git a/menu.json b/menu.json index 70b0ecd9..9dad9099 100644 --- a/menu.json +++ b/menu.json @@ -1 +1 @@ -{"viz":{"name":"Viz","services":{"no_category":{"name":"","accounts":"Аккаунты","manage":"Управление","profiles":"Профили","projects":"Проекты","wallet":"Кошелёк","exchange":"Обмен"},"tools":{"name":"Инструменты","awards":"Награждение","calc":"Блокчейн-калькулятор","custom-generator":"custom генератор","randomblockchain":"ГСЧ","search":"Поиск viz-links"},"reytings":{"name":"Рейтинги","top":"Топ пользователей","witnesses-rewards":"Награды делегатов"},"info":{"name":"Информация","explorer":"Блок-эксплорер","buy":"Купить VIZ","help":"Справка"}}},"golos":{"name":"Golos","services":{"reytings":{"name":"Рейтинги","activities":"Активность за сутки","donates":"Топы донатов","referrers":"Топ пригласителей","top":"Топы пользователей","witnesses-rewards":"Награды делегатов"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Блокчейн-калькулятор","polls":"Опросы","randomblockchain":"ГСЧ","swap":"Swap"},"no_category":{"name":"","accounts":"Аккаунты","profiles":"Профили","wallet":"кошелёк","post":"Добавить пост","explorer":"Блок-эксплорер","manage":"Управление","help":"Справка"}}},"steem":{"name":"Steem","services":{"no_category":{"name":"","accounts":"Аккаунты","wallet":"Кошелёк","profiles":"Профили","post":"Публикация постов","manage":"Управление"},"tools":{"name":"Инструменты","randomblockchain":"ГСЧ","calc":"Блокчейн-калькулятор","backup":"Бекап постов"}}},"hive":{"name":"Hive","services":{"":{"name":null,"profiles":"Профили","wallet":"Кошелёк","randomblockchain":"ГСЧ","post":"Публикация постов","manage":"Управление","calc":"Блокчейн-калькулятор","backup":"Бекап постов","accounts":"Аккаунты"}}},"minter":{"name":"Minter","services":{"no_category":{"name":"","randomblockchain":"ГСЧ","profiles":"Профили"}}},"cyber":{"name":"Cyber","services":{"no_category":{"name":"","profiles":"Профили","wallet":"Кошелёк","validators":"Валидаторы","explorer":"Блок-эксплорер","accounts":"Аккаунты"},"tools":{"name":"Инструменты","linker":"Линкер","randomblockchain":"ГСЧ","ipfs":"IPFS"}}},".env":{"name":""},"api":{"services":{"":{"name":null,".env":""}}},"laravel":{"services":{"":{"name":null,".env":""}}},"test":{"services":{"":{"name":null,".env":""}}},"admin":{"services":{"":{"name":null,".env":""}}},"vendor":{"services":{"":{"name":null,".env":""}}},"sites":{"services":{"":{"name":null,".env":""}}},"blog":{"services":{"":{"name":null,".env":""}}}} \ No newline at end of file +{"viz":{"name":"Viz","services":{"no_category":{"name":"","accounts":"Аккаунты","manage":"Управление","profiles":"Профили","projects":"Проекты","wallet":"Кошелёк","exchange":"Обмен"},"tools":{"name":"Инструменты","awards":"Награждение","calc":"Блокчейн-калькулятор","custom-generator":"custom генератор","randomblockchain":"ГСЧ","search":"Поиск viz-links"},"reytings":{"name":"Рейтинги","top":"Топ пользователей","witnesses-rewards":"Награды делегатов"},"info":{"name":"Информация","explorer":"Блок-эксплорер","buy":"Купить VIZ","help":"Справка"}}},"golos":{"name":"Golos","services":{"reytings":{"name":"Рейтинги","activities":"Активность за сутки","donates":"Топы донатов","referrers":"Топ пригласителей","top":"Топы пользователей","witnesses-rewards":"Награды делегатов"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Блокчейн-калькулятор","polls":"Опросы","randomblockchain":"ГСЧ","swap":"Swap"},"no_category":{"name":"","accounts":"Аккаунты","profiles":"Профили","wallet":"кошелёк","post":"Добавить пост","explorer":"Блок-эксплорер","manage":"Управление","help":"Справка"}}},"steem":{"name":"Steem","services":{"no_category":{"name":"","accounts":"Аккаунты","wallet":"Кошелёк","profiles":"Профили","post":"Публикация постов","manage":"Управление"},"tools":{"name":"Инструменты","randomblockchain":"ГСЧ","calc":"Блокчейн-калькулятор","backup":"Бекап постов"}}},"hive":{"name":"Hive","services":{"":{"name":null,"profiles":"Профили","wallet":"Кошелёк","randomblockchain":"ГСЧ","post":"Публикация постов","manage":"Управление","calc":"Блокчейн-калькулятор","backup":"Бекап постов","accounts":"Аккаунты"}}},"minter":{"name":"Minter","services":{"no_category":{"name":"","randomblockchain":"ГСЧ","profiles":"Профили"}}},"cyber":{"name":"Cyber","services":{"no_category":{"name":"","profiles":"Профили","wallet":"Кошелёк","validators":"Валидаторы","explorer":"Блок-эксплорер","accounts":"Аккаунты"},"tools":{"name":"Инструменты","linker":"Линкер","randomblockchain":"ГСЧ","ipfs":"IPFS"}}}} \ No newline at end of file