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"/>