ADD 4IG
This commit is contained in:
parent
79aa1e41a0
commit
afb27dae9a
|
|
@ -156,7 +156,33 @@ class PageController extends Controller
|
||||||
|
|
||||||
$point->description = Helper::replaceLinks($point->description);
|
$point->description = Helper::replaceLinks($point->description);
|
||||||
|
|
||||||
self::renderPartial('vkPoint.php', array(
|
self::renderPartial('page/vkPoint.php', array(
|
||||||
|
'point' => $point,
|
||||||
|
'photos' => $point->photos,
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
App::error404();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static function actionInstapoint()
|
||||||
|
{
|
||||||
|
$pointId = (int) App::getParam('id');
|
||||||
|
if (App::$user && App::$user->isAdmin == 1 && $pointId) {
|
||||||
|
$point = Point::model()->getByPK($pointId);
|
||||||
|
|
||||||
|
if ($point->id == NULL) {
|
||||||
|
App::error404();
|
||||||
|
}
|
||||||
|
|
||||||
|
$point->descriptionHtml = nl2br($point->description);
|
||||||
|
$point->name = htmlspecialchars($point->name);
|
||||||
|
|
||||||
|
$categories = Category::model()->getAll(array('order' => 'ord ASC', 'asArray' => true));
|
||||||
|
|
||||||
|
$point->description = Helper::replaceLinks($point->description);
|
||||||
|
|
||||||
|
self::renderPartial('page/instaPoint.php', array(
|
||||||
'point' => $point,
|
'point' => $point,
|
||||||
'photos' => $point->photos,
|
'photos' => $point->photos,
|
||||||
));
|
));
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?= $point->name ?><br/>
|
||||||
|
<br/>
|
||||||
|
Посмотреть на карте и прочитать описание: http://wikipoints.ru/point/<?= $point->id ?>?utm_source=igDaly<br/>
|
||||||
|
<br/>
|
||||||
|
#wikipoints # # # # # # # # # # # # # # # #sightseeing #выходные #путешествия #путешествие #туризм #weekend #travels #journey #tourism
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<?php
|
||||||
|
foreach ($photos as $photo) {
|
||||||
|
print '<img src="/photos/big/' . $photo->name . '"/></br>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
@ -7,6 +7,6 @@ foreach ($photos as $photo) {
|
||||||
<br>
|
<br>
|
||||||
<?= $point->description ?><br/>
|
<?= $point->description ?><br/>
|
||||||
<br/>
|
<br/>
|
||||||
Продолжить чтение и посмотреть на карте: http://wikipoints.ru/point/<?= $point->id ?>?utm_source=vk&utm_campaign=dalyPoint<br/>
|
Продолжить чтение и посмотреть на карте: http://wikipoints.ru/point/<?= $point->id ?>?utm_source=vkDaly<br/>
|
||||||
<br/>
|
<br/>
|
||||||
#wikipoints # # # # # # # # # # # # # # # #sightseeing #выходные #путешествия #путешествие #туризм #weekend #travels #journey #tourism
|
#wikipoints # # # # # # # # # # # # # # # #sightseeing #выходные #путешествия #путешествие #туризм #weekend #travels #journey #tourism
|
||||||
|
|
@ -27,6 +27,8 @@ $index = 0;
|
||||||
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
|
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
|
||||||
/
|
/
|
||||||
<a href="/page/vkpoint/id/<?= $point->id ?>">4VK</a>
|
<a href="/page/vkpoint/id/<?= $point->id ?>">4VK</a>
|
||||||
|
/
|
||||||
|
<a href="/page/instapoint/id/<?= $point->id ?>">4IG</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue