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

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

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

Всего: 500 Доступных коммитов | Отфильтровано: 500 Коммиты | Страница: 4 / 50
29.04.2026
Feature: Extend admin fragment API with safe-text slots, prefix_html, is_col_title
Автор: Eduard Laas | Дата: 14:00 29.04.2026

Admin data-display fragments gain a safe-text rendering path so callers can pass raw PHP strings and let the template apply htmlspecialchars, instead of calling htmlspecialchars in PHP before passing content_html. This makes escaping responsibility explicit and template-side.

Core changes:

  1. table-cells.html:
  2. Add is_col_title class flag → outputs sl-col-title on th and td
  3. Add prefix_html slot rendered before content in each cell
  4. Add has_content_text / content_text: auto-escaped text path replacing manual htmlspecialchars in PHP callers

  5. th.html:
  6. Mirror is_col_title class support to header cells
  7. label.html:
  8. Add prefix_html slot (renders before label content)
  9. Add has_content_text / content_text safe-text path
  10. Existing content_html path preserved as fallback
  11. info-tooltip.html:
  12. Add has_value_text / value_text on tooltip items, escaping value server-side in template instead of in PHP

  13. div-row.html:
  14. Add has_field_text / field_text path for form rows that display plain text values; applies to both wrapped and unwrapped field variants

Benefits: - Removes htmlspecialchars() from PHP call sites; escaping is done once in the template layer at the correct output boundary - prefix_html enables tooltip + text combos without wrapper <span>

Technical notes: - All existing content_html paths remain fully backward-compatible - is_col_title maps to a new CSS class added in the accompanying style update

Refactor: Replace OnClick HideShow() with data-sl-toggle-* across all templates
Автор: Eduard Laas | Дата: 13:59 29.04.2026

Every inline OnClick="HideShow(...)" handler is removed from all Mustache templates (admin, default, lite, simple) and replaced with the declarative data-sl-toggle-control / data-sl-toggle-effect / data-sl-toggle-duration attributes consumed by slaed.js. No behaviour changes — only the binding mechanism moves from inline JS to data attributes.

Core changes:

  1. Admin partials (session-summary, block-sidebar, dashboard-panel):
  2. Replace all OnClick HideShow() with data-sl-toggle-control + effect attrs
  3. Admin fragment (image-preview):
  4. href changed from 'javascript: void(0);' to '#'
  5. toggle_onclick removed; data-sl-toggle-control/effect/duration added
  6. Popup span gains data-sl-toggle and data-sl-toggle-default="closed"
  7. Frontend templates (default / lite / simple):
  8. comment, forum-post, image-preview: same OnClick → data attribute migration
  9. account-profile, contact-block, login-nav, session-summary: same migration
  10. voting-home: span OnClick replaced with data-sl-toggle-control
  11. index.html (commented code): updated in place for consistency

Benefits: - Eliminates all inline JavaScript from template markup - Consistent toggle behaviour across admin and frontend themes - Works with htmx afterSwap hook added in the JS refactor

Technical notes: - toggle_onclick template variable is no longer consumed in image-preview - data-sl-toggle-default="closed" controls initial hidden state without JS

Refactor: Remove HideShow() global and add data-attribute animation to slaed.js
Автор: Eduard Laas | Дата: 13:59 29.04.2026

The legacy window.HideShow() function is removed in favour of a data-attribute-driven toggle API that keeps behaviour and animation effects fully declarative. Callers set data-sl-toggle-effect and data-sl-toggle-duration on the trigger element; the JS reads these on every event instead of relying on positional arguments baked into HTML.

Core changes:

  1. setToggleBlockState / setToggleBlock (slaed.js):
  2. Accept effect and duration as parameters instead of ignoring animation * 'slide' delegates to setSlideMotion(); 'puff' to setFadeScale() * plain toggle falls back to hidden/display as before

  3. event.preventDefault() now called on non-checkbox click triggers
  4. Toggle block initialisation (slaed.js):
  5. Read data-sl-toggle-default attribute ('open'/'closed') for initial state when no saved state is present

  6. window.HideShow removal (slaed.js):
  7. Global shim deleted; all call sites migrated to data-sl-toggle-control
  8. htmx afterSwap hook (slaed.js):
  9. setToggleBlocks() called after every HTMX content swap so dynamically injected toggle blocks are wired automatically

Benefits: - No inline JS in HTML required for animated toggles - Animation type is declarative and visible in markup, not hidden in PHP - Eliminates the last globally-scoped legacy function from slaed.js

Technical notes: - Backward compatibility: window.HideShow no longer exists; all call sites must be updated to data-sl-toggle-* attributes - No changes to the public toggle-state API (getToggleState/setToggleState)

28.04.2026
Refactor: Polish admin form inputs, alert callouts and debug stats fragment
Автор: Eduard Laas | Дата: 22:30 28.04.2026

Visual updates to admin theme styles and a new template fragment for the debug stats panel.

base.css - Soften default input/textarea/select look: lighter background (#fcfeff), softer border (#d6e2ea), updated text color (#59697a). Add transition for background, border and box-shadow on focus/hover

theme.css - Add .sl-debug-stats grid styling with .sl-debug-value tone variants (success/warn/danger) for the new debug-stats fragment - Restyle .sl-warn / .sl-info callouts: larger icon area (32px, vertically centered via transform), wider left padding (60px), min-height 40px - Replace the single 2px progress bar in .sl-alert-flash-bar with a top+bottom hairline pattern using currentColor; warn flash uses orange (#d68a2d), default success uses green (#37a957) - Add gradient hairline under the admin login header (was a flat #e3edf3 line)

templates/admin/fragments/debug-stats.html - New fragment that renders the system debug summary as a definition list (CPU load, memory use, timestamp), replacing the previous ad-hoc inline markup. Driven by tone flags (cpu_is_/mem_is_) consistent with the rest of the admin template vocabulary

Chore: Rotate site key and refresh config fingerprint
Автор: Eduard Laas | Дата: 22:28 28.04.2026
Chore: Update config fingerprint and site key/variables
Автор: Eduard Laas | Дата: 14:35 28.04.2026

Routine config update reflecting changed site settings and a refreshed base fingerprint after template and asset changes in this sprint.

Core changes:

  1. config/global.php:
  2. Updated sitekey to new value
  3. Updated variables bitmask
  4. config/local.php:
  5. Updated base_fingerprint hash

Benefits: - Config state reflects current codebase revision - Fingerprint ensures cache invalidation for changed assets

Technical notes: - base_fingerprint is auto-derived from asset checksums - variables bitmask controls enabled site feature flags

Chore: Remove redundant fieldset styles from admin base CSS
Автор: Eduard Laas | Дата: 14:35 28.04.2026

Strip the hardcoded padding, margin and border from the fieldset base rule. These values conflicted with component-level overrides and are no longer needed now that admin forms use sl-div-* grid layout.

Core changes:

  1. Admin base CSS (templates/admin/assets/css/base.css):
  2. Removed: padding: 3px, margin: 0 0 3px 0, border: 1px solid #dee0e2 from the fieldset base rule

  3. Retained: overflow: auto, border-radius: 3px

Benefits: - Eliminates style conflicts for fieldsets inside sl-div-* containers - Reduces specificity fights between base and component CSS layers

Technical notes: - border-radius retained for visual consistency where fieldset is still used - overflow: auto retained to contain floated children if any remain

Refactor: Extract editor-robots inline JS to standalone deferred script
Автор: Eduard Laas | Дата: 14:35 28.04.2026

Move the robots-template button logic from an inline <script> fragment to a standalone JS file loaded with defer. Improves separation of concerns and allows browser caching of the script.

Core changes:

  1. Editor module (admin/modules/editor.php):
  2. getRobotsButton() now prepends a head-script-src fragment that loads editor-robots.js with the defer attribute

  3. Removed inline JS fragment (editor-robots-button.js):
  4. Deleted the template fragment that embedded script content inline
  5. New standalone file (templates/admin/assets/js/editor-robots.js):
  6. Self-contained script with applyRobotsTemplate logic
  7. Registers a DOMContentLoaded listener for safe deferred execution

Benefits: - Script is browser-cacheable as a static asset - Inline JS eliminated from HTML response - Cleaner separation between markup and behaviour

Technical notes: - Script uses defer; DOMContentLoaded listener retained for safety - No changes to the button markup or data attributes

Chore: Remove obsolete admin layout and sprite images
Автор: Eduard Laas | Дата: 14:34 28.04.2026

Delete the remaining legacy PNG/GIF images that were part of the old image-based admin layout (borders, backgrounds, separators, tab chrome). The modern admin theme uses pure CSS and no longer references these files.

Core changes:

  1. Deleted admin sprite and layout images (24 files):
  2. Layout backgrounds: bchead, pagebg, wraptop, wrapmid, wrapfoot, wrapenter, wrapmidenter

  3. Navigation chrome: tabmenu, tabsubmenu, toolbar, topmenu
  4. Separators: hsep, vseptop, vsepmid, vsepfoot
  5. Decorators: leftblocktop, leftbdbtm, footer, footer_ent, entersubmit
  6. Sort arrows: misc/asc.gif, misc/desc.gif, misc/bg.gif
  7. Scroll: uppage.png

Benefits: - Eliminates unreferenced binary assets from the repository - Reduces admin theme asset footprint - Completes the migration from sprite-based to CSS-based admin layout

Technical notes: - No CSS or template references to these files remain in the codebase - Sort arrows replaced by CSS ::after pseudo-elements (sl-sort-* classes)

Chore: Replace loading.gif with CSS dots animation, remove gif files
Автор: Eduard Laas | Дата: 14:34 28.04.2026

Remove the .sl_loading sprite-based indicator in favour of a pure-CSS three-dot animation. Eliminates the binary gif dependency across all themes and the admin area.

Core changes:

  1. Frontend CSS (default/new.css, lite/new.css, simple/new.css):
  2. .sl-loading rewritten: flexbox container with ::before pseudo-element producing an animated three-dot loader using box-shadow and keyframes

  3. Frontend CSS (default/system.css, lite/system.css):
  4. Removed legacy .sl_loading rule that referenced loading.gif
  5. Deleted gif files:
  6. templates/admin/images/misc/loading.gif
  7. templates/default/images/misc/loading.gif
  8. templates/lite/images/misc/loading.gif
  9. templates/simple/images/misc/loading.gif

Benefits: - No binary image dependency for loading indicator - CSS animation scales to any DPI and respects prefers-reduced-motion - Reduces total asset count across all themes

Technical notes: - Animation uses three dots at 0.8s linear cycle via box-shadow offsets - Colors match existing brand palette (#207fb6, #8fc5d9)

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

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

Технологии

PHP MySQL HTML 5 CSS 3 jQuery jQuery UI

Контакты

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

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