summaryrefslogtreecommitdiff
path: root/smartyplugins
AgeCommit message (Collapse)AuthorFilesLines
2026-06-06themes: handle unparseable date strings in bit_date_format modifierLester Caine1-3/+10
PHP 8.3+ throws DateMalformedStringException instead of a warning when DateTime::__construct() receives an invalid string (e.g. '---' from corrupted EXIF metadata). The existing empty() guard doesn't catch non-empty garbage values. Wrap the DateTime construction in try/catch and add a strtotime() pre-check on the fallback path so both code paths return '' for invalid input. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05Add istyle=flag for scalable 4:3 SVG flag sizingLester Caine1-3/+3
istyle=flag scales height via isize (small=16, medium=24, large=32) and derives width as (height/3)*4. istyle is already in the cache hash so no further cache key changes needed. Also reverts width/height from $ommit so they remain available as pass-through HTML attributes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05Support explicit width/height params in biticon SVG outputLester Caine1-3/+4
Add width/height to omit list so they don't double-output; SVG size code now uses them if provided, falling back to svgSizes[isize] for square icons. Allows flag icons to be rendered at 32×24 (4:3) rather than forced square. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05Add SVG to biticon_first_match default extension search orderLester Caine1-1/+1
SVG now checked before PNG/GIF/JPG for all package icon lookups, enabling SVG flag files (and future SVG package icons) to be served without an explicit extension override in every {biticon} call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04Switch iconset to SVG-only — drop small/medium/large PNG directoriesLester Caine1-12/+3
All iconset icons (ipackage=icons) now served from scalable/ as SVGs. ipath (/small/, /medium/, /large/) is preserved only for cache key differentiation and SVG width/height calculation; no PNG directory lookups are performed. Four icons remapped to SVG equivalents that exist in tango/scalable/: dialog-cancel -> process-stop (newsletters: unsubscribed) emblem-downloads -> network-receive (fisheye: download file) emblem-shared -> emblem-symbolic-link (boards: moved topic) mail-mark-important -> emblem-important (messages: flagged) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04Fix PHP-array icon names missed by template conversionLester Caine2-4/+4
Conversion script matched iname="..." template syntax but not PHP array 'iname'=>'...' syntax. Three remaining cases: - function.bithelp.php: icon-cogs -> preferences-system, icon-question-sign -> help-browser - function.smartlink.php: icon-sort-up/down -> view-sort-ascending/descending Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04biticon: respect site_icon_size for menu and quicktag locationsLester Caine1-8/+4
ilocation=menu and ilocation=quicktag were hardcoded to small/, ignoring the site_icon_size config. Now all locations use the config value (or explicit isize= if provided), so changing Default Icon Size in Theme Settings affects the entire site uniformly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04Restore smarty_function_booticon name in function.booticon.phpLester Caine1-1/+1
Conversion script accidentally renamed it to smarty_function_biticon, causing a fatal redeclaration clash with function.biticon.php. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04Convert {booticon} to {biticon} — freedesktop/tango icon names throughoutLester Caine3-14/+13
Replace all {booticon iname="icon-*"} and {booticon iname="fa-*"} calls with {biticon ipackage="icons" iname="<freedesktop-name>"} using the tango iconset. Mapping covers ~70 distinct old names to tango equivalents (edit-delete, document-properties, go-next, lock, internet-mail, etc.). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04Icon system: switch from silk-sprite/colourstrap to Tango3 freedesktop ↵Lester Caine1-12/+25
iconset with SVG support - function.biticon.php: look in util/iconsets/ (moved from config/); add SVG fallback via scalable/ directory; biticon_first_match accepts optional extensions param; isize (small/medium/large) mapped to 16/24/32px for SVG width+height; isize added to ommit list so it never leaks as an HTML attribute - admin_themes_inc.php: iconset path updated to UTIL_PKG_PATH; biticon_sizes expanded to small (16px) / medium (24px) / large (32px) - admin_themes_manager.php: iconset path updated to UTIL_PKG_PATH - admin_themes_manager.tpl: replace stale Gnome/KDE links with Tango3/freedesktop refs - icon_browser.php: icon_fetcher now uses scalable/ SVGs as primary name source, supplements with large/ PNGs; all iconset paths updated to UTIL_PKG_PATH - icon_browser.tpl: three clean size columns (small/medium/large) using isize= instead of sloppy iname path embedding; help text updated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18Move from jscalendar to browser based date and time pickerLester Caine1-95/+27
2026-05-18Trim redundent use of legacy codeLester Caine1-5/+0
2026-05-18Remove legacy codeLester Caine2-86/+0
2026-05-16Extend BitweaverExtension to allow a different route to use smarty plugins ↵Lester Caine1-0/+2
direct from php
2026-05-16Fix empty string deprecated warningLester Caine1-0/+7
2026-05-16Filter textarea text to allow {code} wrapper to work properly with ckeditorLester Caine1-0/+9
2026-05-16Further improvements to bitweaver smarty extensionLester Caine2-0/+84
2026-05-16Tidy namespace errorsLester Caine1-2/+5
2026-05-16Drop legacy smarty elementsLester Caine3-253/+0
2026-05-15Namespace fixesLester Caine12-16/+26
2026-05-15Relocate JavaScriptPacker where it is usedLester Caine1-1/+1
2026-05-14php-cs-fixer tidies to php8.5 standardsLester Caine80-728/+726
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16PHP8.4 style tweakslsces1-1/+3
2026-04-06Tidying links to bitweaver.org to avoid redirect from httplsces8-8/+8
2026-02-02additional smarty plugins massaged for Smarty5lsces2-131/+2
2025-09-04Actually I think this is now retired by the BitweaverExtension.lsces1-2/+5
2025-08-27smarty plugins massaged for Smarty5lsces87-704/+1407
2025-08-27Add Smarty5 style block functionslsces12-0/+686
2025-08-27Trim old style block functionslsces12-532/+0
2025-08-23Add session based BitFeedback mechanism for passing messages between pageloadspiderr1-1/+3
2025-06-15fix strings without timezones using strtotime in cal_date_formatspiderr1-4/+8
2025-05-29constant defined check in smartlinkspider@dav1-1/+4
2025-05-24fix ifile if empty in {form}spiderr1-2/+3
2025-05-24clean up poll plugin (needs to be moved to POLLS_PKG)spiderr1-2/+2
2025-05-24is_string check in biticon; empty/is_numeric in mAppMenu_sortspiderr1-1/+1
2024-05-02add class attribute support for formhelpspiderr1-2/+5
2023-11-19error handling to telephone_e164spiderr1-17/+24
2023-11-19add modifier.telephone_e164 for smartyspiderr1-0/+360
2023-10-21add form-group to block.forminputspiderr1-1/+1
2022-08-08add ' fal ' to booticonspiderr1-1/+1
2022-08-01log missing inamespiderr1-0/+3
2022-07-30migrate from font-awesome 3.2.1 icon- to 6.1.2 fa-spiderr3-7/+20
2022-06-01add fieldset smarty pluginspiderr1-0/+30
2022-01-06add booticon to smartlink ignore listspiderr1-1/+1
2021-12-27fix lookupHash in displaynamespiderr1-2/+2
2021-02-06fix include_wiki_page_content pluginspiderr1-12/+6
2021-02-02move _inc and _lib to includes/ and use PKG_INCLUDE_PATH constantsmodela bitweaver3-3/+3
2021-02-01numPages empty check; SCRIPT_NAME fix in paginationmodela bitweaver1-9/+10
2021-01-31PHP7 clean up dual static + object use of parseData, and create ↵spiderr1-1/+2
->getParsedData & ::filterDataHash
2021-01-25empty checkout on ajaxIdspiderr1-1/+3