From d7783504f1d64e47cdd9676678e865bc09a590ac Mon Sep 17 00:00:00 2001 From: Tony Air Date: Sun, 3 Jul 2022 15:19:00 +0200 Subject: [PATCH] IMPR: Remove unnecessary divs --- app/_config/app.yml | 1 + app/templates/Layout/Page.ss | 4 +- app/templates/Layout/PageController_search.ss | 82 +++++++++---------- composer.json | 16 +++- 4 files changed, 52 insertions(+), 51 deletions(-) diff --git a/app/_config/app.yml b/app/_config/app.yml index a2b671d..406c404 100644 --- a/app/_config/app.yml +++ b/app/_config/app.yml @@ -6,6 +6,7 @@ After: - elementalvirtual - elemental-basics - a2nt-cms-niceties-options-elements + - a2nt-cms-niceties-base-config - webapp-base-extensions - webapp-locale-fluent --- diff --git a/app/templates/Layout/Page.ss b/app/templates/Layout/Page.ss index db9500e..2a070fa 100644 --- a/app/templates/Layout/Page.ss +++ b/app/templates/Layout/Page.ss @@ -1,3 +1 @@ -
- <% include Content %> -
+<% include Content %> diff --git a/app/templates/Layout/PageController_search.ss b/app/templates/Layout/PageController_search.ss index f66b2a5..8d88907 100644 --- a/app/templates/Layout/PageController_search.ss +++ b/app/templates/Layout/PageController_search.ss @@ -1,56 +1,48 @@ <% with $SearchResults %> -
-
-
-
-

- $Title -

-
+
+
+

+ $Title +

-
-
-
-
- <% if $Results %> -
- <% loop $Results %> -
-
- -
+
+
+ <% if $Results %> +
+ <% loop $Results %> +
+
+ +
-
-
-

$Summary(100)

- Learn More -
-
+
+
+

$Summary(100)

+ Learn More
- <% end_loop %> +
- <% else %> -

Nothing was found.

- <% end_if %> -
+ <% end_loop %>
+ <% else %> +

Nothing was found.

+ <% end_if %>
-
<% end_with %> diff --git a/composer.json b/composer.json index 50e7b4b..ecca4bb 100755 --- a/composer.json +++ b/composer.json @@ -38,16 +38,16 @@ "a2nt/silverstripe-mapboxfield": "dev-master", "a2nt/silverstripe-progressivewebapp": "dev-master", "a2nt/silverstripe-elemental-basics": "*", - "a2nt/cms-niceties": "*", + "a2nt/cms-niceties": "dev-main", "bummzack/sortablefile": "*", "eluceo/ical": "^0.16.0", "ezyang/htmlpurifier": "^4.13", - "showpro/silverstripe-seo-images": "*", "endroid/qr-code": "^3.9", "jonom/focuspoint": "*", "symbiote/silverstripe-addressable": "dev-master", "silverstripe/login-forms": "*", - "webbuilders-group/silverstripe-image-cropper-field": "dev-master" + "webbuilders-group/silverstripe-image-cropper-field": "dev-master", + "dynamic/silverstripe-linkable": "dev-embedUpdate" }, "require-dev": { "phpunit/phpunit": "*", @@ -56,6 +56,10 @@ "silverleague/ideannotator": "dev-master" }, "repositories": [ + { + "type": "vcs", + "url": "https://github.com/a2nt/silverstripe-linkable" + }, { "type": "vcs", "url": "https://github.com/a2nt/silverstripe-font-awesome" @@ -106,6 +110,12 @@ "silverstripe/recipe-plugin": true } }, + "autoload": { + "psr-4": { + "App\\": "app/src" + }, + "exclude-from-classmap": ["vendor/dynamic/flexslider/src/Model/SlideImage.php"] + }, "prefer-stable": true, "minimum-stability": "dev" }