Commit Graph
27 Commits
Author SHA1 Message Date
Belle Aerni 16c929f5e7 Automatically select locale based on browser info (#1109)
* Detect browser locale

* Workaround for two char locales being detected
2023-04-16 19:28:03 +02:00
Shamshid 185466f374 Major and minor design improvements to modules (#999) 2023-03-28 07:46:59 +01:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
Belle Aerni fc76549163 Remove the settings "routes" (#984) 2023-03-24 00:12:39 -07:00
Adam de0bed20ec Replace various HTTP client implementations with symfony/http-client (#861)
* Replace guzzlehttp/guzzle with symfony/http-client

Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.

* Replace Box\Curl library and native cURL with symfony/http-client

Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.

* Remove obsolete functionality from Spamchecker module

Remove obsolete functions from Spamchecker module which depended upon cURL.
2023-03-15 11:11:28 +01:00
Belle Aerni 988169992d Fix loading SVG module icons (#881)
This fixes loading SVG module icons on case sensitive file systems
2023-03-02 14:47:56 +01:00
imgbot[bot]andImgBotApp 4d91f387d6 [ImgBot] Optimize images (#880)
*Total -- 84.07kb -> 66.40kb (21.02%)

/src/themes/huraga/assets/img/template_logo.png -- 20.97kb -> 9.30kb (55.66%)
/src/themes/huraga/assets/img/loader.gif -- 8.92kb -> 6.78kb (23.91%)
/src/themes/admin_default/images/patbg2.png -- 1.08kb -> 0.91kb (15.32%)
/src/themes/huraga/assets/img/logo.png -- 25.87kb -> 22.49kb (13.05%)
/src/themes/admin_default/assets/icons/arrow-up.svg -- 0.41kb -> 0.39kb (4.57%)
/src/themes/huraga/assets/img/fb_wallet.svg -- 1.35kb -> 1.30kb (3.77%)
/src/themes/admin_default/assets/icons/copy.svg -- 0.41kb -> 0.39kb (3.61%)
/src/themes/admin_default/assets/icons/heart.svg -- 0.38kb -> 0.36kb (2.86%)
/src/themes/admin_default/assets/icons/plus.svg -- 0.22kb -> 0.21kb (2.68%)
/src/modules/Orderbutton/assets/img/assets/loaders/loader2.gif -- 4.08kb -> 4.02kb (1.53%)
/src/themes/huraga/assets/img/logo.svg -- 3.58kb -> 3.53kb (1.42%)
/src/themes/huraga/assets/img/logo_white.svg -- 3.72kb -> 3.67kb (1.36%)
/src/modules/Wysiwyg/icon.svg -- 0.15kb -> 0.15kb (1.29%)
/src/modules/Dashboard/icon.svg -- 0.15kb -> 0.15kb (1.28%)
/src/modules/Orderbutton/assets/img/assets/loaders/loader1.gif -- 0.59kb -> 0.59kb (0.99%)
/src/modules/Spamchecker/icon.svg -- 0.23kb -> 0.22kb (0.87%)
/src/modules/Massmailer/icon.svg -- 0.24kb -> 0.23kb (0.83%)
/src/modules/Email/icon.svg -- 0.24kb -> 0.23kb (0.83%)
/src/modules/Embed/icon.svg -- 0.25kb -> 0.24kb (0.8%)
/src/modules/Redirect/icon.svg -- 0.26kb -> 0.25kb (0.76%)
/src/modules/Currency/icon.svg -- 0.27kb -> 0.27kb (0.71%)
/src/modules/Branding/icon.svg -- 0.28kb -> 0.28kb (0.7%)
/src/modules/Formbuilder/icon.svg -- 0.29kb -> 0.29kb (0.67%)
/src/modules/News/icon.svg -- 0.30kb -> 0.30kb (0.66%)
/src/modules/Invoice/icon.svg -- 0.31kb -> 0.31kb (0.62%)
/src/modules/Staff/icon.svg -- 0.38kb -> 0.37kb (0.52%)
/src/modules/Servicemembership/icon.svg -- 0.38kb -> 0.38kb (0.51%)
/src/modules/Custompages/icon.svg -- 0.40kb -> 0.40kb (0.49%)
/src/modules/Orderbutton/icon.svg -- 0.40kb -> 0.40kb (0.48%)
/src/modules/Example/icon.svg -- 0.42kb -> 0.42kb (0.47%)
/src/modules/Notification/icon.svg -- 0.42kb -> 0.42kb (0.46%)
/src/modules/Seo/icon.svg -- 0.48kb -> 0.47kb (0.41%)
/src/modules/Order/icon.svg -- 0.49kb -> 0.49kb (0.4%)
/src/modules/Queue/icon.svg -- 0.50kb -> 0.50kb (0.39%)
/src/modules/Cron/icon.svg -- 0.51kb -> 0.51kb (0.38%)
/src/modules/Kb/icon.svg -- 0.52kb -> 0.51kb (0.38%)
/src/modules/Support/icon.svg -- 0.63kb -> 0.63kb (0.31%)
/src/modules/Theme/icon.svg -- 0.64kb -> 0.64kb (0.3%)
/src/modules/Client/icon.svg -- 0.66kb -> 0.66kb (0.3%)
/src/modules/Cookieconsent/icon.svg -- 0.71kb -> 0.71kb (0.27%)
/src/modules/System/icon.svg -- 0.98kb -> 0.98kb (0.2%)
/src/modules/Paidsupport/icon.svg -- 1.02kb -> 1.02kb (0.19%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-03-01 23:35:16 -08:00
ShamshidandYağızhan cdca4b7e50 Add/replace modules icon and update manifest (#872)
* add/replace modules icon and update manifest entry

* update modules manifest homepage_url

* include svg to set color via css

* +Attribution

---------

Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2023-03-01 19:46:57 -08:00
Adam 91a892c5be Remove remaining Google Fonts (#840)
* Remove remaining Google Fonts

Replaces remaining Google fonts with web safe fonts (resolves #249).

* Restore error page background image

Embed the background inline for the error page.
2023-02-18 15:52:34 -08:00
Shamshid 354c7fbef4 fix listing of dot directory 2023-02-17 08:13:11 +04:00
Belle Aerni 4d7b341e03 Removed / cleaned up deprecated functions (#755)
* Add PHPStan extension for deprecation function usage

* Removed some deprecated functions

* And a few more

* Also remove the deprecated API calls

* Fix references to deprecated API calls

* Oh, and this too
2023-02-01 03:36:02 -08:00
Belle Aerni dcdf1ea83c Make module's settings labels translatable 2023-01-26 15:40:03 -08:00
Belle Aerni d71d445661 Make module labels translatable 2023-01-21 21:38:08 -08:00
Belle Aerni 774f0d5c95 Use Rector to modernize code for PHP 8.0 2023-01-12 00:40:54 -08:00
Reynaldi Arya cca1d12e03 Add Custom Favicon (#674)
* Add Custom Favicon

* Foss Update add Favicon

* foss update
2023-01-09 11:18:42 +01:00
John @ S4 86fed12772 Add ability to return country name without ISO
Adds the option to use {{ lang.name }} in place of {{ lang.title}} to return only the country name without the associated ISO code. 

i.e. 
{{ lang.title }} = Deutsch (de_DE)
{{ lang.name }} = Deutsch
2023-01-09 11:07:41 +02:00
Jaap Marcus b136aa1ede Add backward compatibility 2022-12-19 23:55:49 +01:00
Jaap Marcus 122b63859c Change how we load locale names 2022-12-19 14:05:17 +01:00
Belle Aerni 5c337ce8f6 Cleanly handle a template not being provided 2022-12-09 19:09:56 -08:00
Belle Aerni 5ccf92d0dc Just make the text blue on the settings page 2022-12-08 03:33:28 -08:00
Belle Aerni 8d8350e8c5 Tweak the way the setting menu looks 2022-12-08 01:25:12 -08:00
Belle Aerni 8821d50cff Created a CSRF token system (#526)
* Implement a basic CSRF token system

* Update forms for all modules

* Added to the theme forms

* Create a config option for CSRF prevention

* Slightly rework the filter

* Let's actually use a global var

* Added the token to API hrefs

* Fixup

* Remove old reference

* Added the token to the installer twig globals

* The token isn't actually needed in the installer

* Fix client searching

* Whoops - those need quotes
2022-12-06 18:47:14 +01:00
Yağızhan 78354282f4 Added an "about" tab (#517)
* Fixed typos

* Added an about tab
2022-12-03 20:12:35 +01:00
Yağızhan 59027f6535 Dark variant option for the company logo (#497)
* +dark variant option for the company logo

* Updated content dates

* Fixed the default logo not being picked up

* Tests
2022-12-01 21:08:05 +01:00
Belle Aerni edb163f442 BB_PATH --> PATH 2022-11-28 17:22:51 +03:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00