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

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

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

Всего: 500 Доступных коммитов | Отфильтровано: 500 Коммиты | Страница: 1 / 50
Вчера (30.03.2026)
Docs: fix Status badge URL encoding in README
Автор: Eduard Laas | Дата: 23:31 30.03.2026

Same %20 space-encoding issue as the Migration badge. Replaced %20 with _ for consistency and reliable rendering on GitHub.

Core changes:

  1. Badge URL (README.md):
  2. Replace %20 with _ in Status badge URL

Technical notes: - shields.io treats _ as space in path-based badge URLs

Docs: fix Migration badge URL encoding in README
Автор: Eduard Laas | Дата: 23:28 30.03.2026

shields.io path badges on GitHub were rendering incorrectly due to double percent-encoding of the space character (%20). Replaced %20 with underscore (_) which shields.io treats as a space and GitHub does not mangle.

Core changes:

  1. Badge URL (README.md):
  2. Replace %20 with _ in Migration badge URL * Prevents double-decoding of percent-encoded space by GitHub

Benefits: - Badge renders correctly on GitHub

Technical notes: - shields.io treats _ as space in path-based badge URLs - %25 encoding for % sign is unaffected and remains correct

Chore: update docs, tests, lang constants, robots.txt and replace BxSlider with vanilla JS
Автор: Eduard Laas | Дата: 23:21 30.03.2026

Miscellaneous updates accompanying the jQuery removal and getTpl* migration: lang constants for new editor operations, expanded test coverage, documentation refresh, robots.txt hardening, and vanilla BxSlider replacement in lib.js.

Core changes:

  1. JS vanilla migration (templates/lite/assets/js/lib.js):
  2. Replaced jQuery BxSlider slider init with standalone vanilla carousel/slider implementation
  3. No jQuery dependency remaining in lib.js
  4. Language constants (admin/lang/*.php - all 6 locales):
  5. Added _EROBSTD (robots.txt standard label) and _ESAVED (file saved confirmation)
  6. Test suite (tests/):
  7. PhpFileFormatTest.php: expanded PHP file format checks
  8. TemplateValidationTest.php: added testSharedFrontendFragmentsStayInSyncAcrossThemes
  9. Added tests/TextFileEncodingTest.php: new encoding validation for all text files
  10. Documentation (docs/, README.md):
  11. docs/RAW_SLOTS_ADMIN.md: updated raw slot usage reference for admin templates
  12. docs/TEMPLATES.md: updated template system documentation
  13. docs/TEMPLATE_STATUS.md: updated migration status
  14. docs/TESTS.md: added test run reference
  15. README.md: updated migration progress badge (85% -> 90%), removed jQuery from stack list
  16. Infrastructure:
  17. robots.txt: added Disallow for /setup/, /setup.php, /storage/; added Sitemap directive
  18. config/comments.php, config/fields.php: whitespace normalization

Benefits: - Full jQuery removal from lit theme frontend JS - New test covers UTF-8 encoding and cross-theme fragment sync - robots.txt now blocks sensitive paths from crawlers

Technical notes: - lib.js vanilla implementation replaces #slider-head and #slaed_sites BxSlider instances - No behavior change for end users

Templates: add new admin and frontend fragments across default, lite, simple themes
Автор: Eduard Laas | Дата: 23:20 30.03.2026

Introduce missing fragment and partial files required by the template engine after the admin helper and module migration, and add complete new layout and page files for lite and simple themes.

Core changes:

  1. Admin fragments (templates//fragments/admin-.html):
  2. Added admin-box, admin-form, admin-form-row, admin-form-wide, admin-table, admin-table-row
  3. Added admin-text-input, admin-textarea, admin-number-input, admin-email-input, admin-url-input
  4. Added admin-select, admin-select-option, admin-hidden-input, admin-color-label
  5. Added admin-image-preview, admin-hr-line, admin-info-box, admin-placeholder-box
  6. Added admin-rows-table, admin-tab-content, admin-tabs-setup
  7. Added to all three frontend themes: default, lite, simple
  8. Frontend fragments (templates/simple/fragments/):
  9. Added account-, assoc-, basic-, block-, forum-, liste-, login-, shop-, voting-, users-, messagebox, navi, privat-message
  10. Added to templates/default/fragments/ and templates/lite/fragments/ where missing
  11. Layouts and partials:
  12. Added templates/lite/layouts/main.html, templates/lite/pages/error.html
  13. Added templates/lite/partials/alerts.html, login-logged.html, login-without.html
  14. Added templates/simple/layouts/main.html
  15. Added templates/simple/partials/contact-block.html, forum-teaser.html, menu.html
  16. Added templates/default/partials/contact-block.html, forum-teaser.html
  17. Modified existing fragments:
  18. templates/*/fragments/account-view.html: updated slot names to match new helper output
  19. templates/*/fragments/shop-client-row.html: updated slot names
  20. templates/admin/fragments/: updated admin-voting, admin-shop, admin-security, admin-rss, admin-replace, admin-media, admin-lang, admin-fields, admin-account fragments

Benefits: - All template fragments required by migrated PHP helpers are now present - Consistent fragment set across default, lite, simple themes - No missing fragment errors at runtime after getTpl* migration

Technical notes: - Fragments follow Mustache {{ }} and {{{ }}} slot conventions - New admin fragments are identical across all three frontend themes

Refactor: rename admin template helpers to getTpl* prefix across all call sites
Автор: Eduard Laas | Дата: 23:20 30.03.2026

Standardize the naming convention for all template-rendering helper functions by migrating from the mixed getAdmin/getCat/getBlock* prefix set to a single getTpl* prefix, making the template layer explicit and consistent.

Core changes:

  1. Helper definitions (core/helpers.php, core/admin.php):
  2. Renamed getAdminTable -> getTplAdminTable, getAdminTableRow -> getTplAdminTableRow
  3. Renamed getAdminForm -> getTplAdminForm, getAdminFormRow -> getTplAdminFormRow
  4. Renamed getAdminFormWide -> getTplAdminFormWide, getAdminBox -> getTplBox
  5. Renamed getAdminTextInput -> getTplTextInput, getAdminSelect -> getTplSelect
  6. Renamed getAdminHidden -> getTplHiddenInput, getAdminOption -> getTplOption
  7. Renamed getAdminHintLabel -> getTplAdminHintLabel, getAdminPlaceholderBox -> getTplAdminPlaceholder
  8. Renamed getCategoriesSearch -> getTplAdminCatSearch, getCategoryImageSelect -> getTplCategorySelect
  9. Renamed getCategoryImgPreview -> getTplCategoryPreview, getCatPermRow -> getTplCatPermRow
  10. Renamed getAdminTabName -> getTplAdminTabName, getAdminTabsSetup -> getTplAdminTabsSetup
  11. Renamed getBlockViewGrid -> getTplAdminBlockGrid, getBlockRefreshSelect -> getTplBlockRefresh
  12. Renamed getBlockActionSelect -> getTplBlockAction
  13. core/admin.php: extracted canonical implementations to helpers.php; wrappers remain for backward compat
  14. core/classes/template.php: added dev-mode template error reporting and debug comments
  15. Call site migration (admin/modules/.php, modules//.php, blocks/*.php, core/user.php):
  16. Updated all 88 call sites to use new getTpl* names
  17. No behavior change; pure mechanical rename

Benefits: - Single coherent getTpl* namespace for all template helpers - Canonical implementations live in core/helpers.php; admin.php retains thin wrappers - Template error reporting improves debuggability in dev mode

Technical notes: - Backward-compatible: old admin wrappers in admin.php still delegate to getTpl canonical functions - No DB or API changes

Chore: drop jQuery, FancyBox, Uploadify, BxSlider; introduce vanilla slaed.js
Автор: Eduard Laas | Дата: 23:19 30.03.2026

Remove all jQuery-dependent plugin bundles and replace core UI utilities with a standalone vanilla JS module, eliminating jQuery as a runtime dependency for all page-level functionality.

Core changes:

  1. Plugin removal (plugins/):
  2. Deleted plugins/jquery/ (jquery.js, jquery-ui.js, jquery.cookie.js, jquery.slaed.js, tinycon.js, ui/ bundle)
  3. Deleted plugins/fancybox/ (jquery.fancybox.js and all helpers/assets)
  4. Deleted plugins/uploadify/ (jquery.uploadify.js, uploadify.swf, assets)
  5. Deleted plugins/ckeditor/adapters/jquery.js (jQuery adapter)
  6. Deleted plugins/system/tablesort.min.js (moved to plugins/tablesort/)
  7. Deleted plugins/codemirror/*/index.html (demo pages, not runtime code)
  8. Added plugins/system/slaed.js (vanilla replacement for jquery.slaed.js)
  9. Added plugins/tablesort/ (standalone tablesort bundle)
  10. Template JS (templates/):
  11. Deleted templates/lite/assets/js/jquery.bxslider.js
  12. Added templates/lite/assets/js/tabs.js and templates/default/assets/js/tabs.js (vanilla tab init)
  13. Updated theme.css in default and lite: removed BxSlider/jQuery UI styles, added vanilla tab CSS
  14. Removed jQuery UI .ui-autocomplete CSS rule from system.css in admin/default/lite
  15. Removed jQuery and jQuery UI badge links from layouts/app.html, layouts/home.html, index.html
  16. Config and runtime (config/, core/system.php, plugins/system/global-func.js):
  17. config/global.php: removed jQuery/FancyBox/Uploadify from script_f and css_f load lists
  18. core/system.php: replaced jQuery UI datepicker in datetime() with native HTML5 input; fixed garbled UTF-8 in getTranslit() and filterSlug() transliteration maps
  19. plugins/system/global-func.js: added vanilla syncNativeDateTimeInput() and fetchUserSuggestions() to replace jQuery UI autocomplete and datepicker
  20. Encoding fixes (templates/*/fragments/editor-translate-panel.html):
  21. Fixed garbled double-encoded Cyrillic characters in all four theme variants

Benefits: - Eliminates jQuery and jQuery UI as page-level runtime dependencies - Reduces total JS payload by ~30 KB (minified jQuery + jQuery UI) - Resolves broken Cyrillic rendering in transliteration and editor panels - Tab UI now works independently via vanilla setAdminTabs() and CSS

Technical notes: - FancyBox (.screens, .site-link) still referenced in templates; requires separate replacement with native <dialog> or GLightbox - CloseOpen(), HideShow(), Upper(), CheckBox(), TranslateLang() migrated to slaed.js as vanilla functions - datetime() now emits native <input type="datetime-local"> with hidden sync field

Refactor: migrate async UI flows and admin tabs to HTMX and Tablesort
Автор: Eduard Laas | Дата: 15:30 30.03.2026

Replace the legacy AjaxLoad and ddtabcontent runtime across admin and frontend flows with HTMX-based async interactions and a new shared admin tabs layer. This also completes the tablesorter-to-Tablesort migration, cleans up route and helper naming to match project rules, and finalizes the shared template extraction work for repeated admin HTML builders.

Core changes:

  1. Async transport and routing cleanup (index.php, core/system.php, core/user.php, core/admin.php):
  2. Replaced legacy AjaxLoad-based endpoints and callers with HTMX-friendly async flows * Renamed async handlers and route ops to rule-compliant names * Fixed shared pager/query generation and CSRF propagation for async requests

  3. Updated admin info, favorites, private messages, cart, rating, comment, voting, editor, block, category, upload, and session flows
  4. Fixed shared admin fragment responses and account pagination URL encoding
  5. Shared admin templates and tabs modernization (core/helpers.php, admin/modules/.php, templates/admin/fragments/):
  6. Extracted repeated admin table, form, action, row, input, image, and tab setup HTML into reusable fragments and helpers
  7. Replaced the legacy tabs runtime with the new setAdminTabs layer while keeping module rendering stable
  8. Removed obsolete admin tab script fragments and legacy tab id contracts
  9. Tablesort migration and frontend fragment cleanup (plugins/system/tablesort.min.js, plugins/jquery/jquery.slaed.js, templates/*):
  10. Introduced Tablesort as the shared table sorting runtime and removed jquery.tablesorter and jquery.metadata from active use
  11. Migrated sortable headers to data-sort-method markers and restored sort state visuals with the existing SLAED CSS contract
  12. Converted remaining theme fragments from inline AjaxLoad handlers to HTMX interactions across admin, default, lite, and simple templates

Benefits: - Removes legacy async JavaScript transport and dead sorter dependencies from active runtime code - Centralizes repeated admin HTML patterns in shared fragments with cleaner helper boundaries - Aligns async routes, helpers, and tabs behavior with current naming and template rules

Technical notes: - Adds plugins/system/tablesort.min.js and removes jquery.tablesorter.js, jquery.tablesorter.min.js, and templates/admin/assets/js/jquery.metadata.js - Renames multiple async route ops and helper functions; old legacy route names are no longer preserved - Includes database total-row sort protection, account pager URL normalization, and updated admin/page render coverage

Fix: Align SEO routes, docs, tests, and language audit
Автор: Eduard Laas | Дата: 09:35 30.03.2026

Finalize the remaining runtime cleanup by aligning canonical and template contracts with the active codebase, pruning truly unused language constants, and updating the repository documentation to match the current structure. This also fixes the local Composer wrapper so the standard quality commands run again in this environment.

Core changes:

  1. Frontend runtime and templates (core/system.php, templates/default/, templates//pages/message.html):
  2. Centralized canonical and public URL handling in the runtime and aligned message/layout rendering with the active template contracts * Added template contract fixes for admin, app, home, preview, and login partial rendering * Corrected changelog partial routes and shared SEO behavior used by setHead()

  3. Kept sitemap, Open Graph, and runtime URL generation on the same path
  4. Documentation, tests, and language audit (README.md, CONTRIBUTING.md, SECURITY.md, UPGRADING.md, docs/.md, tests/LanguageConstantsUsageTest.php, lang/.php, admin/lang/.php, modules//lang/*.php):
  5. Synced project documentation with the current repository structure, runtime, and testing workflow
  6. Removed truly unused language constants and fixed the audit to count template constant usage correctly
  7. Restored working Composer wrapper behavior and verified composer analyse and composer test in the local environment

Benefits: - Restores passing quality gates for runtime and template changes - Reduces false positives in language constant reporting - Improves documentation accuracy and developer workflow reliability

Technical notes: - No schema migration or history rewrite - Local Composer wrapper now falls back to the PHP 8.4 Composer home when COMPOSER_HOME is unset - Verified with php -l, composer analyse, and composer test

Refactor: Normalize shared admin template helpers
Автор: Eduard Laas | Дата: 09:35 30.03.2026

Consolidate repeated admin HTML assembly into shared helper and fragment contracts so admin modules use one consistent rendering path. This reduces inline markup duplication and aligns the migrated admin slices with the current Template runtime.

Core changes:

  1. Shared admin helpers (core/admin.php, core/helpers.php):
  2. Added reusable admin rendering helpers for color labels, submit buttons, block visibility rows, and shop association tables * Moved block-module discovery into shared helper scope * Replaced repeated inline HTML with fragment-backed rendering paths

  3. Normalized helper contracts used by migrated admin modules
  4. Admin modules and fragments (admin/modules/.php, modules//admin/index.php, templates/admin/fragments/*):
  5. Updated admin modules to call shared helpers instead of building duplicate markup inline
  6. Added missing fragment files for block visibility, section headings, submit buttons, color labels, and shop association cells
  7. Extended raw-slot documentation to describe the active admin fragment contracts

Benefits: - Reduces duplicated admin markup across modules - Improves maintainability of template-bound admin rendering - Keeps admin migration aligned with the shared Template runtime

Technical notes: - No history rewrite or schema change - Rendering stays backward-compatible at the route level - Changes are limited to admin helper, fragment, and caller integration paths

Эта неделя (28.03.2026)
Refactor: replace inline HTML inputs with helper functions project-wide
Автор: Eduard Laas | Дата: 00:50 28.03.2026

Eliminate all inline <input type="hidden/text/number"> and <span/div> HTML constructions from PHP across the entire codebase, replacing them with getAdminHidden(), getAdminTextInput(), getAdminNumberInput(), adminFlagBox(), and getAdminHintLabel() helpers. Three new template fragments added to back the new input helpers.

Core changes:

  1. New template fragments (templates/admin/fragments/):
  2. admin-hidden-input.html, admin-text-input.html, admin-number-input.html
  3. New helpers (core/helpers.php):
  4. getAdminHidden(), getAdminTextInput(), getAdminNumberInput()
  5. getAdminHintLabel(), getAdminLangHint()
  6. Admin modules (admin/modules/*.php):
  7. All hidden, text and number inputs replaced; hint labels use getAdminHintLabel()
  8. Removed redundant htmlspecialchars() wrappers (template escapes values)
  9. Module admin pages (modules/*/admin/index.php):
  10. All <input type="hidden"> chains replaced with getAdminHidden() calls
  11. Frontend modules and blocks:
  12. modules/forum, help, money, search — text/number/hidden inputs replaced
  13. blocks/block-login.php, block-user_info.php — inputs replaced
  14. Core (core/system.php, core/user.php, core/admin.php):
  15. ad_save(), datetime(), fields_in(), get_user_search() use helpers

Benefits: - No raw HTML string assembly for form inputs anywhere in PHP - Template layer owns escaping — no scattered htmlspecialchars() calls - Consistent input rendering via single source of truth

Technical notes: - core/system.php:3242 (<input id="recaptcha">) left as-is: id attr not supported by template - <span class="sl_green/red"> in modules.php and security.php left as-is: adminFlagBox() generates <div>, wrong semantics for inline context - docs/RAW_SLOTS_ADMIN.md updated with new fragment entries

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

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

Технологии

PHPMySQLHTML 5CSS 3jQueryjQuery UI

Контакты

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

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