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

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

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

Всего: 1347 Доступных коммитов | Отфильтровано: 1347 Коммиты | Страница: 82 из 135
13.04.2026
Refactor: flatten admin fragment namespace — remove new/ subdirectory
Автор: Eduard Laas | Дата: 11:49 13.04.2026

Drop the templates/admin/fragments/new/ subdirectory and promote all shared UI primitives to the flat fragments/ root. Delete obsolete module-specific fragment files that were replaced by the new generic API in earlier commits. Update alert, table, input, th, title-tip, pager-link, and label-hint fragments to the new BEM-style CSS class naming.

Core changes:

  1. CSS stylesheets (new.css, system.css, theme.css):
  • Rename legacy sl_* class names to BEM sl-* convention throughout
    • sl_table_form → sl-table-form, sl_but_blue → sl-but-blue, etc.
  • Add new layout utility and component classes for revised fragments
  1. Fragment promotion (templates/admin/fragments/):
  • Move all new/.html → fragments/.html (flat namespace)
    • button, checkbox, div, div-row, div-collapse, form, hidden
    • image-preview, inline-badge, label-item, module-head, module-foot
    • move-controls, pager, pager-dots, pager-link, radio, radio-group
    • row-actions, row-actions-item, select, select-option, submit
    • table-cell, table-cells, table-row-content, table-row, tabs
    • tabs-link, tabs-panel, textarea, th, title-tip, toggle-form-block
    • user-search, edit-tip, label-hint
  • Add new dashboard-panel, menu-grid, menu-grid-item, menu-grid-row menu-list-item, sidebar-block, edit-list-select fragments
  1. Fragment updates (existing files):
  • alert.html: add is_flash, alert_attr, lines[] support; BEM class names
  • table.html: add is_wrapless and disable_sort flags; BEM wrapper classes
  • input.html: replace generic input_class with is_config flag
  • th.html, title-tip.html, pager-link.html: minor markup updates
  1. Deleted legacy fragments (~200 files):
  • All admin-* module-specific fragments (replaced by generic API)
  • Micro-fragments: meta-refresh, head-link-css, pdo-query-time, span-btn script-inline, style-inline, navi, br-line, etc.
  • Partials: admin-config-base.html, admin-config-communication.html blocks/add.html, blocks/edit.html (rendered inline in PHP)
  1. Partials and index updates:
  • box.html, login.html, preview-content.html, registration.html, searchbox.html: align with new BEM class names and revised fragment API

Benefits:

  • Single flat fragment directory eliminates the ambiguous new/ indirection
  • BEM class naming is consistent across CSS and templates
  • Removal of 200+ obsolete fragment files reduces maintenance surface
  • New generic fragments (dashboard-panel, menu-grid) enable admin UI rebuild

Technical notes:

  • All new/ fragment paths are now invalid; PHP callers updated in parallel
  • CSS class renames are breaking for any custom themes using old sl_* names
  • No functional behavior changes — purely structural and naming refactor
12.04.2026
Refactor: admin modules — migrate to new fragment API, add CSRF tokens
Автор: Eduard Laas | Дата: 21:33 12.04.2026

Rewrote admin listing and action views in 10 modules to use the new fragment API (new/table-row, new/row-actions, new/title-tip, getTplAdminTabs instead of getTplAdminNavi). CSRF tokens added to all state-changing action URLs. Indentation and inline style issues fixed throughout.

Core changes:

  1. Fragment API migration (modules/money, news, order, pages, rss, search, shop, sitemap, voting, whois — admin/index.php):
  • getTplAdminNavi() replaced with getTplAdminTabs()
  • getTplAdminActionMenu() replaced with new/row-actions fragment
  • Table rows rebuilt with new/table-cell + new/title-tip fragments
  • Legacy getTplOption/getTplSelect replaced with new/select-option/select
  1. CSRF hardening:
  • getSiteToken() appended to all activate/delete/action URLs
  1. Style fixes:
  • Corrected indentation (spurious leading spaces in setHead() etc.)
  • Removed alignment padding in variable assignments

Benefits:

  • Consistent admin UI rendering across all modules
  • State-changing GET actions protected with CSRF tokens
  • Easier template maintenance via named fragment params

Technical notes:

  • new/row-actions expects 'items' array with href/label/title keys
  • new/title-tip expects 'items' array with label/value/is_last keys
  • Backward compatible: no DB or config schema changes
Refactor: admin modules — migrate preview(), drop explicit tab index from info()
Автор: Eduard Laas | Дата: 21:33 12.04.2026

Replaced legacy preview() calls with getTplPreviewContent() across all affected admin modules and removed hardcoded 'tab' index from setTplAdminInfoPage() calls so the info tab is resolved automatically.

Core changes:

  1. preview() migration (admin/modules/messages.php, newsletter.php, modules/clients, faq, files, help, jokes, links, media admin/index.php):
  • preview($title, $body, ...) replaced with getTplPreviewContent([...]) using named params
  1. setTplAdminInfoPage() cleanup (modules/clients, contact, faq, files, forum, help, jokes, links, media admin/index.php):
  • Removed explicit 'tab' => N argument; tab is now auto-computed

Benefits:

  • Consistent preview rendering API across all admin modules
  • Info tab no longer needs manual index maintenance

Technical notes:

  • getTplPreviewContent() accepts named array: title, texta, textb, field, mod
  • Behavior unchanged; visual output identical
Chore: config — remove content module from search, update fingerprint
Автор: Eduard Laas | Дата: 21:33 12.04.2026

Two targeted config updates applied after module refactoring: content module removed from the search index, base_fingerprint refreshed to match current admin module state.

Core changes:

  1. Search config (config/search.php):
  • Removed 'content' from the 'mods' list of searchable modules
  1. Local config (config/local.php):
  • Updated base_fingerprint to 95db25262294c2f867f3bb75581549e2e3b277eb

Benefits:

  • Search no longer indexes removed content module
  • Fingerprint reflects current admin build state

Technical notes:

  • base_fingerprint is auto-derived; manual update after module changes
  • Backward compatible
Chore: config — remove alignment padding, convert heredocs to strings
Автор: Eduard Laas | Дата: 21:32 12.04.2026

Reformatted all module config files to match project coding style: no alignment padding in array assignments, no heredoc syntax for multi-line string values. Behavior unchanged.

Core changes:

  1. Config array style (config/money.php, config/news.php, config/order.php, config/pages.php, config/rss.php, config/shop.php, config/sitemap.php, config/voting.php, config/whois.php):
  • Removed extra spaces used to align '=>' operators
  • Replaced heredoc (<<<HTML) with regular single-quote multi-line strings

Benefits:

  • Consistent style across all config files
  • Easier to diff and merge

Technical notes:

  • No config values were changed
  • Backward compatible
10.04.2026
Chore: config — update base_fingerprint after admin module refactor
Автор: Eduard Laas | Дата: 12:31 10.04.2026

Updates the base_fingerprint value in config/local.php to reflect the current state of the codebase following the batch refactor of admin modules to the new fragment API.

Core changes:

  1. Fingerprint update (config/local.php):
  • Updated base_fingerprint from 268a9d51... to 8cc21cf6...

Benefits:

  • Config fingerprint in sync with current codebase state

Technical notes:

  • Auto-generated value; no logic or behavior changes
Refactor: admin links, media — migrate to new fragment API, remove legacy fragments
Автор: Eduard Laas | Дата: 12:30 10.04.2026

Rewrites the links and media admin modules to use the unified new/* fragment API, replacing all legacy getTplAdminNavi, getTplAdminTableHead, and getTplAdminActionMenu calls with getTplAdminTabs, new/table, new/row-actions, new/table-row, new/table-cells, and new/form; removes four legacy HTML fragment files.

Core changes:

  1. Links list and add form (modules/links/admin/index.php):
  • Fixed setHead() leading-whitespace indentation
  • Replaced getTplAdminNavi with getTplAdminTabs in all three status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Add/edit form rebuilt as new/form rows array with new/input and new/textarea
  • Table + pager wrapped in getHtmlPart('box')
  1. Media list and add form (modules/media/admin/index.php):
  • Fixed setHead() leading-whitespace indentation
  • Replaced getTplAdminNavi with getTplAdminTabs in all three status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Add/edit and linked-files forms rebuilt as new/form rows array
  • Table + pager wrapped in getHtmlPart('box')
  1. Template cleanup (templates/admin/fragments/):
  • Removed: admin-links-add-rows.html, admin-links-list-row.html, admin-media-add-rows.html, admin-media-link-row.html

Benefits:

  • Links and media modules fully aligned with new admin fragment API
  • All legacy HTML fragment files for these modules eliminated

Technical notes:

  • No SQL, schema, or URL changes
Refactor: admin files, help — migrate to new fragment API, remove legacy fragments
Автор: Eduard Laas | Дата: 12:30 10.04.2026

Rewrites the files and help admin modules to use the unified new/* fragment API, replacing all legacy getTplAdminNavi, getTplAdminTableHead, and getTplAdminActionMenu calls with getTplAdminTabs, new/table, new/row-actions, new/table-row, new/table-cells, and new/form; removes four legacy HTML fragment files.

Core changes:

  1. Files list and add form (modules/files/admin/index.php):
  • Fixed setHead() leading-whitespace indentation
  • Replaced getTplAdminNavi with getTplAdminTabs in all three status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Add/edit form rebuilt as new/form rows array
  • Table + pager wrapped in getHtmlPart('box')
  1. Help list and add form (modules/help/admin/index.php):
  • Fixed setHead() leading-whitespace indentation
  • Replaced getTplAdminNavi with getTplAdminTabs in both status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Add and thread-view forms rebuilt as new/form rows array
  • Table + pager wrapped in getHtmlPart('box')
  1. Template cleanup (templates/admin/fragments/):
  • Removed: admin-files-add-rows.html, admin-help-add-rows.html, admin-help-addview-rows.html, admin-help-list-row.html

Benefits:

  • Files and help modules fully aligned with new admin fragment API
  • All legacy HTML fragment files for these modules eliminated

Technical notes:

  • No SQL, schema, or URL changes
Refactor: admin content, faq, forum, jokes — migrate to new fragment API
Автор: Eduard Laas | Дата: 12:30 10.04.2026

Rewrites four admin modules to use the unified new/* fragment API, replacing getTplAdminNavi, getTplAdminTableHead, getTplAdminActionMenu, and associated legacy helpers with getTplAdminTabs, new/table, new/row-actions, new/table-row, and new/table-cells; also fixes setHead() indentation regression in files that had accidental leading whitespace.

Core changes:

  1. Content list (modules/content/admin/index.php):
  • Replaced inline head array + getTplAdminNavi with getTplAdminTabs
  • Table rebuilt with new/table (is_wrapless) + new/row-actions
  • Pager and table wrapped in getHtmlPart('box')
  1. FAQ list (modules/faq/admin/index.php):
  • Replaced getTplAdminNavi with getTplAdminTabs in both status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Table + pager wrapped in getHtmlPart('box')
  1. Forum sync (modules/forum/admin/index.php):
  • Replaced getTplAdminNavi with getTplAdminTabs
  • 'alert' key updated to 'new/alert'
  • Table rebuilt with new/table + new/table-cells, new/table-row
  • Removed getTplAdminTitleTip / getTplAdminTextLink / getTplAdminColorLabel
  1. Jokes list (modules/jokes/admin/index.php):
  • Replaced getTplAdminNavi with getTplAdminTabs in both status branches
  • Row rendering migrated to new/table-row, new/table-cells, new/row-actions
  • Fixed setHead() leading-whitespace indentation

Benefits:

  • All four modules render tables and action menus via the new fragment API
  • No legacy getTplAdminNavi or getTplAdminTableHead calls remain in these files

Technical notes:

  • No SQL, schema, or URL changes; no template files deleted in this group
Refactor: admin clients, contact — migrate to new fragment API, remove legacy fragments
Автор: Eduard Laas | Дата: 12:30 10.04.2026

Rewrites the clients and contact admin modules to use the unified new/* fragment API, replacing all legacy getTplAdminNavi, getTplAdminTableHead, getTplAdminActionMenu, getTplAdminForm, and radio_form calls; removes three legacy HTML fragment files that are no longer referenced.

Core changes:

  1. Clients list (modules/clients/admin/index.php):
  • Replaced getTplAdminNavi with getTplAdminTabs
  • Rewrote row rendering: new/table-row, new/table-cells, new/row-actions
  • Add form rebuilt as new/form with rows array; new/input for all fields
  • getTplAdminForm replaced with new/form + getHtmlPart('box')
  1. Contact config (modules/contact/admin/index.php):
  • Replaced getTplAdminNavi with getTplAdminTabs
  • Config form rebuilt as new/form rows array: getTplRadioGroup for admins, new/textarea for info field
  • getTplAdminForm / getTplHiddenInput replaced with new/form hidden array
  1. Template cleanup (templates/admin/fragments/):
  • Removed: admin-clients-add-rows.html, admin-clients-list-row.html, admin-contact-config-rows.html

Benefits:

  • Both modules aligned with the unified admin fragment API
  • No dependency on legacy HTML fragment files for form or table rendering

Technical notes:

  • No SQL, schema, or URL changes
  • Prepared statements and getVar() usage unchanged
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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

Предварительный просмотр