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,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="old_editor"/>
<head>
<css src="Olegnax_Core::onoff-trigger/on-off.css"/>
<link src="Olegnax_Core::onoff-trigger/on-off.js"/>
</head>
<body>
<referenceContainer name="page.content">
<container name="OX.content" htmlTag="div" htmlClass="block olegnax core notice content"
after="page.main.actions">
<block name="olegnax.core.notice.content" class="Olegnax\Core\Block\Adminhtml\NoticeContent"/>
</container>
<container name="OX.contentp" htmlTag="div" htmlClass="block olegnax core notice contentp"
after="page.main.actions">
<block name="olegnax.core.notice.contentp" class="Olegnax\Core\Block\Adminhtml\NoticeContentP"/>
</container>
<container name="OX.news" htmlTag="div" htmlClass="block olegnax core notice news"
after="page.main.actions">
<block name="olegnax.core.notice.news" class="Olegnax\Core\Block\Adminhtml\NoticeNews"/>
</container>
<container name="OX.update" htmlTag="div" htmlClass="block olegnax core notice update"
after="page.main.actions">
<block name="olegnax.core.notice.update" class="Olegnax\Core\Block\Adminhtml\NoticeUpdate"/>
</container>
</referenceContainer>
</body>
</page>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Olegnax_Core::js/tools.js"/>
</head>
</page>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Backend::js/bootstrap/editor.js"/>
<css src="prototype/windows/themes/default.css"/>
</head>
</page>
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="Olegnax\Core\Block\Adminhtml\Modules\Update" name="modules.update"
template="Olegnax_Core::modules/update.phtml"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,137 @@
<?php
/**
* @author Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) 2023 Olegnax (http://olegnax.com/)
* @license https://olegnax.com/license
*/
use Olegnax\Core\Block\Adminhtml\Modules\Update;
/** @var $block Update */
$block->ForsedUpdate();
$modules = $block->getModuleVersions();
$themes = $block->getThemeVersions();
?>
<div class="admin__page-section-item ox-admin__modules">
<div class="admin__page-section-item-content ox-admin__row">
<?php foreach ($modules as $module) : ?>
<?php if (is_array($module)): ?>
<div class="ox-admin__module us-<?php echo ($module['update_status']) ? 'nok' : 'ok'; ?>">
<div class="ox-admin__module-wrapper">
<?php if (array_key_exists('image', $module) && !empty($module['image'])): ?>
<div class="ox-admin__module-image">
<img src="<?php echo $module['image'] ?>" />
</div>
<?php endif; ?>
<div class="ox-admin__status-wrapper">
<span class="ox-module-status ox-module-status-<?php echo ($module['update_status']) ? 'nok' : 'ok'; ?>"><?php echo ($module['update_status']) ? __('Update Required') : __('Up to Date'); ?></span>
<?php if (array_key_exists('pro', $module)): ?>
<a target="_blank" class="ox-pro-version" href="<?php echo $module['pro'] ?>"><?php echo __('Get Pro'); ?></a>
<?php endif; ?>
</div>
<div class="ox-admin__module-title-wrapper">
<a target="_blank" href="<?= array_key_exists('url', $module) ?: '#'; ?>">
<span class="ox-module-title"><?php if (array_key_exists('title', $module)): echo $module['title']; else: echo $module['name']; endif; ?>
<?php if ($module['theme_module']) : ?>
<span class="ox-module-theme-info"><?php echo __('Theme module'); ?></span>
<?php endif; ?>
</span>
</a>
</div>
<div class="ox-admin__module-info">
<table>
<tr>
<td><?php echo $block->escapeHtml(__('Installed Version')); ?></td>
<td><?php echo $module['setup_version'] ?></td>
</tr>
<tr>
<td><?php echo $block->escapeHtml(__('Latest Version')); ?></td>
<td><span class="ox-server-version"><?php echo $module['server_version'] ?></span></td>
</tr>
<tr>
<td><?php echo $block->escapeHtml(__('Status')); ?></td>
<td><?php echo ($module['enabled']) ? __('Enabled') : __('Disabled') ?></td>
</tr>
<tr>
<td colspan="2"><span class="ox-module-full-name"><?php echo $module['name'] ?></span></td>
</tr>
</table>
</div>
<div class="ox-admin__modules-bottom">
<?php if (array_key_exists('docs', $module)): ?>
<a target="_blank" href="<?php echo $module['docs'] ?>"><span class="icon-docs"></span><?php echo __('Docs'); ?></a>
<?php endif; ?>
<?php if (array_key_exists('url_changelog', $module)): ?>
<a target="_blank" class="changelog-link" href="<?php echo $module['url_changelog'] ?>"><?php echo __('Changelog'); ?></a>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<div class="admin__page-section-item ox-admin__modules">
<div class="admin__page-section-item-title">
<h1 class="page-title"><?php echo $block->escapeHtml(__('Themes')); ?></h1>
</div>
<div class="admin__page-section-item-content ox-admin__row">
<?php foreach ($themes as $theme) : ?>
<div class="ox-admin__theme us-<?php echo ($theme['update_status']) ? 'nok' : 'ok'; ?>">
<div class="ox-admin__theme-wrapper">
<div class="ox-admin__theme-image">
<?php if (array_key_exists('image', $theme) && !empty($theme['image'])): ?>
<img src="<?php echo $theme['image'] ?>"/>
<?php endif; ?>
</div>
<div class="ox-admin__theme-content">
<div class="ox-admin__status-wrapper">
<?php if($theme['established']) : ?>
<span class="ox-module-status ox-module-status-<?php echo ($theme['update_status']) ? 'nok' : 'ok'; ?>"><?php echo ($theme['update_status']) ? __('Update Required') : __('Up to Date'); ?></span>
<?php else: ?>
<span class="ox-module-status ox-module-status-none"><?php echo __('Not Installed'); ?></span>
<?php endif; ?>
</div>
<div class="ox-admin__module-title-wrapper">
<a target="_blank" href="<?= array_key_exists('url', $theme) ?: '#'; ?>">
<span class="ox-module-title"><?php if (array_key_exists('title', $theme)): echo $theme['title']; else: echo $theme['name']; endif; echo __(' Theme'); ?></span>
</a>
</div>
<div class="ox-admin__module-info">
<table>
<?php if ($theme['established']) : ?>
<tr>
<td><?php echo $block->escapeHtml(__('Installed Version')); ?></td>
<td><?php echo $theme['setup_version'] ?></td>
</tr>
<?php endif; ?>
<tr>
<td><?php echo $block->escapeHtml(__('Latest Version')); ?></td>
<td><span class="ox-server-version"><?php echo $theme['server_version'] ?></span></td>
</tr>
</table>
</div>
<?php if (!$theme['established']) : ?>
<div class="ox-admin__module-actions">
<a href="https://themeforest.net/item/athlete2-strong-magento-2-theme/23693737" target="_blank" class="ox-button -green">Download</a><a href="https://athlete2.com/landing/" target="_blank" class="ox-underlined -black">Preview</a>
</div>
<?php endif; ?>
<div class="ox-admin__modules-bottom">
<span class="icon-docs"></span>
<?php if (array_key_exists('docs', $theme)): ?>
<a target="_blank" href="<?php echo $theme['docs'] ?>"><?php echo __('Docs'); ?></a>
<?php endif; ?>
<?php if (array_key_exists('url_changelog', $theme)): ?>
<a target="_blank" class="changelog-link" href="<?php echo $theme['url_changelog'] ?>"><?php echo __('Changelog'); ?></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
@@ -0,0 +1,27 @@
/**
* Olegnax
*
* NOTICE OF LICENSE
*
* This source file is subject to the Olegnax.com license that is
* available through the world-wide-web at this URL:
* https://olegnax.com/license
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) 2010-2021 Olegnax (http://olegnax.com/)
* @license https://olegnax.com/license
*/
@import "variables/_icons.less";
.lib-font-face(
@family-name: @icons-olegnax__font-name,
@font-path: @icons-olegnax__font-name-path,
@font-weight: normal,
@font-style: normal
);
@@ -0,0 +1,264 @@
/**
* Olegnax
*
* NOTICE OF LICENSE
*
* This source file is subject to the Olegnax.com license that is
* available through the world-wide-web at this URL:
* https://www.olegnax.com/license
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Olegnax
* @package Olegnax_Athlete2
* @copyright Copyright (c) 2010-2021 Olegnax (http://www.olegnax.com/)
* @license https://www.olegnax.com/license
*/
@athlete2__icon--support-tiny: '@{baseDir}Olegnax_Core/images/support-icon-tiny.png';
@athlete2__icon--docs-tiny: '@{baseDir}Olegnax_Core/images/docs-icon-tiny.png';
@ox-logo: '@{baseDir}Olegnax_Core/images/ox.png';
/* -------------------------------
Module Info block above settings
------------------------------- */
.ox-info-block{
padding-left: 108px;
position:relative;
box-shadow: 1px 4px 27px rgba(210, 225, 240, 0.54);
padding: 20px 30px;
display: flex;
flex-wrap:wrap;
min-height: 40px;
align-items: center;
margin-bottom: 30px;
padding-left:108px;
a{
border-bottom:1px solid;
text-decoration: none;
}
.ox-info-block__right{
width:100%;
display: flex;
align-items: center;
margin-top: 15px;
}
.ox-info-block__docs{
&:before{
content:'';
display: inline-block;
width:31px;
height:28px;
margin-right:15px;
background-image: url(@athlete2__icon--docs-tiny);
background-position: center;
background-repeat: no-repeat;
vertical-align: middle;
}
a{
font-weight: 600;
color:#1f1e32;
border-color:transparent;
transition:all 0.2s ease;
&:hover{
border-color:black;
}
}
}
.ox-info-block__support{
&:before{
content: '';
width: 1px;
height: 20px;
background: #e4e4e4;
display: inline-block;
position: relative;
margin-left: 25px;
vertical-align: middle;
margin-right: 25px;
top: -10px;
}
.label{
font-weight: 600;
color:#1f1e32;
display:block;
width: 100%;
padding: 0;
float: none;
text-align: left;
}
a{
font-weight:600;
font-size: 13px;
color:#1f1e32;
position: relative;
top: -3px;
transition:all 0.2s ease;
&:hover{
border-color:transparent;
}
}
.ox-wrapper{
display: inline-block;
padding-left: 43px;
position: relative;
&:before{
content:'';
display: inline-block;
width:29px;
height:26px;
margin-right:15px;
background-position: center;
background-repeat: no-repeat;
background-image: url(@athlete2__icon--support-tiny);
position: absolute;
left: 0;
top: 4px;
}
}
&.ox-support-expired{
.label{
color: #b4b4b4;
}
}
&.ox-support-active{
a{
&:after{
content: '';
width: 10px;
height: 10px;
background: #95d033;
display: inline-block;
border-radius: 6px;
position: relative;
margin-left: 5px;
}
}
}
}
.ox-info-block__logo{
line-height: 0;
display: block;
border: none;
text-decoration: none;
background: #2b292a;
width:78px;
position: absolute;
top:0;
bottom:0;
left:0;
&:before{
content:'';
display: block;
width:49px;
height:33px;
background-position: center;
background-repeat: no-repeat;
background-image: url(@ox-logo);
position: absolute;
top: 50%;
margin-top: -16px;
left: 50%;
margin-left: -25px;
}
}
.ox-info-block__title{
font-weight: 800;
color:#1f1e32;
font-size:16px;
&:after{
content: '';
width: 1px;
height: 20px;
background: #e4e4e4;
display: inline-block;
position: relative;
margin-left: 25px;
vertical-align: middle;
margin-right: 25px;
}
}
.ox-info-block__dev{
font-size: 13px;
font-weight: 600;
line-height: 1.2;
margin-right: 25px;
}
.ox-info-block__version{
margin-right:25px;
a{
transition:all 0.2s ease;
margin-left: 12px;
color:#494949;
border-bottom:1px solid;
text-decoration: none;
font-weight: 600;
&:hover{
border-color:transparent;
}
}
.ox-module-version{
color: #41362f;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: 400;
line-height: 1.36;
font-size: 1.4rem;
}
.ox-modules-expired,
.ox-module-expired,
.ox-module-version,
.ox-theme-version{
&:before{
content: '';
width: 10px;
height: 10px;
background: #95d033;
display: inline-block;
border-radius: 6px;
position: relative;
margin-right: 10px;
}
}
.ox-modules-expired,
.ox-module-expired{
&:before{
background: #e35000;
}
}
.ox-modules-expired{
a{
margin-left: 0;
}
}
&.expired{
.ox-module-version,
.ox-theme-version{
&:before{
background: #e35000;
}
}
.ox-server-version{
font-weight: 700;
color:#e35000;
margin-left: 10px;
}
}
}
}
@media (min-width: 1380px){
.ox-info-block{
.ox-info-block__right{
width:auto;
margin-left: auto;
margin-top: 0;
}
}
}
@@ -0,0 +1,416 @@
/**
* Olegnax
*
* NOTICE OF LICENSE
*
* This source file is subject to the Olegnax.com license that is
* available through the world-wide-web at this URL:
* https://olegnax.com/license
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) 2010-2021 Olegnax (http://olegnax.com/)
* @license https://olegnax.com/license
*/
@import '_icons.less';
@import '_info-block.less';
.ox-pro-badge(){
text-decoration: none;
background: #d878dd;
color: #fff;
display: inline-block;
padding: 6px 15px;
border-radius: 14px;
font-size: 12px;
font-weight: 600;
line-height: 1;
box-shadow: 0 9px 16px -6px rgb(216, 120, 221);
border: none;
&:before{
content:'';
display:inline-block;
width: 10px;
height: 10px;
margin-right: 6px;
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iQm9sZCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Im01LjU3NCAxNS4zNjItMS4yNjcgNy43NjdjLS4xMDEuNjE3LjU1OCAxLjA4IDEuMTAzLjc3N2w2LjU5LTMuNjQyIDYuNTkgMy42NDNjLjU0LjMgMS4yMDUtLjE1NCAxLjEwMy0uNzc3bC0xLjI2Ny03Ljc2NyA1LjM2LTUuNDk0Yy40MjUtLjQzNS4xODEtMS4xNzMtLjQyMy0xLjI2NWwtNy4zNzgtMS4xMjctMy4zMDctNy4wNDRjLS4yNDctLjUyNi0xLjExLS41MjYtMS4zNTcgMGwtMy4zMDYgNy4wNDMtNy4zNzggMS4xMjdjLS42MDYuMDkzLS44NDguODMtLjQyMyAxLjI2NXoiLz48L3N2Zz4=);
background-position: center;
background-repeat: no-repeat;
background-size: 10px 10px;
}
&:hover{
color: #fff;
}
}
.ox-info-block .ox-pro-version{
.ox-pro-badge();
}
.ox-button,
a.ox-button{
display: inline-block;
padding: 11px 22px;
border-radius: 18px;
font-size: 14px;
font-weight: 600;
line-height: 1;
margin-right: 10px;
margin-bottom: 8px;
text-decoration: none;
color: #fff;
transition: all 0.25s ease;
&.-green{
background: #91cf24;
box-shadow: 0 9px 16px -6px rgba(145, 207, 35, 0.8);
}
&.-purple{
background: #8f5ff1;
box-shadow: 0 9px 16px -6px rgba(143, 95, 241, 0.8);
}
&:hover{
&.-green{
box-shadow: 0 7px 11px -6px rgba(145, 207, 35, 0.8);
}
&.-purple{
box-shadow: 0 7px 11px -6px rgba(143, 95, 241, 0.8);
}
transform: translateY(3px);
}
}
.ox-underlined,
a.ox-underlined{
display: inline-block;
line-height: 21px;
font-size: 15px;
border-bottom: 2px solid;
font-weight: 600;
margin: 8px;
text-decoration: none;
position: relative;
top: -2px;
transition: all 0.25s ease;
&.-purple{
color: #8f5ff1;
border-color: #8f5ff1;
}
&.-black{
color:#000;
border-color: #000;
}
&:hover{
&,
&.-black,
&.-purple{
border-color: transparent;
}
}
}
.item-olegnax-core{
.submenu{
.level-1 > a{
color: #a79d95;
display: block;
font-size: 1.6rem;
font-weight: 600;
margin-bottom: .7rem;
padding: 1.25rem 1.5rem;
}
.item-modules-update {
margin-bottom: 1.5rem;
padding-bottom: 2rem!important;
border-bottom: 1px solid rgba(167, 157, 149, 0.3);
a{
&:before{
content: '';
background: url('@{baseDir}Olegnax_Core/images/info.png');
width: 16px;
height: 16px;
background-size:16px 16px;
background-position: center;
display: inline-block;
margin-right: 10px;
margin-bottom: -2px;
}
}
}
}
}
.admin__menu .item-olegnax-core.parent.level-0 > a:before {
content: @icon-olegnax__content;
font-family: @icons-olegnax__font-name;
}
.ox-settings-spacer {
margin: 2.2rem 0 1.2rem;
border: 0;
border-bottom: 1px solid #cccccc;
}
.ox-admin__table-wrapper{
box-shadow: 1px 10px 40px rgba(210,225,240,.52);
background: #fff;
padding: 30px;
}
.ox-admin__modules{
.admin__page-section-item-content{
margin-bottom: 60px;
}
.admin__table-secondary {
th,
td{
padding: 1.5rem;
text-align: center;
&:first-child{
text-align: left;
font-weight: 700;
}
}
tbody tr:nth-child(odd){
th,
td{
background-color: #f6f9fc;
}
}
}
.ox-module-status{
display: inline-block;
padding: 6px 15px;
border-radius: 14px;
font-size: 12px;
font-weight: 600;
line-height: 1;
margin-right: 5px;
margin-bottom: 8px;
}
.ox-module-status-ok{
background: #91cf24;
color: #fff;
box-shadow: 0 9px 16px -6px rgba(145, 207, 35, 0.84);
}
.ox-module-status-nok{
background: #e34426;
color: #fff;
box-shadow: 0 9px 16px -6px rgba(227, 38, 38, 0.47);
}
.ox-module-status-none{
background: #f3f6f8;
color: #201e33;
font-weight: bold;
font-size: 15px;
}
.ox-admin__theme,
.ox-admin__module{
&.us-nok{
.ox-admin__module-info{
.server-version{
font-weight: bold;
color:red;
}
}
}
}
.ox-admin__row{
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.ox-admin__module{
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-bottom: 30px;
&:hover{
.ox-admin__module-wrapper {
box-shadow: 1px 4px 10px rgba(210, 225, 240, 0.69);
transform: translateY(3px);
}
}
}
.ox-admin__module-wrapper{
transition: all 300ms ease;
height: 100%;
padding:20px 0;
box-shadow: 1px 10px 40px rgba(210,225,240,.52);
background: #fff;
> div{
padding-left:20px;
padding-right:20px;
}
}
.ox-module-full-name{
word-break: break-all;
}
.ox-admin__theme{
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
&:hover{
.ox-admin__theme-wrapper {
box-shadow: 1px 4px 10px rgba(210, 225, 240, 0.69);
transform: translateY(3px);
}
}
}
.ox-admin__theme-content{
display: flex;
flex-direction: column;
justify-content: center;
}
.ox-admin__theme-wrapper{
transition: all 300ms ease;
width: 100%;
display: flex;
height:100%;
box-shadow: 1px 10px 40px rgba(210,225,240,.52);
background: #fff;
.ox-admin__theme-content{
padding: 35px;
}
}
.ox-admin__module-image,
.ox-admin__theme-image{
background: #f6f9fc;
img{
width:100%;
height:auto;
}
}
.ox-admin__status-wrapper{
margin-bottom:8px;
.ox-pro-version{
.ox-pro-badge();
margin-bottom: 8px;
}
}
.ox-admin__module-title-wrapper{
margin-bottom: 20px;
a{
text-decoration: none;
}
.ox-module-title{
color: black;
font-size:16px;
font-weight: 700;
}
.ox-module-theme-info{
font-size: 13px;
display: block;
font-weight: 600;
}
}
.ox-admin__theme-wrapper{
.ox-admin__module-title-wrapper{
.ox-module-title{
font-size:24px;
}
}
.ox-admin__module-info {
padding: 20px;
}
}
.ox-admin__module-info {
background:#f6f9fc;
padding: 20px 0;
table{
width: 100%;
line-height: 1.8;
th,
td{
text-align: right;
&:first-child{
text-align: left;
}
}
}
}
.ox-admin__module-actions{
margin-top: 15px;
}
.ox-admin__modules-bottom{
margin-top: 25px;
display:flex;
flex-wrap:wrap;
.icon-docs{
display:inline-block;
width:18px;
height:22px;
margin-right:10px;
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FwYV8xIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGc+PHBhdGggZD0ibTM1Ny4xMDUgMGgtMzEyLjA2OXY1MTJoNDIxLjkyOHYtNDAyLjMzM3ptOC43OTUgNTEuMTY4IDQ5LjgwNiA0OS43MmgtNDkuODA2em0tMjkwLjg2NCA0MzAuODMydi00NTJoMjYwLjg2NHYxMDAuODg4aDEwMS4wNjN2MzUxLjExMnoiLz48cGF0aCBkPSJtMTQ2LjA4OCAxNjAuOTM2aDIxOS44MjR2MzBoLTIxOS44MjR6Ii8+PHBhdGggZD0ibTE0Ni4wODggMjIwLjk4NGgyMTkuODI0djMwaC0yMTkuODI0eiIvPjxwYXRoIGQ9Im0xNDYuMDg4IDI4MS4wMzJoMjE5LjgyNHYzMGgtMjE5LjgyNHoiLz48cGF0aCBkPSJtMTQ2LjA4OCAzNDEuMDhoMjE5LjgyNHYzMGgtMjE5LjgyNHoiLz48L2c+PC9zdmc+);
background-position: center;
background-repeat: no-repeat;
background-size: 18px 22px;
}
a{
color: black;
text-decoration: none;
line-height: 23px;
font-weight: 600;
display: flex;
}
.changelog-link{
margin-left: 20px;
&:before{
content: '';
display: inline-block;
margin-right: 20px;
width: 1px;
height: 10px;
background: black;
position: relative;
top: 7px;
}
}
}
}
@media (min-width: 640px){
.ox-admin__modules {
.ox-admin__module-wrapper{
padding:30px 0;
> div{
padding-left:30px;
padding-right:30px;
}
}
.ox-admin__module{
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
}
}
@media (min-width: 1025px){
.ox-admin__modules .ox-admin__module{
width: 340px;
-ms-flex: 0 0 340px;
flex: 0 0 340px;
max-width: 340px;
}
}
@media (min-width: 1025px){
.ox-admin__modules .ox-admin__theme{
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
.ox-admin__theme-image,
.ox-admin__theme-content{
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
}
}
@@ -0,0 +1,24 @@
/**
* Olegnax
*
* NOTICE OF LICENSE
*
* This source file is subject to the Olegnax.com license that is
* available through the world-wide-web at this URL:
* https://olegnax.com/license
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) 2010-2021 Olegnax (http://olegnax.com/)
* @license https://olegnax.com/license
*/
@icons-olegnax__font-name: 'Olegnax Icons';
@icons-olegnax__file-name: 'olegnax-icons';
@icons-olegnax__font-name-path: '@{baseDir}Olegnax_Core/fonts/@{icons-olegnax__file-name}/@{icons-olegnax__file-name}';
@icon-olegnax__content: '\e900';
@@ -0,0 +1,14 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="Olegnax-Icons" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64"/>
<missing-glyph horiz-adv-x="1024"/>
<glyph unicode="&#x20;" horiz-adv-x="512" d=""/>
<glyph unicode="&#xe900;" glyph-name="olegnax-logo-icon"
d="M781.964 485.236c4.655-27.927 9.309-51.2 9.309-83.782 0-158.255-130.327-279.273-283.927-279.273-158.255 0-279.273 121.018-279.273 279.273s121.018 283.927 279.273 283.927c27.927 0 55.855-4.655 83.782-13.964 46.545-13.964 102.4 107.055 13.964 139.636-27.927 13.964-65.164 9.309-97.745 9.309-232.727 0-423.564-190.836-423.564-423.564s190.836-418.909 423.564-418.909c232.727 0 423.564 186.182 423.564 418.909 0 46.545 0 88.436-18.618 125.673-37.236 69.818-144.291 32.582-130.327-37.236zM902.982 727.273l69.818 69.818c18.618 18.618 18.618 46.545 0 65.164s-46.545 18.618-65.164 0l-69.818-69.818-69.818 69.818c-18.618 18.618-46.545 13.964-65.164 0-18.618-18.618-18.618-46.545 0-65.164l69.818-69.818-69.818-69.818c-18.618-18.618-13.964-46.545 0-65.164 18.618-18.618 46.545-18.618 65.164 0l69.818 69.818 69.818-69.818c18.618-18.618 46.545-18.618 65.164 0s18.618 46.545 0 65.164l-69.818 69.818z"/>
</font>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,38 @@
/*
* @author Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) $year Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
define([
'Magento_Ui/js/form/element/abstract',
'mageUtils',
'jquery',
'spectrum'
], function (Element, utils, $) {
'use strict';
return Element.extend({
defaults: {
visible: true,
label: '',
error: '',
uid: utils.uniqueid(),
disabled: false,
links: {
value: '${ $.provider }:${ $.dataScope }'
}
},
initialize: function () {
this._super();
},
initColorPickerCallback: function (element) {
$(element).attr("type", "hidden").spectrum({
preferredFormat: "rgb",
allowEmpty: true,
showAlpha: true,
showInput: true,
});
}
});
});
+42
View File
@@ -0,0 +1,42 @@
require(["jquery", 'prototype', 'mage/adminhtml/tools'], function ($) {
"use strict";
$(function () {
window.toggleValueElements_old = window.toggleValueElements;
window.toggleValueElements = function (checkbox, container, excludedElements, checked) {
window.toggleValueElements_old(checkbox, container, excludedElements, checked);
checked = $(checkbox).is(':checked');
// spectrum-colorpicker
var $input = $('input', container);
if ($input.parent().find('.sp-replacer').length) {
$input.prop('disabled', checked).spectrum(checked ? 'disable' : 'enable');
}
// onoff-trigger
$('select, input, textarea, button, img', container).trigger('change');
};
});
});
require(["jquery", "spectrum"], function ($) {
"use strict";
$(function () {
$(".ox-ss-colorpicker, .ox-ss-colorpicker .admin__field-control input[type=text]").spectrum({
preferredFormat: "rgb",
allowEmpty: true,
showAlpha: true,
showInput: true,
move: function (tinycolor) {
$(this).hide();
var value = "";
if (tinycolor && tinycolor.hasOwnProperty("_a")) {
if (1 > tinycolor._a) {
value = tinycolor.toRgbString();
} else {
value = tinycolor.toHexString();
}
$(this).val(value);
}
}
}).attr("type", "hidden");
});
});
@@ -0,0 +1,119 @@
.athleteform-onoff-container {
cursor: pointer;
position: relative;
display: inline-block;
height: 36px;
width: 132px;
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
border: 1px solid #d2d2d2;
background: #f8f8f8;
}
.athleteform-onoff-container.disabled.checked {
border-color: rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.4);
}
.athleteform-onoff-container.disabled .athleteform-onoff-button {
color: rgba(0, 0, 0, 0.4) !important;
}
.athleteform-onoff-container.checked {
background: #96b100;
border-color: #96b100;
}
.athleteform-onoff-container.checked .athleteform-onoff-button {
left: 4px;
color: #96b100;
}
.athleteform-onoff-container .athleteform-onoff-button {
display: inline-block;
box-sizing: border-box;
font: normal normal normal 14px/1 TIFontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: absolute;
top: 3px;
left: 66px;
width: 59px;
height: 27px;
line-height: 18px;
padding: 4px;
text-align: center;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 2px;
-webkit-box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
-webkit-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
-moz-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
-o-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
color: #6b625a;
background: #fff;
}
/* Default Unchecked Icon */
.athleteform-onoff-container .athleteform-onoff-button:after,
.athleteform-onoff-container .athleteform-onoff-button:before {
content: "";
width: 10px;
height: 2px;
background: #524a43;
display: block;
position: absolute;
left: 25px;
top: 12px;
}
.athleteform-onoff-container .athleteform-onoff-button:before {
transform: rotateZ(45deg);
}
.athleteform-onoff-container .athleteform-onoff-button:after {
transform: rotateZ(-45deg);
}
/* Checked Icon */
.athleteform-onoff-container.checked .athleteform-onoff-button:before,
.athleteform-onoff-container.checked .athleteform-onoff-button:after {
background: #96b100;
}
.athleteform-onoff-container.checked .athleteform-onoff-button:before {
width: 10px;
left: 26px;
top: 12px;
transform: rotateZ(-45deg);
}
.athleteform-onoff-container.checked .athleteform-onoff-button:after {
width: 5px;
left: 24px;
top: 14px;
transform: rotateZ(45deg);
}
/* Disabled */
.athleteform-onoff-container.disabled {
background-color: rgba(0, 0, 0, 0.4);
}
.athleteform-onoff-container select {
display: none !important;
}
@@ -0,0 +1,60 @@
require(["jquery"], function ($) {
"use strict";
$(function () {
$.fn.athlete_onoff = function (so) {
var sd = {
value: {
on: '',
off: ''
},
class: 'athleteform-onoff',
wrap: 'container',
button: 'button'
},
s = $.extend(true, {}, sd, so);
return $(this).each(function () {
var a = $(this),
d1c = s.class + '-' + s.wrap;
if (!a.is('select') || (!a.children('option[value=0]').length || !a.children('option[value=1]').length) || a.parent('.' + d1c).length) {
return a;
}
var b1 = $('<div>').attr({
class: s.class + '-' + s.button
}),
d1 = $('<div>').attr({
id: a.attr('id') + '_' + s.wrap,
class: d1c
});
d1.attr('class', (d1.attr('class')));
if (a.is(':disabled')) {
d1.toggleClass('disabled', a.is(':disabled'));
}
d1.toggleClass('checked', '0' != a.val());
a.hide().wrap(d1).before(b1);
d1 = a.parent();
a.off('change.onofftrigger').on('change.onofftrigger', function (e) {
d1.toggleClass('disabled', a.is(':disabled'));
if (d1.hasClass('disabled')) {
return e.preventDefault();
}
d1.toggleClass('checked', '0' != a.val());
});
d1.off('click.onofftrigger').on('click.onofftrigger', function (e) {
if (d1.hasClass('disabled')) {
return e.preventDefault();
}
if (a.is(':enabled')) {
var value = ('0' != a.val()) ? '0' : '1';
a.val(value);
a[0].dispatchEvent(new Event('change'));
a.trigger('change');
}
});
return a;
});
};
$('.on-off-trigger').athlete_onoff();
});
});
@@ -0,0 +1,21 @@
<!--
~ @author Olegnax
~ @package Olegnax_Core
~ @copyright Copyright (c) $year Olegnax (http://olegnax.com/). All rights reserved.
~ See COPYING.txt for license details.
-->
<input class="admin__control-text" data-bind="
event: {change: userChanges},
value: value,
hasFocus: focused,
valueUpdate: valueUpdate,
afterRender: initColorPickerCallback,
attr: {
name: inputName,
placeholder: placeholder,
'aria-describedby': noticeId,
id: uid,
disabled: disabled
}"
type="text"/>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="head.additional">
<block name="ox_core_assets" class="Olegnax\Core\Block\SimpleTemplate" template="Olegnax_Core::assets.phtml"/>
</referenceContainer>
<body>
<referenceContainer name="before.body.end">
<block ifconfig="olegnax_core_settings/general/lazyload" class="Olegnax\Core\Block\SimpleTemplate" name="ox_core_lazy" template="Olegnax_Core::lazy_min.phtml"/>
</referenceContainer>
</body>
</page>
+14
View File
@@ -0,0 +1,14 @@
var config = {
paths: {
'owl.carousel': 'Olegnax_Core/owl.carousel/owl.carousel.min',
'OXowlCarousel': 'Olegnax_Core/owl.carousel'
},
shim: {
'owl.carousel': {deps: ['jquery', 'jquery-ui-modules/widget']}
}
};
if(window?.OX_OWL_DISABLE){
delete config.paths['owl.carousel'];
delete config.paths['OXowlCarousel'];
delete config.shim['owl.carousel'];
}
@@ -0,0 +1,5 @@
<?php
if ($this->getConfig('olegnax_core_settings/general/owlcarousel')) { ?>
<link href="<?= $block->getViewFileUrl('Olegnax_Core::owl.carousel/assets/owl.carousel.css'); ?>" rel="stylesheet" media="print" onload="this.media='all'" crossorigin="anonymous">
<?php } ?>
+120
View File
@@ -0,0 +1,120 @@
<script type="text/javascript">
(function () {
function LazyLoad () {
this.settings = {
src: 'data-original',
srcset: 'data-originalset',
selector: '.lazy',
selectorClass: 'lazy',
loadClass: 'lazy-loader',
loadEvent: 'lazyLoaded.oxlazy',
root: null,
rootMargin: '0px',
threshold: 0,
debouncer: 500
}
this.images = document.querySelectorAll(this.settings.selector)
this.observer = null
let self = this
this.load = (event) => {
let image = event.target,
parent = image.parentElement
if (image.src == image.getAttribute(this.settings.src)) {
image.classList.remove(self.settings.selectorClass)
parent.classList.remove(self.settings.loadClass)
let _parent = parent.closest('.product-item-photo')
if (_parent) {
_parent.classList.remove(self.settings.loadClass)
}
image.dispatchEvent(new Event(self.settings.loadEvent))
if (this.observer) {
this.observer.unobserve(image)
}
}
}
this.destroy = () => {
this.observer.disconnect()
}
this.oldLoadImages = () => {
if (!this.settings) {
return
}
let debouncer = function (func, timeout) {
var timeoutID
return function () {
var scope = this,
args = arguments
clearTimeout(timeoutID)
timeoutID = setTimeout(function () {
func.apply(scope, Array.prototype.slice.call(args))
}, timeout)
}
}
window.addEventListener('scroll', debouncer(self.oldInit, self.settings.debouncer))
window.addEventListener('resize', debouncer(self.oldInit, self.settings.debouncer))
self.oldInit()
}
this.oldInit = () => {
let height = window.visualViewport ? window.visualViewport.height : window.innerHeight
Array.prototype.forEach.call(this.images, function (image) {
if (image.classList.contains(self.settings.selectorClass)) {
let bounding = image.getBoundingClientRect()
if (bounding.top != bounding.bottom && 0 < bounding.bottom && height > bounding.top) {
self.applyImage(image)
}
}
})
}
this.applyImage = (image) => {
let src = image.getAttribute(self.settings.src),
srcset = image.getAttribute(self.settings.srcset)
if ('img' === image.tagName.toLowerCase()) {
image.onload = self.load
if (src) {
image.src = src
}
if (srcset) {
image.srcset = srcset
}
} else {
image.style.backgroundImage = 'url(\'' + src + '\')'
}
}
this.init = () => {
if (!window.IntersectionObserver) {
this.oldLoadImages()
return
}
try {
this.observer = new IntersectionObserver(function (entries, observer) {
Array.prototype.forEach.call(entries, function (entry) {
if (entry.isIntersecting) {
self.applyImage(entry.target)
}
})
}, {
rootMargin: this.settings.rootMargin,
threshold: [this.settings.threshold]
})
Array.prototype.forEach.call(this.images, function (image) {
self.observer.observe(image)
})
} catch (e) {
console.info(e)
this.oldLoadImages()
}
}
this.init()
}
window.lazyLoad = function () {
return new LazyLoad()
}
})()
document.addEventListener('DOMContentLoaded', function () {
lazyLoad()
}, false)
require(['jquery'], function ($) {
$(document.body).on('contentUpdated contentUpdated.oxlazy', lazyLoad)
})
</script>
@@ -0,0 +1 @@
<script type="text/javascript">!function(){function a(){this.settings={src:"data-original",srcset:"data-originalset",selector:".lazy",selectorClass:"lazy",loadClass:"lazy-loader",loadEvent:"lazyLoaded.oxlazy",root:null,rootMargin:"0px",threshold:0,debouncer:500},this.images=document.querySelectorAll(this.settings.selector),this.observer=null;let a=this;this.load=e=>{let b=e.target,c=b.parentElement;if(b.src==b.getAttribute(this.settings.src)){b.classList.remove(a.settings.selectorClass),c.classList.remove(a.settings.loadClass);let d=c.closest(".product-item-photo");d&&d.classList.remove(a.settings.loadClass),b.dispatchEvent(new Event(a.settings.loadEvent)),this.observer&&this.observer.unobserve(b)}},this.destroy=()=>{this.observer.disconnect()},this.oldLoadImages=()=>{if(!this.settings)return;let b=function(a,b){var c;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){a.apply(d,Array.prototype.slice.call(e))},b)}};window.addEventListener("scroll",b(a.oldInit,a.settings.debouncer)),window.addEventListener("resize",b(a.oldInit,a.settings.debouncer)),a.oldInit()},this.oldInit=()=>{let b=window.visualViewport?window.visualViewport.height:window.innerHeight;Array.prototype.forEach.call(this.images,function(d){if(d.classList.contains(a.settings.selectorClass)){let c=d.getBoundingClientRect();c.top!=c.bottom&&0<c.bottom&&b>c.top&&a.applyImage(d)}})},this.applyImage=b=>{let c=b.getAttribute(a.settings.src),d=b.getAttribute(a.settings.srcset);"img"===b.tagName.toLowerCase()?(b.onload=a.load,c&&(b.src=c),d&&(b.srcset=d)):b.style.backgroundImage="url('"+c+"')"},this.init=()=>{if(!window.IntersectionObserver){this.oldLoadImages();return}try{this.observer=new IntersectionObserver(function(b,c){Array.prototype.forEach.call(b,function(b){b.isIntersecting&&a.applyImage(b.target)})},{rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]}),Array.prototype.forEach.call(this.images,function(b){a.observer.observe(b)})}catch(b){console.info(b),this.oldLoadImages()}},this.init()}window.lazyLoad=function(){return new a}}(),document.addEventListener("DOMContentLoaded",function(){lazyLoad()},!1),require(["jquery"],function(a){a(document.body).on("contentUpdated contentUpdated.oxlazy",lazyLoad)})</script>
@@ -0,0 +1,23 @@
<?php
/**
* @author Olegnax
* @package Olegnax_Core
* @copyright Copyright (c) 2023 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\View\Element\Template;
use Olegnax\Core\Helper\Helper;
/** @var Template $block */
/** @var Helper $helper */
$helper = $block->getData('helper');
$mobile = $helper->isMobileTheme();
?>
<script>
var OX_MOBILE = <?= $mobile ? 1 : 0 ?>,
OX_PHOTOSWIPE = 1,
OX_CATALOG_AJAX = <?= !$helper->getSystemValue('athlete2_settings/products_listing/catalog_ajax_add_to_cart') ? 1 : 0 ?>,
OX_WAYPOINTS = <?= $helper->getSystemValue('athlete2_settings/general/waypoints') ? 1 : 0 ?>,
OX_OWL_DISABLE = <?= !$helper->getModuleConfig('general/owlcarousel') ? 1 : 0 ?>,
OX_OWL_OBS_DISABLE = false;
</script>
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

@@ -0,0 +1,55 @@
<svg id="athlete_preloader_image" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 3">
<defs>
<style type="text/css"><![CDATA[
@keyframes athlete_preloader {
0%{
transform-origin:left;
transform: scale(0, 1);
}
70% {
transform-origin:left;
transform: scale(1, 1);
}
70.01% {
transform-origin:right;
transform: scale(1, 1);
}
100% {
transform-origin:right;
transform: scale(0, 1);
}
}
@-webkit-keyframes athlete_preloader {
0%{
-webkit-transform-origin:left;
-webkit-transform: scale(0, 1);
transform-origin:left;
transform: scale(0, 1);
}
70% {
-webkit-transform-origin:left;
-webkit-transform: scale(1, 1);
transform-origin:left;
transform: scale(1, 1);
}
70.01% {
-webkit-transform-origin:right;
-webkit-transform: scale(1, 1);
transform-origin:right;
transform: scale(1, 1);
}
100% {
-webkit-transform-origin:right;
-webkit-transform: scale(0, 1);
transform-origin:right;
transform: scale(0, 1);
}
}
.athlete_preloader_fill{
transform-origin:left;
animation: athlete_preloader 1s infinite;
}
]]></style>
</defs>
<rect width="44" height="3" class="athlete_preloader_fill"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+146
View File
@@ -0,0 +1,146 @@
define([
'jquery',
'jquery-ui-modules/widget',
'jquery-ui-modules/core',
'owl.carousel',
], function ($) {
'use strict';
$.widget('mage.OXowlCarousel', {
options: {
items: 3,
loop: false,
center: false,
rewind: false,
lazyLoad: true,
checkVisibility: true,
mouseDrag: true,
touchDrag: true,
pullDrag: true,
freeDrag: false,
margin: 0,
stagePadding: 0,
merge: false,
mergeFit: true,
autoWidth: false,
startPosition: 0,
rtl: false,
smartSpeed: 400,
fluidSpeed: false,
dragEndSpeed: false,
responsive: {},
responsiveRefreshRate: 200,
responsiveBaseElement: window,
fallbackEasing: 'swing',
slideTransition: '',
info: false,
nestedItemSelector: false,
itemElement: 'div',
stageElement: 'div',
refreshClass: 'owl-refresh',
loadedClass: 'owl-loaded',
loadingClass: 'owl-loading',
rtlClass: 'owl-rtl',
responsiveClass: 'owl-responsive',
dragClass: 'owl-drag',
itemClass: 'owl-item',
stageClass: 'owl-stage',
stageOuterClass: 'owl-stage-outer',
grabClass: 'owl-grab',
wrapperSelectorClass: '.block.widget',
callbacks: true,
observerLoad: !(window.hasOwnProperty('OX_OWL_OBS_DISABLE') ? OX_OWL_OBS_DISABLE : false)
},
_create: function () {
this.options.onInitialized = this.owlchanged;
this.options.onChanged = this.owlchanged;
this.options.onRefreshed = this.owlchanged;
if (this.options.observerLoad) {
this._loadObserver();
} else {
this._loadOwl();
}
},
_loadObserver: function () {
let _self = this;
if (window.IntersectionObserver) {
let observer = new IntersectionObserver(function (entries, observer) {
Array.prototype.forEach.call(entries, function (entry) {
if (entry.isIntersecting) {
_self._loadOwl.call(_self);
observer.unobserve(entry.target);
}
});
}, {
root: null,
rootMargin: "0px",
threshold: [0]
});
this.element.each(function (i, el) {
observer.observe(el);
});
} else {
let debouncer = function (func) {
var timeoutID;
return function () {
var scope = this,
args = arguments;
clearTimeout(timeoutID);
timeoutID = setTimeout(function () {
func.apply(scope, Array.prototype.slice.call(args));
}, 200);
}
};
$(window).one('scroll resize', debouncer(function () {
let height = window.visualViewport ? window.visualViewport.height : window.innerHeight;
this.element.each(function (i, el) {
let bounding = el.getBoundingClientRect();
if (bounding.top != bounding.bottom && 0 < bounding.bottom && height > bounding.top) {
_self._loadOwl.call(_self);
}
})
}));
}
},
_loadOwl: function () {
this.element.find('picture.owl-lazy').removeClass('owl-lazy');
this.element.owlCarousel(this.options);
this.arrows();
},
owlchanged: function (event) {
var $wraper = this.$element.closest(this.options.wrapperSelectorClass).eq(0);
var current = this.current();
$wraper.find('.ox-owl-nav').toggle(this.settings.items < this.items().length);
var disable_nav_min = current === this.minimum();
var disable_nav_max = current === this.maximum();
if (this.settings.loop) {
disable_nav_min = disable_nav_max = false;
}
$wraper.find('.ox-owl-next').toggleClass('disabled', disable_nav_max);
$wraper.find('.ox-owl-prev').toggleClass('disabled', disable_nav_min);
},
arrows: function () {
var $wraper = this.element.closest(this.options.wrapperSelectorClass).eq(0);
$wraper.on('click', '.ox-owl-next', $.proxy(function () {
this.element.trigger('next.owl.carousel');
}, this));
$wraper.on('click', '.ox-owl-prev', $.proxy(function () {
this.element.trigger('prev.owl.carousel');
}, this));
}
});
return $.mage.OXowlCarousel;
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -0,0 +1,206 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
/*
* Owl Carousel - Core
*/
.owl-carousel {
width: 100%;
-webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */
position: relative;
z-index: 1; }
.owl-carousel:not(.owl-loaded){
display: flex!important;
overflow: hidden;
opacity: 0;
visibility: hidden;
}
.owl-carousel:not(.owl-loaded) > *{
display: block!important;
opacity: 0;
visibility: hidden;
}
.owl-carousel .owl-stage {
position: relative;
-ms-touch-action: pan-Y;
touch-action: manipulation;
-moz-backface-visibility: hidden;
/* fix firefox animation glitch */ }
.owl-carousel .owl-stage:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0; }
.owl-carousel .owl-stage-outer {
position: relative;
overflow: hidden;
/* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px); }
.owl-carousel .owl-wrapper,
.owl-carousel .product-item,
.owl-carousel .owl-item {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0); }
.owl-carousel .product-item,
.owl-carousel .owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none; }
.owl-carousel .product-item img,
.owl-carousel .owl-item img {
display: block;
width: 100%; }
.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
display: none; }
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
cursor: pointer;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next,
.owl-carousel button.owl-dot {
background: none;
color: inherit;
border: none;
padding: 0 !important;
font: inherit; }
.owl-carousel.owl-loaded {
display: block; }
.owl-carousel.owl-loading {
opacity: 0;
display: block; }
.owl-carousel.owl-hidden {
opacity: 0; }
.owl-carousel.owl-refresh .product-item,
.owl-carousel.owl-refresh .owl-item {
visibility: hidden; }
.owl-carousel.owl-drag .product-item,
.owl-carousel.owl-drag .owl-item {
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.owl-carousel.owl-grab {
cursor: move;
cursor: grab; }
.owl-carousel.owl-rtl {
direction: rtl; }
.owl-carousel.owl-rtl .product-item,
.owl-carousel.owl-rtl .owl-item {
float: right; }
/* No Js */
.no-js .owl-carousel {
display: block; }
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
animation-duration: 1000ms;
animation-fill-mode: both; }
.owl-carousel .owl-animated-in {
z-index: 0; }
.owl-carousel .owl-animated-out {
z-index: 1; }
.owl-carousel .fadeOut {
animation-name: fadeOut; }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
transition: height 500ms ease-in-out; }
/*
* Owl Carousel - Lazy Load Plugin
*/
.owl-carousel .product-item,
.owl-carousel .owl-item {
/**
This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
calculation of the height of the owl-item that breaks page layouts
*/ }
.owl-carousel .product-item .owl-lazy,
.owl-carousel .owl-item .owl-lazy {
opacity: 0;
transition: opacity 400ms ease; }
.owl-carousel .product-item .owl-lazy[src^=""], .owl-carousel .product-item .owl-lazy:not([src]),
.owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
max-height: 0; }
.owl-carousel .product-item img.owl-lazy,
.owl-carousel .owl-item img.owl-lazy {
transform-style: preserve-3d; }
/*
* Owl Carousel - Video Plugin
*/
.owl-carousel .owl-video-wrapper {
position: relative;
height: 100%;
background: #000; }
.owl-carousel .owl-video-play-icon {
position: absolute;
height: 80px;
width: 80px;
left: 50%;
top: 50%;
margin-left: -40px;
margin-top: -40px;
background: url("owl.video.play.png") no-repeat;
cursor: pointer;
z-index: 1;
-webkit-backface-visibility: hidden;
transition: transform 100ms ease; }
.owl-carousel .owl-video-play-icon:hover {
-ms-transform: scale(1.3, 1.3);
transform: scale(1.3, 1.3); }
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none; }
.owl-carousel .owl-video-tn {
opacity: 0;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
transition: opacity 400ms ease; }
.owl-carousel .owl-video-frame {
position: relative;
z-index: 1;
height: 100%;
width: 100%; }
@@ -0,0 +1,6 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
.owl-carousel{width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.owl-carousel:not(.owl-loaded){ display: flex!important; overflow: hidden; opacity: 0; visibility: hidden; } .owl-carousel:not(.owl-loaded) > *{ display: block!important; opacity: 0; visibility: hidden; }.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper,.owl-carousel .product-item{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .product-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.owl-carousel .owl-item img,.owl-carousel .product-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item,.owl-carousel.owl-refresh .product-item{visibility:hidden}.owl-carousel.owl-drag .owl-item,.owl-carousel.owl-drag .product-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item,.owl-carousel.owl-rtl .product-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy,.owl-carousel .product-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""],.owl-carousel .product-item .owl-lazy:not([src]),.owl-carousel .product-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy,.owl-carousel .product-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long