FEATURE: more translations

This commit is contained in:
Peter Hrdlica
2016-09-29 23:11:42 +02:00
250 changed files with 77827 additions and 1670 deletions
+5 -6
View File
@@ -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()
+2 -2
View File
@@ -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