Added option to rename footer pages

Users can now edit the names of footer pages. This new category on the config page replaces the previous section in the Advanced Config.
This commit is contained in:
Julian Prieber 2023-01-09 18:07:30 +01:00
parent fcd0fd4a00
commit dd68dee129
9 changed files with 233 additions and 146 deletions

13
.env
View File

@ -97,4 +97,15 @@ ENABLE_SOCIAL_LOGIN=false
USE_THEME_PREVIEW_IFRAME=true
#Redirects all pages to https
FORCE_ROUTE_HTTPS=false
FORCE_ROUTE_HTTPS=false#Redirects all pages to https=
DISPLAY_FOOTER_HOME=true
DISPLAY_FOOTER_TERMS=true
DISPLAY_FOOTER_PRIVACY=true
DISPLAY_FOOTER_CONTACT=true
TITLE_FOOTER_HOME="Home"
TITLE_FOOTER_TERMS="Terms"
TITLE_FOOTER_PRIVACY="Privacy"
TITLE_FOOTER_CONTACT="Contact"
HOME_FOOTER_LINK=""

258
composer.lock generated
View File

@ -2776,16 +2776,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.64.1",
"version": "2.65.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "f2e59963f4c4f4fdfb9fcfd752e8d2e2b79a4e2c"
"reference": "09acf64155c16dc6f580f36569ae89344e9734a3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f2e59963f4c4f4fdfb9fcfd752e8d2e2b79a4e2c",
"reference": "f2e59963f4c4f4fdfb9fcfd752e8d2e2b79a4e2c",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/09acf64155c16dc6f580f36569ae89344e9734a3",
"reference": "09acf64155c16dc6f580f36569ae89344e9734a3",
"shasum": ""
},
"require": {
@ -2874,7 +2874,7 @@
"type": "tidelift"
}
],
"time": "2023-01-01T23:17:36+00:00"
"time": "2023-01-06T15:55:01+00:00"
},
{
"name": "nette/schema",
@ -3265,16 +3265,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.9.2",
"version": "1.9.8",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "d6fdf01c53978b6429f1393ba4afeca39cc68afa"
"reference": "45411d15bf85a33b4a8ee9b75a6e82998c9adb97"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/d6fdf01c53978b6429f1393ba4afeca39cc68afa",
"reference": "d6fdf01c53978b6429f1393ba4afeca39cc68afa",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/45411d15bf85a33b4a8ee9b75a6e82998c9adb97",
"reference": "45411d15bf85a33b4a8ee9b75a6e82998c9adb97",
"shasum": ""
},
"require": {
@ -3304,7 +3304,7 @@
],
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.9.2"
"source": "https://github.com/phpstan/phpstan/tree/1.9.8"
},
"funding": [
{
@ -3320,25 +3320,25 @@
"type": "tidelift"
}
],
"time": "2022-11-10T09:56:11+00:00"
"time": "2023-01-08T21:26:18+00:00"
},
{
"name": "phpstan/phpstan-phpunit",
"version": "1.2.2",
"version": "1.3.3",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-phpunit.git",
"reference": "dea1f87344c6964c607d9076dee42d891f3923f0"
"reference": "54a24bd23e9e80ee918cdc24f909d376c2e273f7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/dea1f87344c6964c607d9076dee42d891f3923f0",
"reference": "dea1f87344c6964c607d9076dee42d891f3923f0",
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/54a24bd23e9e80ee918cdc24f909d376c2e273f7",
"reference": "54a24bd23e9e80ee918cdc24f909d376c2e273f7",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.8.11"
"phpstan/phpstan": "^1.9.3"
},
"conflict": {
"phpunit/phpunit": "<7.0"
@ -3370,9 +3370,9 @@
"description": "PHPUnit extensions and rules for PHPStan",
"support": {
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
"source": "https://github.com/phpstan/phpstan-phpunit/tree/1.2.2"
"source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.3"
},
"time": "2022-10-28T10:23:07+00:00"
"time": "2022-12-21T15:25:00+00:00"
},
{
"name": "psr/cache",
@ -3784,16 +3784,16 @@
},
{
"name": "psy/psysh",
"version": "v0.11.9",
"version": "v0.11.10",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "1acec99d6684a54ff92f8b548a4e41b566963778"
"reference": "e9eadffbed9c9deb5426fd107faae0452bf20a36"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/1acec99d6684a54ff92f8b548a4e41b566963778",
"reference": "1acec99d6684a54ff92f8b548a4e41b566963778",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/e9eadffbed9c9deb5426fd107faae0452bf20a36",
"reference": "e9eadffbed9c9deb5426fd107faae0452bf20a36",
"shasum": ""
},
"require": {
@ -3854,9 +3854,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.11.9"
"source": "https://github.com/bobthecow/psysh/tree/v0.11.10"
},
"time": "2022-11-06T15:29:46+00:00"
"time": "2022-12-23T17:47:18+00:00"
},
{
"name": "ralouphie/getallheaders",
@ -4533,21 +4533,20 @@
},
{
"name": "symfony/css-selector",
"version": "v5.4.17",
"version": "v6.0.17",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "052ef49b660f9ad2a3adb311c555c9bc11ba61f4"
"reference": "3e526b732295b5d4c16c38d557b74ba8498a92b4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/052ef49b660f9ad2a3adb311c555c9bc11ba61f4",
"reference": "052ef49b660f9ad2a3adb311c555c9bc11ba61f4",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/3e526b732295b5d4c16c38d557b74ba8498a92b4",
"reference": "3e526b732295b5d4c16c38d557b74ba8498a92b4",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/polyfill-php80": "^1.16"
"php": ">=8.0.2"
},
"type": "library",
"autoload": {
@ -4579,7 +4578,7 @@
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/css-selector/tree/v5.4.17"
"source": "https://github.com/symfony/css-selector/tree/v6.0.17"
},
"funding": [
{
@ -4595,29 +4594,29 @@
"type": "tidelift"
}
],
"time": "2022-12-23T11:40:44+00:00"
"time": "2022-12-28T14:21:34+00:00"
},
{
"name": "symfony/deprecation-contracts",
"version": "v2.5.2",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
"reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
"reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
"reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
"reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
"shasum": ""
},
"require": {
"php": ">=7.1"
"php": ">=8.0.2"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "2.5-dev"
"dev-main": "3.0-dev"
},
"thanks": {
"name": "symfony/contracts",
@ -4646,7 +4645,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2"
},
"funding": [
{
@ -4662,7 +4661,7 @@
"type": "tidelift"
}
],
"time": "2022-01-02T09:53:40+00:00"
"time": "2022-01-02T09:55:41+00:00"
},
{
"name": "symfony/error-handler",
@ -4737,40 +4736,38 @@
},
{
"name": "symfony/event-dispatcher",
"version": "v5.4.17",
"version": "v6.0.17",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "8e18a9d559eb8ebc2220588f1faa726a2fcd31c9"
"reference": "42b3985aa07837c9df36013ec5b965e9f2d480bc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e18a9d559eb8ebc2220588f1faa726a2fcd31c9",
"reference": "8e18a9d559eb8ebc2220588f1faa726a2fcd31c9",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/42b3985aa07837c9df36013ec5b965e9f2d480bc",
"reference": "42b3985aa07837c9df36013ec5b965e9f2d480bc",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/event-dispatcher-contracts": "^2|^3",
"symfony/polyfill-php80": "^1.16"
"php": ">=8.0.2",
"symfony/event-dispatcher-contracts": "^2|^3"
},
"conflict": {
"symfony/dependency-injection": "<4.4"
"symfony/dependency-injection": "<5.4"
},
"provide": {
"psr/event-dispatcher-implementation": "1.0",
"symfony/event-dispatcher-implementation": "2.0"
"symfony/event-dispatcher-implementation": "2.0|3.0"
},
"require-dev": {
"psr/log": "^1|^2|^3",
"symfony/config": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
"symfony/error-handler": "^4.4|^5.0|^6.0",
"symfony/expression-language": "^4.4|^5.0|^6.0",
"symfony/http-foundation": "^4.4|^5.0|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/error-handler": "^5.4|^6.0",
"symfony/expression-language": "^5.4|^6.0",
"symfony/http-foundation": "^5.4|^6.0",
"symfony/service-contracts": "^1.1|^2|^3",
"symfony/stopwatch": "^4.4|^5.0|^6.0"
"symfony/stopwatch": "^5.4|^6.0"
},
"suggest": {
"symfony/dependency-injection": "",
@ -4802,7 +4799,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v5.4.17"
"source": "https://github.com/symfony/event-dispatcher/tree/v6.0.17"
},
"funding": [
{
@ -4818,24 +4815,24 @@
"type": "tidelift"
}
],
"time": "2022-12-12T15:54:21+00:00"
"time": "2022-12-14T15:52:41+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
"version": "v2.5.2",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
"reference": "f98b54df6ad059855739db6fcbc2d36995283fe1"
"reference": "7bc61cc2db649b4637d331240c5346dcc7708051"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1",
"reference": "f98b54df6ad059855739db6fcbc2d36995283fe1",
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051",
"reference": "7bc61cc2db649b4637d331240c5346dcc7708051",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"php": ">=8.0.2",
"psr/event-dispatcher": "^1"
},
"suggest": {
@ -4844,7 +4841,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "2.5-dev"
"dev-main": "3.0-dev"
},
"thanks": {
"name": "symfony/contracts",
@ -4881,7 +4878,7 @@
"standards"
],
"support": {
"source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2"
"source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.2"
},
"funding": [
{
@ -4897,7 +4894,7 @@
"type": "tidelift"
}
],
"time": "2022-01-02T09:53:40+00:00"
"time": "2022-01-02T09:55:41+00:00"
},
{
"name": "symfony/finder",
@ -4964,16 +4961,16 @@
},
{
"name": "symfony/http-client",
"version": "v5.4.15",
"version": "v5.4.17",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client.git",
"reference": "8f29b0f06c9ff48c8431e78eb90c8bd6f82cb12b"
"reference": "772129f800fc0bfaa6bd40c40934d544f0957d30"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-client/zipball/8f29b0f06c9ff48c8431e78eb90c8bd6f82cb12b",
"reference": "8f29b0f06c9ff48c8431e78eb90c8bd6f82cb12b",
"url": "https://api.github.com/repos/symfony/http-client/zipball/772129f800fc0bfaa6bd40c40934d544f0957d30",
"reference": "772129f800fc0bfaa6bd40c40934d544f0957d30",
"shasum": ""
},
"require": {
@ -5031,7 +5028,7 @@
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-client/tree/v5.4.15"
"source": "https://github.com/symfony/http-client/tree/v5.4.17"
},
"funding": [
{
@ -5047,7 +5044,7 @@
"type": "tidelift"
}
],
"time": "2022-10-25T16:22:13+00:00"
"time": "2022-12-13T11:07:37+00:00"
},
{
"name": "symfony/http-client-contracts",
@ -6453,34 +6450,33 @@
},
{
"name": "symfony/string",
"version": "v5.4.17",
"version": "v6.0.17",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "55733a8664b8853b003e70251c58bc8cb2d82a6b"
"reference": "3f57003dd8a67ed76870cc03092f8501db7788d9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/55733a8664b8853b003e70251c58bc8cb2d82a6b",
"reference": "55733a8664b8853b003e70251c58bc8cb2d82a6b",
"url": "https://api.github.com/repos/symfony/string/zipball/3f57003dd8a67ed76870cc03092f8501db7788d9",
"reference": "3f57003dd8a67ed76870cc03092f8501db7788d9",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"php": ">=8.0.2",
"symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-intl-grapheme": "~1.0",
"symfony/polyfill-intl-normalizer": "~1.0",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "~1.15"
"symfony/polyfill-mbstring": "~1.0"
},
"conflict": {
"symfony/translation-contracts": ">=3.0"
"symfony/translation-contracts": "<2.0"
},
"require-dev": {
"symfony/error-handler": "^4.4|^5.0|^6.0",
"symfony/http-client": "^4.4|^5.0|^6.0",
"symfony/translation-contracts": "^1.1|^2",
"symfony/var-exporter": "^4.4|^5.0|^6.0"
"symfony/error-handler": "^5.4|^6.0",
"symfony/http-client": "^5.4|^6.0",
"symfony/translation-contracts": "^2.0|^3.0",
"symfony/var-exporter": "^5.4|^6.0"
},
"type": "library",
"autoload": {
@ -6519,7 +6515,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v5.4.17"
"source": "https://github.com/symfony/string/tree/v6.0.17"
},
"funding": [
{
@ -6535,52 +6531,50 @@
"type": "tidelift"
}
],
"time": "2022-12-12T15:54:21+00:00"
"time": "2022-12-14T15:52:41+00:00"
},
{
"name": "symfony/translation",
"version": "v5.4.14",
"version": "v6.0.14",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "f0ed07675863aa6e3939df8b1bc879450b585cab"
"reference": "6f99eb179aee4652c0a7cd7c11f2a870d904330c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/f0ed07675863aa6e3939df8b1bc879450b585cab",
"reference": "f0ed07675863aa6e3939df8b1bc879450b585cab",
"url": "https://api.github.com/repos/symfony/translation/zipball/6f99eb179aee4652c0a7cd7c11f2a870d904330c",
"reference": "6f99eb179aee4652c0a7cd7c11f2a870d904330c",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"php": ">=8.0.2",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "^1.16",
"symfony/translation-contracts": "^2.3"
"symfony/translation-contracts": "^2.3|^3.0"
},
"conflict": {
"symfony/config": "<4.4",
"symfony/console": "<5.3",
"symfony/dependency-injection": "<5.0",
"symfony/http-kernel": "<5.0",
"symfony/twig-bundle": "<5.0",
"symfony/yaml": "<4.4"
"symfony/config": "<5.4",
"symfony/console": "<5.4",
"symfony/dependency-injection": "<5.4",
"symfony/http-kernel": "<5.4",
"symfony/twig-bundle": "<5.4",
"symfony/yaml": "<5.4"
},
"provide": {
"symfony/translation-implementation": "2.3"
"symfony/translation-implementation": "2.3|3.0"
},
"require-dev": {
"psr/log": "^1|^2|^3",
"symfony/config": "^4.4|^5.0|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/console": "^5.4|^6.0",
"symfony/dependency-injection": "^5.0|^6.0",
"symfony/finder": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/finder": "^5.4|^6.0",
"symfony/http-client-contracts": "^1.1|^2.0|^3.0",
"symfony/http-kernel": "^5.0|^6.0",
"symfony/intl": "^4.4|^5.0|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/intl": "^5.4|^6.0",
"symfony/polyfill-intl-icu": "^1.21",
"symfony/service-contracts": "^1.1.2|^2|^3",
"symfony/yaml": "^4.4|^5.0|^6.0"
"symfony/yaml": "^5.4|^6.0"
},
"suggest": {
"psr/log-implementation": "To use logging capability in translator",
@ -6616,7 +6610,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v5.4.14"
"source": "https://github.com/symfony/translation/tree/v6.0.14"
},
"funding": [
{
@ -6632,24 +6626,24 @@
"type": "tidelift"
}
],
"time": "2022-10-07T08:01:20+00:00"
"time": "2022-10-07T08:02:12+00:00"
},
{
"name": "symfony/translation-contracts",
"version": "v2.5.2",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
"reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe"
"reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe",
"reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/acbfbb274e730e5a0236f619b6168d9dedb3e282",
"reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282",
"shasum": ""
},
"require": {
"php": ">=7.2.5"
"php": ">=8.0.2"
},
"suggest": {
"symfony/translation-implementation": ""
@ -6657,7 +6651,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "2.5-dev"
"dev-main": "3.0-dev"
},
"thanks": {
"name": "symfony/contracts",
@ -6694,7 +6688,7 @@
"standards"
],
"support": {
"source": "https://github.com/symfony/translation-contracts/tree/v2.5.2"
"source": "https://github.com/symfony/translation-contracts/tree/v3.0.2"
},
"funding": [
{
@ -6710,7 +6704,7 @@
"type": "tidelift"
}
],
"time": "2022-06-27T16:58:25+00:00"
"time": "2022-06-27T17:10:44+00:00"
},
{
"name": "symfony/var-dumper",
@ -7371,30 +7365,30 @@
},
{
"name": "doctrine/instantiator",
"version": "1.4.1",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "10dcfce151b967d20fde1b34ae6640712c3891bc"
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc",
"reference": "10dcfce151b967d20fde1b34ae6640712c3891bc",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^9",
"doctrine/coding-standard": "^9 || ^11",
"ext-pdo": "*",
"ext-phar": "*",
"phpbench/phpbench": "^0.16 || ^1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-phpunit": "^1",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"vimeo/psalm": "^4.22"
"vimeo/psalm": "^4.30 || ^5.4"
},
"type": "library",
"autoload": {
@ -7421,7 +7415,7 @@
],
"support": {
"issues": "https://github.com/doctrine/instantiator/issues",
"source": "https://github.com/doctrine/instantiator/tree/1.4.1"
"source": "https://github.com/doctrine/instantiator/tree/1.5.0"
},
"funding": [
{
@ -7437,7 +7431,7 @@
"type": "tidelift"
}
],
"time": "2022-03-03T08:28:38+00:00"
"time": "2022-12-30T00:15:36+00:00"
},
{
"name": "facade/flare-client-php",
@ -8381,16 +8375,16 @@
},
{
"name": "phpunit/php-code-coverage",
"version": "9.2.19",
"version": "9.2.23",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559"
"reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559",
"reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c",
"reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c",
"shasum": ""
},
"require": {
@ -8446,7 +8440,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.23"
},
"funding": [
{
@ -8454,7 +8448,7 @@
"type": "github"
}
],
"time": "2022-11-18T07:47:47+00:00"
"time": "2022-12-28T12:41:10+00:00"
},
{
"name": "phpunit/php-file-iterator",
@ -9823,5 +9817,5 @@
"php": "^7.3|^8.0"
},
"platform-dev": [],
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.2.0"
}

View File

@ -166,5 +166,51 @@
{"value": "FORCE_ROUTE_HTTPS",
"title": "Redirect all pages to HTTPS",
"description": "This option will break your setup when using a reverse proxy."
},
{"value": "DISPLAY_FOOTER_HOME",
"title": "Home footer link",
"description": "Enable Home footer link."
},
{"value": "DISPLAY_FOOTER_TERMS",
"title": "Terms footer link",
"description": "Enable Terms footer link."
},
{"value": "DISPLAY_FOOTER_PRIVACY",
"title": "Privacy footer link",
"description": "Enable Privacy link."
},
{"value": "DISPLAY_FOOTER_CONTACT",
"title": "Contact footer link",
"description": "Enable Contact link."
},
{"value": "TITLE_FOOTER_HOME",
"title": "<div style=\"margin-top:-40px\"></div>",
"description": "Title of home footer link."
},
{"value": "TITLE_FOOTER_TERMS",
"title": "<div style=\"margin-top:-40px\"></div>",
"description": "Title of terms footer link."
},
{"value": "TITLE_FOOTER_PRIVACY",
"title": "<div style=\"margin-top:-40px\"></div>",
"description": "Title of privacy link."
},
{"value": "TITLE_FOOTER_CONTACT",
"title": "<div style=\"margin-top:-40px\"></div>",
"description": "Title of contact link."
},
{"value": "HOME_FOOTER_LINK",
"title": "<div style=\"margin-top:-40px\">Home footer link URL</div>",
"description": "Enter any URL to redirect your home link URL.<br>Leave empty to use the default link."
}
]

View File

@ -378,6 +378,40 @@ document.getElementById("MAINTENANCE_MODE-form").addEventListener("change", func
{{-- end SMTP settings --}}
{{-- start footer settings --}}
<a name="Footer"><h2 class="ch2">Footer links</h2></a>
{{toggle('DISPLAY_FOOTER_HOME')}}
{{text('TITLE_FOOTER_HOME')}}
@php
$configNames = json_decode(file_get_contents(base_path('config/config-legends.json')));
$configValue = str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK'));
@endphp
<form id="HOME_FOOTER_LINK-form" action="{{route('editConfig')}}" enctype="multipart/form-data" method="post">
<div class="form-group col-lg-8">
<input value="text" name="type" style="display:none;" type="text" required>
<input value="HOME_FOOTER_LINK" name="entry" style="display:none;" type="text" required>
<h5 style="margin-top:50px">@php foreach($configNames as $obj){if($obj->value == 'HOME_FOOTER_LINK'){echo $obj->title;}}; @endphp</h5>
<p class="text-muted">@php foreach($configNames as $obj){if($obj->value == 'HOME_FOOTER_LINK'){echo $obj->description;}}; @endphp</p>
<div class="input-group">
<input type="url" style="border-radius:.25rem;max-width:600px" class="form-control" name="value" value="{{$configValue}}">
<input type="hidden" name="_token" value="{{csrf_token()}}">
<button style="position:relative;bottom:17px;" type="submit" class="mt-3 ml-3 btn btn-info">Apply</button>
</div></div>
</form>
{{toggle('DISPLAY_FOOTER_TERMS')}}
{{text('TITLE_FOOTER_TERMS')}}
{{toggle('DISPLAY_FOOTER_PRIVACY')}}
{{text('TITLE_FOOTER_PRIVACY')}}
{{toggle('DISPLAY_FOOTER_CONTACT')}}
{{text('TITLE_FOOTER_CONTACT')}}
{{-- end footer settings --}}
{{-- start debug settings --}}
<a name="Debug"><h2 class="ch2">Debug</h2></a>
<form id="debug-form" action="{{route('editConfig')}}" enctype="multipart/form-data" method="post">

View File

@ -1,10 +1,10 @@
<div class="container">
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
@if(env('DISPLAY_FOOTER') === true)
@if(config('advanced-config.display_link_home') != 'false')<a class="footer-hover spacing" @if(config('advanced-config.custom_link_home') != '')href="{{ config('advanced-config.custom_link_home') }}"@else href="{{ url('') }}/"@endif> @if(config('advanced-config.custom_text_home') != ''){{config('advanced-config.custom_text_home')}}@else Home @endif</a>@endif
@if(config('advanced-config.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>@endif
@if(config('advanced-config.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>@endif
@if(config('advanced-config.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
@if(env('DISPLAY_FOOTER_HOME') === true)<a class="footer-hover spacing" href="@if(str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) === "" ){{ url('') }}@else{{ str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) }}@endif">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a>@endif
@if(env('DISPLAY_FOOTER_TERMS') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">{{env('TITLE_FOOTER_TERMS')}}</a>@endif
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">{{env('TITLE_FOOTER_PRIVACY')}}</a>@endif
@if(env('DISPLAY_FOOTER_CONTACT') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">{{env('TITLE_FOOTER_CONTACT')}}</a>@endif
@endif
</div>

View File

@ -232,11 +232,11 @@ if($url1sb == '200' or $url2sb == '200') {
@if(env('DISPLAY_FOOTER') === true)
<p>
Copyright &copy; @php echo date('Y'); @endphp {{ config('app.name') }}<i class="icon-heart" aria-hidden="true"></i> </br>
@php if(config('advanced-config.display_link_home') != 'false' and config('advanced-config.display_link_terms') != 'false' and config('advanced-config.display_link_privacy') != 'false' and config('advanced-config.display_link_contact') != 'false'){$dot=" . "; } else {$dot="&ensp;";} @endphp
@if(config('advanced-config.display_link_home') != 'false')<a class="footer-hover spacing" @if(config('advanced-config.custom_link_home') != '')href="{{ config('advanced-config.custom_link_home') }}"@else href="{{ url('') }}/"@endif> @if(config('advanced-config.custom_text_home') != ''){{config('advanced-config.custom_text_home')}}@else Home @endif</a>{!!$dot!!}@endif
@if(config('advanced-config.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>{!!$dot!!}@endif
@if(config('advanced-config.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>{!!$dot!!}@endif
@if(config('advanced-config.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
@php if(env('DISPLAY_FOOTER_HOME') != false and env('DISPLAY_FOOTER_TERMS') != false and env('DISPLAY_FOOTER_PRIVACY') != false and env('DISPLAY_FOOTER_CONTACT') != false){$dot=" . "; } else {$dot="&ensp;";} @endphp
@if(env('DISPLAY_FOOTER_HOME') === true)<a class="footer-hover spacing" href="@if(str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) === "" ){{ url('') }}@else{{ str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) }}@endif">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a>{!!$dot!!}@endif
@if(env('DISPLAY_FOOTER_TERMS') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</a>{!!$dot!!}@endif
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</a>{!!$dot!!}@endif
@if(env('DISPLAY_FOOTER_CONTACT') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</a>@endif
</p>
@endif
@if(env('DISPLAY_CREDIT') === true)

View File

@ -80,7 +80,7 @@
@endif
<div class="jumbotron" style="margin-top: 10%">
<h1 class="display-4">{{ $name }}</h1>
<h1 class="display-4">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_'.strtoupper($name)))}}</h1>
<hr class="my-4">
<p>
<?php echo $data['page']->$name; ?>

View File

@ -182,6 +182,7 @@
<a href="#Security"><div class="legendl">Security</div></a>
<a href="#Advanced"><div class="legendl">Advanced</div></a>
<a href="#SMTP"><div class="legendl">SMTP</div></a>
<a href="#Footer"><div class="legendl">Footer links</div></a>
<a href="#Debug"><div class="legendl">Debug</div></a>
<div>
</div></div></div>
@ -279,6 +280,7 @@ btn.on('click', function(e) {
$('html, body').animate({scrollTop:280}, '300');
});
</script>
<script src="{{ asset('studio/external-dependencies/bootstrap.min.js') }}"></script>
@endpush

View File

@ -12,15 +12,15 @@
@csrf
@foreach($pages as $page)
<div class="form-group col-lg-8">
<h3>Terms</h3>
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</h3>
<textarea class="form-control ckeditor" name="terms" rows="3">{{ $page->terms }}</textarea>
</div><br>
<div class="form-group col-lg-8">
<h3>Privacy</h3>
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</h3>
<textarea class="form-control ckeditor" name="privacy" rows="3">{{ $page->privacy }}</textarea>
</div><br>
<div class="form-group col-lg-8">
<h3>Contact</h3>
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</h3>
<textarea class="form-control ckeditor" name="contact" rows="3">{{ $page->contact }}</textarea>
</div><br>
@endforeach