ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Olegnax\Athlete2\Helper\Helper;
|
||||
|
||||
/** @var Helper $_helper */
|
||||
$_helper = $this->helper(Helper::class);
|
||||
$js = [];
|
||||
if ('1' == $_helper->getModuleConfig('products_listing/catalog_ajax_add_to_cart')) {
|
||||
$js[] = 'window.OXNAjaxCatalog = true;';
|
||||
}
|
||||
|
||||
if ('1' == $_helper->getModuleConfig('products_listing/show_minicart_after_added_product')) {
|
||||
$js[] = 'window.OXAjaxNShowMCart = true;';
|
||||
}
|
||||
if (!empty($js)) {
|
||||
echo sprintf('<script>%s</script>', implode('', $js));
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/** @var PrevNextProduct $block */
|
||||
|
||||
use Olegnax\Athlete2\Block\Html\PrevNextProduct;
|
||||
|
||||
$link_sufix = $block->getIsNext() ? 'next' : 'previous';
|
||||
$label_text = $block->escapeHtml(__($block->getIsNext() ? 'Next' : 'Previous'));
|
||||
?>
|
||||
<a href="<?php echo $block->getProductUrl() ?>" class="ox-prev-next__link ox-product-link-<?= $link_sufix; ?>"
|
||||
rel="<?= $link_sufix; ?>">
|
||||
<span class="content-wrapper">
|
||||
<span class="inner">
|
||||
<span class="content">
|
||||
<span class="name"><?php echo $block->getName(); ?></span>
|
||||
<span class="label"><?= $label_text; ?></span>
|
||||
</span>
|
||||
<span class="image-wrapper"><span
|
||||
class="overlay"></span><?php echo $block->getResizedImage('category_page_grid', [125, 145])->toHtml(); ?></span>
|
||||
</span>
|
||||
</span>
|
||||
<span class="ox-prev-next__arrow"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
||||
viewBox="0 0 20 20" xml:space="preserve">
|
||||
<polygon points="15.8,10.5 6.6,1.4 5.2,2.8 12.9,10.5 5.2,18.3 6.6,19.7 15.8,10.5 15.8,10.5 "/></svg></span>
|
||||
</a>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if ($this->getConfig('athlete2_design/appearance_custom/inline_css')) {
|
||||
$content = $this->getChildHtml('athlete2_dynamic_css');
|
||||
if (!empty($content)) {
|
||||
$content = preg_replace('/[\r\n\t]/', ' ', $content);
|
||||
$content = preg_replace('/[\r\n\t ]{2,}/', ' ', $content);
|
||||
$content = preg_replace('/\s+(\:|\;|\{|\})\s+/', '\1', $content);
|
||||
$content = preg_replace('/<[^<>]+>(.*?)<\/[^<>]+>/m', '/* Forbidden tags in styles */', $content);
|
||||
echo '<style type="text/css">' . $content . '</style>';
|
||||
}
|
||||
}
|
||||
+4257
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* MageSpecialist
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to info@magespecialist.it so we can send you a copy immediately.
|
||||
*
|
||||
* @category MSP
|
||||
* @package MSP_ReCaptcha
|
||||
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
*/
|
||||
|
||||
use Olegnax\Athlete2\Block\Frontend\ReCaptcha;
|
||||
|
||||
/** @var $block ReCaptcha */
|
||||
?>
|
||||
<div
|
||||
class="field-recaptcha"
|
||||
id="<?= /* @noEscape */
|
||||
$block->getRecaptchaId() ?>-container"
|
||||
data-bind="scope:'<?= /* @noEscape */
|
||||
$block->getRecaptchaId() ?>'"
|
||||
>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#<?= /* @noEscape */
|
||||
$block->getRecaptchaId() ?>-container": {
|
||||
"Magento_Ui/js/core/app": <?= /* @noEscape */
|
||||
$block->getJsLayout() ?>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Athlete2 Theme
|
||||
*
|
||||
* @author Olegnax
|
||||
* @package Olegnax_Athlete2
|
||||
* @copyright Copyright (c) 2023 Olegnax (https://olegnax.com). All rights reserved.
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
use Magento\Framework\View\Element\Template;
|
||||
use Olegnax\Athlete2\Helper\Video;
|
||||
|
||||
/** @var Template $block */
|
||||
$attributes = (array)$block->getVideoAttrs();
|
||||
$attributes = array_replace($attributes, [
|
||||
'tabindex' => -1,
|
||||
'playsinline' => true,
|
||||
'class' => 'ox-grid-gallery-video',
|
||||
]);
|
||||
|
||||
?>
|
||||
<video<?= Video::prepareAttributes($attributes) ?>>
|
||||
<?php foreach ($block->getMimeFiles() as $mime => $url): ?>
|
||||
<source src="<?= $url ?>" type="<?= $mime ?>">
|
||||
<?php endforeach; ?>
|
||||
</video>
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
$links = $block->getSocialLinks();
|
||||
$socials_id = $block->getSocialsId();
|
||||
$iconsStyle = $block->getLinkStyle();
|
||||
$iconsSize = $block->getLinkSize();
|
||||
$classes = [];
|
||||
$selector = '';
|
||||
$linkRel = '';
|
||||
$linkRelAtts = [];
|
||||
if($block->getLinkNoopener()){
|
||||
$linkRelAtts[] = 'noopener';
|
||||
}
|
||||
if($block->getLinkNoreferrer()){
|
||||
$linkRelAtts[] = 'noreferrer';
|
||||
}
|
||||
if($block->getLinkNofollow()){
|
||||
$linkRelAtts[] = 'nofollow';
|
||||
}
|
||||
if(!empty($linkRelAtts)){
|
||||
$linkRel = ' rel="' . implode(' ', $linkRelAtts) . '"';
|
||||
}
|
||||
if($iconsSize == 'tiny') {
|
||||
$classes[] = 'size-tiny';
|
||||
}
|
||||
if($iconsStyle == 'simple'){
|
||||
$classes[] = 'athlete2-social-icons-' . $iconsStyle;
|
||||
$selector = '#' . $socials_id . '.athlete2-social-icons-'. $iconsStyle .' > a.athlete2-social-icon';
|
||||
} else {
|
||||
$classes[] = 'athlete2-social-icons';
|
||||
$selector = '#' . $socials_id . '.athlete2-social-icons > a.athlete2-social-icon';
|
||||
}
|
||||
|
||||
$linkTarget = $block->getLinkTarget() ?: 'self';
|
||||
$selector_h = $selector . ':hover';
|
||||
$colors = [];
|
||||
$colors[ $selector . ':not(:hover)' ] = [
|
||||
'color' => $block->getTextColor(),
|
||||
'background' => $block->getBackground(),
|
||||
];
|
||||
$colors[ $selector_h ] = [
|
||||
'color' => $block->getTextHoverColor(),
|
||||
'background' => $block->getBackgroundHover(),
|
||||
];
|
||||
|
||||
if ( !empty( $links ) ) :
|
||||
?>
|
||||
<?= $block->prepareStyleBlock( $colors ); ?>
|
||||
<div id="<?= $socials_id ?>" class="<?= implode(' ', $classes); ?>">
|
||||
<?php foreach ( $links as $social => $link ): ?>
|
||||
<?php $social = str_replace('_', '-', $social); ?>
|
||||
<a href="<?= $link ?>" class="athlete2-social-icon athlete2-icon-<?= $social ?>" target="_<?= $linkTarget ?>"<?= $linkRel ?>><span><?= $social ?></span></a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user