@@ -188,10 +188,6 @@ public function getProductLink(
188
188
$ product = $ this ->getProductObject ($ product , $ idLang , $ idShop );
189
189
}
190
190
$ params ['ean13 ' ] = (!$ ean13 ) ? $ product ->ean13 : $ ean13 ;
191
- if ($ dispatcher ->hasKeyword ('product_rule ' , $ idLang , 'meta_keywords ' , $ idShop )) {
192
- $ product = $ this ->getProductObject ($ product , $ idLang , $ idShop );
193
- $ params ['meta_keywords ' ] = Tools::str2url ($ product ->getFieldByLang ('meta_keywords ' ));
194
- }
195
191
if ($ dispatcher ->hasKeyword ('product_rule ' , $ idLang , 'meta_title ' , $ idShop )) {
196
192
$ product = $ this ->getProductObject ($ product , $ idLang , $ idShop );
197
193
$ params ['meta_title ' ] = Tools::str2url ($ product ->getFieldByLang ('meta_title ' ));
@@ -457,10 +453,6 @@ public function getCategoryLink(
457
453
$ category = $ this ->getCategoryObject ($ category , $ idLang );
458
454
}
459
455
$ params ['rewrite ' ] = (!$ alias ) ? $ category ->link_rewrite : $ alias ;
460
- if ($ dispatcher ->hasKeyword ($ rule , $ idLang , 'meta_keywords ' , $ idShop )) {
461
- $ category = $ this ->getCategoryObject ($ category , $ idLang );
462
- $ params ['meta_keywords ' ] = Tools::str2url ($ category ->getFieldByLang ('meta_keywords ' ));
463
- }
464
456
if ($ dispatcher ->hasKeyword ($ rule , $ idLang , 'meta_title ' , $ idShop )) {
465
457
$ category = $ this ->getCategoryObject ($ category , $ idLang );
466
458
$ params ['meta_title ' ] = Tools::str2url ($ category ->getFieldByLang ('meta_title ' ));
@@ -495,17 +487,14 @@ public function getCMSCategoryLink(
495
487
496
488
$ dispatcher = Dispatcher::getInstance ();
497
489
if (!is_object ($ cmsCategory )) {
498
- if ($ alias !== null && !$ dispatcher ->hasKeyword ('cms_category_rule ' , $ idLang , 'meta_keywords ' , $ idShop ) && ! $ dispatcher -> hasKeyword ( ' cms_category_rule ' , $ idLang , ' meta_title ' , $ idShop )) {
490
+ if ($ alias !== null && !$ dispatcher ->hasKeyword ('cms_category_rule ' , $ idLang , 'meta_title ' , $ idShop )) {
499
491
return $ url . $ dispatcher ->createUrl ('cms_category_rule ' , $ idLang , ['id ' => (int ) $ cmsCategory , 'rewrite ' => (string ) $ alias ], $ this ->allow , '' , $ idShop );
500
492
}
501
493
$ cmsCategory = new CMSCategory ($ cmsCategory , $ idLang );
502
494
}
503
495
if (is_array ($ cmsCategory ->link_rewrite ) && isset ($ cmsCategory ->link_rewrite [(int ) $ idLang ])) {
504
496
$ cmsCategory ->link_rewrite = $ cmsCategory ->link_rewrite [(int ) $ idLang ];
505
497
}
506
- if (is_array ($ cmsCategory ->meta_keywords ) && isset ($ cmsCategory ->meta_keywords [(int ) $ idLang ])) {
507
- $ cmsCategory ->meta_keywords = $ cmsCategory ->meta_keywords [(int ) $ idLang ];
508
- }
509
498
if (is_array ($ cmsCategory ->meta_title ) && isset ($ cmsCategory ->meta_title [(int ) $ idLang ])) {
510
499
$ cmsCategory ->meta_title = $ cmsCategory ->meta_title [(int ) $ idLang ];
511
500
}
@@ -514,7 +503,6 @@ public function getCMSCategoryLink(
514
503
$ params = [];
515
504
$ params ['id ' ] = $ cmsCategory ->id ;
516
505
$ params ['rewrite ' ] = (!$ alias ) ? $ cmsCategory ->link_rewrite : $ alias ;
517
- $ params ['meta_keywords ' ] = Tools::str2url ($ cmsCategory ->meta_keywords );
518
506
$ params ['meta_title ' ] = Tools::str2url ($ cmsCategory ->meta_title );
519
507
520
508
return $ url . $ dispatcher ->createUrl ('cms_category_rule ' , $ idLang , $ params , $ this ->allow , '' , $ idShop );
@@ -548,7 +536,7 @@ public function getCMSLink(
548
536
549
537
$ dispatcher = Dispatcher::getInstance ();
550
538
if (!is_object ($ cms )) {
551
- if ($ alias !== null && !$ dispatcher ->hasKeyword ('cms_rule ' , $ idLang , 'meta_keywords ' , $ idShop ) && ! $ dispatcher -> hasKeyword ( ' cms_rule ' , $ idLang , ' meta_title ' , $ idShop )) {
539
+ if ($ alias !== null && !$ dispatcher ->hasKeyword ('cms_rule ' , $ idLang , 'meta_title ' , $ idShop )) {
552
540
return $ url . $ dispatcher ->createUrl ('cms_rule ' , $ idLang , ['id ' => (int ) $ cms , 'rewrite ' => (string ) $ alias ], $ this ->allow , '' , $ idShop );
553
541
}
554
542
$ cms = new CMS ($ cms , $ idLang );
@@ -559,11 +547,6 @@ public function getCMSLink(
559
547
$ params ['id ' ] = $ cms ->id ;
560
548
$ params ['rewrite ' ] = (!$ alias ) ? (is_array ($ cms ->link_rewrite ) ? $ cms ->link_rewrite [(int ) $ idLang ] : $ cms ->link_rewrite ) : $ alias ;
561
549
562
- $ params ['meta_keywords ' ] = '' ;
563
- if (isset ($ cms ->meta_keywords ) && !empty ($ cms ->meta_keywords )) {
564
- $ params ['meta_keywords ' ] = is_array ($ cms ->meta_keywords ) ? Tools::str2url ($ cms ->meta_keywords [(int ) $ idLang ]) : Tools::str2url ($ cms ->meta_keywords );
565
- }
566
-
567
550
$ params ['meta_title ' ] = '' ;
568
551
if (isset ($ cms ->meta_title ) && !empty ($ cms ->meta_title )) {
569
552
$ params ['meta_title ' ] = is_array ($ cms ->meta_title ) ? Tools::str2url ($ cms ->meta_title [(int ) $ idLang ]) : Tools::str2url ($ cms ->meta_title );
@@ -599,7 +582,6 @@ public function getSupplierLink(
599
582
$ dispatcher = Dispatcher::getInstance ();
600
583
if (!is_object ($ supplier )) {
601
584
if ($ alias !== null
602
- && !$ dispatcher ->hasKeyword ('supplier_rule ' , $ idLang , 'meta_keywords ' , $ idShop )
603
585
&& !$ dispatcher ->hasKeyword ('supplier_rule ' , $ idLang , 'meta_title ' , $ idShop )
604
586
) {
605
587
return $ url . $ dispatcher ->createUrl (
@@ -618,7 +600,6 @@ public function getSupplierLink(
618
600
$ params = [];
619
601
$ params ['id ' ] = $ supplier ->id ;
620
602
$ params ['rewrite ' ] = (!$ alias ) ? $ supplier ->link_rewrite : $ alias ;
621
- $ params ['meta_keywords ' ] = Tools::str2url ($ supplier ->meta_keywords );
622
603
$ params ['meta_title ' ] = Tools::str2url ($ supplier ->meta_title );
623
604
624
605
return $ url . $ dispatcher ->createUrl ('supplier_rule ' , $ idLang , $ params , $ this ->allow , '' , $ idShop );
@@ -650,7 +631,7 @@ public function getManufacturerLink(
650
631
651
632
$ dispatcher = Dispatcher::getInstance ();
652
633
if (!is_object ($ manufacturer )) {
653
- if ($ alias !== null && !$ dispatcher ->hasKeyword ('manufacturer_rule ' , $ idLang , 'meta_keywords ' , $ idShop ) && ! $ dispatcher -> hasKeyword ( ' manufacturer_rule ' , $ idLang , ' meta_title ' , $ idShop )) {
634
+ if ($ alias !== null && !$ dispatcher ->hasKeyword ('manufacturer_rule ' , $ idLang , 'meta_title ' , $ idShop )) {
654
635
return $ url . $ dispatcher ->createUrl ('manufacturer_rule ' , $ idLang , ['id ' => (int ) $ manufacturer , 'rewrite ' => (string ) $ alias ], $ this ->allow , '' , $ idShop );
655
636
}
656
637
$ manufacturer = new Manufacturer ($ manufacturer , $ idLang );
@@ -660,7 +641,6 @@ public function getManufacturerLink(
660
641
$ params = [];
661
642
$ params ['id ' ] = $ manufacturer ->id ;
662
643
$ params ['rewrite ' ] = (!$ alias ) ? $ manufacturer ->link_rewrite : $ alias ;
663
- $ params ['meta_keywords ' ] = Tools::str2url ($ manufacturer ->meta_keywords );
664
644
$ params ['meta_title ' ] = Tools::str2url ($ manufacturer ->meta_title );
665
645
666
646
return $ url . $ dispatcher ->createUrl ('manufacturer_rule ' , $ idLang , $ params , $ this ->allow , '' , $ idShop );
0 commit comments