50 ? ' alt-' . ($rnd % 6 + 1) : ''; $className = $rnd > 5 ? 'space-invader' . $alt : 'nyan-cat'; echo ' HashRU Pics '; if (Registry::get('user')->isLoggedIn()) { echo ' '; $mainMenu = new MainMenu(); $this->renderMenuItems($mainMenu->getItems()); echo ' '; $adminMenu = new AdminMenu(); $this->renderMenuItems($adminMenu->getItems()); $userMenu = new UserMenu(); $this->renderMenuItems($userMenu->getItems()); $this->darkModeToggle(); echo ' '; } echo ' '; } private function darkModeToggle() { echo '