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:
- new.css (default/simple/lite):
- .sl_table_amount td:first-child widths the date column
- .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
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:
- checkbox.html:
- Unified checkbox input with optional label wrapper
- Supports is_checked, is_required, is_disabled, input_id, input_attr
- submit.html:
- Single submit-button contract with default sl-but-blue class
- Supports title, input_id, input_attr passthrough
- image.html:
- Generic <img> fragment with class and arbitrary attribute passthrough
- field-value.html:
- 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
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:
- Input and textarea (input.html, textarea.html):
- Add is_checked, is_readonly, is_disabled booleans
- Support autocomplete_attr passthrough
- Default itype to text; make name_attr optional for textarea
- Switch textarea value to triple-brace for embedded HTML
- Anchor link (link.html):
- Add rel_attr passthrough, mutually exclusive with is_blank
- Table primitives (table.html, table-row.html):
- Expand header class/is_num handling and cell class overrides
- Support link_class and colspan on cells
- Ajax action link (comment-action-ajax.html):
- Minor refinements aligned with caller needs
- Post content wrapper (post-div.html):
- 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
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:
- Navigation (new.css):
- sl-navi-lower, sl-navi-lower-action: bottom-of-page action bar
- Utility classes (new.css):
- sl-highlight: search term highlight (red text, yellow bg)
- sl-geo-flag: geo-IP flag image alignment
- sl-calculator-field: narrow number input for calculator form
- Table enhancements (new.css):
- sl-table-num-link: pill-style anchor for numeric ID cells
- sl-table-date: inherit color for date cells
- Related items (new.css):
- sl-related-img-inner: object-fit cover for related item thumbnail
- sl-related-date: inherit color for related item date
- Card grid (new.css):
- sl-card-col-1 through sl-card-col-6: responsive column widths
- sl-grid: flex layout baseline corrections
- sl-card-aside: floating sidebar list within card
- sl-card-comment/reads/post/date/category/id/image/read/admin/menu: named element selectors
- Sprite-based icon rules for card meta elements
- Shop cart (new.css):
- sl-cart-table, sl-cart-head, sl-cart-row, sl-cart-foot
- sl-cart-col-num, sl-cart-col-content, sl-cart-col-stat
- 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
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:
- navi-lower.html (templates/*/partials/):
- Navigation bar with back/home/top actions
- Replaces the former navi-lower fragment (getHtmlFrag → getHtmlPart)
- Uses sl-navi-lower / sl-navi-lower-action CSS classes
- calculator-form.html (templates/*/partials/):
- Currency calculator form with from/to fields and convert button
- Uses sl-calculator-form / sl-calculator-field CSS classes
- 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)
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:
- Removed fragments (per-purpose → consolidated):
- account-favorites-row/table, account-pm-list-row/table (→ table-row/table)
- account-mail-link, account-user-button, action-link, comment-num-link (→ link)
- comment-meta-color, comment-text, navi-tab-content, forum-post-div (→ post-div/meta-value)
- hit-badge, reads-badge (→ inline-badge), back-button, category-image (→ span/link)
- form-option, form-select, radio-option (→ select-option/select)
- grid-table/row/cell, clients-list-, users-top/stats/rules- (→ table/table-row)
- shop-order/partner/client rows/tables, shop-basic (→ table/table-row/card)
- assoc-item/wrap, auto-links-code-table, media-link-item (→ table/link)
- forum-delete-link, forum-group-span, forum-post-anchor, forum-rank-img (→ link/span)
- forum-sig, forum-status-icon (→ comment-signature/inline-badge)
- files-external-link, table-row-content (→ link/table-row)
- Updated consolidated fragments (card, inline-badge, input, link, related-item, select, span, table-row, table, shop-cart-*):
- Boolean flags replace hardcoded CSS class names (sl_ → sl- naming)
- card.html: columns grid support, aside_items, footer_items, title_html override
- inline-badge.html: is_hits, is_download, is_forum_closed, is_forum_last, is_topic_admin flags
- input.html: is_user_search, input_id, list_id, tip_html support
- link.html: is_shop_checkout, is_comment, is_read, is_card_image, is_media_*, is_account_button, is_num_anchor, is_button_blue flags
- select.html: is_multiple, is_name_array flags
- span.html: is_shop_price, is_card_reads, is_back, is_highlight, is_geo_flag flags; img_src support
- table-row.html: cells array iteration replaces per-column flat keys
- table.html: headers array replaces col_* flat keys (backward-compatible)
- New fragments:
- break.html: standalone <br> separator
- meta-value.html: label/value span pair (replaces comment-meta-color)
- Admin template:
- 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
Replace per-purpose fragment names with generic consolidated fragments across all 21 modules, consistent with the new flat fragment API introduced in the core layer.
Core changes:
- hit-badge → inline-badge (modules/auto_links, files, links, media, news, recommend, rss, search, shop, users, whois):
- Added is_hits, is_download flags for CSS class variants
- Renamed title → title_text, text → label
- form-option → select-option (modules/account, contact, faq, files, help, jokes, links, money, news, pages, rss, search, shop, users):
- Renamed value → value_attr, label → label_text, selected → is_selected (bool)
- action-link → link (modules/clients, content, files, forum, links, media, money, pages, search, shop, users):
- Added is_button_blue, is_comment, is_read flags for CSS class variants
- Misc fragment renames per module:
- clients-list-basic/open → table open/close with cells array
- users-stats/top/rules basic/open → table open/close with cells array
- shop-order/partner/client rows/tables → table open/close with cells array
- navi-lower fragment → navi-lower partial (getHtmlPart)
- auto-links-code-table → code-table
- reads-badge → inline-badge with is_download flag
- media-link-item → link with is_media_ed2k/is_media_http flags
- back-button → span with is_back flag
- category-image → link with is_card_image flag
Benefits: - Completes fragment consolidation across all PHP layers - Single source of truth per HTML pattern (link, span, table, etc.) - Boolean flags replace per-purpose fragment files
Technical notes: - No behavior change; output HTML is functionally identical - navi-lower moved from getHtmlFrag to getHtmlPart (partials directory)
Replace per-purpose fragment names with generic consolidated fragments (select, input, link, span, table-row, table, post-div, meta-value) to match the new flat fragment API where each fragment handles multiple variants via boolean flags.
Core changes:
- Fragment renames (core/helpers.php):
- refresh-select-time → select (name_attr, options_html)
- multi-select → select (added is_multiple, is_name_array flags)
- user-search → input (added is_user_search, endpoint_attr flags)
- Fragment renames (core/system.php):
- span with class → span (is_highlight, is_geo_flag flags)
- navi-tab-content → post-div
- geo-ip-flag → span (is_geo_flag flag)
- comment-num-link → link (is_num_anchor flag)
- comment-meta-color → meta-value
- comment-text → post-div
- shop-cart-table open/close pattern consolidated into single call
- Fragment renames (core/user.php):
- account-mail-link → link (label_html, is_blank flags)
- account-user-button → link (is_account_button, is_blank flags)
- account-pm-list-row → table-row (cells array)
- account-pm-list-table → table open/close pattern
- account-favorites-row → table-row (cells array)
- account-favorites-table → table open/close pattern
- comment-meta-color → meta-value
- form-option → select-option (value_attr, label_text, is_selected)
Benefits: - Reduces fragment count from ~80 to ~30 consolidated fragments - All rendering variants controlled by boolean flags in PHP - Consistent API across all call sites
Technical notes: - No behavior change; output HTML is functionally identical - table open/close pattern: getHtmlFrag('table', ['open'=>true,...]) ... getHtmlFrag('table', [])
Реструктуризация шаблонов: крупные фрагменты (form-add, view, liste) вынесены из fragments/ в partials/. Добавлены новые фрагменты для head-ссылок, скриптов, сессий и превью изображений.
Core changes:
- Удалены fragments (default, lite, simple):
- form-add.html, media-form-add.html → partials/form-add.html
- view.html → partials/view.html
- table-row-liste.html → inline в table-row.html (единый фрагмент)
- whois-add-form.html, whois-status.html → инлайн в модуле
- account-privat-tab-pane.html → заменён post-div фрагментом
- Новые fragments (default, lite, simple):
- head-link.html, head-script-src.html, head-script-inline.html
- image-preview.html, session-row.html, session-summary.html
- action-delete.html, action-menu-item.html
- editor-action-insert.html, editor-action-menu.html
- forum-reply-form.html, forum-topic-icon.html
- Новые fragments (admin):
- img-preview.html, editor-action-insert.html, span-raw.html
- Обновлённые fragments:
- table-row.html: объединяет старый table-row-liste в единый условный шаблон
- alert.html: поддержка messages-массива вместо text-строки
- media-link-row.html: переход с table-разметки на div.sl-form-row
- textarea.html: добавлен placeholder_text
- partials/preview-content.html: title_html → title_text (безопасный вывод)
- category-row.html: обновлены переменные разметки
- CSS (new.css, все темы):
- Добавлены стили для session-table, image-preview-toggle, image-preview-mini
Benefits: - Чёткое разграничение: fragments — атомарные UI-элементы, partials — страничные блоки - Новые фрагменты устраняют inline-HTML в PHP-коде - preview-content.html не допускает XSS через title ({{ вместо {{{)
Technical notes: - Новые partials/view.html, form-add.html, liste.html добавлены во все темы - table-row.html обратно совместим через условие cells_html
Компоненты вне core/ и modules/ переведены с устаревших хелперов на прямые вызовы $tpl->getHtmlFrag(). Устранены зависимости от удалённых функций getTplImageSelect, getTplCategoryPreview, getMailLink и др.
Core changes:
- admin/modules/categories.php:
- Локальная функция getAdminCategoryImageSelect() заменяет getTplImageSelect()
- getTplCategoryPreview() → getHtmlFrag('img-preview', ...)
- admin/modules/admins.php:
- getMailLink() → getHtmlFrag('link', ['href' => 'mailto:...'])
- alert messages передаётся как массив через 'messages'
- admin/modules/config.php, monitor.php, referers.php:
- getTplExternalAction() → getHtmlFrag('comment-action-link', ...)
- getTplSpan() → getHtmlFrag('span-raw', ...)
- setPageNumbers() → getPageNumbers()
- blocks/block-login.php, block-user_info.php:
- getTplTextInput / getTplHiddenInput → прямые getHtmlFrag-вызовы
- plugins/editors/*:
- getHtmlScriptSrc / getHtmlCssLink → head-script-src / head-link фрагменты
- config/local.php:
- Обновлён base_fingerprint
Benefits: - Все PHP-компоненты проекта унифицированы на одном механизме рендера - Удалены последние явные зависимости от helpers-old.php
Technical notes: - getAdminCategoryImageSelect() определена локально в categories.php - fingerprint обновлён после реструктуризации шаблонов





