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

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

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

Всего: 1045 Доступных коммитов | Отфильтровано: 1045 Коммиты | Страница: 40 / 105
21.04.2026
Refactor: admin/ — migrate callers to renamed fragments and CSS convention
Автор: Eduard Laas | Дата: 12:39 21.04.2026

Updated admin/index.php and all admin/modules/*.php handlers to use the new canonical fragment names, switch getHtmlFrag to getHtmlPart for promoted partials, and replace the legacy sl_hidden CSS class with sl-dimmed.

Core changes:

  1. admin/index.php:
  2. sl_hidden → sl-dimmed for inactive module items (3 occurrences)
  3. getHtmlFrag('sidebar-block', ...) → getHtmlPart(...)
  4. getHtmlFrag('dashboard-panel', ...) → getHtmlPart(...)
  5. getHtmlFrag('menu-grid', ...) → getHtmlPart(...)
  6. admin/modules/*.php (25 files — admins, blocks, categories, comments, config, database, editor, favorites, fields, groups, lang, messages, modules, monitor, newsletter, privat, ratings, referers, replace, scheduler, security, statistic, template, uploads):

  7. title-tip → info-tooltip in all label_html / tip contexts
  8. getHtmlFrag('div', ...) → getHtmlPart('div', ...) for radio-group wrappers
  9. getHtmlFrag('form', ...) → getHtmlPart('form', ...) remaining occurrences
  10. getHtmlFrag('sidebar-block', ...) → getHtmlPart(...)

Benefits:

  • admin/ layer fully aligned with renamed template atoms
  • sl-dimmed replaces sl_hidden; behavior is now opacity-based rather than display:none

Technical notes:

  • sl-dimmed style is defined in templates/admin/assets/css/new.css
Refactor: core — migrate callers to renamed fragments and fix CSS class names
Автор: Eduard Laas | Дата: 12:39 21.04.2026

Updated all call sites in the core layer to use the new canonical fragment names following the public template restructuring, and renamed legacy sl_ CSS class references to the sl- convention.

Core changes:

  1. core/classes/parser.php:
  2. CSS class on generated <img> tags: sl_img → sl-img (4 occurrences)
  3. core/helpers.php:
  4. getTplRadioGroup: post-div → content-block
  5. getTplTitleTip: title-tip → info-tooltip
  6. core/system.php:
  7. setCategories: post-div (subcategory wrapper) → content-block
  8. getNaviTabs: post-div (tab content panels) → content-block
  9. encode_php: code-hljs → code-highlight
  10. render_blocks: post-div (error placeholders) → content-block (2 occurrences)
  11. ashowcom: comment signature post-div → content-block; title-tip → info-tooltip
  12. core/user.php:
  13. getPrivateMessageView: post-div signature → content-block (already using is_signature)
  14. core/admin.php: no further changes beyond previous commit

Benefits:

  • All core callers use canonical fragment names
  • CSS class convention unified: sl_* removed from generated HTML

Technical notes:

  • sl_img → sl-img affects all parser-rendered image tags sitewide
Refactor: templates/public — rename fragments/partials and extend contracts
Автор: Eduard Laas | Дата: 12:38 21.04.2026

Renamed all fragments and partials that had ambiguous or legacy names to their canonical equivalents across all three public themes (default, lite, simple). Added new changelog and forum fragments, new account/list/fieldset partials, and updated the CSS convention from sl_ to sl- throughout layouts.

Core changes:

  1. Fragment renames (all three themes):
  2. post-div.html → content-block.html
  3. code-hljs.html → code-highlight.html
  4. title-tip.html → info-tooltip.html
  5. cat-navi.html → category-nav.html
  6. edit-tip.html: deleted, replaced by edit-actions.html
  7. shop-rech.html → shop-invoice.html
  8. forum-cat-wrap.html → forum-category-table.html
  9. forum-cat-basic.html → forum-category-row.html
  10. forum-view-wrap.html → forum-topic-view.html
  11. forum-view-basic.html → forum-post.html
  12. New fragments (all three themes):
  13. block-all.html, category-nav.html, changelog-commit.html, changelog-date-header.html, changelog-stats.html, code-highlight.html, content-block.html, edit-actions.html, forum-category-row.html, forum-category-table.html, forum-post.html, forum-topic-view.html, info-tooltip.html, shop-invoice.html

  14. lite-only: forum-teaser-item.html, lite-faq-random-link.html, lite-head-banner.html

  15. Partial renames (all three themes):
  16. account-view.html → account-profile.html
  17. liste.html → content-list.html
  18. fieldset-block.html → fieldset-panel.html
  19. line-list.html → compact-list.html
  20. New partials (all three themes):
  21. account-profile.html, changelog-body.html, compact-list.html, content-list.html, fieldset-panel.html, foot-controls.html

  22. Modified fragments — extended contracts:
  23. button.html: id, class, reload_query, reset_url, update_label support
  24. form-submit.html: button_type param required by callers
  25. editor-action-menu.html, inline-badge.html, textarea.html, voting-view.html, form-field-row.html

  26. Modified partials:
  27. view.html: editor menu rendered via fragment include
  28. changelog.html: extended nested field sub-objects
  29. editor-upload-panel.html, preview.html, voting-widget.html
  30. Layouts/CSS:
  31. app.html, home.html, index.html: sl_but/sl_but_blue → sl-but/sl-but-blue
  32. CSS: added new utility classes across all theme CSS files

Benefits:

  • Fragment and partial names are now consistently descriptive and canonical
  • All three themes in sync; no theme-specific divergence

Technical notes:

  • All PHP callers must use the new canonical fragment/partial names
  • form-submit callers must now pass button_type: 'submit'
Refactor: templates/admin — rename fragments and add changelog/CSS utilities
Автор: Eduard Laas | Дата: 12:38 21.04.2026

Renamed two ambiguous admin fragments to their canonical names, added new atomic fragments for changelog rendering and UI atoms, added the changelog-body partial, and extended the admin CSS with new utility classes and the sl-dimmed state class.

Core changes:

  1. Fragment renames (templates/admin/fragments/):
  2. code-hljs.html → code-highlight.html
  3. title-tip.html → info-tooltip.html
  4. edit-tip.html: deleted (functionality moved to edit-actions.html)
  5. New fragments (templates/admin/fragments/):
  6. bootstrap-icon.html — SVG icon atom using Bootstrap Icons
  7. changelog-commit.html — single commit card (subject, hash, author, stats)
  8. changelog-date-header.html — date group separator for changelog list
  9. changelog-stats.html — diff stats row (added/deleted/file count)
  10. content-block.html — generic content wrapper (replaces post-div)
  11. edit-actions.html — editor action dropdown menu atom
  12. label.html — form label atom (shared with public themes)
  13. info-tooltip.html — tooltip metadata display atom
  14. New partial (templates/admin/partials/):
  15. changelog-body.html — full changelog list with filter form
  16. Modified partials:
  17. changelog.html: extended contract for nested field sub-objects
  18. foot-controls.html, form.html, preview.html, basic-monitor.html: contract updates
  19. CSS (templates/admin/assets/css/new.css, theme.css):
  20. Added .sl-dimmed utility for inactive/disabled state
  21. Added layout utilities: .sl-table-block, .sl-inline-gap, .sl-inline-filter-form, .sl-associated-option, filter field width helpers, .sl-right/left/center, .sl-text-danger/success, .sl-muted and many more new utility classes

  22. Fixed @media rule indentation (moved braces to column 0)

Benefits:

  • Canonical fragment names remove ambiguity between hljs/code and tooltip/tip
  • Changelog now rendered via fragments in both admin and public contexts
  • New CSS utilities cover recurring layout needs without ad-hoc inline styles

Technical notes:

  • All admin callers must use info-tooltip and code-highlight as new names
  • edit-actions replaces the old edit-tip inline pattern
Chore: update base_fingerprint after template consolidation and engine refactor
Автор: Eduard Laas | Дата: 10:20 21.04.2026

Regenerated the base_fingerprint in config/local.php to reflect the current template file set following the consolidation of fragments into partials and the dot-path engine upgrade.

Core changes:

  1. Config (config/local.php):
  2. base_fingerprint: f005dfd5acda9f455681e75d1976bf6c15b89e63 → 9bac3d7739a31f67a5d1f459dec1ae23f316a997

Benefits:

  • Fingerprint matches actual project state; stale cache warnings suppressed

Technical notes:

  • Value is auto-generated from current file set hash
Test: update validation tests for new template structure and partial contracts
Автор: Eduard Laas | Дата: 10:20 21.04.2026

Aligned block naming validation with the runtime convention (snake_case.php), updated required frontend file list, relaxed the cross-theme fragment sync threshold, and adapted unit tests for admin login/registration and the view bridge smoke tests to match the new partial contracts and admin template context.

Core changes:

  1. BlockValidationTest (tests/BlockValidationTest.php):
  2. Block file naming rule changed: block-*.php → snake_case.php

    • Matches how the runtime loads the bfile value from blocks/
  3. fileBlocks extraction: block- prefix stripping removed
  4. TemplateValidationTest (tests/TemplateValidationTest.php):
  5. Required frontend files updated: fragments/basic.html removed; partials/liste.html, partials/view.html, pages/module.html, layouts/app.html added

  6. Shared fragment sync allowlist cleared (no hard-coded fragment names)
  7. Cross-theme common fragment threshold lowered: 100 → 60

    • Reflects reduced shared fragment count after consolidation
  8. AdminLoginBridgeFlowTest (tests/Unit/AdminLoginBridgeFlowTest.php):
  9. Login test: template switched 'default' → 'admin'; flat keys replaced by name_field/pwd_field/hidden/submit sub-object contract

  10. Registration test: template switched 'default' → 'admin'; flat keys replaced by field sub-objects (aname_field, aemail_field, apwd_field, etc.)

  11. ViewBridgeSmokeTest (tests/Unit/ViewBridgeSmokeTest.php):
  12. viewRendersLoginWithoutPartial → viewRendersLoginNavPartial

    • Tests login-nav partial with full nested field contract
  13. viewRendersLoginLoggedPartial → viewRendersMessageBlockPartial

    • Tests message-block partial (login-logged partial removed)

Benefits:

  • Tests reflect actual runtime conventions; no stale fragment name allowlists
  • Unit tests exercise the real admin template context

Technical notes:

  • No test infrastructure changes; only contract and assertion updates
Refactor: public modules — migrate callers to new partial contracts and fragment names
Автор: Eduard Laas | Дата: 10:19 21.04.2026

Updated all public module handlers to use restructured template API: navi-lower now expects nested sub-objects; related blocks use getHtmlPart() with extended nested image_link/title_link/date_badge contracts; removed fragment names that no longer exist and replaced them with surviving equivalents.

Core changes:

  1. navi-lower callers (modules/files, links, search, users, news, pages, media, faq, shop, sitemap, voting, money, main, account, forum):

  2. Flat keys back_title/back_label/home_href removed
  3. Replaced with nested sub-objects:

    • back_button: {button_type, title, label, is_back, is_navi_lower}
    • home_link: {href, title, label, is_navi_lower}
    • top_link: {href, title, label, is_navi_lower}
  4. Related section callers (modules/files, links, media, faq, news, pages, shop):
  5. getHtmlFrag('related', ...) → getHtmlPart('related', ...)
  6. related-item extended: added image_link, title_link, date_badge sub-objects

    • href extracted to $href variable to avoid repeated getSeoUrl() calls
  7. Forum module fragment renames (modules/forum/index.php):
  8. forum-list-wrap → forum-view-wrap
  9. forum-list-basic-wrap → forum-cat-wrap (with is_topic_list flag)
  10. forum-list-basic → forum-cat-basic (with is_topic_list flag)
  11. forum-cat-info → forum-list-info (with is_category_info flag)
  12. forum-all-open → title (with is_forum_heading flag)
  13. forum-view-change → getHtmlPart('fieldset-block', ...) / form-wrap
  14. Other promotions and renames:
  15. main-carousel: getHtmlFrag → getHtmlPart
  16. money-calc-scripts: getHtmlFrag → getHtmlPart
  17. main-grid fragment → post-div with is_main_grid flag
  18. main-section/main-content-item: extended with more_link/image_link/etc.
  19. account-privat-tab-title → span with is_htmx flag
  20. comment-signature → post-div with is_signature flag

Benefits:

  • navi-lower callers consistent with the composed fragment include contract
  • related-item sub-objects enable template-level link and badge rendering
  • Forum template rename disambiguates category list from topic list views

Technical notes:

  • Legacy flat keys removed from navi-lower callers; templates require nested form
  • date_badge sub-object uses ISO 8601 datetime for <time> element
Refactor: admin modules — migrate getHtmlFrag to getHtmlPart for promoted partials
Автор: Eduard Laas | Дата: 10:19 21.04.2026

Replaced all occurrences of getHtmlFrag('form', ...) and getHtmlFrag('div', ...) with getHtmlPart() across every admin module handler, following the promotion of those templates from templates/admin/fragments/ to templates/admin/partials/.

Core changes:

  1. Admin module handlers (modules/*/admin/index.php — 23 files):
  2. getHtmlFrag('form', [...]) → getHtmlPart('form', [...])

    • Covers all form wrappers used in list, add, edit, config, and search views
  3. getHtmlFrag('div', [...]) → getHtmlPart('div', [...])

    • Covers collapsible div containers (e.g. mail template block in account)
  4. Files: account, auto_links, changelog, clients, contact, content, faq, files, forum, help, jokes, links, media, money, news, order, pages, rss, search, shop, sitemap, voting, whois

Benefits:

  • Admin module callers consistent with promoted partial paths
  • getHtmlFrag() reserved for true inline atoms across the entire admin layer

Technical notes:

  • No logic changes; substitution is structural only
Refactor: core — migrate callers to promoted partials and new fragment contracts
Автор: Eduard Laas | Дата: 10:19 21.04.2026

Updated all callers in core/admin.php, core/helpers.php, core/system.php, and core/user.php to use getHtmlPart() for templates promoted from fragments/ to partials/, replaced removed fragment names with their surviving equivalents, and aligned login, navigation, and preview call sites to the new nested data contracts.

Core changes:

  1. core/admin.php:
  2. getHtmlFrag('sidebar-block', ...) → getHtmlPart(...)
  3. getHtmlFrag('form', ...) → getHtmlPart(...)
  4. core/helpers.php:
  5. getTplPreviewContent: partial name 'preview-content' → 'preview'
  6. getTplAdminTabs: 'module-head' → getHtmlPart(...)
  7. setTplAdminInfoPage, getRatingAsync: form/div → getHtmlPart(...)
  8. getModuleNavi: 'navi' → getHtmlPart(...); pre-computes link hrefs as named keys
  9. core/system.php:
  10. setHead (logged branch): login-logged fragment → list + link composition

    • avatar link, username, logout built via getHtmlFrag('list', ...)
  11. setHead (login form): submit_button contract updated; token variable renamed
  12. setHead (no-login branch): login-without fragment → list + link composition
  13. setCategories: 'categories' → getHtmlPart(...)
  14. adminblock: 'sidebar-block' → getHtmlPart(...)
  15. renderFootControls: 'foot-controls' → getHtmlPart(...)
  16. encode_php: 'div' → getHtmlPart(...)
  17. ashowcom: 'comment-signature' → post-div with is_signature flag
  18. core/user.php:
  19. getUserNav: account-nav/account-nav-item → post-div + link composition
  20. getPrivateMessageView: 'comment-signature' → post-div with is_signature

Benefits:

  • getHtmlFrag() reserved for true inline atoms; getHtmlPart() for block partials
  • Deleted fragment names no longer referenced in core

Technical notes:

  • Behavior unchanged; call-site alignment only
Refactor: templates/public — consolidate fragments into partials across all themes
Автор: Eduard Laas | Дата: 10:19 21.04.2026

Removed fragment files that represent independently renderable blocks and promoted them to partials, or merged their content into existing partials. Added label.html as a new shared inline atom for form labels. Templates that compose sub-fragments now use the new dot-path include syntax ({% include 'fragments/button.html' with back_button %}), which passes a nested data object directly without PHP preprocessing.

Core changes:

  1. Deleted fragments (templates/{default,lite,simple}/fragments/):
  2. account-nav.html, account-nav-item.html, account-privat-tab-title.html, code-block.html, comment-signature.html, forum-all-open.html, forum-cat-info.html, forum-list-basic-wrap.html, forum-list-basic.html, forum-list-wrap.html, forum-view-change.html, login-logged.html, login-without.html, main-grid.html, navi.html, pager-dots.html, rating-wrap.html, voting-home-wrap.html, voting-home.html

  3. Promoted fragments → partials (all three themes):
  4. categories.html, main-carousel.html, money-calc-scripts.html, related.html, voting-home.html

  5. New files (all three themes):
  6. fragments/label.html — inline label atom for form field rendering
  7. partials/navi.html — module navigation partial (previously a fragment)
  8. Deleted partials (all three themes):
  9. login-logged.html, login.html, registration.html, preview-content.html
  10. Modified partials — aligned to nested data contracts:
  11. navi-lower.html: {% include '...' with back_button/home_link/top_link %}
  12. account-view.html: back button via {% include 'fragments/span.html' %}
  13. preview.html, fieldset-block.html, view.html: extended contracts
  14. Modified fragments — extended for new sub-object and dot-path contracts:
  15. button.html, link.html, span.html, date-badge.html, related-item.html, main-content-item.html, main-section.html, post-div.html, title.html, forum-cat-basic.html, forum-cat-wrap.html, forum-view-wrap.html, forum-list-info.html, card.html, edit-tip.html, field-value.html, form-field-row.html, list.html, session-row.html, table.html

  16. templates/lite/index.php:
  17. submit_button: removed button_class in favour of is_login_submit flag

Benefits:

  • fragments/partials boundary enforced consistently across all three themes
  • Dot-path includes eliminate per-partial PHP translation layers
  • Deleted files reduce dead HTML no longer referenced by any caller

Technical notes:

  • All three themes kept in sync; no theme-specific divergence introduced
  • templates/lite/images/ placeholder index.html files added for VCS tracking

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

1 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 105
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

Поделиться
QR-код