diff --git a/app/CMS/Widgets/SocialButtons/Presenters/SocialButtons.php b/app/CMS/Widgets/SocialButtons/Presenters/SocialButtons.php new file mode 100644 index 00000000..9b8ee224 --- /dev/null +++ b/app/CMS/Widgets/SocialButtons/Presenters/SocialButtons.php @@ -0,0 +1,57 @@ + $type, + 'widget' => new Widget(), + 'settings' => new \stdClass() + ]); + } + + /** + * Display form for editing already existing widget + * + * @param Widget $widget + * + * @return mixed + */ + public static function renderEditForm(Widget $widget) + { + $settings = $widget->settings; + return view('admin.widgets.socialButtons.edit', ['widget' => $widget, 'settings' => $settings]); + } +} diff --git a/app/CMS/Widgets/SocialButtons/SocialButtons.php b/app/CMS/Widgets/SocialButtons/SocialButtons.php new file mode 100644 index 00000000..a99398f3 --- /dev/null +++ b/app/CMS/Widgets/SocialButtons/SocialButtons.php @@ -0,0 +1,55 @@ +code) || empty($data->code)) { + // throw new MissingParameterException('code'); + //} + + return []; + } +} \ No newline at end of file diff --git a/resources/views/admin/widgets/socialButtons/edit.blade.php b/resources/views/admin/widgets/socialButtons/edit.blade.php new file mode 100644 index 00000000..94310b14 --- /dev/null +++ b/resources/views/admin/widgets/socialButtons/edit.blade.php @@ -0,0 +1,15 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('widgets/socialButtons.edit', ['name' => $widget->name])) + +@section('content') +