feat: Redesign the [odw_dataset] download card (v2.18.0)#60
Merged
Conversation
New layout for the frontend shortcode card:
- Large dataset name; a "Metadaten JSON" link (top-right) downloads the JSON-LD
- Prominent download button (downloadURL → media file → accessURL)
- Colorful small badges: file format · file size · license
- Collapsible accordion ("Alle Metadaten anzeigen") listing every populated
metadata field (publisher, description, theme, CESSDA, language, keywords,
URLs, format, time period, contact, …)
Frontend CSS reworked accordingly; 18 new UI strings translated in en_US.
Version 2.18.0. Tests: 151 pass, PHPStan clean, PHPCS exit 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JB1xUQM892bVZ4Yv3MZjvq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#2 — Widget-Redesign (Download-Card)
Neues Layout für den Frontend-Shortcode
[odw_dataset id="…"]genau nach deiner Vorgabe:downloadURL→ Mediathek-Datei →accessURL).Dateien
includes/class-shortcode.php— neues Render +collect_metadata_rows()assets/css/frontend.css— komplett überarbeitet (Titel groß, Badges, Accordion, Download-Button)languages/*— 18 neue Widget-Strings inen_USVerifikation
[odw_dataset id="…"]auf einer Seite): Name/Badges/Accordion/Download + „Metadaten JSON". Die Badge-Farben sind bewusst fix (hell), damit sie in jedem Theme lesbar „bunt" wirken — falls du andere Farben möchtest, sag Bescheid.Damit sind alle Punkte deiner Liste umgesetzt — bis auf
class-fields.php), sobald dieser gemergt ist.🤖 Generated with Claude Code
Generated by Claude Code