На печатб выводится не вся страница, а только контент. Убрана реклама, точки рядом и прочее
This commit is contained in:
parent
1f378e68f6
commit
693348f2a8
|
|
@ -189,3 +189,7 @@ img.imageInArticle {border: solid 3px white;max-width: 100%;}
|
||||||
|
|
||||||
div.top5authors {width: 50%;}
|
div.top5authors {width: 50%;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.hideOnPrint {display: none!important};
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="commentForm">
|
<div class="commentForm hideOnPrint">
|
||||||
<a name="commentForm"></a>
|
<a name="commentForm"></a>
|
||||||
<div id="reply" style="display: none;">
|
<div id="reply" style="display: none;">
|
||||||
<span class="glyphicon glyphicon-share-alt"></span> ответ на <a href="" id="replyGoToComment">комментарий</a> пользователя
|
<span class="glyphicon glyphicon-share-alt"></span> ответ на <a href="" id="replyGoToComment">комментарий</a> пользователя
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,10 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
||||||
<?= $point->lat > 0 ? 'N' : 'S' ?><?= Coord::dergeeToMinute($point->lat) ?>
|
<?= $point->lat > 0 ? 'N' : 'S' ?><?= Coord::dergeeToMinute($point->lat) ?>
|
||||||
<?= $point->lng > 0 ? 'E' : 'W' ?><?= Coord::dergeeToMinute($point->lng) ?>
|
<?= $point->lng > 0 ? 'E' : 'W' ?><?= Coord::dergeeToMinute($point->lng) ?>
|
||||||
</nobr>
|
</nobr>
|
||||||
|
<span class="hideOnPrint">
|
||||||
/
|
/
|
||||||
<a href="/?point=<?= $point->id ?>" title="<?= $point->name ?> на карте">На карте</a>
|
</span>
|
||||||
|
<a href="/?point=<?= $point->id ?>" class="hideOnPrint" title="<?= $point->name ?> на карте">На карте</a>
|
||||||
<?php if ($user && $user->isAdmin): ?>
|
<?php if ($user && $user->isAdmin): ?>
|
||||||
/
|
/
|
||||||
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
|
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
|
||||||
|
|
@ -134,7 +136,7 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<?php if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id): ?>
|
<?php if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id): ?>
|
||||||
<div class="row">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-12 text-center">
|
<div class="col-md-12 text-center">
|
||||||
<script charset="utf-8" type="text/javascript">
|
<script charset="utf-8" type="text/javascript">
|
||||||
window.TP_FORM_SETTINGS = window.TP_FORM_SETTINGS || {};
|
window.TP_FORM_SETTINGS = window.TP_FORM_SETTINGS || {};
|
||||||
|
|
@ -224,7 +226,7 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="row">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-12" style="text-align: center;">
|
<div class="col-md-12" style="text-align: center;">
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
<!-- Point - DOWN -->
|
<!-- Point - DOWN -->
|
||||||
|
|
@ -245,7 +247,7 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
||||||
<?= self::renderPartial('comments/all.php', array('parentId' => $point->id, 'parentType' => 'point'), TRUE); ?>
|
<?= self::renderPartial('comments/all.php', array('parentId' => $point->id, 'parentType' => 'point'), TRUE); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr class="hideOnPrint"/>
|
||||||
|
|
||||||
<!--googleoff: all-->
|
<!--googleoff: all-->
|
||||||
<!--noindex-->
|
<!--noindex-->
|
||||||
|
|
@ -259,27 +261,27 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr class="hideOnPrint"/>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (!empty($closestPoints)): ?>
|
<?php if (!empty($closestPoints)): ?>
|
||||||
<div class="row">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h3 style="margin-top: 0;">Поблизости расположены:</h3>
|
<h3 style="margin-top: 0;">Поблизости расположены:</h3>
|
||||||
<?php foreach ($closestPoints as $cPoint): ?><a href="/point/<?= $cPoint->id ?>" class="pagePoinsNearCards"><?php if($cPoint->categoryId == 26):?><div class="excursionMarker" title="<?= $cPoint->name ?>"><img src="/ico/flag-export.png"> ЭКСКУРСИЯ</div><?php endif;?><img src="<?= $cPoint->getImg() ?>" title="<?= $cPoint->name ?>" class="pagePoinsNearCardsImg"/></a><?php endforeach; ?>
|
<?php foreach ($closestPoints as $cPoint): ?><a href="/point/<?= $cPoint->id ?>" class="pagePoinsNearCards"><?php if($cPoint->categoryId == 26):?><div class="excursionMarker" title="<?= $cPoint->name ?>"><img src="/ico/flag-export.png"> ЭКСКУРСИЯ</div><?php endif;?><img src="<?= $cPoint->getImg() ?>" title="<?= $cPoint->name ?>" class="pagePoinsNearCardsImg"/></a><?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr class="hideOnPrint"/>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (!$articles): ?>
|
<?php if (!$articles): ?>
|
||||||
<div class="row">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h3 style="margin-top: 0;">Похожие точки:</h3>
|
<h3 style="margin-top: 0;">Похожие точки:</h3>
|
||||||
<?php foreach ($similarPoints as $sPoint): ?><a href="/point/<?= $sPoint->id ?>" class="pagePoinsNearCards"><img src="<?= $sPoint->getImg() ?>" title="<?= $sPoint->name ?>" class="pagePoinsNearCardsImg"/></a><?php endforeach; ?>
|
<?php foreach ($similarPoints as $sPoint): ?><a href="/point/<?= $sPoint->id ?>" class="pagePoinsNearCards"><img src="<?= $sPoint->getImg() ?>" title="<?= $sPoint->name ?>" class="pagePoinsNearCardsImg"/></a><?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr class="hideOnPrint"/>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!--/noindex-->
|
<!--/noindex-->
|
||||||
<!--googleon: all-->
|
<!--googleon: all-->
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<!--googleoff: all-->
|
<!--googleoff: all-->
|
||||||
<!--noindex-->
|
<!--noindex-->
|
||||||
<div class="row">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h3 style="margin-top: 0;">Это интересно: <?= $randomPoint->name ?></h3>
|
<h3 style="margin-top: 0;">Это интересно: <?= $randomPoint->name ?></h3>
|
||||||
<a href="/point/<?= $randomPoint->id ?>" class="randomPointAImg"><img src="<?= $randomPoint->getImg() ?>" style="width: 200px; height: 150px;"/></a>
|
<a href="/point/<?= $randomPoint->id ?>" class="randomPointAImg"><img src="<?= $randomPoint->getImg() ?>" style="width: 200px; height: 150px;"/></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue