Make WordPress Themes

Changeset 356483


Ignore:
Timestamp:
11/01/2026 02:36:25 PM (102 minutes ago)
Author:
themedropbox
Message:

New version of Leitvia - 1.2.14

Location:
leitvia/1.2.14
Files:
2 added
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • leitvia/1.2.14/design.md

    r356188 r356483  
    147147| Contact | `page` | `cta-contact`, `content-faq`, a form plugin block in a plain section |
    148148| 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` |
    149150
    150151Before 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  
    425425}
    426426add_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 */
     435function 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}
     451add_filter( 'block_core_breadcrumbs_items', __NAMESPACE__ . '\translated_breadcrumb_home' );
    427452
    428453/**
  • leitvia/1.2.14/leitvia-contract.json

    r356188 r356483  
    11{
    22        "$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",
    44        "theme": "leitvia",
    55        "rules": [
    … …  
    11271127                },
    11281128                {
     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                {
    11291157                        "slug": "leitvia/content-price-list",
    11301158                        "title": "Price list",
  • leitvia/1.2.14/readme.txt

    r356188 r356483  
    44Tested up to: 7.1
    55Requires PHP: 8.2
    6 Stable tag: 1.2.11
     6Stable tag: 1.2.14
    77License: GNU General Public License v2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6060== Legal ==
    6161
    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.
     62Leitvia is a product of CMS ADMINS, a brand of Patrick Schlesinger, Parkstraße 19, 80339 München, Germany. Contact: support@cms-admins.de.
    6363
    6464Disclaimer: 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.
    … …  
    6868
    6969== 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).
    7080
    7181= 1.2.11 =
  • leitvia/1.2.14/style.css

    r356188 r356483  
    88Tested up to: 7.1
    99Requires PHP: 8.2
    10 Version: 1.2.11
     10Version: 1.2.14
    1111License: GNU General Public License v2 or later
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.