ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
?>
<svg data-name="athlete-marker" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="<?= $viewBox ?>">
<circle fill="<?= $location->getMarkerColor1() ?>" cx="17" cy="17" r="17" transform="scale(<?=
$markerScale ?>)"/>
<circle fill="<?= $location->getMarkerColor2() ?>" cx="17" cy="17" r="6"
transform="scale(<?= $markerScale ?>)"/>
<polyline fill="<?= $location->getMarkerColor1() ?>" points="30.9 26.8 17.1 48.4 2.6 26"
transform="scale(<?= $markerScale ?>)"/>
</svg>
@@ -0,0 +1,40 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Data\Location as DataLocation;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
$markerSize = 70;
$markerSize*=$markerScale;
$innerScale = 0.7;
$markerRadius = $markerSize / 2;
$markerInnerRadius = (($markerSize*$innerScale)/2);
$imagePosition = ($markerSize-($markerSize*$innerScale))/2;
$image = $block->getData('widgetBlock')->contentLocalImage(DataLocation::MARKER_IMAGE, $location);
?>
<svg preserveaspectratio="xMidYMid meet" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="<?= $viewBox ?>">
<circle class="ox-marker-shape" cx="<?= $markerRadius ?>" cy="<?= $markerRadius ?>" r="<?= $markerRadius ?>" fill="<?= $location->getMarkerColor1() ?>" />
<circle class="ox-marker-inner" cx="<?= $markerRadius ?>" cy="<?= $markerRadius ?>" r="<?= $markerInnerRadius ?>" fill="<?= $location->getMarkerColor2() ?>" />
<?php if ($image): ?>
<defs>
<clipPath id="oxImageMask">
<circle cx="<?= $markerSize/2 ?>" cy="<?= $markerSize/2 ?>" r="<?= $markerInnerRadius ?>" fill="<?= $location->getMarkerColor2() ?>" />
</clipPath>
</defs>
<image width="<?= $markerSize*$innerScale ?>" height="<?= $markerSize*$innerScale ?>" x="<?= $imagePosition ?>" y="<?= $imagePosition ?>" xlink:href="<?= $image ?>" clip-path="url(#oxImageMask)" />
<?php endif; ?>
</svg>
@@ -0,0 +1,25 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="<?= $viewBox ?>" xml:space="preserve">
<circle cx="18" cy="18" r="18" fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
<circle cx="18" cy="18" r="4" fill="<?= $location->getMarkerColor2() ?>" transform="scale(<?= $markerScale ?>)"/>
</svg>
@@ -0,0 +1,25 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="<?= $viewBox ?>" xml:space="preserve">
<ellipse class="ox-marker-shadow" cx="17.5" cy="33.2" rx="12.1" ry="1.8" fill="<?= $location->getMarkerShadowColor() ?>" transform="scale(<?= $markerScale ?>)"/>
<path d="M11,34L11,34c-1.1,0-2-0.9-2-2V2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v30C13,33.1,12.1,34,11,34z" fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
<polygon points="9,0 35,0 28,8 35,16 9,16 " fill="<?= $location->getMarkerColor2() ?>" transform="scale(<?= $markerScale ?>)"/>
</svg>
@@ -0,0 +1,29 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="<?= $viewBox ?>" xml:space="preserve">
<ellipse cx="18" cy="49" rx="12" ry="2" fill="<?= $location->getMarkerShadowColor() ?>"
transform="scale(<?= $markerScale ?>)"/>
<path d="M18,50L18,50c-1.1,0-2-0.9-2-2V18c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v30C20,49.1,19.1,50,18,50z"
fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
<circle cx="18" cy="15" r="15" fill="<?= $location->getMarkerColor2() ?>" transform="scale(<?= $markerScale ?>)"/>
</svg>
@@ -0,0 +1,28 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="<?= $viewBox ?>" xml:space="preserve">
<ellipse class="ox-marker-shadow" cx="17" cy="39.5" rx="11" ry="1.5" fill="<?= $location->getMarkerShadowColor() ?>"
transform="scale(<?= $markerScale ?>)"/>
<path d="M29.6,28.4L18.7,39.3c-0.9,0.9-2.5,0.9-3.4,0L4.4,28.4" fill="<?= $location->getMarkerColor1() ?>"
transform="scale(<?= $markerScale ?>)"/>
<path d="M17,0C7.6,0,0,7.6,0,17s7.6,17,17,17s17-7.6,17-17S26.4,0,17,0z M17,24.2c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7
S20.9,24.2,17,24.2z" fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
</svg>
@@ -0,0 +1,40 @@
<?php
/**
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
use Olegnax\GoogleMap\Model\Data\Location as DataLocation;
use Olegnax\GoogleMap\Model\Location;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var array $icon */
/** @var Location $location */
$viewBox = '0 0 ' . implode(' ', $icon['scaledSize']);
$markerScale = $location->getMarkerSize();
$markerSize = 70;
$innerScale = 0.7;
$imageScaled = $markerSize * $innerScale * $markerScale;
$innerPosition = (($markerSize-($markerSize*$innerScale))/2);
$image = $block->getData('widgetBlock')->contentLocalImage(DataLocation::MARKER_IMAGE, $location);
?>
<svg preserveaspectratio="xMidYMid meet" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="<?= $viewBox ?>">
<ellipse class="ox-marker-shadow" cx="<?= (($markerSize/2) - 6) ?>" cy="<?= ($markerSize - 4) ?>" rx="12" ry="2" fill="<?= $location->getMarkerShadowColor() ?>" transform="scale(<?= $markerScale ?>)"/>
<rect width="<?= $markerSize ?>" height="<?= $markerSize ?>" fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
<rect x="<?= $innerPosition ?>" y="<?= $innerPosition ?>" width="<?= $markerSize*$innerScale ?>" height="<?= $markerSize*$innerScale ?>" fill="<?= $location->getMarkerColor2() ?>" transform="scale(<?= $markerScale ?>)"/>
<polygon points="36.3,78.5 27.8,70 36.3,70 44.8,70 " fill="<?= $location->getMarkerColor1() ?>" transform="scale(<?= $markerScale ?>)"/>
<?php if ($image): ?>
<defs>
<clipPath id="oxImageMask">
<rect x="<?= $innerPosition ?>" y="<?= $innerPosition ?>" width="<?= $markerSize*$innerScale ?>" height="<?= $markerSize*$innerScale ?>" fill="<?= $location->getMarkerColor2() ?>" transform="scale(<?= $markerScale ?>)"/>
</clipPath>
</defs>
<image width="<?= $imageScaled ?>" height="<?= $imageScaled ?>" x="<?= $innerPosition*$markerScale ?>" y="<?= $innerPosition*$markerScale ?>" xlink:href="<?= $image ?>" clip-path="url(#oxImageMask)" />
<?php endif; ?>
</svg>
@@ -0,0 +1,82 @@
<?php
/**
* Olegnax GoogleMap Style
*
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
/** @var Template $block */
/** @var Escaper $escaper */
/** @var string $widgetId */
$widgetId = $block->getData('widgetId');
/** @var array $appearance */
$appearance = $block->getData('appearance');
/** @var array $general */
$general = $block->getData('general');
if ($appearance['custom_styles']):
$popBg = $appearance['popup_background'];
$popColor = $appearance['popup_color'];
$shadowParams = $appearance['popup_shadow'];
$shadowColor = $appearance['popup_shadow_color'];
$popBorderRadius = $appearance['popup_border_radius'];
if ($appearance['popup_max_width']):?>
#<?= $widgetId ?> .ox-gmap-popup { max-width: <?= $appearance['popup_max_width'] ?>px }
<?php endif; ?>
<?php if ($popBg || $popColor): ?>
.poi-info-window div,
.poi-info-window a {
<?php if ($popColor): ?>
color: <?= $popColor ?>!important;
<?php endif; ?>
<?php if ($popBg): ?>
background-color: <?= $popBg ?>!important;
<?php endif; ?>
}
<?php endif; ?>
<?php if ($popBg || $popColor || $shadowParams || $shadowColor || $popBorderRadius): ?>
#<?= $widgetId ?> .gm-style .gm-style-iw-c {
<?php if ($popBg): ?>
background-color: <?= $popBg ?>!important;
<?php endif; ?>
<?php if ($popColor): ?>
color: <?= $popColor ?>!important;
<?php endif; ?>
<?php if ($popBorderRadius !== ''): ?>
border-radius: <?= $popBorderRadius ?>px!important;
<?php endif; ?>
<?php if ($shadowParams || $shadowColor) : ?>
box-shadow: <?= ($shadowParams ?: '0 2px 7px 1px') . ' ' . ($shadowColor ?: 'rgba(0,0,0,0.33)') ?>!important;
<?php endif; ?>
}
<?php endif; ?>
<?php if ($popBg): ?>
#<?= $widgetId ?> .gm-style .gm-style-iw-t::after { background: linear-gradient(45deg,<?= $popBg ?> 50%,rgba(255,255,255,0) 51%,rgba(255,255,255,0) 100%);!important; }
<?php endif;
if ($appearance['popup_bottom_arrow_hide']): ?>
#<?= $widgetId ?> .gm-style .gm-style-iw-t::after { content: none!important; }
<?php endif;
if ($appearance['popup_close_btn_bg']):?>
#<?= $widgetId ?> .gm-style .gm-style-iw-c > button { opacity:1!important; background-color: <?= $appearance['popup_close_btn_bg'] ?>!important; }
<?php endif;
if ($appearance['popup_close_btn_invert']):?>
#<?= $widgetId ?> .gm-style .gm-style-iw-c > button > img { filter: invert(1)!important; }
<?php endif;
endif;
if ($general['height']): ?>
#<?= $widgetId ?>.ox-gmap-wrapper{ height: <?= $general['height'] ?>px }
<?php endif;
if ($general['height_tablet']): ?>
@media (max-width: 1024px) {#<?= $widgetId ?>.ox-gmap-wrapper{ height: <?= $general['height_tablet'] ?>px }}
<?php endif;
if ($general['height_mobile']): ?>
@media (max-width: 768px) {#<?= $widgetId ?>.ox-gmap-wrapper{ height: <?= $general['height_mobile'] ?>px }}
<?php endif;
@@ -0,0 +1,24 @@
<?php
/**
* Olegnax GoogleMap Widget
*
* @author Olegnax
* @package Olegnax_GoogleMap
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
* @noinspection PhpUnhandledExceptionInspection
*/
declare(strict_types=1);
use Magento\Framework\Escaper;
use Olegnax\GoogleMap\Block\Widget\GoogleMap;
/** @var GoogleMap $block */
/** @var Escaper $escaper */
if ($block->isEnabled()):
$widgetId = $block->getMapId();
echo $block->getStyle($widgetId);
?>
<div id="<?= $escaper->escapeHtmlAttr($widgetId); ?>" class="ox-gmap-wrapper" data-role="ox-google-map"
data-mage-init='<?= $escaper->escapeHtml($block->getWidgetConfig()) ?>'></div>
<?php endif;