Skip to content

Commit

Permalink
RESOLVED #JJ281: Upgrade to webtrees 2.0.9 - Rural theme upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jon48 committed Oct 24, 2020
1 parent 103edac commit 4077859
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function title(): string
{
return I18N::translate('Rural');
}

/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\AbstractModule::boot()
Expand All @@ -66,7 +66,7 @@ public function boot(): void
// Register a namespace for our views.
View::registerNamespace($this->name(), $this->resourcesFolder() . 'views/');
}

/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\AbstractModule::resourcesFolder()
Expand All @@ -75,8 +75,8 @@ public function resourcesFolder(): string
{
return __DIR__ . '/resources/';
}


/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\AbstractModule::stylesheets()
Expand All @@ -89,7 +89,7 @@ public function stylesheets(): array
];
}


/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\ModuleThemeInterface::stylesheets()
Expand All @@ -113,7 +113,7 @@ public function parameter($parameter_name)
];
return $parameters[$parameter_name];
}

/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\ModuleCustomInterface::customModuleAuthorName()
Expand All @@ -122,8 +122,8 @@ public function customModuleAuthorName(): string
{
return 'Jonathan Jaubart';
}


/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\ModuleCustomInterface::customModuleVersion()
Expand All @@ -142,16 +142,16 @@ public function customModuleSupportUrl(): string
return 'https://github.com/jon48/webtrees-theme-rural';
}


public function getCustomCssAction(ServerRequestInterface $request): ResponseInterface
{
$content = view($this->name() . '::style.css');
return response($content, StatusCodeInterface::STATUS_OK)
->withHeader('Content-Type', 'text/css')
;
}


/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\ModuleFooterInterface::defaultFooterOrder()
Expand All @@ -160,7 +160,7 @@ public function defaultFooterOrder(): int
{
return 99;
}

/**
* {@inheritDoc}
* @see \Fisharebest\Webtrees\Module\ModuleFooterInterface::getFooter()
Expand Down

0 comments on commit 4077859

Please sign in to comment.