FEATURE: more translations
This commit is contained in:
@@ -28,11 +28,6 @@ class Gallery implements AppHandler
|
||||
*/
|
||||
public function render(Content $content, $parameters)
|
||||
{
|
||||
// if settings is still string, convert it into object
|
||||
if (is_string($content->module_settings)) {
|
||||
$content->module_settings = json_decode($content->module_settings);
|
||||
}
|
||||
|
||||
// get directory ID
|
||||
$directoryId = $content->module_settings->directoryId;
|
||||
|
||||
@@ -42,7 +37,11 @@ class Gallery implements AppHandler
|
||||
->get();
|
||||
|
||||
// render content
|
||||
return Controller::VisitorsView($content->template, ['images' => $images, 'page' => $content]);
|
||||
return Controller::VisitorsView($content->template, [
|
||||
'images' => $images,
|
||||
'page' => $content,
|
||||
'extra' => $parameters
|
||||
]);
|
||||
}
|
||||
|
||||
public static function getHistoryHandler()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
Route::group([
|
||||
'middleware' => ['web', 'auth', 'adminMenu'],
|
||||
'middleware' => ['admin'],
|
||||
'namespace' => 'Modules\Gallery\Http\Controllers\Admin',
|
||||
'prefix' => 'admin/gallery'
|
||||
'prefix' => LaravelLocalization::setLocale() . 'admin/gallery'
|
||||
], function () {
|
||||
|
||||
// method for creating slider from photogallery
|
||||
|
||||
Reference in New Issue
Block a user