Доработка OG
This commit is contained in:
parent
dd2236ed7a
commit
a346da83c9
|
|
@ -54,9 +54,9 @@ class IndexController extends Controller
|
||||||
$point = new Point();
|
$point = new Point();
|
||||||
$point = $point->getByPK($id);
|
$point = $point->getByPK($id);
|
||||||
$point->name = htmlspecialchars($point->name);
|
$point->name = htmlspecialchars($point->name);
|
||||||
$point->descriptionHtml = nl2br(htmlspecialchars($point->description));
|
$point->descriptionHtml = htmlspecialchars($point->description);
|
||||||
$point->descriptionHtml .= '<br/><br/>Посмотреть на карте: http://wikipoints.ru/?point='.$id;
|
$point->descriptionHtml .= '\n \n Посмотреть на карте: http://wikipoints.ru/?point='.$id;
|
||||||
$point->descriptionHtml .= '<br/><br/>#wikipoints';
|
$point->descriptionHtml .= '\n \n #wikipoints';
|
||||||
|
|
||||||
$og['title'] = $point->name . ' - wikipoints.ru';
|
$og['title'] = $point->name . ' - wikipoints.ru';
|
||||||
$og['description'] = $point->descriptionHtml;
|
$og['description'] = $point->descriptionHtml;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue