Changeset 356483
- Timestamp:
- 11/01/2026 02:36:25 PM (102 minutes ago)
- Location:
- leitvia/1.2.14
- Files:
-
- 2 added
- 5 edited
- 1 copied
-
. (copied) (copied from leitvia/1.2.11 )
-
design.md (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
leitvia-contract.json (modified) (2 diffs)
-
patterns/content-pager.php (added)
-
patterns/dates.json (added)
-
readme.txt (modified) (3 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
leitvia/1.2.14/design.md
r356188 r356483 147 147 | Contact | `page` | `cta-contact`, `content-faq`, a form plugin block in a plain section | 148 148 | Documentation home | `page-landing` | `hero-search`, `content-feature-grid` or `content-steps`, `content-changelog`, `content-downloads`, `content-faq`, `cta-contact` | 149 | Series or catalog entry | `page-landing` | `hero-editorial` as the head with name and purpose, the content of the entry, `content-pager` at the end; the overview lists every entry with `content-feature-catalog` | 149 150 150 151 Before using a pattern read its `useWhen` and `docs.avoidWhen`. Respect `docs.contentLength` (characters of the main heading and of each supporting text) so layouts do not break. `images` lists every image slot with aspect ratio, display width and the pixel size to deliver. -
leitvia/1.2.14/functions.php
r356188 r356483 425 425 } 426 426 add_filter( 'render_block_data', __NAMESPACE__ . '\translated_template_part' ); 427 428 /** 429 * Core starts the Breadcrumbs block with home_url( '/' ), the start page of the default language. On a page in another 430 * language the first crumb leads to the start page of that language instead, as Polylang (pll_home_url) or WPML and 431 * plugins that answer its filter wpml_home_url name it. Without such a plugin nothing changes. 432 * 433 * @param array $items Breadcrumb items, each with label and url. 434 */ 435 function translated_breadcrumb_home( array $items ): array { 436 // Polylang filters home_url() for calls from theme files, so here it would already name the start page of the 437 // current language. The item core built is the start page of the default language: compare with that one. 438 if ( function_exists( 'pll_home_url' ) && function_exists( 'pll_default_language' ) ) { 439 $default = pll_home_url( (string) pll_default_language() ); 440 $current = pll_home_url(); 441 } else { 442 $default = home_url( '/' ); 443 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- the filter of WPML, answered by WPML and compatible plugins. 444 $current = apply_filters( 'wpml_home_url', $default ); 445 } 446 if ( ! empty( $items[0]['url'] ) && untrailingslashit( $items[0]['url'] ) === untrailingslashit( $default ) ) { 447 $items[0]['url'] = $current; 448 } 449 return $items; 450 } 451 add_filter( 'block_core_breadcrumbs_items', __NAMESPACE__ . '\translated_breadcrumb_home' ); 427 452 428 453 /** -
leitvia/1.2.14/leitvia-contract.json
r356188 r356483 1 1 { 2 2 "$comment": "Machine-readable design contract of the Leitvia theme. Agents read this instead of guessing. Semver: major = removed or renamed role/pattern, minor = added, patch = descriptions. Explained for humans in design.md. A reference checker for compositionRules lives in the Leitvia monorepo and is not shipped with the theme. pageFrames: slots are unordered and may repeat; a page fills them with any number of patterns whose role the slot allows. Patterns with role frame (header, footer, hidden page parts) carry placeholder composition metadata that checks ignore.", 3 "contractVersion": "1.13. 3",3 "contractVersion": "1.13.4", 4 4 "theme": "leitvia", 5 5 "rules": [ … … 1127 1127 }, 1128 1128 { 1129 "slug": "leitvia/content-pager", 1130 "title": "Previous and next", 1131 "description": "Links to the previous and the next page of a series and back to its overview, each under a short label. Use at the end of guides, case studies and catalog entries that readers go through in order.", 1132 "area": "content", 1133 "useWhen": "At the end of a page that belongs to a series read in order, such as a guide chapter, a case study or a catalog entry.", 1134 "composition": { 1135 "tone": "surface", 1136 "density": "dense", 1137 "layout": "grid", 1138 "weight": "light", 1139 "role": "close", 1140 "width": "wide" 1141 }, 1142 "images": [], 1143 "docs": { 1144 "avoidWhen": "The page stands alone or the series has only two pages; link the other page in the text instead.", 1145 "a11y": "The links sit in a nav landmark with its own name; each link names its target page, and the label above only adds the direction.", 1146 "contentLength": { 1147 "heading": null, 1148 "text": [ 1149 10, 1150 60 1151 ] 1152 }, 1153 "replacedBy": null 1154 } 1155 }, 1156 { 1129 1157 "slug": "leitvia/content-price-list", 1130 1158 "title": "Price list", -
leitvia/1.2.14/readme.txt
r356188 r356483 4 4 Tested up to: 7.1 5 5 Requires PHP: 8.2 6 Stable tag: 1.2.1 16 Stable tag: 1.2.14 7 7 License: GNU General Public License v2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 60 60 == Legal == 61 61 62 Leitvia is a product of CMS ADMINS, a brand of MSRV Hosting und Service GbR, Parkstraße 19, 80339 München, Germany, represented by Patrick Schlesinger and Peter Laschtowitz. Contact: support@cms-admins.de.62 Leitvia is a product of CMS ADMINS, a brand of Patrick Schlesinger, Parkstraße 19, 80339 München, Germany. Contact: support@cms-admins.de. 63 63 64 64 Disclaimer: Leitvia is free software under the GNU GPL, version 2 or later. It is provided as is, without any warranty, to the extent permitted by applicable law; see sections 11 and 12 of the GPL. You are responsible for checking that your site meets the legal requirements that apply to it, such as accessibility, privacy and imprint duties; Leitvia helps with these but does not replace that check. … … 68 68 69 69 == Changelog == 70 71 = 1.2.14 = 72 * The theme ships patterns/dates.json with the date each pattern was added and last changed, so the Pattern Lab of Leitvia Studio can list the newest first. 73 74 = 1.2.13 = 75 * The first item of the Breadcrumbs block leads to the start page of the current language with Polylang as well; 1.2.12 compared it with a start page Polylang had already translated. 76 77 = 1.2.12 = 78 * New pattern Previous and next: links to the previous and the next page of a series and back to its overview, for guides, case studies and catalog entries. Design contract 1.13.4. 79 * On a site in several languages the first item of the Breadcrumbs block leads to the start page of the current language (Polylang, WPML). 70 80 71 81 = 1.2.11 = -
leitvia/1.2.14/style.css
r356188 r356483 8 8 Tested up to: 7.1 9 9 Requires PHP: 8.2 10 Version: 1.2.1 110 Version: 1.2.14 11 11 License: GNU General Public License v2 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)