diff options
| author | 2024-12-08 16:28:06 +0100 | |
|---|---|---|
| committer | 2024-12-08 16:28:06 +0100 | |
| commit | fb0f89c3fede088869629ccaf1bec788ce1c07cb (patch) | |
| tree | dd506ae9f7d13f74c19b7487ce58d856c6dd3f4c /app | |
| parent | ce11150bbde8293d4b381e274c72a0c0a165c629 (diff) | |
Fixed: No user query - no information (#7062)
* Update queries.phtml
* i18n
* fix _blank target
* No user queries are saved yet
* Update app/i18n/it/conf.php
Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com>
* Update app/i18n/it/conf.php
Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com>
* Update app/i18n/fr/conf.php
---------
Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app')
| -rw-r--r-- | app/i18n/cs/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/de/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/el/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/en-us/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/en/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/es/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/fa/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/fi/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/fr/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/he/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/hu/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/id/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/it/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/ja/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/ko/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/lv/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/nl/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/oc/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/pl/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/pt-br/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/ru/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/sk/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/tr/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/zh-cn/conf.php | 4 | ||||
| -rw-r--r-- | app/i18n/zh-tw/conf.php | 4 | ||||
| -rw-r--r-- | app/views/configure/queries.phtml | 104 |
26 files changed, 156 insertions, 48 deletions
diff --git a/app/i18n/cs/conf.php b/app/i18n/cs/conf.php index 284eea454..1d4cdcce7 100644 --- a/app/i18n/cs/conf.php +++ b/app/i18n/cs/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Název', 'no_filter' => 'Žádný filtr', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Dotaz č. %d', 'order_asc' => 'Zobrazit nejdříve nejstarší články', 'order_desc' => 'Zobrazit nejdříve nejnovější články', diff --git a/app/i18n/de/conf.php b/app/i18n/de/conf.php index fc0ce97b3..ef8ab55cb 100644 --- a/app/i18n/de/conf.php +++ b/app/i18n/de/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Bild-URL', 'name' => 'Name', // IGNORE 'no_filter' => 'Kein Filter', + 'no_queries' => array( + '_' => 'Keine Benutzerabfrage vorhanden.', + 'help' => 'Siehe <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">Dokumentation</a>', + ), 'number' => 'Abfrage Nr. %d', 'order_asc' => 'Älteste Artikel zuerst anzeigen', 'order_desc' => 'Neueste Artikel zuerst anzeigen', diff --git a/app/i18n/el/conf.php b/app/i18n/el/conf.php index fe50f7598..020aba5ad 100644 --- a/app/i18n/el/conf.php +++ b/app/i18n/el/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Name', // TODO 'no_filter' => 'No filter', // TODO + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Query n°%d', // TODO 'order_asc' => 'Display oldest articles first', // TODO 'order_desc' => 'Display newest articles first', // TODO diff --git a/app/i18n/en-us/conf.php b/app/i18n/en-us/conf.php index be06be411..31fd4f217 100644 --- a/app/i18n/en-us/conf.php +++ b/app/i18n/en-us/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // IGNORE 'name' => 'Name', // IGNORE 'no_filter' => 'No filter', // IGNORE + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // IGNORE + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // IGNORE + ), 'number' => 'Query n°%d', // IGNORE 'order_asc' => 'Display oldest articles first', // IGNORE 'order_desc' => 'Display newest articles first', // IGNORE diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.php index 30d500c50..c46a7474e 100644 --- a/app/i18n/en/conf.php +++ b/app/i18n/en/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', 'name' => 'Name', 'no_filter' => 'No filter', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', + ), 'number' => 'Query n°%d', 'order_asc' => 'Display oldest articles first', 'order_desc' => 'Display newest articles first', diff --git a/app/i18n/es/conf.php b/app/i18n/es/conf.php index c0ee02b4e..167f9acbe 100644 --- a/app/i18n/es/conf.php +++ b/app/i18n/es/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'URL de la imagen', 'name' => 'Nombre', 'no_filter' => 'Sin filtro', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Consulta n° %d', 'order_asc' => 'Mostrar primero los artículos más antiguos', 'order_desc' => 'Mostrar primero los artículos más recientes', diff --git a/app/i18n/fa/conf.php b/app/i18n/fa/conf.php index 88a399100..d8084fae6 100644 --- a/app/i18n/fa/conf.php +++ b/app/i18n/fa/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => ' نام', 'no_filter' => ' بدون فیلتر', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => ' پرس و جو n°%d', 'order_asc' => ' ابتدا قدیمی ترین مقالات را نمایش دهید', 'order_desc' => ' ابتدا جدیدترین مقالات را نمایش دهید', diff --git a/app/i18n/fi/conf.php b/app/i18n/fi/conf.php index 2ae49e206..4d3ea1820 100644 --- a/app/i18n/fi/conf.php +++ b/app/i18n/fi/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Kuvan URL', 'name' => 'Nimi', 'no_filter' => 'Ei suodatinta', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Kysely %d', 'order_asc' => 'Näytä vanhimmat artikkelit ensin', 'order_desc' => 'Näytä uusimmat artikkelit ensin', diff --git a/app/i18n/fr/conf.php b/app/i18n/fr/conf.php index 72d9abee2..783705f19 100644 --- a/app/i18n/fr/conf.php +++ b/app/i18n/fr/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'URL de l’image', 'name' => 'Nom', 'no_filter' => 'Aucun filtre appliqué', + 'no_queries' => array( + '_' => 'Aucun filtre utilisateur n’a été sauvegardé.', + 'help' => 'Voir <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">la documentation</a>', + ), 'number' => 'Filtre n°%d', 'order_asc' => 'Afficher les articles les plus anciens en premier', 'order_desc' => 'Afficher les articles les plus récents en premier', diff --git a/app/i18n/he/conf.php b/app/i18n/he/conf.php index 481eed8c1..00ef4d1ab 100644 --- a/app/i18n/he/conf.php +++ b/app/i18n/he/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Name', // TODO 'no_filter' => 'ללא סינון', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'שאילתה מספר °%d', 'order_asc' => 'הצגת מאמרים ישנים בראש', 'order_desc' => 'הצגת מאמרים חדשים בראש', diff --git a/app/i18n/hu/conf.php b/app/i18n/hu/conf.php index 0d811834a..bb9c68a44 100644 --- a/app/i18n/hu/conf.php +++ b/app/i18n/hu/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Név', 'no_filter' => 'Nincs szűrés', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => '%d lekérdezés', 'order_asc' => 'Régebbi cikkek előre', 'order_desc' => 'Újabb cikkek előre', diff --git a/app/i18n/id/conf.php b/app/i18n/id/conf.php index 0de544be2..4adebeb08 100644 --- a/app/i18n/id/conf.php +++ b/app/i18n/id/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Nama', 'no_filter' => 'Tanpa filter', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Permintaan n°%d', 'order_asc' => 'Tampilkan artikel tertua dahulu', 'order_desc' => 'Tampilkan artikel terbaru dahulu', diff --git a/app/i18n/it/conf.php b/app/i18n/it/conf.php index 77bd8efe3..0309bab2e 100644 --- a/app/i18n/it/conf.php +++ b/app/i18n/it/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'URL immagine', 'name' => 'Nome', 'no_filter' => 'Nessun filtro', + 'no_queries' => array( + '_' => 'Nessuna ricerca personale è stata ancora inserita', + 'help' => 'Leggi la <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentazione</a>', + ), 'number' => 'Ricerca n°%d', 'order_asc' => 'Mostra prima gli articoli più vecchi', 'order_desc' => 'Mostra prima gli articoli più nuovi', diff --git a/app/i18n/ja/conf.php b/app/i18n/ja/conf.php index 50d5abe54..7deb4461e 100644 --- a/app/i18n/ja/conf.php +++ b/app/i18n/ja/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => '画像のURL', 'name' => '名前', 'no_filter' => 'フィルターはありません', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'クエリ n°%d', 'order_asc' => '古い記事を最初に表示する', 'order_desc' => '新しい記事を最初に表示する', diff --git a/app/i18n/ko/conf.php b/app/i18n/ko/conf.php index 9ca087a1b..4ebb27980 100644 --- a/app/i18n/ko/conf.php +++ b/app/i18n/ko/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => '이름', 'no_filter' => '필터가 없습니다', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => '쿼리 #%d', 'order_asc' => '오래된 글 먼저 표시', 'order_desc' => '최근 글 먼저 표시', diff --git a/app/i18n/lv/conf.php b/app/i18n/lv/conf.php index 35b2c7f48..f568fe526 100644 --- a/app/i18n/lv/conf.php +++ b/app/i18n/lv/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Vārds', 'no_filter' => 'Bez filtra', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Pieprasījums nr. %d', 'order_asc' => 'Vispirms rādīt vecākos rakstus', 'order_desc' => 'Vispirms rādīt jaunākos rakstus', diff --git a/app/i18n/nl/conf.php b/app/i18n/nl/conf.php index 7f5c3199d..46a4105dc 100644 --- a/app/i18n/nl/conf.php +++ b/app/i18n/nl/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Naam', 'no_filter' => 'Geen filter', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Query n°%d', // IGNORE 'order_asc' => 'Toon oudste artikelen eerst', 'order_desc' => 'Toon nieuwste artikelen eerst', diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.php index 765a17901..cc2c2b6cb 100644 --- a/app/i18n/oc/conf.php +++ b/app/i18n/oc/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Nom', 'no_filter' => 'Cap de filtre aplicat', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Filtre n°%d', 'order_asc' => 'Mostrar los articles mai ancians en primièr', 'order_desc' => 'Mostrar los articles mai recents en primièr', diff --git a/app/i18n/pl/conf.php b/app/i18n/pl/conf.php index 07b9381fe..cc1c04bc8 100644 --- a/app/i18n/pl/conf.php +++ b/app/i18n/pl/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Nazwa', 'no_filter' => 'Brak filtrów', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Zapytanie nr %d', 'order_asc' => 'Wyświetl najpierw najstarsze wiadomości', 'order_desc' => 'Wyświetl najpierw najnowsze wiadomości', diff --git a/app/i18n/pt-br/conf.php b/app/i18n/pt-br/conf.php index 501487105..ea82a10a0 100644 --- a/app/i18n/pt-br/conf.php +++ b/app/i18n/pt-br/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Nome', 'no_filter' => 'Sem filtro', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Consulta n°%d', 'order_asc' => 'Exibir artigos mais antigos primeiro', 'order_desc' => 'Exibir artigos mais novos primeiro', diff --git a/app/i18n/ru/conf.php b/app/i18n/ru/conf.php index 64b201d47..f7e25498c 100644 --- a/app/i18n/ru/conf.php +++ b/app/i18n/ru/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Название', 'no_filter' => 'Нет фильтров', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Запрос №%d', 'order_asc' => 'Показывать сначала старые статьи', 'order_desc' => 'Показывать сначала новые статьи', diff --git a/app/i18n/sk/conf.php b/app/i18n/sk/conf.php index 0dfb43c98..b690e5c80 100644 --- a/app/i18n/sk/conf.php +++ b/app/i18n/sk/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => 'Meno', 'no_filter' => 'Žiadny filter', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Dopyt číslo %d', 'order_asc' => 'Zobraziť staršie články hore', 'order_desc' => 'Zobraziť novšie články hore', diff --git a/app/i18n/tr/conf.php b/app/i18n/tr/conf.php index 3ffe25bea..751dba7c1 100644 --- a/app/i18n/tr/conf.php +++ b/app/i18n/tr/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Resim Bağlantısı (URL)', 'name' => 'İsim', 'no_filter' => 'Filtre yok', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => 'Sorgu n°%d', 'order_asc' => 'Önce eski makaleleri göster', 'order_desc' => 'Önce yeni makaleleri göster', diff --git a/app/i18n/zh-cn/conf.php b/app/i18n/zh-cn/conf.php index 296949f72..0256e010a 100644 --- a/app/i18n/zh-cn/conf.php +++ b/app/i18n/zh-cn/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => 'Image URL', // TODO 'name' => '名称', 'no_filter' => '无过滤器', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => '查询 n°%d', 'order_asc' => '由旧至新显示文章', 'order_desc' => '由新至旧显示文章', diff --git a/app/i18n/zh-tw/conf.php b/app/i18n/zh-tw/conf.php index da3c89454..338621317 100644 --- a/app/i18n/zh-tw/conf.php +++ b/app/i18n/zh-tw/conf.php @@ -149,6 +149,10 @@ return array( 'image_url' => '影像網址', 'name' => '名稱', 'no_filter' => '無過濾器', + 'no_queries' => array( + '_' => 'No user queries are saved yet.', // TODO + 'help' => 'See <a href="https://freshrss.github.io/FreshRSS/en/users/user_queries.html" target="_blank">documentation</a>', // TODO + ), 'number' => '查詢 n°%d', 'order_asc' => '由舊至新顯示文章', 'order_desc' => '由新至舊顯示文章', diff --git a/app/views/configure/queries.phtml b/app/views/configure/queries.phtml index d085016fb..e8ff32bdd 100644 --- a/app/views/configure/queries.phtml +++ b/app/views/configure/queries.phtml @@ -11,56 +11,64 @@ <form method="post" action="<?= _url('configure', 'queries') ?>" class="draggableList"> <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> <h1><?= _t('conf.query') ?></h1> + <?php if (count($this->queries) < 1) { ?> + <div class="alert alert-warn"> + <p><?= _t('conf.query.no_queries') ?></p> + <p class="help"><?= _i('help') ?> <?= _t('conf.query.no_queries.help') ?></p> + </div> + <?php + } else { + foreach ($this->queries as $key => $query) { ?> + <div class="form-group" id="query-group-<?= $key ?>" draggable="true"> + <div class="box"> + <div class="box-title"> + <a class="configure open-slider" href="<?= _url('configure', 'query', 'id', '' . $key) ?>"><?= _i('configure') ?></a><h2><?= $query->getName() ?></h2> + <input type="hidden" id="queries_<?= $key ?>_name" name="queries[<?= $key ?>][name]" value="<?= $query->getName() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_token" name="queries[<?= $key ?>][token]" value="<?= $query->getToken() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_shareRss" name="queries[<?= $key ?>][token]" value="<?= $query->shareRss() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_shareOpml" name="queries[<?= $key ?>][token]" value="<?= $query->shareOpml() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_url" name="queries[<?= $key ?>][url]" value="<?= $query->getUrl() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_search" name="queries[<?= $key ?>][search]" value="<?= urlencode($query->getSearch()->getRawInput()) ?>"/> + <input type="hidden" id="queries_<?= $key ?>_state" name="queries[<?= $key ?>][state]" value="<?= $query->getState() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_order" name="queries[<?= $key ?>][order]" value="<?= $query->getOrder() ?>"/> + <input type="hidden" id="queries_<?= $key ?>_get" name="queries[<?= $key ?>][get]" value="<?= $query->getGet() ?>"/> + </div> + <?php if (!$query->hasParameters()) { ?> + <div class="box-content"> + <div class="alert alert-warn"> + <div class="alert-head"><?= _t('conf.query.no_filter') ?></div> + </div> + </div> + <?php } elseif ($query->isDeprecated()) { ?> + <div class="box-content"> + <div class="alert alert-error"> + <div class="alert-head"><?= _t('conf.query.deprecated') ?></div> + </div> + </div> + <?php } else { ?> + <ul class="box-content scrollbar-thin"> + <?php if ($query->hasSearch()) { ?> + <li class="item"><?= _t('conf.query.search', htmlspecialchars($query->getSearch()->getRawInput(), ENT_NOQUOTES, 'UTF-8')) ?></li> + <?php } ?> - <?php foreach ($this->queries as $key => $query) { ?> - <div class="form-group" id="query-group-<?= $key ?>" draggable="true"> - <div class="box"> - <div class="box-title"> - <a class="configure open-slider" href="<?= _url('configure', 'query', 'id', '' . $key) ?>"><?= _i('configure') ?></a><h2><?= $query->getName() ?></h2> - <input type="hidden" id="queries_<?= $key ?>_name" name="queries[<?= $key ?>][name]" value="<?= $query->getName() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_token" name="queries[<?= $key ?>][token]" value="<?= $query->getToken() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_shareRss" name="queries[<?= $key ?>][token]" value="<?= $query->shareRss() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_shareOpml" name="queries[<?= $key ?>][token]" value="<?= $query->shareOpml() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_url" name="queries[<?= $key ?>][url]" value="<?= $query->getUrl() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_search" name="queries[<?= $key ?>][search]" value="<?= urlencode($query->getSearch()->getRawInput()) ?>"/> - <input type="hidden" id="queries_<?= $key ?>_state" name="queries[<?= $key ?>][state]" value="<?= $query->getState() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_order" name="queries[<?= $key ?>][order]" value="<?= $query->getOrder() ?>"/> - <input type="hidden" id="queries_<?= $key ?>_get" name="queries[<?= $key ?>][get]" value="<?= $query->getGet() ?>"/> - </div> - <?php if (!$query->hasParameters()) { ?> - <div class="box-content"> - <div class="alert alert-warn"> - <div class="alert-head"><?= _t('conf.query.no_filter') ?></div> - </div> - </div> - <?php } elseif ($query->isDeprecated()) { ?> - <div class="box-content"> - <div class="alert alert-error"> - <div class="alert-head"><?= _t('conf.query.deprecated') ?></div> - </div> - </div> - <?php } else { ?> - <ul class="box-content scrollbar-thin"> - <?php if ($query->hasSearch()) { ?> - <li class="item"><?= _t('conf.query.search', htmlspecialchars($query->getSearch()->getRawInput(), ENT_NOQUOTES, 'UTF-8')) ?></li> - <?php } ?> - - <?php if ($query->getState()) { ?> - <li class="item"><?= _t('conf.query.state_' . $query->getState()) ?></li> - <?php } ?> + <?php if ($query->getState()) { ?> + <li class="item"><?= _t('conf.query.state_' . $query->getState()) ?></li> + <?php } ?> - <?php if ($query->getOrder() !== '') { ?> - <li class="item"><?= _t('conf.query.order_' . strtolower($query->getOrder())) ?></li> - <?php } ?> + <?php if ($query->getOrder() !== '') { ?> + <li class="item"><?= _t('conf.query.order_' . strtolower($query->getOrder())) ?></li> + <?php } ?> - <?php if ($query->getGet() !== '') { ?> - <li class="item"><?= _t('conf.query.get_' . $query->getGetType(), $query->getGetName()) ?></li> - <?php } ?> - <?php } ?> - </ul> - </div> - </div> - <?php } ?> + <?php if ($query->getGet() !== '') { ?> + <li class="item"><?= _t('conf.query.get_' . $query->getGetType(), $query->getGetName()) ?></li> + <?php } ?> + <?php } ?> + </ul> + </div> + </div> + <?php + } + }?> </form> </main> @@ -70,7 +78,7 @@ <div id="slider-content"> <?php if ($this->query != null) { - $this->renderHelper('configure/query'); + $this->renderHelper('configure/query'); } ?> </div> |
