Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
"source": "https://github.com/wintercms/wn-sitemap-plugin"
},
"require": {
"php": ">=7.2",
"composer/installers": "~1.0"
"php": ">=8.1",
"composer/installers": "~1.0",
"winter/wn-backend-module": "~1.2.8|dev-develop"
},
"replace": {
"rainlab/sitemap-plugin": "~1.0"
Expand Down
2 changes: 0 additions & 2 deletions controllers/Definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function index()
*/
public function update($recordId = null, $context = null)
{
$this->bodyClass = 'compact-container';

try {
if (!$editTheme = Theme::getEditTheme()) {
throw new ApplicationException('Unable to find the active theme.');
Expand Down
13 changes: 13 additions & 0 deletions controllers/definitions/_form_sitemap_url.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="layout-row min-size">
<div class="scoreboard padded-container">
<div data-control="toolbar">
<div class="scoreboard-item title-value">
<h4><?= e(trans('winter.sitemap::lang.plugin.name')) ?></h4>
<p><?= e($themeName) ?></p>
<p class="description">
<?= e(trans('winter.sitemap::lang.item.location')) ?> <a href="<?= $sitemapUrl ?>" target="_blank"><?= $sitemapUrl ?></a>
</p>
</div>
</div>
</div>
</div>
File renamed without changes.
57 changes: 0 additions & 57 deletions controllers/definitions/update.htm

This file was deleted.

6 changes: 5 additions & 1 deletion models/definition/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
# Form Field Definitions
# ===================================

fields:
form_sitemap_url:
type: partial
context: update

tabs:
stretch: true
cssClass: tabs-no-inset

fields:
items:
Expand Down