Чтение RSS каналов

Журнал изменений

Фильтр и поиск

Всего: 500 Доступных коммитов | Отфильтровано: 500 Коммиты | Страница: 1 / 50
Сегодня (20.04.2026)
Refactor: templates — remove obsolete fragments replaced by consolidated contracts
Автор: Eduard Laas | Дата: 01:03 20.04.2026

Delete frontend fragments whose callers have been migrated in the preceding runtime-migration commit. Every deletion is covered by a generic replacement contract; no productive code path references these files any more.

Core changes:

  1. Account form fragments (10 files × 3 themes):
  2. Replaced by partials/form-add with flexible attributes
  3. activate, edit, login, newuser, passlost, password, privat-message, rss-select, rss-url, comment
  4. Account view helpers (14 files × 3 themes):
  5. account-avatar-current, account-avatar-grid-cell, account-avatar-grid, account-avatar-upload
  6. account-favorite-add, account-favorite-on, account-favorite-off, account-favorites-list
  7. account-last-row, account-last-wrap
  8. account-message-admin-note, account-pm-icon-link
  9. account-avatar-grid-row-open, account-avatar-grid-row-close (merged via open flag)
  10. Shop summary fragments (4 files × 3 themes):
  11. shop-cart-item-row, shop-cart-table (replaced by generic table)
  12. shop-partners-form, shop-partners-summary
  13. Clients list info (clients-list-info, 3 files):
  14. Replaced by post-div atom
  15. Link variant (comment-action-link, 3 files):
  16. Replaced by the generic link fragment with is_blank flag

Benefits: - Net template count reduced by 90 productive files - Single source of truth per view role (forms, tables, links, avatars) - No orphaned references remain

Technical notes: - All deletions verified via grep before commit - Three themes (default, simple, lite) carry identical deletions

Refactor: core + modules — migrate callers to consolidated fragments
Автор: Eduard Laas | Дата: 01:02 20.04.2026

Migrate PHP callers to the new unified contracts introduced in the preceding template commits. Removes every raw <a> HTML string from core/user.php, drops hclass attribute assembly in core/system.php, switches comment-action-link callsites to the generic link atom, and rewrites the shop cart summary onto the generic table/table-row.

Core changes:

  1. Account module (modules/account/index.php):
  2. Migrate the avatar-grid row loop onto account-avatar-grid-row with open flag (no per-row tr/close fragments)
  3. Drop per-cell width math; grid sizing is now CSS-driven
  4. Migrate account forms to the shared form-add partial with new flags
  5. User helpers (core/user.php):
  6. Replace five add_menu raw-HTML calls with comment-action-ajax and link fragment arrays joined by pipe separators
  7. Favorites toggle inlined via span fragment
  8. No raw HTML remains in user.php for action menus
  9. System helpers (core/system.php):
  10. Drop hclass variable in ashowcom; pass is_closed/closed_title
  11. Replace comment-action-link with link (including is_blank flag)
  12. Rewrite getCartSummary onto generic table/table-row/link/ajax fragments (no shop-cart-* fragments)
  13. Rename checkbox-input callers to checkbox
  14. Search, voting, admin config (modules/search/index.php, modules/voting/index.php, admin/modules/config.php):
  15. Switch comment-action-link to link
  16. Forum module (modules/forum/index.php):
  17. Open and close mod-form via forum-mod-form with open flag
  18. Pass is_closed/closed_title to forum-view-basic (no hclass)
  19. Shop module (modules/shop/index.php):
  20. Align cart callers with the new table-based summary
  21. Clients module (modules/clients/index.php):
  22. Switch clients-list-info to the generic post-div atom
  23. Help and order modules (modules/help/index.php, modules/help/admin/index.php, modules/order/index.php):
  24. Adjust getTplFieldsIn call sites to the named-array signature
  25. Parser (core/classes/parser.php):
  26. Rename checkbox-input call to checkbox

Benefits: - Removes the last inline <a> HTML from frontend PHP - Single link contract powers every non-htmx action link - Shop cart uses the generic table atom; no bespoke fragments left - Account views are contract-driven, not per-form duplicates

Technical notes: - Link fragment adds rel=noopener noreferrer to former target=_blank callers (security hardening, not behavior change) - Legacy add_menu(string) signature preserved for existing clients/forum callers; arrays joined with pipe separators at callsites

Refactor: templates — consolidate comment/forum/account view shells
Автор: Eduard Laas | Дата: 01:02 20.04.2026

Drop the hclass attribute-string hack in favor of explicit is_closed/closed_title booleans, replace inline-style avatars with proper <img class="sl_avatar">, and rename forum-mod-form-open to forum-mod-form with an open flag (matching the table/cat-wrap pattern).

Core changes:

  1. Comment post shell (comment.html):
  2. Replace hclass passthrough with conditional is_closed attributes
  3. Default avatar branch now uses <img> (not <a style background-image>)
  4. Avatar fragment (comment-avatar.html):
  5. Switch from <a class sl_avatar style background-image> to <img>
  6. Forum list mod-form (forum-mod-form.html, renamed):
  7. Collapse forum-mod-form-open into single fragment with open flag
  8. Emit <form> on open and </form> otherwise
  9. Forum post shell (forum-view-basic.html):
  10. Replace hclass with is_closed/closed_title
  11. Switch avatar to <img>
  12. Private message shell (privat-message.html):
  13. Switch avatar to <img>
  14. Account profile view (account-view.html):
  15. Switch avatar to <img>

Benefits: - Removes every hclass attribute-string hack from the codebase - Eliminates inline style= for dynamic avatar URLs - Fewer fragment files (forum-mod-form-open gone via rename)

Technical notes: - Callers updated in the runtime-migration commit that follows - All three themes (default, simple, lite) kept in sync

Refactor: templates/partials/form-add — flexible form attributes
Автор: Eduard Laas | Дата: 01:01 20.04.2026

Extend the shared form-add partial so callers can override action, method, form name/id, enctype, and append content after submit. Needed to migrate account forms (POST, GET activate, htmx hx-post variants) onto a single reusable contract.

Core changes:

  1. partials/form-add.html (default/simple/lite):
  2. Optional action with no_action bypass
  3. Optional method (default post), form_name (default post), form_id
  4. Optional enctype with no_enctype bypass; default multipart
  5. Optional form_attr raw-attribute passthrough
  6. Optional token (render only when present)
  7. Optional after_submit content hook

Benefits: - Single partial covers 7+ formerly separate account-*-form fragments - GET, POST and htmx-post flows share the same layout - Preserves defaults: existing callers continue to work unchanged

Technical notes: - All three themes carry identical markup - No PHP changes in this commit; runtime migration in later commits

Style: templates/css — sl-* rules for table-amount and avatar-grid
Автор: Eduard Laas | Дата: 01:01 20.04.2026

Add CSS rules that back the inline-style removals in account and avatar grid fragments. Styles live exclusively in new.css per the project rule; no inline styles are reintroduced anywhere.

Core changes:

  1. new.css (default/simple/lite):
  2. .sl_table_amount td:first-child widths the date column
  3. .sl-avatar-grid + .sl-avatar-grid td provide fixed 6-column distribution without per-cell inline style

Benefits: - Removes style="width: X%" from HTML fragments - Consistent avatar grid rendering across themes

Technical notes: - Rules are additive; no existing selectors changed

Feature: templates/fragments — introduce checkbox, submit, image, field-value atoms
Автор: Eduard Laas | Дата: 01:01 20.04.2026

Add four reusable atomic primitives that replace inline markup in forms and lists. These are the building blocks for the upcoming form-add consolidation and the account-* migration.

Core changes:

  1. checkbox.html:
  2. Unified checkbox input with optional label wrapper
  3. Supports is_checked, is_required, is_disabled, input_id, input_attr
  4. submit.html:
  5. Single submit-button contract with default sl-but-blue class
  6. Supports title, input_id, input_attr passthrough
  7. image.html:
  8. Generic <img> fragment with class and arbitrary attribute passthrough
  9. field-value.html:
  10. Form-row contract for read-only display (label + rendered value)

Benefits: - Eliminates copy-pasted <input type="submit"> and <img> markup - Enables form-add partial and account forms to share primitives

Technical notes: - All three themes (default, simple, lite) carry identical markup - No callers wired in this commit; migration follows in later commits

Refactor: templates/fragments — extend atomic contracts with new flags
Автор: Eduard Laas | Дата: 01:01 20.04.2026

Generalize reusable atomic fragments so callers can cover more form and rendering scenarios through parameters rather than per-module copies. This is a backward-compatible extension that prepares the ground for consolidating account, forum and comment view paths.

Core changes:

  1. Input and textarea (input.html, textarea.html):
  2. Add is_checked, is_readonly, is_disabled booleans
  3. Support autocomplete_attr passthrough
  4. Default itype to text; make name_attr optional for textarea
  5. Switch textarea value to triple-brace for embedded HTML
  6. Anchor link (link.html):
  7. Add rel_attr passthrough, mutually exclusive with is_blank
  8. Table primitives (table.html, table-row.html):
  9. Expand header class/is_num handling and cell class overrides
  10. Support link_class and colspan on cells
  11. Ajax action link (comment-action-ajax.html):
  12. Minor refinements aligned with caller needs
  13. Post content wrapper (post-div.html):
  14. Normalize id/class/content contract

Benefits: - Fewer per-module variants needed for forms and tables - Consistent attribute surface across themes (default/simple/lite) - Backward-compatible: existing callers work unchanged

Technical notes: - No PHP changes in this commit - All three theme copies (default, simple, lite) kept in sync

Эта неделя (17.04.2026)
Style: templates/css — extend sl-* rules for consolidated fragments
Автор: Eduard Laas | Дата: 11:52 17.04.2026

Add CSS rules for all new sl-* class names introduced by the fragment consolidation. All new rules follow the sl-* (dash) naming convention. Applied identically to all three themes (default, lite, simple).

Core changes:

  1. Navigation (new.css):
  2. sl-navi-lower, sl-navi-lower-action: bottom-of-page action bar
  3. Utility classes (new.css):
  4. sl-highlight: search term highlight (red text, yellow bg)
  5. sl-geo-flag: geo-IP flag image alignment
  6. sl-calculator-field: narrow number input for calculator form
  7. Table enhancements (new.css):
  8. sl-table-num-link: pill-style anchor for numeric ID cells
  9. sl-table-date: inherit color for date cells
  10. Related items (new.css):
  11. sl-related-img-inner: object-fit cover for related item thumbnail
  12. sl-related-date: inherit color for related item date
  13. Card grid (new.css):
  14. sl-card-col-1 through sl-card-col-6: responsive column widths
  15. sl-grid: flex layout baseline corrections
  16. sl-card-aside: floating sidebar list within card
  17. sl-card-comment/reads/post/date/category/id/image/read/admin/menu: named element selectors
  18. Sprite-based icon rules for card meta elements
  19. Shop cart (new.css):
  20. sl-cart-table, sl-cart-head, sl-cart-row, sl-cart-foot
  21. sl-cart-col-num, sl-cart-col-content, sl-cart-col-stat
  22. sl-cart-id, sl-cart-plus, sl-cart-minus, sl-cart-checkout, sl-cart-total

Benefits: - All sl-* class names now have corresponding CSS rules - Zero unnamed or orphaned classes remaining in consolidated fragments

Technical notes: - Legacy sl_* classes in new.css are intentionally preserved for existing HTML - Sprite coordinates for card meta icons match existing sprite.png layout

Refactor: templates/partials — add navi-lower and calculator-form partials
Автор: Eduard Laas | Дата: 11:51 17.04.2026

Add two new page-section partials used via getHtmlPart() across all three themes (default, lite, simple). Partials differ from fragments in that they represent larger self-contained UI sections, not inline elements.

Core changes:

  1. navi-lower.html (templates/*/partials/):
  2. Navigation bar with back/home/top actions
  3. Replaces the former navi-lower fragment (getHtmlFrag → getHtmlPart)
  4. Uses sl-navi-lower / sl-navi-lower-action CSS classes
  5. calculator-form.html (templates/*/partials/):
  6. Currency calculator form with from/to fields and convert button
  7. Uses sl-calculator-form / sl-calculator-field CSS classes
  8. Callback function name passed via fn_name variable

Benefits: - Partials directory clearly separates section-level HTML from inline fragments - Self-contained layout sections no longer pollute the fragments namespace

Technical notes: - getHtmlPart() loads from templates/*/partials/ directory - Both partials are theme-duplicated (default/lite/simple share identical content)

Refactor: templates/fragments — remove obsolete; enhance consolidated; add new
Автор: Eduard Laas | Дата: 11:51 17.04.2026

Remove ~50 per-purpose fragment files replaced by consolidated generic fragments. Update remaining fragments with boolean-flag variant support. Add two new fragments (break, meta-value). Apply changes consistently across all three themes (default, lite, simple) and admin template.

Core changes:

  1. Removed fragments (per-purpose → consolidated):
  2. account-favorites-row/table, account-pm-list-row/table (→ table-row/table)
  3. account-mail-link, account-user-button, action-link, comment-num-link (→ link)
  4. comment-meta-color, comment-text, navi-tab-content, forum-post-div (→ post-div/meta-value)
  5. hit-badge, reads-badge (→ inline-badge), back-button, category-image (→ span/link)
  6. form-option, form-select, radio-option (→ select-option/select)
  7. grid-table/row/cell, clients-list-, users-top/stats/rules- (→ table/table-row)
  8. shop-order/partner/client rows/tables, shop-basic (→ table/table-row/card)
  9. assoc-item/wrap, auto-links-code-table, media-link-item (→ table/link)
  10. forum-delete-link, forum-group-span, forum-post-anchor, forum-rank-img (→ link/span)
  11. forum-sig, forum-status-icon (→ comment-signature/inline-badge)
  12. files-external-link, table-row-content (→ link/table-row)
  13. Updated consolidated fragments (card, inline-badge, input, link, related-item, select, span, table-row, table, shop-cart-*):
  14. Boolean flags replace hardcoded CSS class names (sl_ → sl- naming)
  15. card.html: columns grid support, aside_items, footer_items, title_html override
  16. inline-badge.html: is_hits, is_download, is_forum_closed, is_forum_last, is_topic_admin flags
  17. input.html: is_user_search, input_id, list_id, tip_html support
  18. link.html: is_shop_checkout, is_comment, is_read, is_card_image, is_media_*, is_account_button, is_num_anchor, is_button_blue flags
  19. select.html: is_multiple, is_name_array flags
  20. span.html: is_shop_price, is_card_reads, is_back, is_highlight, is_geo_flag flags; img_src support
  21. table-row.html: cells array iteration replaces per-column flat keys
  22. table.html: headers array replaces col_* flat keys (backward-compatible)
  23. New fragments:
  24. break.html: standalone <br> separator
  25. meta-value.html: label/value span pair (replaces comment-meta-color)
  26. Admin template:
  27. input.html: aligned with frontend (tip_html, input_id, is_user_search, list_id)

Benefits: - Fragment count reduced from ~80 to ~30 per theme - All CSS class variants controlled by flags, no per-purpose HTML files - Consistent naming: sl- (dash) for new rules, sl_ preserved for legacy

Technical notes: - Backward-compatible: old flat keys (col_id etc.) still work in table.html - sl_* legacy class references preserved in fragment HTML where used by existing CSS

Всего: 500 на 50 страницах по 10 на каждой странице

Хотите опробовать SLAED CMS в действии?

Технологии

PHPMySQLHTML 5CSS 3jQueryjQuery UI

Контакты

  • D-49179, Deutschland
    Ostercappeln, Im Siek 6
  • +49 176 61966679

  • https://slaed.net
Идеи и предложения
Обратная связь