FEATURE: add template into page rendering
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace Templates\Jednostrankovka;
|
||||
|
||||
use App\Models\Content;
|
||||
use Templates\Base\OnePage\Handlers\OnePage;
|
||||
|
||||
class Handler extends OnePage
|
||||
@@ -18,4 +19,11 @@ class Handler extends OnePage
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public static function beforeRender(Content $content)
|
||||
{
|
||||
$content->content = str_replace('a', 'AAAA', $content->content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user