- {control heading, [content => $title]}
+ {control heading, $title}
Expect::arrayOf(Expect::string())->default([]),
- self::CLASS_NAMES => Expect::arrayOf(Expect::string())->default([]),
- self::CONTENT => PropTypes::html()->nullable(),
- ];
- }
-
-}
diff --git a/app/modules/Front/Base/Controls/Layout/Box/Control.php b/app/modules/Front/Base/Controls/Layout/Box/Control.php
index 80e20271..ef59e42e 100644
--- a/app/modules/Front/Base/Controls/Layout/Box/Control.php
+++ b/app/modules/Front/Base/Controls/Layout/Box/Control.php
@@ -2,14 +2,23 @@
namespace App\Modules\Front\Base\Controls\Layout\Box;
-use App\Model\UI\BasePropsControl;
+use App\Model\UI\BaseRenderControl;
+use Nette\Utils\Html;
-class Control extends BasePropsControl
+class Control extends BaseRenderControl
{
- protected function getPropsClass(): string
+ /**
+ * @param Html $content
+ * @param string[] $attributes
+ * @param string[] $classNames
+ */
+ public function render(Html $content, array $attributes = [], array $classNames = []): void
{
- return BoxProps::class;
+ $this->template->content = $content;
+ $this->template->attributes = $attributes;
+ $this->template->classNames = $classNames;
+ $this->template->render();
}
}
diff --git a/app/modules/Front/Base/Controls/Layout/Box/templates/default.latte b/app/modules/Front/Base/Controls/Layout/Box/templates/default.latte
index e1bf28c6..1d00485c 100644
--- a/app/modules/Front/Base/Controls/Layout/Box/templates/default.latte
+++ b/app/modules/Front/Base/Controls/Layout/Box/templates/default.latte
@@ -1,6 +1,8 @@
-{templateType Wavevision\PropsControl\PropsControlTemplate}
-
- {$props->get(App\Modules\Front\Base\Controls\Layout\Box\BoxProps::CONTENT)}
+ {$content}
diff --git a/app/modules/Front/Base/Controls/Layout/Footer/Heading/Control.php b/app/modules/Front/Base/Controls/Layout/Footer/Heading/Control.php
index 215b96ff..5f4a9f8a 100644
--- a/app/modules/Front/Base/Controls/Layout/Footer/Heading/Control.php
+++ b/app/modules/Front/Base/Controls/Layout/Footer/Heading/Control.php
@@ -2,7 +2,6 @@
namespace App\Modules\Front\Base\Controls\Layout\Footer\Heading;
-use App\Model\UI\BasePropsControl;
use App\Model\UI\BaseRenderControl;
class Control extends BaseRenderControl
diff --git a/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/Icon.php b/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/Icon.php
index ae4be5f0..12484730 100644
--- a/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/Icon.php
+++ b/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/Icon.php
@@ -2,7 +2,6 @@
namespace App\Modules\Front\Base\Controls\Layout\Footer\SocialLinks;
-use App\Modules\Front\Base\Controls\Svg\SvgProps;
use Nette\SmartObject;
final class Icon
diff --git a/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/SocialLinksProps.php b/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/SocialLinksProps.php
deleted file mode 100644
index 2a5b4f27..00000000
--- a/app/modules/Front/Base/Controls/Layout/Footer/SocialLinks/SocialLinksProps.php
+++ /dev/null
@@ -1,24 +0,0 @@
- Expect::listOf(SocialLink::class),
- ];
- }
-
-}
diff --git a/app/modules/Front/Base/Controls/Layout/Footer/templates/default.latte b/app/modules/Front/Base/Controls/Layout/Footer/templates/default.latte
index d35b4aaa..c84e407b 100644
--- a/app/modules/Front/Base/Controls/Layout/Footer/templates/default.latte
+++ b/app/modules/Front/Base/Controls/Layout/Footer/templates/default.latte
@@ -1,4 +1,4 @@
-{varType App\Modules\Front\Base\Controls\Layout\Footer\SocialLinks\SocialLinksProps $socialLinks}
+{varType App\Modules\Front\Base\Controls\Layout\Footer\SocialLinks\SocialLink[] $socialLinks}