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

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

Всего: 899 Доступных коммитов | Отфильтровано: 899 Коммиты | Страница: 28 / 90
20.04.2026
Style: templates/css — add sl-fieldset, sl-text, sl-rate, sl-letter rules across all themes
Автор: Eduard Laas | Дата: 14:28 20.04.2026

Add new sl-* CSS rules required by the consolidated partial and updated fragment templates introduced in this refactor wave. Applied uniformly to default, lite, and simple themes.

Core changes:

  1. Fieldset and text utility classes (*/assets/css/new.css):
  2. sl-fieldset-form-legend-success, sl-fieldset-form-legend-danger: fieldset legend states
  3. sl-fieldset-center: centered fieldset content
  4. sl-fieldset-legend-info: info-state legend color
  5. sl-text-success, sl-text-danger: inline text state colors
  6. sl-text-bold: font-weight shorthand
  7. sl-text-justify: text-align helper
  8. Alpha navigation letter badge:
  9. sl-letter: styled inline letter box for alpha-nav links (replaces old inline style)
  10. Rating system CSS (sl-rate-*):
  11. sl-rate, sl-urating, sl-crating: star rating bar layout and positioning
  12. min-rate variants: compact 16px rating bar for content lists
  13. sl-rate-like, sl-rate-plus, sl-rate-minus: like/dislike button sprites
  14. sl-rate-num, sl-rate-is: score bubble with directional arrow and active state
  15. data-sl-rating-width attribute selectors (0–100): replace inline style width for CSP compliance and data-attribute-driven rendering

Benefits:

  • All visual state decisions moved from PHP into CSS and data-attributes
  • data-sl-rating-width eliminates inline style="width:X%" on rating bars
  • New utility classes cover fieldset/form feedback states without custom CSS

Technical notes:

  • sl-rate-* rules migrated from legacy inline CSS; no functional change
  • data-sl-rating-width selectors cover 0–100 integer percent values
  • Applied identically to default, lite, and simple themes
Refactor: templates — remove obsolete fragments replaced by consolidated contracts
Автор: Eduard Laas | Дата: 14:27 20.04.2026

Delete all fragment templates that are no longer referenced by PHP callers after the migration to boolean-flag fragments, unified partials, and merged rating/list/action contracts. Applied uniformly to default, lite, and simple themes.

Core changes:

  1. Fragments replaced by boolean flags in existing fragments:
  2. category-link → link with is_category; category-select → select
  3. action-delete → link with is_delete; action-menu-item → list-item
  4. comment-date → inline-badge with is_comment_date
  5. comment-avatar → image with is_avatar; comment-rank-image → image
  6. meta-value → span with label; bold-text → span with is_bold
  7. br-line, break → removed (handled inline or replaced by list/line-stack-item)
  8. view-field → field-value fragment; heading-2 → title fragment
  9. alpha-nav-link, alpha-nav-text → removed (caller handles inline)
  10. navi-tab-link → link + list-item combination
  11. Fragments replaced by consolidated partials:
  12. account-view → partials/account-view; login → partials/login-nav
  13. contact-form, contact-email-body → partials/contact-form + message-block
  14. ajax-textarea-form → partials/form-wrap
  15. forum-reply-form, forum-mod-form, forum-mod-check, forum-mod-checkall → partials/forum-reply-form
  16. forum-htmx-edit-link, forum-status-img, forum-status-img-link, forum-topic-icon → partials
  17. files-download-form → partials/files-download-form
  18. recommend-form, recommend-mail-message → partials/recommend-form + message-block
  19. rss-info-form, rss-read-forms → respective partials
  20. session-summary → partials/session-summary
  21. shop-kasse-form, shop-voting-box → partials/shop-kasse-form
  22. voting-widget → partials/voting-widget
  23. whois-domain-form, whois-info-button, whois-license-add-button, whois-license-form, whois-output-open/line/close, whois-result → partials/whois-output

  24. money-email-confirm, money-email-order, order-email-admin → partials + message-block
  25. comment-list-form → partials/mini-post-form; privat-message → forum-view-basic
  26. main-slider → partials/main-slider
  27. Rating duplicates removed:
  28. rating-bar-live, rating-like-live → merged into rating-bar/rating-like with is_live flag
  29. Misc micro-fragments removed:
  30. modul-link, media-link-break, media-post-badge, form-submit-btn
  31. faq-quicklinks-open, faq-quicklinks-row, faq-quicklinks-close → table/table-row
  32. partials/alerts, partials/login-without, partials/login

Benefits:

  • Removes ~180 dead template files from the repository
  • Fragment directory contains only actively used atomic components
  • Eliminates the possibility of callers using stale/obsolete contracts

Technical notes:

  • All deleted files have confirmed zero callers after previous refactor commits
  • Applied identically to default, lite, and simple themes (~180 files total)
Refactor: templates — update existing fragments to boolean-flag contracts
Автор: Eduard Laas | Дата: 14:26 20.04.2026

Rewrite existing fragment and partial templates to accept boolean semantic flags instead of raw CSS class strings, consolidate conditional rendering logic inside the templates, and merge live/static rating variants into unified fragments. Applied uniformly to default, lite, and simple themes.

Core changes:

  1. Universal fragments updated to accept boolean flags:
  2. link: is_footer_button, is_last, is_account_button, is_votes, is_comments, is_delete, is_category, is_avatar_link, is_blank

  3. image: is_avatar (adds sl_avatar class internally)
  4. span: is_highlight, is_bold, is_message_in/out/save, is_hidden, is_votes
  5. post-div: is_form_submit, is_center
  6. table: is_form, is_avatar_grid, is_amount, is_faq; open/close handled internally
  7. select: is_account (replaces sl-field--account class string)
  8. button: is_legacy_green (replaces sl_but_green class string)
  9. textarea: is_editor_area (replaces sl_earea class string)
  10. comment-action-ajax: is_button_blue flag
  11. inline-badge: is_comment_date variant
  12. category-row: is_hidden flag replaces style string
  13. table-row: is_avatar flag in cell context
  14. Rating fragments merged and extended:
  15. rating-bar: absorbs rating-bar-live behavior via is_live + target_id flags; has_score replaces nrate class string; data-sl-rating-width attribute for CSS

  16. rating-like: absorbs rating-like-live behavior via is_live flag; has_score replaces nrate class string

  17. rating-wrap: is_like replaces wrap_class string
  18. Forum/view fragments updated:
  19. forum-view-basic: extended with is_private_message flag and new meta fields
  20. comment.html: updated field names for consistency
  21. Navigation and account fragments:
  22. account-nav, account-nav-item: updated slot names
  23. login-logged, navi, msg-center, main-section, main-content-item: minor updates
  24. Partials updated:
  25. view.html, contact-block.html: field name and conditional logic updates

Benefits:

  • Templates own their own CSS decisions — PHP passes intent, not class names
  • Fewer breaking changes needed for future CSS refactors
  • Rating templates unified: 4 fragments → 2 with conditional live behavior

Technical notes:

  • rating-bar-live and rating-like-live fragments are no longer called from PHP (they remain as dead files until the delete commit removes them)

  • All changes are backward-compatible within the new boolean API
Refactor: templates — add new partial and fragment templates across all themes
Автор: Eduard Laas | Дата: 14:24 20.04.2026

Introduce consolidated partial templates and new utility fragments that replace multiple scattered atomic fragments with single reusable view-level contracts. Applied uniformly to default, lite, and simple themes.

Core changes:

  1. New partial templates (*/partials/):
  2. account-view: full user profile view shell
  3. contact-form: contact page form with captcha and field layout
  4. editor-upload-panel: BB-editor file upload panel with HTMX upload form
  5. fieldset-block: generic fieldset wrapper with legend and content
  6. fieldset-post-form: fieldset-wrapped post/comment add form
  7. files-download-form: file download action form
  8. form-wrap: generic form container (replaces ajax-textarea-form partial)
  9. forum-reply-form: forum reply/edit HTMX form
  10. line-list: ordered/unordered list layout for inline stacked items
  11. login-nav: login form embedded in site header navigation
  12. main-slider: front-page image slider partial
  13. message-block: generic labeled key-value email/notification block
  14. mini-post-form: compact inline post form
  15. recommend-form: recommend-to-friend form
  16. rss-info-form: RSS subscription info and subscribe form
  17. rss-read-forms: RSS reader add-source form
  18. session-summary: active session overview table
  19. shop-kasse-form: shop checkout/order form
  20. voting-widget: voting poll with results, admin controls, and footer links
  21. whois-output: WHOIS domain/IP lookup result panel
  22. New utility fragments (*/fragments/):
  23. list / list-item: generic ol/ul list and li item (replaces inline HTML lists)
  24. line-stack-item: stacked inline item wrapper
  25. debug-section: debug info section header
  26. debug-stats: CPU/memory stats row in debug panel
  27. email-noscript: noscript fallback block for HTML emails
  28. rss-source-title: RSS source title row
  29. security-mail-message: security event notification email body

Benefits:

  • Eliminates inline HTML string concatenation for complex form/view layouts
  • Single template file per concept instead of 3-8 micro-fragments per form
  • Uniform partial contracts across all three themes

Technical notes:

  • Applied identically to default, lite, and simple themes (87 new files total)
  • PHP callers updated in preceding commits; these files complete the contract
Refactor: admin + modules — migrate callers to new fragment/partial API
Автор: Eduard Laas | Дата: 14:23 20.04.2026

Update all module callers to match the updated fragment/partial contracts: replace CSS class strings with boolean semantic flags, adopt consolidated partials for forms and views, and align getPageNumbers() calls with the dropped $frag parameter.

Core changes:

  1. Fragment API normalization (all 20 modules + admin/modules/referers.php):
  2. link: 'class' => 'sl_but_foot' → is_footer_button; 'class' => 'sl_last' → is_last; 'class' => 'sl_but' → is_account_button; 'class' => 'sl_votes/sl_coms' → is_votes/is_comments

  3. image: 'class' => 'sl_avatar' → is_avatar; link_class sl-avatar-link → is_avatar_link; 'img_class' → is_avatar in table-row cells

  4. table: 'class' => 'sl_table_form' → is_form; + is_avatar_grid flag for avatar grids; 'class' => 'sl_table_amount' → is_amount

  5. post-div: 'class' => 'sl-form-submit' → is_form_submit; 'class' => 'sl_center' → is_center
  6. select: 'select_class' => 'sl-field--account' → is_account
  7. submit: 'class' => 'sl_but_blue' removed (fragment uses default style)
  8. Partial migration:
  9. contact: contact-form → getHtmlPart('contact-form'); contact-email-body → message-block
  10. account: account-view → getHtmlPart('account-view')
  11. faq: faq-quicklinks-open/row/close → table/table-row/table with is_faq flag
  12. files, forum, whois, shop, rss, recommend, money, order: respective obsolete fragments → partials
  13. Action element migration:
  14. action-delete → link with is_delete flag (across forum, content, faq, voting, news, etc.)
  15. action-menu-item → list-item with content_html key (all editor action menus)
  16. getPageNumbers() caller updates (admin + all modules):
  17. Drop first $frag argument from every call site

Benefits:

  • Modules no longer carry CSS knowledge — all styling decisions live in templates
  • Consistent boolean flag convention across all call sites
  • Partial-based forms reduce inline HTML from module PHP files

Technical notes:

  • getPageNumbers() breaking change handled in all 21 affected call sites
  • No functional behavior changes — pure API contract migration
Refactor: core — migrate helpers, security, system, user to new partial/fragment API
Автор: Eduard Laas | Дата: 14:22 20.04.2026

Replace raw CSS class strings and obsolete fragment names with boolean semantic flags and consolidated partial templates, completing the contract-driven template layer. getPageNumbers() signature simplified by removing the unused $frag parameter.

Core changes:

  1. Fragment/partial API migration (core/helpers.php):
  2. getPageNumbers(): remove dead $frag param, update all internal call sites
  3. getTplViewFieldRows(): view-field → field-value, label → label key rename
  4. getTplBbEditor(): inline HTML → getHtmlPart('editor-upload-panel', ...)
  5. getTplAjaxTextarea(): ajax-textarea-form → getHtmlPart('form-wrap', ...) + inlined buttons
  6. getRatingAsync(): nrate class string → has_score bool; rating-like-live/rating-bar-live merged into unified rating-like/rating-bar with is_live flag; wrap_class → is_like bool
  7. getTplCategorySelect(): category-select → getHtmlFrag('select', ...)
  8. Security email templates (core/security.php):
  9. addHackReport/addWarnReport: security-report-email + br-line → getHtmlPart('message-block', lines[])
  10. System helpers (core/system.php):
  11. setHead(): getHtmlFrag('login') → getHtmlPart('login-nav')
  12. filterTextHighlight(): remove admin-only span-raw branch, use span with is_highlight flag
  13. setCategories(): style string → is_hidden bool; category-link → link with is_category flag; category-row style → is_hidden
  14. addSitemapTask(): inline HTML ol/li → list/list-item fragments; add $tpl to globals
  15. getNaviTabs(): navi-tab-link → link + list-item
  16. getVotingView(): action-delete → link with is_delete; action-menu-item → list-item; voting-widget → getHtmlPart; CSS class strings → is_* booleans; width calculation clamped with max/min/round
  17. User/message templates (core/user.php):
  18. setComShow: submit class removed (default style)
  19. setMessageShow: post-div class → is_center bool
  20. getPrivateMessageView: action-menu-item → list-item; comment-date → inline-badge with is_comment_date; comment-rank-image → image; meta-value → span with label; privat-message → forum-view-basic with is_private_message; span class strings → is_* booleans

Benefits:

  • PHP callers no longer embed CSS class strings, removing style coupling
  • Partial contracts centralize layout logic in templates
  • Unified rating-like and rating-bar fragments (removed *-live duplicates)
  • Cleaner boolean API reduces fragile string concatenation

Technical notes:

  • getPageNumbers() signature change is breaking for all callers (all updated in this commit)
  • rating-like-live and rating-bar-live fragments no longer referenced from PHP
  • message-block partial replaces security-report-email + br-line combination
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

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

1 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 90

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

Идеи и предложения
Обратная связь