OG for random point

This commit is contained in:
Krivchikov Dmitry 2014-07-08 11:26:19 +04:00
parent 114233ea5b
commit 8a22c00f00
2 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ class IndexController extends Controller
$og['url'] = 'http://wikipoints.ru/?point='.$id;
$og['image'] = $point->img;
}
else if($_GET['point'] && strtolower($_GET['point']) == 'random')
{
$og['title'] = 'Случайная точка на wikipoints.ru';
$og['description'] = 'Точка на карте, выбранная случайным образом. Лучший способ узнать что-то новое!';
$og['site_name'] = 'WikiPoints - '.$res['pointsCount'].' или даже больше поводов не сидеть дома';
$og['type'] = 'article';
$og['url'] = 'http://wikipoints.ru/?point=random';
$og['image'] = 'http://wikipoints.ru/img/compas.jpg';
}
self::render('indexTemplate.php', array(
'categories' => $category->getAll('', 'ord'),

BIN
public/img/compas.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB