Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
816583e
fix: remove account shell aside with product list
vitormattos Jul 14, 2026
4d26679
i18n: use English as base language, add pt_BR translation
vitormattos Jul 14, 2026
63d61da
fix: remove duplicate Portuguese template content and simplify conten…
vitormattos Jul 14, 2026
14fff3b
refactor: split monolithic functions.php into focused inc/ files
vitormattos Jul 14, 2026
ee6e288
chore: remove unused arrow-icon-details block style
vitormattos Jul 14, 2026
04ad581
chore: remove block styles unreachable from any rendered template
vitormattos Jul 14, 2026
2c43b9d
chore: remove 27 unused boilerplate patterns
vitormattos Jul 14, 2026
7ecb52b
chore: remove 8 unused templates and remaining block styles
vitormattos Jul 14, 2026
387f505
chore: remove logo fallback — header always comes from webhook fragment
vitormattos Jul 14, 2026
7b7f49d
fix: remove wpautop on account pages to prevent <br> inside form HTML
vitormattos Jul 14, 2026
f7ce3f5
fix: do not replace product-button in archive listings
vitormattos Jul 14, 2026
d7e802b
fix: remove block replacement for add-to-cart-form and guest CTA helper
vitormattos Jul 14, 2026
89a96fa
refactor: split checkout.php into billing, checkout and guest-access
vitormattos Jul 14, 2026
9f7b2a2
fix: hide variation attributes from Additional Information tab
vitormattos Jul 14, 2026
542741c
chore: remove .mo from version control; add compile-mo workflow
vitormattos Jul 14, 2026
21338e8
fix: show CPF/CNPJ field only for Brazil, required when BR
vitormattos Jul 15, 2026
83914ea
fix: use display:block instead of empty string to show CPF/CNPJ for BR
vitormattos Jul 15, 2026
8a17d2a
fix: use woocommerce_get_contextual_fields_for_location for proper CP…
vitormattos Jul 15, 2026
5464447
docs: clarify CPF/CNPJ uses billing address country, not browser lang…
vitormattos Jul 15, 2026
0440f92
fix: remove (optional) from CPF/CNPJ label for Brazilian customers
vitormattos Jul 15, 2026
36bf52d
fix: read billing country from DocumentObject::get_customer_data()
vitormattos Jul 15, 2026
2a1dac6
fix: validate CPF/CNPJ natively via WooCommerce Blocks wp.data stores
vitormattos Jul 15, 2026
d18c0b9
feat: validate CPF and CNPJ with Módulo 11 algorithm
vitormattos Jul 15, 2026
206a7c2
fix: prevent infinite recursion in wp.data subscriber
vitormattos Jul 15, 2026
ecd4ff0
refactor: extract CPF/CNPJ validation into inc/cpf-cnpj.php
vitormattos Jul 15, 2026
909af3c
refactor: move field registration and required-for-BR filter to cpf-c…
vitormattos Jul 15, 2026
7168abf
refactor: delete billing.php, merge all CPF/CNPJ logic into cpf-cnpj.php
vitormattos Jul 15, 2026
9d5b7b6
fix: restore logo fallback for pages using the block header
vitormattos Jul 15, 2026
54adc13
fix: restore and improve logo fallback; simplify checkout header
vitormattos Jul 15, 2026
4e85298
refactor: move logo fallback into dedicated inc/logo.php
vitormattos Jul 15, 2026
8a4c726
feat: use prefers-color-scheme to serve correct logo variant
vitormattos Jul 15, 2026
3db0e69
revert: restore checkout-header.html to upstream state
vitormattos Jul 15, 2026
d0a419f
fix: correct logo variant mapping for dark/light backgrounds
vitormattos Jul 15, 2026
7460362
chore: remove remaining boilerplate page patterns and category
vitormattos Jul 15, 2026
5e615ae
chore: remove boilerplate button-outline block stylesheet
vitormattos Jul 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/compile-mo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Compile translation binaries

# Triggered when Weblate pushes updated .po files back to main.
# Compiles each .po file into a .mo binary that WordPress loads at runtime.
# The .mo files are NOT versioned (see .gitignore); they are committed here
# so the theme works immediately after install without a build step.

on:
push:
branches: [main]
paths:
- 'languages/**.po'

permissions:
contents: write

jobs:
compile-mo:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: wp-cli

- name: Compile all .po → .mo
run: |
for po in languages/*.po; do
wp i18n make-mo "$po" --allow-root
done

- name: Commit compiled .mo files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "i18n: compile .mo files [skip ci]"
file_pattern: "languages/*.mo"
47 changes: 47 additions & 0 deletions .github/workflows/update-pot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update translation template

on:
push:
branches: [main]
paths:
- '**.php'
- 'woocommerce/**/*.php'

permissions:
contents: write

jobs:
update-pot:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: wp-cli

- name: Generate .pot file
run: |
wp i18n make-pot . languages/libresign.pot \
--domain=libresign \
--exclude=vendor,node_modules \
--allow-root

- name: Commit updated .pot if changed
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "i18n: update translation template [skip ci]"
file_pattern: "languages/libresign.pot"

- name: Notify Weblate to pull latest changes
if: env.WEBLATE_API_TOKEN != ''
env:
WEBLATE_API_TOKEN: ${{ secrets.WEBLATE_API_TOKEN }}
run: |
curl -sf -X POST \
-H "Authorization: Token ${WEBLATE_API_TOKEN}" \
"https://hosted.weblate.org/api/components/libresign-coop-site/wordpress-theme/repository/" \
-d "operation=pull"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Compiled translation binaries — generated from .po files by the workflow
languages/*.mo
6 changes: 0 additions & 6 deletions assets/css/button-outline.css

This file was deleted.

Loading