@@ 93-105 (lines=13) @@ | ||
90 | ||
91 | if ($matches === true) { |
|
92 | $dynamicResult['model'] = $model; |
|
93 | if ($model->title) { |
|
94 | $dynamicResult['title'] = ContentBlockHelper::compileContentString( |
|
95 | $model->title, |
|
96 | self::class . "{$model->id}:title", |
|
97 | new TagDependency( |
|
98 | [ |
|
99 | "tags" => [ |
|
100 | ActiveRecordHelper::getObjectTag($model, $model->id) |
|
101 | ] |
|
102 | ] |
|
103 | ) |
|
104 | ); |
|
105 | } |
|
106 | if ($model->meta_description) { |
|
107 | $dynamicResult['meta_description'] = ContentBlockHelper::compileContentString( |
|
108 | $model->meta_description, |
|
@@ 106-118 (lines=13) @@ | ||
103 | ) |
|
104 | ); |
|
105 | } |
|
106 | if ($model->meta_description) { |
|
107 | $dynamicResult['meta_description'] = ContentBlockHelper::compileContentString( |
|
108 | $model->meta_description, |
|
109 | self::class . ":{$model->id}:meta_description", |
|
110 | new TagDependency( |
|
111 | [ |
|
112 | "tags" => [ |
|
113 | ActiveRecordHelper::getObjectTag($model, $model->id) |
|
114 | ] |
|
115 | ] |
|
116 | ) |
|
117 | ); |
|
118 | } |
|
119 | if ($model->h1) { |
|
120 | $dynamicResult['blocks']['h1'] = $model->h1; |
|
121 | } |