File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11
11
/**
12
12
* Blog post list ldJson block
13
13
*/
14
- class PostList extends \Plumrocket \Amp \Block \Page \Head \Ldjson \Cms
14
+ if (class_exists ('\Plumrocket\Amp\Block\Page\Head\Ldjson\Cms ' )) {
15
+ class PostListIntermediate extends \Plumrocket \Amp \Block \Page \Head \Ldjson \Cms {}
16
+ } else {
17
+ class PostListIntermediate extends \Magento \Framework \View \Element \AbstractBlock {}
18
+ }
19
+
20
+ class PostList extends PostListIntermediate
15
21
{
16
22
/**
17
23
* Retrieve page structure structure data in JSON
Original file line number Diff line number Diff line change 12
12
/**
13
13
* Blog post opengraph for amp
14
14
*/
15
- class Post extends \Plumrocket \Amp \Block \Page \Head \Og \AbstractOg
15
+
16
+ if (class_exists ('\Plumrocket\Amp\Block\Page\Head\Og\AbstractOg ' )) {
17
+ class PostIntermediate extends \Plumrocket \Amp \Block \Page \Head \Og \AbstractOg {}
18
+ } else {
19
+ class PostIntermediate extends \Magento \Framework \View \Element \AbstractBlock {}
20
+ }
21
+
22
+ class Post extends PostIntermediate
16
23
{
17
24
/**
18
25
* Retrieve open graph params
You can’t perform that action at this time.
0 commit comments