Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
applemaps.php
1<?php
3
7
12class AppleMaps extends Parser
13{
20 public function handle(HtmlDocument $document): void
21 {
22 parse_str($document->getUri()->getQuery(), $outputParams);
23
24 $document->setTitle(Loc::getMessage('MAIN_URL_PREVIEW_PARSER_APPLE_MAPS_TITLE'));
25
26 $description = '';
27 if(!empty($outputParams['q']))
28 {
29 $description .= $outputParams['q'];
30 }
31 if(!empty($outputParams['address']))
32 {
33 if(!empty($description))
34 {
35 $description .= ' ';
36 }
37 $description .= $outputParams['address'];
38 }
39
40 $document->setDescription($description);
41 }
42}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29