01.
public
function
subscribeEvents()
02.
{
03.
Backend::
$events
->addEvent(
'cms:onGetPartialContent'
,
$this
,
'get_partial_content'
);
04.
}
05.
06.
public
function
get_partial_content(
$data
)
07.
{
08.
$data
[
'content'
] =
str_replace
(
'NAME'
,
'OUR STORE NAME'
,
$data
[
'content'
]);
09.
10.
if
(
$data
[
'file_based'
])
11.
$data
[
'content'
] .=
'<br>CMS partial file: '
.
$data
[
'file_name'
];
12.
13.
$data
[
'content'
] .=
'<br>CMS partial name: '
.
$data
[
'name'
];
14.
15.
return
$data
;
16.
}