Commit 4e8c4f53dc72024685228d15c2e7989b482bdf60

Authored by Alexey Boroda
1 parent c1965fd6

-H1 and filter replacements

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
@@ -274,7 +274,7 @@ class Seo extends Widget @@ -274,7 +274,7 @@ class Seo extends Widget
274 */ 274 */
275 protected function replaceData($str) 275 protected function replaceData($str)
276 { 276 {
277 - 277 +
278 if (!empty($this->fields)) { 278 if (!empty($this->fields)) {
279 foreach ($this->fields as $field_name => $field_value) { 279 foreach ($this->fields as $field_name => $field_value) {
280 $str = str_replace('{' . $field_name . '}', $field_value, $str); 280 $str = str_replace('{' . $field_name . '}', $field_value, $str);
@@ -413,9 +413,11 @@ class Seo extends Widget @@ -413,9 +413,11 @@ class Seo extends Widget
413 * @return mixed 413 * @return mixed
414 */ 414 */
415 public function getNameString($array, $h1){ 415 public function getNameString($array, $h1){
416 -  
417 $row = ' '; 416 $row = ' ';
418 foreach($array as $name => $field){ 417 foreach($array as $name => $field){
  418 + if (isset($this->fields['name'])) {
  419 + $field['value'] = str_replace($this->fields['name'], '', $field['value']);
  420 + }
419 $row .= $field['value'].' ' ; 421 $row .= $field['value'].' ' ;
420 } 422 }
421 423