|
@@ 378-396 (lines=19) @@
|
| 375 |
|
/** |
| 376 |
|
* @return bool |
| 377 |
|
*/ |
| 378 |
|
public static function _buildSearchMeta() { |
| 379 |
|
|
| 380 |
|
$local = MY_Controller::getCurrentLocale(); |
| 381 |
|
$settings = CI::$APP->seoexpert_model->getSettings($local); |
| 382 |
|
|
| 383 |
|
if ($settings['useSearchPattern'] != 1) { |
| 384 |
|
return FALSE; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
$metaStorage = new MetaStorage(); |
| 388 |
|
$metaStorage->setTitleTemplate($settings['searchTemplate']); |
| 389 |
|
$metaStorage->setDescriptionTemplate($settings['searchTemplateDesc']); |
| 390 |
|
$metaStorage->setKeywordsTemplate($settings['searchTemplateKey']); |
| 391 |
|
|
| 392 |
|
$metaManipulator = new MetaManipulator([], $metaStorage); |
| 393 |
|
$meta = $metaManipulator->render(); |
| 394 |
|
|
| 395 |
|
self::setMetaTags($meta['metaTitle'], $meta['metaKeywords'], $meta['metaDescription']); |
| 396 |
|
} |
| 397 |
|
|
| 398 |
|
/** |
| 399 |
|
* @return bool |
|
@@ 401-419 (lines=19) @@
|
| 398 |
|
/** |
| 399 |
|
* @return bool |
| 400 |
|
*/ |
| 401 |
|
public static function _buildGalleryMeta() { |
| 402 |
|
|
| 403 |
|
$local = MY_Controller::getCurrentLocale(); |
| 404 |
|
$settings = CI::$APP->seoexpert_model->getSettings($local); |
| 405 |
|
|
| 406 |
|
if ($settings['useGalleryPattern'] != 1) { |
| 407 |
|
return FALSE; |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
$metaStorage = new MetaStorage(); |
| 411 |
|
$metaStorage->setTitleTemplate($settings['galleryTemplate']); |
| 412 |
|
$metaStorage->setDescriptionTemplate($settings['galleryTemplateDesc']); |
| 413 |
|
$metaStorage->setKeywordsTemplate($settings['galleryTemplateKey']); |
| 414 |
|
|
| 415 |
|
$metaManipulator = new MetaManipulator([], $metaStorage); |
| 416 |
|
$meta = $metaManipulator->render(); |
| 417 |
|
|
| 418 |
|
self::setMetaTags($meta['metaTitle'], $meta['metaKeywords'], $meta['metaDescription']); |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
/** |
| 422 |
|
* @param array $data |