=== WPCE Theme ===
Contributors: dietechnikbude
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 1.3.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

The parent block theme for WP Club Elements club sites.

== Description ==

WPCE Theme is the presentation layer for club websites built on the WP Club Elements plugin. The plugin holds the data - departments, people, courses, events, locations, downloads, membership fees - and this theme shows it: templates for pages, posts, their lists, search and "not found" (the pages of courses, events, people, departments and locations come from the plugin and take the theme's look), header and footer that fill themselves from the club data, patterns for sections and whole club pages, a menu block, an image sequence for page openers, and six style variations for different kinds of clubs (Sportverein, Turnverein, Grossverein, Musikverein, Feuerwehr, Foerderverein).

Every club site runs a child theme of this one that carries only its own colours, logo and overrides; everything shared lives here and reaches all sites through updates.die-technikbude.de.

The theme works without the plugin, but most templates and parts stay empty then.

== Installation ==

1. Install and activate the WP Club Elements plugin.
2. Upload the theme ZIP through Appearance -> Themes -> Add New -> Upload, or drop the folder into wp-content/themes/.
3. Activate the theme (or a child theme built for it) and pick a style variation under Appearance -> Editor -> Styles.

== Changelog ==

= 1.3.0 =

* Announcements: the band of WP Club Elements (block wpce/announcements, plugin 1.4.0) has its own template part, announcements, above the sticky header of every template, declared to the plugin with add_theme_support( 'wpce-announcement-slot' ). It scrolls away with the page while the bar stays. The warning stage is dark text on the bright colour; information and important sit on the pale surface; every palette holds WCAG AA. The pop-up takes the buttons and the heading font of the theme, and the warning colour is settings.custom.wpce.notice.alert. Without the plugin, or with a plugin that does not have the block, the part is empty. The setting of the plugin "Show announcements at the top of every page" switches the band off; the filter wpce_theme_announcement_band has the last word and switches off the copy an older plugin hangs into the header as well.
* The copy of the plugin's public contract in the tests is updated (the plugin's contract of 1.4.0: announcement classes, the notice stages, --wpce-alert).
* The announcement band needs WP Club Elements 1.4.0 or newer; with an older plugin the theme keeps working and the band part stays empty.

= 1.2.0 =

* Footer: its colour is a token, settings.custom.wpce.footer.style (section style 1-5, 5 = dark by default, filter wpce_theme_footer_style). A style variation or a child theme can give a site a light footer under a dark header; the Site Editor shows the footer in that style. A footer saved in the dark style before the token existed follows it; a footer whose style was chosen in the Site Editor keeps it. Only the footer template part is affected. Without the token the footer's markup is unchanged.
* Footer: a light footer (calm or surface) always has a line at the top, and every footer has one where it meets a last band of its own style (until now only dark on dark) - with the default dark footer that is the line it always had.
* Occupancy plan of WP Club Elements: the cells of the plan are readable on every section style. On the strong and the dark section the cell lies on the colour of the section instead of the white card surface, and the chosen "Plan | Liste" button takes the colours of the buttons there. The contrast test measures the plan in every style variation.
* Header: without JavaScript the menu wraps instead of running out of a phone screen (the row was kept in one line for every visitor, though only the script can put the menu behind its button), and the main button of the header is no longer lost on a phone. On a phone the bar then scrolls away with the page instead of staying fixed (it is the whole menu, several rows high), and a long club name wraps instead of widening the page.
* The pipeline uses the shared CI templates (standards/ci-templates) and scans for secrets; the pinned Composer image is 2.10.3.

= 1.1.2 =

* Menu: the arrow keys work as in the WAI-ARIA menu pattern, including the third level; left and right swap in a right-to-left menu, Escape closes dropdowns, and every entry is measured for the one-line header.
* Page head: the band class is swapped whatever the order of the classes, and pattern references are followed once.
* The copyright year in the editor preview follows the rule of the front end (no range when the start year is not before this year).
* Entries with a password: the featured image, the pictures in patterns, menus shown by ID, slideshow paths and the page head respect the password protection and the user's rights.
* Slideshow: stored pictures are looked up inside the uploads folder only.
* The pipeline tests fail instead of skipping when PHP or the build is missing, and the jest job has the full ICU data.
* The update library (wp-dtb-updater) is 1.2.0 in composer.lock.

= 1.1.1 =

* A menu entry with no page of its own (address # or empty) is a button that opens its submenu instead of a dead link.
* Arrow down opens a submenu and moves into it; the arrow keys walk the links of the submenu.
* The copy of the plugin's public contract in the tests is updated.
* The version of the stylesheet and scripts under a child theme is the version of the parent theme.

= 1.1.0 =

* New token settings.custom.wpce.menu.toggle-label: "show" (the default, nothing changes) or "hide" takes the words "Menu" and "Close" away from the menu button and the close button. They stay the name of the button for screen readers and voice control. A style variation or a child theme sets it.
* The arrow button of a sub-menu in the header is a target of at least 44 x 44 pixels (it was 21 pixels high), takes the font of the menu and shows the focus ring of the theme. The header does not become wider.

= 1.0.0 =

* Update library wp-dtb-updater 1.1.0: a site can move to the next major version through DTB_UPDATES_MAJOR in wp-config.php.
* Image sequence: new layout "Centred" (text in the middle of the picture, every line centred) and the pattern "Opener: pictures from edge to edge, text in the middle".
* A style variation can set the heads of sections in the middle and without the small line above the heading (settings.custom.wpce.section.head-align, .kicker, .heading-size) and lay all light bands on one ground with a fine rule between them (section.rule, .surface-inner, .surface-card-line). Musikverein does; nothing changes anywhere else.
* Header and footer have layouts a style variation chooses (settings.custom.wpce.header.layout: bar, centered, menu-button; footer.layout: columns, row, centered), and a header can lie over the picture a page opens with (header.over-picture). New patterns "Header: logo in the middle" and "Footer: centred, with the logo". Without a word from the variation nothing changes; Musikverein uses the new ones.
* Design tokens: palette roles tertiary and contrast-2, seven spacing steps, radius and shadow presets, settings.custom.wpce.
* Five section styles (wpce-section-1 to wpce-section-5) and a display text style; colour and typography presets next to the full style variations (six by now).
* Editors choose from the theme presets only; the WordPress default palettes, font sizes, spacing sizes and shadows are switched off. The font sizes the theme defines now apply (the WordPress defaults used to win): body text is 17px instead of 20px on wide screens, headings come in clearer steps.
* Links and buttons use tertiary for hover and focus; every palette is checked for WCAG AA contrast in every section style. Feuerwehr: secondary is now a signal yellow, the former anthracite is tertiary.
* The block styles card, rounded and outline-accent come from global styles and can be overridden in a child theme.json.
* Removed the scaffold block wpce-theme/example-static. Dashicons are no longer loaded on every page.
* Fixed malformed block attributes in the templates: archive pages get their content width and spacing back.
* New block Image sequence (wpce-theme/slideshow): several pictures cross-fading behind headline, text and buttons, with a pause button and no motion for visitors who ask for less. The Hero block is retired: it keeps working, is no longer offered in the inserter and can be transformed into the new block.
* Menu block rebuilt: submenus open with a button and by keyboard, the overlay is a proper dialog that keeps the focus inside, and the menu stays usable without JavaScript. Menu links take the text colour instead of the link colour; font, size and colours are set in the block. New setting "Behind a menu button" (never / on small screens / always); existing blocks keep their behaviour.
* New menu location Legal links. The mobile menu location is optional: without a menu the overlay shows the header navigation.
* Fixed: the German translation was never loaded (the file had a name WordPress does not look for in a theme). Block and editor texts are translated.
* Pages and the front page: a full-width block now reaches the edges of the window, and one that opens the front page sits directly below the header.
* New design: the values of the theme follow the design brief. Reading width 46rem and wide width 76rem (was 1200px / 1440px) - grids, archives, header and footer use the wide width, text stays in the reading column. New type scale with the sizes x-small and display, body text 17-19px, a fluid spacing scale with more air between sections, larger radii, tinted shadows.
* New default palette (navy #2B3A67 with an apricot accent) and reworked palettes for Sportverein, Feuerwehr, Musikverein and Foerderverein. New style variation Turnverein.
* New fonts as variable woff2 with font-display swap, the body font preloaded: Manrope and Inter by default, Bricolage Grotesque, Figtree, Roboto Condensed, Public Sans, Fraunces and Atkinson Hyperlegible Next in the variations. The font families "base" and "heading" keep their slugs but change face (Roboto and Montserrat are gone, with them the typography presets Nunito and Playfair Display). Fonts weigh 70-185 KB per variation instead of 3.6 MB of TTF files.
* New block styles: card flat and card with shadow next to the card (which loses its shadow: a card has a line or a shadow, not both), button with arrow, link with arrow, badge, kicker, lead. Outline buttons take the text colour of their section. Links in text no longer change colour on hover; the underline gets thicker.
* Section styles: no longer offered for cover blocks. Muted text, kickers, cards and the focus ring follow the section; cards on the dark section stay dark. Two full-width sections in a row touch.
* Motion tokens under settings.custom.wpce.motion; hover transitions respect "reduce motion".
* The emoji script of WordPress is no longer loaded.
* The section and text styles and the names of presets are translated, also under a child theme.
* Fixed: section styles were missing in the editor canvas.
* The theme tests run in the pipeline.
* Design review of the six demo clubs: the name in the header is one line on every page (the menu goes behind its button first, and the current entry is marked by its line alone). While a hero or a closing band shows a filled button of its own, the header's main button is an outline. A menu entry with the CSS class is-secondary-action becomes a second, quiet action beside the main button.
* Footer: a long or a second e-mail address wraps inside the contact column beside its icon; the opening hours show the name of their group.
* Grids never end in the middle of a row: quick links, numbers and steps are balanced by their number (three numbers on a phone: two and one across), partner logos fill their row and stand two to a row on a phone.
* News band: the newest post large on the left, the two after it as rows beside it, one box without a hole; the large title is a step below the section heading. A post shows its picture as a strip of at most 44 % of the screen, so the text starts on the first screen. Posts, the posts page and archives end on the band with the main button.
* Closing bands always say a sentence, fitting the kind of page; the page of a person, a place or a partner has none, the overviews of offers, events, departments and people have one. New pattern "Closing band: with a button of its own" for clubs without a main button.
* Page heads: a page with an excerpt opens with a strong head and the excerpt as its introduction (dark for Musikverein and Grossverein). On a phone a path of three or more steps leaves out its last one.
* Fees: white rows under a head on the surface, the note beside the table. Questions and answers: the head beside the questions. Chronicle: the years at the left edge of the page.
* Foerderverein: figures come from Figtree (the slashed zero of Atkinson Hyperlegible Next read as a font error in times and bank details); the picture of the split hero ends on an arch, the arrows of the quick links are round buttons. Turnverein: its dot grid also beside the hero picture.
* Image sequence: each picture can have a focal point, which keeps the motif in view on a phone; in the layout "plate" the picture is a wide strip above the plate on a phone.
* New header: one row with logo and name, the menu and the club's main button. It sticks to the top of the window and becomes slimmer once the page is scrolled; on small screens, with more than six entries or when the entries do not fit, the menu is behind a button with the word "Menü" and opens over the whole window. A second header pattern keeps the menu behind the button on every screen. The header no longer wraps into two rows, and nothing sits beside the window on a phone.
* Logo and name in header and footer are the blocks Site Logo and Site Title; with WP Club Elements they show the club's logo (while the site has none) and the club's name.
* New footer: logo, name and social networks as icon buttons; address, phone and email; the opening hours of the first group; the footer menu; below a line the copyright and the legal links. Columns without content disappear. Bank details are no longer in the footer. A compact one-row footer is available as a second pattern.
* Header, footer and page heads are patterns (patterns/); the template parts only name them, so a child theme replaces a pattern or a part. Template files contain no text any more; all of it is translated.
* Inner pages open with a page head: breadcrumbs and the title on a pale band. New page template "Seite ohne Seitenkopf" for pages that bring their own opener. New texts and layout for "page not found" and the search.
* Hero: the image sequence block places its text at the bottom left over a gradient veil, is as high as most of the first screen, and comes in four layouts (edge to edge, panel, split, plate). Six patterns for page openers, among them one without pictures. A block without pictures is a band in its colour instead of invisible text.
* Image sequence: pictures no longer let the page shine through while they change; a picture deleted from the media library is skipped; only the first sequence of a page loads its picture with priority.
* Menu block: the opened menu is the whole window with large entries; new settings for the width at which it collapses, the number of entries side by side and the colour of the opened menu; blocks inside the menu block appear at the foot of the opened menu. Fixed: a phone turned with the menu open left the page locked; Escape and Tab did nothing after a click on an empty part of the menu; the close button lay under the admin bar; a blocked menu script left a button that did nothing; a dropdown at the right edge widened the page.
* The Copyright block is retired (it keeps working); the footer uses a block binding instead, so the year stays current in a saved footer.
* German is now loaded for "Deutsch (Sie)", Austrian and Swiss German as well.
* Administrators see a notice when the theme's built blocks are missing.
* Motion, on by default and switchable by a child theme (theme support "wpce-motion", filter wpce_theme_motion): sections and the cards of a grid fade in once when they are scrolled to, cards lift and their pictures zoom under the pointer, numbers count up, opened menus and details fade in, page changes cross-fade where the browser can, jumps to anchors scroll. Only opacity and transform move, nothing visible when a page opens is hidden, nothing shifts; without JavaScript, in print and with "reduce motion" the page stands still. Levels through the tokens under settings.custom.wpce.motion.
* 22 section patterns - quick links, departments, next events, numbers, news, about us, main button as band and as panel, partners, contact with map, people, weekly plan, fees, downloads, locations, steps, questions and answers, notice and more - and 8 page patterns (front page, courses, events, team, membership, contact, departments, page with sections) that a new page offers. Sections are locked to their content: editors change texts, pictures and lists, not the structure. A band whose list is empty, and a main button band of a club without a main button, do not appear.
* Icons for tiles: twenty line icons (Lucide, ISC) as a collection of the Icon block (WordPress 7.1).
* News: the posts page, archives and the fallback list show cards; a single post shows its picture in 16:9 and links to the previous and next post.
* Headline and text share one left edge: the reading column starts at the left edge of the wide column, on pages, posts and inside every band. Visible change on every page with text.
* Style variations have a character of their own: a header scheme (Feuerwehr dark with the menu in condensed capitals, Grossverein in the club colour, Turnverein and Foerderverein with the main button in the accent colour), an ornament on the coloured bands, soft cards for Foerderverein. New variation Grossverein for large clubs with many departments. New pattern "Notruf 112" for the header of a fire brigade.
* New block style "First post large" for the post template of a query loop.
* The theme no longer ships templates for the overviews of courses, events, people, locations, departments and downloads: WP Club Elements registers the pages of its content types itself, and a template file of the theme would hide them. Their head gets the same pale band as every page head, their reading width is the theme's, and a single page ends on the club's main button (filter wpce_theme_single_closing_pattern). Sites that saved one of the removed templates in the Site Editor keep their copy.
* Fixed: text over the pictures of a page opener was hard to read where the veil was thin (a headline on a phone over a bright picture). The veil now follows the text: the same strength lies behind the first line as behind the last, 85 % at the default setting. Readable on every palette colour an editor can choose for it.
* Fixed: a page that opens with a hero or the "page head" pattern had two main headings; the template's page head now steps back by itself. Quick-link rows and the titles in lists of posts are h2, so no heading level is skipped.
* Fixed: the notice about colours from an earlier theme version appeared permanently under a child theme with five colours. It is measured against the active theme's palette and each user can hide it.
* Pagination of post lists, the links to the previous and next post, and the pagination of the plugin's lists look alike: boxes of 44 px, the current page filled, the theme's arrows.
* Counting numbers keep their notation: years count without a thousands separator, decimals keep their decimals, ranges and ratios stay as written. The counting script is only loaded on pages that show such a number.
* Smaller pages: block styles whose values are the same everywhere moved from per-block global styles into the stylesheet (on the front page pattern 6.4 KB instead of 25.3 KB of inline CSS). Section styles keep surface, text colour and padding as global styles; the colours of links and buttons on a section follow its scheme and can no longer be set per section in a child theme.json.
* Requires the WP Club Elements version that brings the pages of its content types, keeps site title and logo equal to the club's ("Use as site title and site logo") and has the icon, group and network settings of its club blocks: the theme's own bridge for name and logo (filters wpce_theme_club_identity, wpce_theme_club_name) and its footer workarounds are gone. With an earlier plugin administrators see a notice.
* New section pattern "Chronik" (the plugin's chronicle block), also on the team page pattern; its stations fade in one after the other.
* "Next events" shows every event once: the very next one as a large poster with its picture (block style "featured" of WP Club Elements), the four after it as rows beside it - below it on a phone.
* Feuerwehr: the emergency number stands in the header by itself (token settings.custom.wpce.header.badge, filter wpce_theme_header_badge). It is decided when the page is rendered, so a header saved in the Site Editor follows the style variation.
* The pages of the plugin's content types are dressed through tokens instead of CSS (settings.custom.wpce.head.*, page.padding-top, table.max-width): the head as the theme's band with the path to the page above the title. The closing band of a single page says "Der nächste Schritt" and shows the club's main button; it is added through the plugin's filter wpce_template_pattern_content and is part of the page in the Site Editor.
* Style variations choose the look of the plugin's lists: raised cards for Turnverein, flat cards for Musikverein, rows and tables as soft surfaces for Foerderverein, a 2 px line for Feuerwehr (settings.custom.wpce.entries.*, card.*). New tokens settings.custom.wpce.featured.* for the poster of the next event.
* Fixed: titles of the plugin's cards and rows were link-coloured inside a section style; they are text now, as on a plain page.
* Fixed: the plugin's outlined cards lost their line on the sections "Akzent" and "kräftig".
* The footer shows the club's full name; the header shows the short name where the club has one.
* Fixed: with a header that does not stick (header.position: static) a jump to an anchor still left room for the bar.
* Times and tables never show a slashed zero. A long title in a quick-link tile keeps a gap to its arrow. Feuerwehr: the statement of the main button band is one size larger (token settings.custom.wpce.cta.heading-size).
* The plugin's bordered cards take the card line of the theme (soft cards for Foerderverein, a strong line for Feuerwehr).
* Links in the footer and the path of a page are 44 px high on phones and touch screens; a jump to an anchor lands below the header for logged-in users as well.
* The German default texts of the patterns address nobody directly any more (neither "Sie" nor "du").
* Fixed: a child theme's assets/css/editor.css replaced the theme's editor styles.

= 0.1.0 =

* First packaged release: the theme lives in its own repository and ships through updates.die-technikbude.de.
* Uses the plugin's wpce/ block namespace (was wpce-plugin/).
* Requires WordPress 7.0 and PHP 8.2.

== Upgrade Notice ==

= 1.3.0 =

No action needed. New announcement band above the header; it appears with WP Club Elements 1.4.0 or newer.

= 1.2.0 =

No action needed. New footer style token (a light footer under a dark header is possible) and a readable occupancy plan of WP Club Elements 1.3.0 on every section style.

= 1.0.0 =

Needs WP Club Elements 1.0.0 or newer. Child themes must add the colours "tertiary" and "contrast-2" to their palette (seven roles; see wpce-child-template). Sites that picked a style variation in the Site Editor should pick it again and save: the colours stored with the site come from the old palette, and an admin notice says so. Content built for the old 1200px content width needs the wide alignment for grids and columns. Header and footer are new: sites that saved their own header or footer in the Site Editor keep them and can reset them there to get the new ones; child themes that copied parts/header.html or parts/footer.html keep their copy.

= 0.1.0 =

Needs WP Club Elements 0.1.0 or newer: the plugin's block namespace changed to wpce/.
