Журнал изменений
Admin panel now supports a configurable logo image selected from the logos directory, rendered as an <img> tag in both the main admin layout and the login (bare) layout, replacing the hard-coded CSS background sprite approach.
Core changes:
- Config panel (admin/modules/config.php):
Added admin_logo selector reading from templates/admin/images/logos/
- Uses same scandir/select-option pattern as site_logo
- Preview image linked via selectid/imgtar fragment attributes
- Removed trailing colons from all label_html strings in this file
- save(): added admin_logo extraction and validation via basename()
- System head (core/system.php):
setHead(): resolves admin_logo path via img_find(), falls back to default
- Passes adlogo, adalt, adtitle vars to admin layout templates
- ashowcom(): removed hardcoded OnClick="CheckBox()" from markcheck input
- Templates (templates/admin/layouts/admin.html, bare.html):
- Replaced CSS-background h1>a text link with <img> tag using adlogo/adalt/adtitle
- Removed class="thide" from brand link
- Config defaults (config/global.php):
- Added admin_logo key with default slaed_logo_256x73.png
- Moved editor array to alphabetical position
- Updated copyright symbol to Unicode ©
- Rotated sitekey value
- Lang strings (admin/lang/*.php — all 6 languages):
- Added _ADMINLOGO and _ADMINLOGOP constants
- Clarified _DEVMODE label (added ?)
- Clarified _OGRAPH and _SCHEMA labels (added "Enable/Aktivieren/Activer/Włączyć/Активировать/Активувати" prefix and ?)
Benefits:
- Logo is now a first-class config option without CSS overrides
- login and admin pages share the same logo variable
- Consistent with site_logo selector pattern already in config
Technical notes:
- Logo path is validated on save; invalid name falls back to slaed_logo_256x73.png
- No DB schema changes
- Backward compatible: existing installs without admin_logo key use the default
Rename renderFootControls to getFootControls, add is_col_status markers and language link CSS class to admin list builders, apply column class_name in newsletter and account modules, and update config fingerprint.
Core changes:
- Footer function rename (core/system.php):
- renderFootControls() renamed to getFootControls() with shorter param names
- Both call sites in setFoot() updated
- Admin list builders (core/admin.php):
- Add class 'sl-admin-language-link' and is_menu_list_image to language switcher
- Mark status cells with is_col_status => true in category, block, private lists
- Fix is_last flag in block list tip items (was incorrectly bound to $lang check)
- Column classes (admin/modules/newsletter.php):
- Add class_name 'sl-col-sent' to newsletter sent-count column (head + body)
- Account admin (modules/account/admin/index.php):
- Add class_name 'sl-col-ip' to IP column (head + body rows)
- Add autofocus => true to signature textarea in add form
- Config (config/local.php):
- Update base_fingerprint to reflect current template asset state
Benefits:
- getFootControls follows project naming convention (get* prefix for renderers)
- is_col_status enables template-side alignment without hardcoded selectors
- Column class_name allows CSS targeting of specific data columns
Technical notes:
- getFootControls is a non-breaking rename; no callers outside setFoot()
- Fingerprint update required after CSS and JS asset changes in this batch
Add autofocus parameter to getTplTextarea() and implement editor-level focus in the ToastUI driver, enabling modules to declare which field receives keyboard focus on page load. Also fix category select indent encoding and improve editor height calculation.
Core changes:
- Textarea helper (core/helpers.php):
- Add 'autofocus' key forwarded to template via getTplTextarea()
Fix category-select indent: replace raw HTML entity string with html_entity_decode() to avoid double-encoding in templates
- ToastUI editor driver (plugins/editors/toastui/driver.php):
- Honor autofocus data key: emit JS setTimeout focus on editable surface
- Replace fixed rows*24 height formula with tiered defaults (250/300/500px)
- Support explicit 'height' override via data key
Benefits:
- Modules can declare autofocus declaratively without custom JS overrides
- ToastUI focus targets contenteditable, ProseMirror, or textarea fallback
- Height tiers produce better visual defaults for short vs. full editor profiles
Technical notes:
- Focus fires after 300ms delay to allow ToastUI initialization to complete
- Category indent precomputes the nbsp string once per query for efficiency
- Minimum height clamped to 250px regardless of rows or override value
Restructure the bulk-action <select> into labeled <optgroup> sections (actions vs. move-to-category) and add autofocus to the body textarea on the add-news form for faster keyboard-driven entry.
Core changes:
- Bulk action selector (modules/news/admin/index.php):
- Split $actopts into $modopts (action options) and category opts
- Wrap each group in <optgroup> via new select-optgroup fragment
- Remove "Move to: " prefix from category option labels (now in group label)
- New fragment (templates/admin/fragments/select-optgroup.html):
- Renders <optgroup label="..."> with inner options_html
- Add form autofocus (modules/news/admin/index.php):
- Pass autofocus => true to hometext getTplTextarea call
Benefits:
- Batch selector is visually grouped and easier to scan at a glance
- autofocus moves keyboard focus directly to body on add-news page
Technical notes:
- select-optgroup.html is a shared admin fragment reusable in other modules
- Placeholder option (_OPMOD) remains as the default unselected item
Replace all sprite.png-based icons in admin UI components (tooltips, move controls, status badges) with Bootstrap Icons SVG font, enabling vector rendering, keyboard accessibility, and theme-aware coloring across all template variants.
Core changes:
- Tooltip styles (new.css × 4 templates, system.css):
- Replace sprite background-image with inline Bootstrap Icon (bi-info-circle-fill)
- Add tabindex="0" and focus-visible outline for keyboard accessibility
- Replace <br>-separated items with <dl>/<dt>/<dd> grid layout
- Remove legacy .sl_tip definition from system.css (merged into new.css)
- Move controls (new.css, move-controls.html):
- Replace sprite arrows with Bootstrap Icons (\f139 up, \f118 down)
- Add .sl-move-controls flex wrapper for alignment
- Add hover/focus scale and color transitions
- Status icons (new.css, inline-badge.html):
- Add .sl-status-active and .sl-status-inactive icon classes
- Wire is_status_active / is_status_inactive flags in inline-badge fragment
- Floating panel engine (floating.js):
- New JS module: viewport-aware positioning for .sl-tip and .sl-menu dropdowns
- Handles edge overflow, above/below flip, arrow alignment
- Binds to DOMContentLoaded and htmx:load for HTMX fragment reloads
- Admin CSS tweaks (system.css, theme.css):
- Add .sl-col-check column alignment rules
- Add .sl-admin-language-link hover styles
- Unify hover background-color to #f7fbfd across all table components
- Remove font-weight:bold from inline button rule
Benefits:
- Scalable vector icons replace fixed-size 16x16 sprite fragments
- Tooltips and menus are now keyboard-navigable (tabindex, focus-within)
- Consistent hover token (#f7fbfd) across all list and table components
Technical notes:
- Bootstrap Icons font already present in admin layout
- floating.js replaces CSS :hover positioning with JS viewport-aware placement
- .sl_tip legacy alias preserved in new.css for modules not yet migrated
Refresh the language flag set across all four themes, dropping legacy short-code and _mini filenames in favor of consistent country-based naming matched by getLanguageFlagSrc(), and re-export the remaining flags with a unified visual style.
Core changes:
- New country-named flags (templates/{admin,default,lite,simple}/images/lang/):
Add usa.png, russia.png, iran.png, syria.png, moldova.png, south_korea.png, north_korea.png, faeroe_islands.png
Names align with getLanguageFlagSrc() mapping and with the common ISO short-code <-> country pairing used by the admin switcher
- Legacy short-code removal (templates/{admin,default,lite,simple}/images/lang/):
- Remove de.png, en.png, fr.png, pl.png, ru.png, uk.png
Remove all _mini variants (de_mini.png, en_mini.png, fr_mini.png, pl_mini.png, ru_mini.png, uk_mini.png)
Admin no longer ships _mini files; the frontend no longer ships short-code duplicates
- Long-form name removal (templates/{admin,default,lite,simple}/images/lang/):
Remove russian_federation.png, islamic_republic_of_iran.png, syrian_arab_republic.png, republic_of_korea.png, democratic_peoples_republic_of_korea.png, republic_of_moldova.png, united_states_of_america.png, europe.png, islands.png
- Superseded by the shorter country-named equivalents
- Visual refresh (templates/{admin,default,lite,simple}/images/lang/):
Re-export the remaining country flags with a consistent style; binary content changes across the full set in every theme
Benefits:
Filenames align with the runtime flag resolver, eliminating the previous dependency on short-code and _mini lookups
- Unified visual style across admin and frontend themes
Smaller, cleaner flag inventory with one canonical filename per country
Technical notes:
- Binary-only change; no code is touched in this commit
Depends on the previous commit that introduces getLanguageFlagSrc() and maps short codes to the new country-named files
- Admin and frontend themes now share the same filename conventions
Centralize language flag image resolution behind a single helper, read the installed-language directory via BASE_DIR instead of a relative path, and migrate the languages block form markup to the shared form-wrap partial.
Core changes:
- Flag resolver helper (core/system.php):
Add getLanguageFlagSrc() mapping short ISO codes (de/en/fr/pl/ru/uk) to country-named flag files (germany/england/france/poland/russia/ukraine)
- Falls back to lang/white.png when the resolved image is missing
- Uses img_find() to keep theme fallback behavior intact
- Admin language switcher (core/admin.php):
getAdminLanguageLinks() now resolves the flag src via getLanguageFlagSrc() instead of a hardcoded "lang/<code>_mini.png"
- Languages block (blocks/languages.php):
- Resolve flag image through getLanguageFlagSrc()
Read the installed-language directory from BASE_DIR.'/lang' instead of the relative "lang" path
Render the selector form through the shared form-wrap partial using the new is_block_languages flag, replacing an inline <form> tag
- Normalize indentation to 4 spaces per project style
- Template helper (core/helpers.php):
getTplLanguageOptions() reads BASE_DIR.'/lang' instead of a relative "lang" path so it behaves consistently regardless of CWD
- Shared form partial (templates/{default,lite,simple}/partials/form-wrap.html):
Add an is_block_languages branch that attaches class="block-languages" to the rendered <form>, composable with an optional form_class
- Config (config/local.php):
- Bump _meta.base_fingerprint to reflect the core baseline change
Benefits:
Single source of truth for language flag resolution across admin and frontend blocks
- Removes dependency on short-code and _mini flag filenames in code
- Eliminates CWD-dependent reads of the language directory
Technical notes:
Requires country-named flag files (germany.png, england.png, ...) to exist in every theme's images/lang/ directory; delivered in a follow-up commit that refreshes the flag set
- Admin no longer consumes _mini flag variants
form-wrap change is additive: existing callers without the new flag render the same markup as before
Bring documentation in sync with the removal of the BB editor, the addition of Toast UI as the primary content editor, and the new theme hook architecture. Update admin info texts to remove outdated BB editor references.
Core changes:
- docs/EDITORS.md:
- Remove bbcode/ from the plugin directory tree
- Update manifest.json example to reflect Toast UI (id, label, driver, formats)
- Extend formats field description to include markdown as a valid value
- docs/TEMPLATES.md:
- Remove outdated note about legacy rendering and removed runtime files
- Add templates/<theme>/index.php to the theme directory structure listing
Add full Theme Hooks section: purpose, loading mechanism, hook function contracts (getThemeHeadVars, getThemeFootVars, getAdminHeadVars), usage rules, and standard implementation direction
- admin/info/config/ (de.html, ru.md, uk.html):
- Replace BB editor editor list with current editors (ToastUI, TinyMCE, CKEditor)
- Update _CLICABLEINFO hint to describe hyperlink conversion as editor-neutral
- admin/info/uploads/ (de.html, ru.md, uk.html):
- Replace references to BB Editor with editor-neutral wording in all three locales
- admin/info/messages/ru.md, admin/info/newsletter/ru.md:
- Replace «BB-редактор» references with neutral «редактор» wording
- README.md:
- Remove bbcode from the list of bundled editor drivers
- New docs files:
- docs/TODO.md: current open task list for the project
- docs/admin-layout-demo.html: static HTML prototype of the admin layout
- docs/admin-layout-demo-2.html: alternate admin layout prototype variant
Benefits:
- Docs accurately reflect the active plugin set and theme hook contract
- Admin info texts no longer reference the removed BB editor
- Theme hook documentation provides a stable reference for custom theme authors
Technical notes:
- admin/info files use locale-specific markup (BB-style for .html, Markdown for .md)
- TEMPLATES.md hook rules section covers both do and do-not patterns
Update the admin theme visuals: a larger logo image replaces the old one, the toolbar becomes a flex row, and the admin footer gains a SLAED home link rendered through the standard link fragment.
Core changes:
- templates/admin/images/slaedcms.png:
- Replace 169×51 logo with a 256×73 higher-resolution version
- templates/admin/images/000slaedcms.png:
- Add the previous 169×51 logo as a preserved alternate (original dimensions)
- templates/admin/assets/css/new.css:
- Update .sl-admin-login-header height to 104px (was 82px) at all breakpoints
- Update .sl-admin-login-header h1 a to 256×73 with background-size
- Update .sl-admin-login-shell .sl-admin-brand height to match
- templates/admin/assets/css/theme.css:
- Update .header h1 a to 256×73 logo with background-size
- Update .sl-admin-brand and .sl-admin-toolbar height to 90px (was 72px)
- Set .sl-admin-toolbar to display:flex + align-items:center
- Add .footer span a.sl-slaed-home { right: 62px } positioning rule
- Add .footer span a.sl-slaed-home:before { content: "\f588" } icon
- templates/admin/fragments/link.html:
- Add is_top_hidden flag support: appends thide CSS class when set
- templates/admin/partials/foot-controls.html:
- Render brand_link via the link fragment when present (before the top link)
- core/system.php:
renderFootControls(): add $withSlaedLink = false parameter; when true, inject a brand_link array with href=//slaed.net and class=sl-slaed-home
- setFoot() admin path: pass true to renderFootControls() to show the link
Remove the legacy preview() compatibility wrapper (was unused after getTplBbEditor removal; getTplPreviewContent() is the direct call target)
Benefits:
- Admin logo is crisp on high-DPI screens
- Footer brand link uses the existing link fragment — no custom HTML
- thide class is now driven by template data, not hardcoded conditionals
Technical notes:
- is_top_hidden in link.html appends thide alongside any other class values
- The brand link uses is_top_hidden: true so it renders as an icon-only link
- preview() removal is safe: getTplPreviewContent() is the direct API
Rewrite getFallbackImage() to resolve the placeholder image using the active theme name instead of iterating a static list of hard-coded candidate paths. Add missing no-image.png assets for the default and simple themes.
Core changes:
- core/classes/parser.php — getFallbackImage():
- Use getTheme() or $conf['theme'] to determine the active theme at runtime
- Build a deduplicated list of candidate themes (active → default → lite → admin)
- Look for templates/<theme>/images/misc/no-image.png in each candidate
- Use BASE_DIR for absolute path checks instead of $this->getRootPath()
- Fall back to an embedded 1×1 transparent GIF if no file is found
- New image assets:
- templates/default/images/misc/no-image.png (951 bytes)
- templates/simple/images/misc/no-image.png (951 bytes)
Benefits:
- Fallback image resolution honours the active theme without a fixed path list
- New themes are resolved automatically without editing the candidate array
- BASE_DIR usage aligns with the rest of the codebase path handling
Technical notes:
- Static cache ($fallback) preserved: resolution runs once per request
- Embedded GIF fallback remains as last resort when no file exists on disk
templates/admin and templates/lite already had no-image.png; only default and simple were missing the asset