diff --git a/ground/controllers/IndexController.php b/ground/controllers/IndexController.php index e243fba..aa35a76 100644 --- a/ground/controllers/IndexController.php +++ b/ground/controllers/IndexController.php @@ -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'), diff --git a/public/img/compas.jpg b/public/img/compas.jpg new file mode 100644 index 0000000..7e0c645 Binary files /dev/null and b/public/img/compas.jpg differ