menu = $menu; } function config() { $options = array( 'select' => $this->lang('Select data'), 'table' => $this->lang('Show structure'), '' => $this->lang('Both'), 'hover' => $this->lang('Both, select on hover'), 'auto' => $this->lang('Auto (select on the select page, structure otherwise)'), ); $menu = Adminer\get_setting("menu", "adminer_config", $this->menu); return array($this->lang('Menu table links') => Adminer\html_radios('config[menu]', $options, $menu, "
")); } function head($dark = null) { if (Adminer\get_setting("menu", "adminer_config", $this->menu) != 'hover') { return; } // Adminer marks the repeated links and checkboxes by the hover class but doesn't style them ?> menu); $titles = array( 'select' => $this->lang('Select data'), 'table' => $this->lang('Show structure'), ); $both = (!$menu || $menu == 'hover'); // 'hover' - like Adminer, the select link is shown on hovering the row // this is copied from Adminer::tablesPrint() echo "\n"; return true; } function screenshot() { return "https://www.adminer.org/static/plugins/menu-links.png"; } protected $translations = array( 'cs' => array( '' => 'Konfigurace odkazů na tabulky v menu; kombinovatelné s AdminerConfig', 'Menu table links' => 'Odkazy na tabulky v menu', 'Both' => 'Oboje', 'Both, select on hover' => 'Oboje, vypsat při najetí myší', 'Auto (select on the select page, structure otherwise)' => 'Auto (vypsat na výpisech, jinak struktura)', // this is copied from adminer/lang/ 'select' => 'vypsat', 'Select data' => 'Vypsat data', 'Show structure' => 'Zobrazit strukturu', ), 'pl' => array( 'Menu table links' => 'Linki do tabel w menu', 'Both' => 'Obie', 'Both, select on hover' => 'Obie, przeglądaj po najechaniu myszą', // Claude Opus 5 'Auto (select on the select page, structure otherwise)' => 'Auto (pokaż na stronie przeglądania, w przeciwnym razie struktura)', // this is copied from adminer/lang/ 'select' => 'przeglądaj', 'Select data' => 'Pokaż dane', 'Show structure' => 'Struktura tabeli', ), 'de' => array( '' => 'Menü- und Tabellen-Links konfigurieren. Kombinierbar mit AdminerConfig', 'Both' => 'Beide', 'Both, select on hover' => 'Beide, zeigen beim Überfahren mit der Maus', // Claude Opus 5 'Auto (select on the select page, structure otherwise)' => 'Auto (Auswahl auf der ausgewählten Seite, sonst Struktur)', 'Menu table links' => 'Links verwenden in „Tabelle“', // this is copied from adminer/lang/ 'select' => 'zeigen', 'Select data' => 'Daten auswählen', 'Show structure' => 'Struktur anzeigen', ), 'ja' => array( '' => 'メニュー内テーブルへのリンク設定; AdminerConfig との併用可', 'Both' => '両方', 'Both, select on hover' => '両方 (選択はマウスオーバー時)', // Claude Opus 5 'Auto (select on the select page, structure otherwise)' => '自動 (選択ページでは選択、それ以外では構造)', 'Menu table links' => 'メニューテーブルへのリンク', // this is copied from adminer/lang/ 'select' => '選択', 'Select data' => 'データ', 'Show structure' => '構造', ), 'hr' => array( '' => 'Prikazuje veze na odabir podataka ili strukturu tablice u izborniku', 'Select data' => 'Odaberi podatke', 'Show structure' => 'Prikaži strukturu', 'Both' => 'Oboje', 'Both, select on hover' => 'Oboje, odaberi prelaskom miša', // Claude Opus 5 'Auto (select on the select page, structure otherwise)' => 'Automatski (odabir na stranici odabira, inače struktura)', 'Menu table links' => 'Veze tablice u izborniku', 'select' => 'odaberi', ), ); }