|
@@ 360-378 (lines=19) @@
|
| 357 |
|
/** |
| 358 |
|
* @return bool |
| 359 |
|
*/ |
| 360 |
|
public static function _buildSearchMeta() { |
| 361 |
|
|
| 362 |
|
$local = MY_Controller::getCurrentLocale(); |
| 363 |
|
$settings = CI::$APP->seoexpert_model->getSettings($local); |
| 364 |
|
|
| 365 |
|
if ($settings['useSearchPattern'] != 1) { |
| 366 |
|
return FALSE; |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
$metaStorage = new MetaStorage(); |
| 370 |
|
$metaStorage->setTitleTemplate($settings['searchTemplate']); |
| 371 |
|
$metaStorage->setDescriptionTemplate($settings['searchTemplateDesc']); |
| 372 |
|
$metaStorage->setKeywordsTemplate($settings['searchTemplateKey']); |
| 373 |
|
|
| 374 |
|
$metaManipulator = new MetaManipulator([], $metaStorage); |
| 375 |
|
$meta = $metaManipulator->render(); |
| 376 |
|
|
| 377 |
|
self::setMetaTags($meta['metaTitle'], $meta['metaKeywords'], $meta['metaDescription']); |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
/** |
| 381 |
|
* @return bool |
|
@@ 383-401 (lines=19) @@
|
| 380 |
|
/** |
| 381 |
|
* @return bool |
| 382 |
|
*/ |
| 383 |
|
public static function _buildGalleryMeta() { |
| 384 |
|
|
| 385 |
|
$local = MY_Controller::getCurrentLocale(); |
| 386 |
|
$settings = CI::$APP->seoexpert_model->getSettings($local); |
| 387 |
|
|
| 388 |
|
if ($settings['useGalleryPattern'] != 1) { |
| 389 |
|
return FALSE; |
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
$metaStorage = new MetaStorage(); |
| 393 |
|
$metaStorage->setTitleTemplate($settings['galleryTemplate']); |
| 394 |
|
$metaStorage->setDescriptionTemplate($settings['galleryTemplateDesc']); |
| 395 |
|
$metaStorage->setKeywordsTemplate($settings['galleryTemplateKey']); |
| 396 |
|
|
| 397 |
|
$metaManipulator = new MetaManipulator([], $metaStorage); |
| 398 |
|
$meta = $metaManipulator->render(); |
| 399 |
|
|
| 400 |
|
self::setMetaTags($meta['metaTitle'], $meta['metaKeywords'], $meta['metaDescription']); |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
/** |
| 404 |
|
* @param array $data |