Compare commits

...

10 Commits

25 changed files with 2158 additions and 67 deletions

View File

@ -476,6 +476,14 @@ class JsonController extends Controller
if (!empty($out)) {
$obj = simplexml_load_string($out);
if (isset($obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->Point)) {
$coords = explode(' ', (string) $obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->Point->pos);
$lat = $coords[1];
$lng = $coords[0];
$name = "Координаты N°" . $lat . ' E°' . $lng;
$results[] = array('value' => $name, 'data' => "/?lat=$lat&lng=$lng&zoom=13&marker=true");
}
if (isset($obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->found)) {
$count = (int) $obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->found;
if ($count > 0) {
@ -486,12 +494,6 @@ class JsonController extends Controller
$lng = $coords[0];
$results[] = array('value' => $name, 'data' => "/?lat=$lat&lng=$lng&zoom=13&marker=true");
}
} else if (isset($obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->Point)) {
$coords = explode(' ', (string) $obj->GeoObjectCollection->metaDataProperty->GeocoderResponseMetaData->Point->pos);
$lat = $coords[1];
$lng = $coords[0];
$name = "Координаты N°" . $lat . ' E°' . $lng;
$results[] = array('value' => $name, 'data' => "/?lat=$lat&lng=$lng&zoom=13&marker=true");
}
}
}

View File

@ -55,6 +55,7 @@ class PointController extends Controller
$point->descriptionHtml = nl2br($point->descriptionHtml);
$point->name = htmlspecialchars($point->name);
App::setConfig('title', $point->name . ' wikipoints.ru');
App::setConfig('description', mb_substr(Helper::replaceLinks($point->description), 0, 99, 'UTF-8') . '…');
self::addVar('pointLat', $point->lat);
self::addVar('pointLng', $point->lng);
self::addVar('pointId', $point->id);

View File

@ -147,16 +147,14 @@ window.addEventListener('popstate', function(e)
if (e.state.hasOwnProperty('pointId'))
{
showInfo(e.state.pointId, false, true);
} else
if (e.state.hasOwnProperty('zoom'))
} else if (e.state.hasOwnProperty('zoom'))
{
lat = e.state.lat;
lng = e.state.lng;
zoom = e.state.zoom;
myMap.setView([lat, lng], zoom);
} else
if (e.state.hasOwnProperty('route'))
} else if (e.state.hasOwnProperty('route'))
{
loadRouteJSON(e.state.route);
}
@ -251,9 +249,7 @@ function activateAddPoint()
$('#map').css('cursor', 'crosshair');
$('div#addHelper').slideDown(200);
setStatus(statusHunting)
}
else
{
} else {
$('div#addHelper').hide(150);
$('#map').css('cursor', 'arrow');
setStatus(statusReady)

View File

@ -87,8 +87,7 @@ function init(lat, lng) {
myMap.on('click', function (e) {
if (!myMap._popup) {
if (status == statusHunting)
{
if (status == statusHunting) {
$('div#addHelper').hide(150);
$('#addPointId').remove();
$('#addPointForm input:text').val('');
@ -99,8 +98,7 @@ function init(lat, lng) {
$('#myModalLabel').text('Добавление новой точки');
$('#addPointModal').modal('show');
} else if (status == statusReHunting)
{
} else if (status == statusReHunting) {
resetStatus();
$('#addPointLat').val(e.latlng.lat);
@ -109,8 +107,7 @@ function init(lat, lng) {
$('#myModalLabel').text('Редактирование точки');
$('#addPointModal').modal('show');
}
}
else {
} else {
closePopup();
}
});
@ -121,15 +118,13 @@ function init(lat, lng) {
$("#extraParamsContainer").sortable();
myMap.on('moveend', function (e) {
if (!myMap._popup && $('#boxRoute').css('display') == 'none' && status != statusMovingInHistory)
{
if (!myMap._popup && status != statusMovingInHistory) {
document.title = 'Лучшие выходные — это выходные в путешествии! wikipoints.ru';
history.pushState({lat: myMap.getCenter().lat, lng: myMap.getCenter().lng, zoom: myMap.getZoom()}, document.title, "/?lat=" + myMap.getCenter().lat + "&lng=" + myMap.getCenter().lng + "&zoom=" + myMap.getZoom());
loadPointsInBounds();
}
if (status == statusMovingInHistory)
{
if (status == statusMovingInHistory) {
resetStatus();
}
});

View File

@ -40,6 +40,9 @@ function suggestKeyPress(key)
if ( $('div.hover','#suggestContainer').length > 0 ) {
link = $('a', $('div.hover','#suggestContainer')).attr('href');
window.location.href = link;
} else if ( $('div','#suggestContainer').length > 0 ) {
link = $('a', $('div','#suggestContainer')).attr('href');
window.location.href = link;
} else {
searchAdderess();
}

BIN
source/logo1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
source/logo2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
source/logo3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
source/logo4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

1769
source/logoVideo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 228 KiB

295
source/my4x4home.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 35 KiB

BIN
source/rectangleLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -6,6 +6,23 @@
<div class="coords-container">
Вернуться <a href="/">на карту</a>.
</div>
<?php if($article->status != 'system'): ?>
<div class="row">
<div class="col-md-12" style="text-align: center;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Point-TOP -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-0069680015252793"
data-ad-slot="2373587563"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<br/>
<?php endif; ?>
<div class="mainTextBlock">
<?= $article->html; ?>

View File

@ -2,6 +2,18 @@
<div class="container feed">
<div class="row elements">
<div class="col-md-12">
<br/>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Point-TOP -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-0069680015252793"
data-ad-slot="2373587563"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<br/>
<h4 class="top5authors">Самые активные авторы</h4>
<?php foreach ($authors as $author):?>
<div class="top5authors text-center">
@ -15,17 +27,7 @@
</div>
<hr class="onlySmallScreen"/>
<div class="row elements">
<div class="col-md-2">
<h4 class="onlySmallScreen text-center">Новости</h4>
<?php foreach ($news as $item) : ?>
<div class="element news">
<h4><?= $item->title ?></h4>
<?= $item->text ?>
</div>
<?php endforeach;?>
</div>
<hr class="onlySmallScreen"/>
<div class="col-md-5">
<div class="col-md-6">
<h4 class="onlySmallScreen text-center">Точки</h4>
<?php foreach ($points as $item) : ?>
<div class="element points">
@ -41,7 +43,7 @@
<a href="/page/points/"><h4 style="text-align: center;">У нас есть больше новых точек!</h4></a>
</div>
<hr class="onlySmallScreen"/>
<div class="col-md-5">
<div class="col-md-6">
<h4 class="onlySmallScreen text-center">Статьи</h4>
<?php foreach ($articles as $item) : ?>
<div class="element articles">

View File

@ -10,10 +10,10 @@ if (App::$user) {
<div class="glyphicon glyphicon-plus big _t" title="Приблизить" onclick="myMap.zoomIn()"></div>
<div class="glyphicon glyphicon-minus big _b" title="Отдалить" onclick="myMap.zoomOut()"></div>
<div class="glyphicon _t boxButtonLayers" onclick="openBox('Layers')" title="Слои карты"><img src="/img/buttons/layers.png" style="margin-top: -10px; margin-left: -5px; width: 30px;" /></div>
<div class="glyphicon _c boxButtonFilter" title="Фильтры и поиск" onclick="openBox('Filter')"><img src="/img/buttons/search.png" style="margin-top: -10px; margin-left: -5px; width: 30px;" /></div>
<div class="glyphicon _c" id="showMeOnTheMap" title="Я на карте" onclick="showMeOnTheMap()"><img src="/img/buttons/myPosition.png" style="margin-top: -20px; height: 21px;" /></div>
<div class="glyphicon _b boxButtonRoute" title="Маршрут" onclick="openBox('Route')"><img src="/img/buttons/route.png" style="margin-top: -10px; margin-left: -5px; width: 30px;" /></div>
<div class="glyphicon _t boxButtonLayers" onclick="openBox('Layers')" title="Слои карты"><img src="/img/buttons/layers.png" style="margin-left: -5px; width: 30px;" /></div>
<div class="glyphicon _c boxButtonFilter" title="Фильтры и поиск" onclick="openBox('Filter')"><img src="/img/buttons/search.png" style="margin-left: -5px; width: 30px;" /></div>
<div class="glyphicon _c" id="showMeOnTheMap" title="Я на карте" onclick="showMeOnTheMap()"><img src="/img/buttons/myPosition.png" style="height: 21px;" /></div>
<div class="glyphicon _b boxButtonRoute" title="Маршрут" onclick="openBox('Route')"><img src="/img/buttons/route.png" style="margin-left: -5px; width: 30px;" /></div>
<?php if (App::$user): ?>
@ -22,7 +22,7 @@ if (App::$user) {
<div class="glyphicon _c glyphicon-cloud-download boxButtonRoutes" onclick="openBox('Routes')" title="Мои маршруты"></div>
<div class="glyphicon _b glyphicon-road boxButtonTracks" onclick="openBox('Tracks')" title="Мои треки"></div>
<?php else: ?>
<div class="glyphicon" id="addPointButton" onclick="$('#loginModal').modal('show');" title="Добавить точку"><img src="/img/buttons/addPoint.png" style="margin-top: -10px; height: 30px;" /></div>
<div class="glyphicon" id="addPointButton" onclick="$('#loginModal').modal('show');" title="Добавить точку"><img src="/img/buttons/addPoint.png" style="height: 30px;" /></div>
<?php endif; ?>
</div>
<div id="box">

View File

@ -6,8 +6,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" prefix="og: http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#">
<head>
<title><?= App::getConfig('title') ?></title>
<meta name="Description" content="Карта, на которой отмечены достопримечательности разных стран. Создайте своё путешествие!">
<meta name="Keywords" content="путешествие, туризм, карта, достопримечательности, интересные места, на карте, адрес">
<meta name="description" content="<?= App::getConfig('description') ?>">
<meta name="keywords" content="путешествие, туризм, карта, достопримечательности, интересные места, на карте, адрес">
<link rel="shortcut icon" href="/favicon.ico"></link>
<link rel="icon" href="/favicon.ico"></link>

View File

@ -2,6 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" prefix="og: http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#">
<head>
<title><?= App::getConfig('title') ?></title>
<meta name="description" content="<?= App::getConfig('description') ?>">
<link rel="shortcut icon" href="/favicon.ico"></link>
<link rel="icon" href="/favicon.ico"></link>

View File

@ -14,7 +14,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-middle">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>
@ -167,7 +167,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-small">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>

View File

@ -14,7 +14,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-middle">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>
@ -167,7 +167,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-small">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>

View File

@ -14,7 +14,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-middle">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>
@ -167,7 +167,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-small">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>

View File

@ -13,7 +13,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-middle">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>
@ -195,7 +195,7 @@
<a href="mailto:info@wikipoints.ru">info@wikipoints.ru</a>
</div>
<div class="header-small">
<a href="tel:+78129814495">+7 (812) 981-4495</a>
<a href="tel:+79046106141">+7 (904) 610-6141</a>
</div>
</div>
</div>

View File

@ -1,18 +1,17 @@
<div class="row darkFooter">
<div class="col-md-4">
<h4 style="text-align: center;">Социальные сети</h4>
Присоединяйтеся к нам - это интересно!<br/>
Присоединяйтеся к нам это интересно!<br/>
<a href="https://vk.com/wikipoints" target="_blank">ВКонтакте</a> и
<a href="https://instagram.com/wikipoints/" target="_blank">Instagram</a><br/>
</div>
<div class="col-md-4">
<h4 style="text-align: center;">Контакты</h4>
Телефон: +7 (812) 981-4495<br/>
Телефон: <a href="tel:+79046106141">+7 (904) 610-6141</a><br/>
EMail: info&#64;wikipoints.ru<br/>
Приглашение к <a href="/article/24">сотрудничеству</a>
</div>
<div class="col-md-4">
<h4 style="text-align: center;">Прочее</h4>
2014-<?= date('Y') ?> &copy; wikipoints.ru - при любом использовании материалов ссылка на источник обязательна.
2014-<?= date('Y') ?> &copy; wikipoints.ru
</div>
</div>

View File

@ -50,6 +50,18 @@ $oldIndex = $pagesCount+1;
$header = 'Список точек пользователя <a href="/user/'.$user->id.'">"' . $user->nick . '"</a>';
}
?>
<br/><br/>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Point-TOP -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-0069680015252793"
data-ad-slot="2373587563"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<br/>
<h3><?= $header ?></h3>
<div class="pointsWall">

View File

@ -46,6 +46,18 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
<?php endif; ?>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Point-TOP -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-0069680015252793"
data-ad-slot="2373587563"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<br/>
<div class="mainTextBlock">
<?php
if (count($text) > 4) {

View File

@ -42,19 +42,6 @@ if (App::$user && App::$user->id) {
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Сотрудничество <span class="caret"></span></a>
<ul class="dropdown-menu">
<!-- <li><a href="/article/24">Общая информация</a></li>-->
<!-- <li><a href="/lp/">HORECA</a></li>-->
<li><a href="/lp/hotels">Отели и хостелы</a></li>
<li><a href="/lp/cafe">Рестораны и кафе</a></li>
<li><a href="/lp/excursion">Организаторы экскурсий</a></li>
<li role="separator" class="divider"></li>
<li><a href="/article/22">Контакты</a></li>
</ul>
</li>
<?php if (App::$user): ?>
<li class="dropdown">