ltsecurityinc安防产品在线商城代码
@@ -0,0 +1,15 @@
|
||||
<?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">
|
||||
<head>
|
||||
<css src="Olegnax_Athlete2::select-image/select-image.css"/>
|
||||
<link src="Olegnax_Athlete2::select-image/select-image.js"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="page.content">
|
||||
<block name="olegnax.athlete2.notice" class="Olegnax\Athlete2\Block\Adminhtml\Notice" after="page.main.actions"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="content">
|
||||
<block name="olegnax.athlete2.notice.lic" class="Olegnax\Athlete2\Block\Adminhtml\NoticeLic" before="system.config.edit"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" ?>
|
||||
<page layout="admin-1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="page.main.actions">
|
||||
<block class="Magento\Backend\Block\Store\Switcher" name="adminhtml.system.config.switcher" template="Magento_Backend::store/switcher.phtml">
|
||||
<arguments>
|
||||
<argument name="switch_websites" xsi:type="string">1</argument>
|
||||
<argument name="switch_store_groups" xsi:type="string">0</argument>
|
||||
<argument name="switch_store_views" xsi:type="string">1</argument>
|
||||
<argument name="default_selection_name" xsi:type="string" translate="true">Default Config</argument>
|
||||
<argument name="show_manage_stores_link" xsi:type="string">1</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="content">
|
||||
<block class="Olegnax\Athlete2\Block\Adminhtml\Import\Exporter" name="import.exporter" template="Olegnax_Athlete2::import/exporter.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" ?>
|
||||
<page layout="admin-1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="page.main.actions">
|
||||
<block class="Magento\Backend\Block\Store\Switcher" name="adminhtml.system.config.switcher" template="Magento_Backend::store/switcher.phtml">
|
||||
<arguments>
|
||||
<argument name="switch_websites" xsi:type="string">1</argument>
|
||||
<argument name="switch_store_groups" xsi:type="string">0</argument>
|
||||
<argument name="switch_store_views" xsi:type="string">1</argument>
|
||||
<argument name="default_selection_name" xsi:type="string" translate="true">Default Config</argument>
|
||||
<argument name="show_manage_stores_link" xsi:type="string">1</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="content">
|
||||
<block class="Olegnax\Athlete2\Block\Adminhtml\Import\Index" name="import.index" template="Olegnax_Athlete2::import/index.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
/** @var Exporter $block */
|
||||
|
||||
use Olegnax\Athlete2\Block\Adminhtml\Import\Exporter;
|
||||
|
||||
$options = $block->getConfig();
|
||||
$blocks = $block->getBlocks();
|
||||
$pages = $block->getPages();
|
||||
$bannerSliders = $block->getBannerSlider();
|
||||
$carousels = $block->getCarousel();
|
||||
?>
|
||||
<form method="POST" action="<?= $block->actionExport(); ?>">
|
||||
<div class="options-wrap">
|
||||
<h2 class="title">Options</h2>
|
||||
|
||||
<input id="options_all" class="option option-all" type="checkbox" name="config_all" value=""> <label for="options_all"><?= __( 'Select All' ) ?></label>
|
||||
<ul class="options" style="padding-left: 30px;">
|
||||
<?php foreach ( $options as $section => $value1 ) { ?>
|
||||
<li>
|
||||
<input id="options_<?= $section ?>" class="option option-section" type="checkbox" name="config[]" value="<?= $section ?>"> <label for="options_<?= $section ?>"><?= $section ?></label>
|
||||
<?php if ( is_array( $value1 ) ) { ?>
|
||||
<ul style="padding-left: 30px;">
|
||||
<?php foreach ( $value1 as $group => $value2 ) { ?>
|
||||
<li>
|
||||
<input id="options_<?= $section ?>_<?= $group ?>" class="option option-group" type="checkbox" name="config[]" value="<?= implode( '/', [ $section, $group ] ) ?>"> <label for="options_<?= $section ?>_<?= $group ?>"><?= $group ?></label>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="blocks-wrap">
|
||||
<h2 class="title">Blocks</h2>
|
||||
<input id="block_all" class="block block-all" type="checkbox" name="block_all" value=""> <label for="block_all"><?= __( 'Select All' ) ?></label>
|
||||
<ul class="blocks" style="padding-left: 30px;">
|
||||
<?php foreach ( $blocks as $identifier => $title ) { ?>
|
||||
<li><input id="block_<?= $identifier ?>" class="block option-block" type="checkbox" name="blocks[]" value="<?= $identifier ?>"> <label for="block_<?= $identifier ?>"><?= $title ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pages-wrap">
|
||||
<h2 class="title">Pages</h2>
|
||||
<input id="pages_all" class="page page-all" type="checkbox" name="page_all" value=""> <label for="pages_all"><?= __( 'Select All' ) ?></label>
|
||||
<ul class="pages" style="padding-left: 30px;">
|
||||
<?php foreach ( $pages as $identifier => $title ) { ?>
|
||||
<li><input id="pages_<?= $identifier ?>" class="page option-page" type="checkbox" name="pages[]" value="<?= $identifier ?>"> <label for="pages_<?= $identifier ?>"><?= $title ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if ( !empty( $bannerSliders ) ) : ?>
|
||||
<div class="bannersliders-wrap">
|
||||
<h2 class="title">Banner Sliders</h2>
|
||||
<input id="bannersliders_all" class="bannerslider bannerslider-all" type="checkbox" name="bannersliders_all" value=""> <label for="bannersliders_all"><?= __( 'Select All' ) ?></label>
|
||||
<ul class="pages" style="padding-left: 30px;">
|
||||
<?php foreach ( $bannerSliders as $identifier => $title ) { ?>
|
||||
<li><input id="bannersliders_<?= $identifier ?>" class="bannerslider option-bannerslider" type="checkbox" name="bannersliders[]" value="<?= $identifier ?>"> <label for="bannersliders_<?= $identifier ?>"><?= $title ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( !empty( $carousels ) ) : ?>
|
||||
<div class="bannersliders-wrap">
|
||||
<h2 class="title">Carousel Sliders</h2>
|
||||
<input id="carouselsliders_all" class="carousel carousel-all" type="checkbox" name="carousels_all" value=""> <label for="carousels_all"><?= __( 'Select All' ) ?></label>
|
||||
<ul class="pages" style="padding-left: 30px;">
|
||||
<?php foreach ( $carousels as $identifier => $title ) { ?>
|
||||
<li><input id="carousels_<?= $identifier ?>" class="carousel option-carousel" type="checkbox" name="carousels[]" value="<?= $identifier ?>"> <label
|
||||
for="carousels_<?= $identifier ?>"><?= $title ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<button type="submit"><?= __( 'Save' ) ?></button>
|
||||
<input name="form_key" type="hidden" value="<?= $block->getFormKey() ?>" />
|
||||
</form>
|
||||
<script>
|
||||
require( [
|
||||
'jquery',
|
||||
], function ( $ ) {
|
||||
'use strict';
|
||||
// options
|
||||
$( '.options .option' ).on( 'change', function ( e ) {
|
||||
var $this = $( this ),
|
||||
$li = $this.closest( 'li' ).eq( 0 ),
|
||||
$submenu = $li.children( 'ul' ),
|
||||
checked = $this.is( ':checked' ),
|
||||
value = $this.attr( 'value' ),
|
||||
child = $( 'input[name^=config][value^="' + $( this ).attr( 'value' ) + '/"]' );
|
||||
$submenu.toggle( !checked );
|
||||
child.prop( 'disabled', checked );
|
||||
if ( checked ) {
|
||||
child.prop( 'checked', true ).trigger( 'change' );
|
||||
} else {
|
||||
var parent_val = $( this ).attr( 'value' ).split( '/' );
|
||||
parent_val.pop();
|
||||
parent_val = parent_val.join( '/' );
|
||||
$( 'input[name^=config][value="' + parent_val + '"]' ).prop( 'checked', false );
|
||||
$( '.option.option-all' ).prop( 'checked', false );
|
||||
}
|
||||
} );
|
||||
$( '.option.option-all' ).on( 'change', function ( e ) {
|
||||
if ( $( this ).is( ':checked' ) ) {
|
||||
$( '.option.option-section' ).prop( 'checked', true ).trigger( 'change' );
|
||||
}
|
||||
} );
|
||||
// blocks
|
||||
$( '.block.block-all' ).on( 'change', function ( e ) {
|
||||
$( '.block.option-block' ).prop( 'checked', $( this ).is( ':checked' ) ).trigger( 'change' );
|
||||
} );
|
||||
// pages
|
||||
$( '.page.page-all' ).on( 'change', function ( e ) {
|
||||
$( '.page.option-page' ).prop( 'checked', $( this ).is( ':checked' ) ).trigger( 'change' );
|
||||
} );
|
||||
// bannerslider
|
||||
$( '.bannerslider.bannerslider-all' ).on( 'change', function ( e ) {
|
||||
$( '.bannerslider.option-bannerslider' ).prop( 'checked', $( this ).is( ':checked' ) ).trigger( 'change' );
|
||||
} );
|
||||
// carousel
|
||||
$( '.carousel.carousel-all' ).on( 'change', function ( e ) {
|
||||
$( '.carousel.option-carousel' ).prop( 'checked', $( this ).is( ':checked' ) ).trigger( 'change' );
|
||||
} );
|
||||
|
||||
} );
|
||||
</script>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
/** @var Index $block */
|
||||
|
||||
use Olegnax\Athlete2\Block\Adminhtml\Import\Index;
|
||||
|
||||
$demos = $block->getDemo();
|
||||
?>
|
||||
<div class="ox-admin__import">
|
||||
<?php foreach ( $demos as $demoId => $demo ) : ?>
|
||||
<div class="ox-admin-import__block" id="demo-<?= $block->getDemoId( $demoId ) ?>">
|
||||
<img src="<?= $block->getDemoImage( $demoId ) ?>">
|
||||
<span class="ox-admin-import__name"><?= $demo[ 'name' ] ?></span>
|
||||
<a href="#" class="ox-admin__button action-primary ox-admin-modal__action ox-admin-import__button"><?= __( 'Import' ); ?></a>
|
||||
<div class="ox-admin__modal">
|
||||
<div class="ox-admin-modal__inner">
|
||||
<div class="ox-overlay-close-btn action-primary"><span></span></div>
|
||||
<h2><?= __( 'Choose what to Import:' ); ?></h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ( in_array( 'content', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td>
|
||||
<h3><?= __( 'Pages and CMS Blocks' ); ?></h3>
|
||||
<p>
|
||||
<label class="ox-checkbox" for="<?=$block->escapeHtmlAttr($demoId) ?>_not_replace"><input type="checkbox" class="import-not-replace" id="<?=$block->escapeHtmlAttr($demoId)
|
||||
?>_not_replace"
|
||||
name="<?=$block->escapeHtmlAttr($demoId) ?>_not_replace"> <?= __('Add items, do not replace'); ?></label>
|
||||
</p>
|
||||
<p class="attention"><?= __( 'Attention! This will override your existing Static blocks and CMS Pages with the same Identifiers.' ); ?></p>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= $block->actionImport( $demoId, 'content' ) ?>" class="ox-admin__button action-primary ox-admin__button-replace"><?= __( 'Import' ); ?></a>
|
||||
<a href="<?= $block->actionImport( $demoId, 'content' ) ?>notreplace/1" class="ox-admin__button action-primary ox-admin__button-not-replace" style="display: none"><?= __(
|
||||
'Import'
|
||||
);
|
||||
?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'bannerslider', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Banner Slider & Carousel' ); ?></h3></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'bannerslider' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'settings', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Theme Settings' ); ?></h3></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'settings' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'blog', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Blog Settings' ); ?></h3><p class="small">Requires Magefan Blog module to be installed.</p></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'blog' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'popup', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Newsletter Popup Settings *' ); ?></h3><p class="small">Requires Olegnax Newsletter module to be installed.</p></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'popup' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'hotspots', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Hotspots' ); ?></h3><p class="small">Sample page and cms blocks with hotspot content.</p></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'hotspots' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( in_array( 'googlemap', $demo[ 'variations' ] ) ) : ?>
|
||||
<tr>
|
||||
<td><h3><?= __( 'Google Map Module Settings *' ); ?></h3><p class="small">Requires Olegnax Google map module to be installed.</p></td>
|
||||
<td><a href="<?= $block->actionImport( $demoId, 'googlemap' ) ?>" class="ox-admin__button action-primary"><?= __( 'Import' ); ?></a></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td colspan="2"><p style="text-align: left;"><?= __( '* Options are optional and already present in Theme Settings import. Use them in case you already have website setup and don\'t want to lose existing settings but only import new or specific options.' ); ?></p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<script>
|
||||
require( [
|
||||
'jquery',
|
||||
], function ( $ ) {
|
||||
'use strict';
|
||||
$( 'body' ).on( 'click', '.ox-admin-import__button', function ( e ) {
|
||||
e.preventDefault();
|
||||
$( this ).next( '.ox-admin__modal' ).addClass( 'opened' );
|
||||
} );
|
||||
$( 'body' ).on( 'click', '.ox-overlay-close-btn', function ( e ) {
|
||||
e.preventDefault();
|
||||
$( this ).closest( '.ox-admin__modal' ).removeClass( 'opened' );
|
||||
} );
|
||||
$( 'body' ).on( 'change', '.import-not-replace', function ( e ) {
|
||||
var $this = $(this),
|
||||
parent = $this.closest('tr').eq(0),
|
||||
isChecked = $this.is(':checked');
|
||||
|
||||
parent.find('p.attention, .ox-admin__button-replace').toggle(!isChecked);
|
||||
parent.find('.ox-admin__button-not-replace').toggle(isChecked);
|
||||
});
|
||||
|
||||
} );
|
||||
</script>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<fieldset name="custom_design_update">
|
||||
<field name="ox_post_list_style">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="options" xsi:type="object">Olegnax\Athlete2\Model\Config\Settings\Blog\PostListStyle</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="dataType" xsi:type="string">text</item>
|
||||
<item name="label" xsi:type="string" translate="true">Post Style on Listing(Blog Page)</item>
|
||||
<item name="formElement" xsi:type="string">select</item>
|
||||
<item name="source" xsi:type="string">post</item>
|
||||
<item name="dataScope" xsi:type="string">ox_post_list_style</item>
|
||||
<item name="sortOrder" xsi:type="number">90</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
@import "variables/_icons.less";
|
||||
|
||||
.lib-font-face(
|
||||
@family-name: @icons-athlete2__font-name,
|
||||
@font-path: @icons-athlete2__font-name-path,
|
||||
@font-weight: normal,
|
||||
@font-style: normal
|
||||
);
|
||||
@@ -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://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
|
||||
*/
|
||||
|
||||
@icons-athlete2__font-name: 'Athlete2 Icons';
|
||||
@icons-athlete2__file-name: 'athlete2-icons';
|
||||
@icons-athlete2__font-name-path: '@{baseDir}Olegnax_Athlete2/fonts/@{icons-athlete2__file-name}/@{icons-athlete2__file-name}';
|
||||
@icon-athlete2__content: '\e900';
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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>
|
||||
<json>
|
||||
<![CDATA[
|
||||
{
|
||||
"fontFamily": "Athlete2-Icons",
|
||||
"majorVersion": 1,
|
||||
"minorVersion": 0,
|
||||
"version": "Version 1.0",
|
||||
"fontId": "Athlete2-Icons",
|
||||
"psName": "Athlete2-Icons",
|
||||
"subFamily": "Regular",
|
||||
"fullName": "Athlete2-Icons",
|
||||
"description": "Font generated by IcoMoon."
|
||||
}
|
||||
]]>
|
||||
</json>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="Athlete2-Icons" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="" glyph-name="athlete-2-logo" data-tags="athlete-2-logo-ai" horiz-adv-x="978" d="M312.889 960l-312.889-1024h216.178l56.889 227.556h278.756l51.2-227.556h216.178l-318.578 1024h-187.733zM312.889 334.222l96.711 341.333 96.711-341.333h-193.422zM694.044 960h113.778v-337.92h-113.778v337.92zM864.711 960h113.778v-337.92h-113.778v337.92z" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,114 @@
|
||||
.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 0px rgba(170, 157, 137, .16);
|
||||
box-shadow: inset 1px 1px 6px 0px 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 0px rgba(2, 2, 2, .21);
|
||||
box-shadow: 1px 1px 4px 0px 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,31 @@
|
||||
.select-image-wrap, .select-image-wrap ul {
|
||||
list-style: none;
|
||||
}
|
||||
.select-image-wrap li{
|
||||
display: inline-block;
|
||||
}
|
||||
.select-image-wrap li {
|
||||
margin: 5px;
|
||||
font-size: 0;
|
||||
cursor: pointer;
|
||||
transition: 0.3s ease;
|
||||
transition-property: box-shadow, border, transform;
|
||||
border: 4px solid transparent;
|
||||
}
|
||||
.select-image-wrap li:hover,
|
||||
.select-image-wrap li.select-image-selected {
|
||||
border-color: #96b100;
|
||||
}
|
||||
|
||||
.select-image-wrap li {
|
||||
box-shadow: 0 4px 39px 0px rgba(0, 0, 0, .06);
|
||||
transform: none;
|
||||
}
|
||||
.select-image-wrap li:hover,
|
||||
.select-image-wrap li.select-image-selected {
|
||||
box-shadow: 0 2px 7px 0px rgba(0, 0, 0, .06);
|
||||
transform: translateY(3px);
|
||||
}
|
||||
select.select-image {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
require( [ "jquery" ], function ( $ ) {
|
||||
"use strict";
|
||||
$.fn.selectimage = function ( so ) {
|
||||
var action = '',
|
||||
s,
|
||||
sd = {
|
||||
class: {
|
||||
wraper: 'select-image-wrap',
|
||||
list: 'select-image-items',
|
||||
item: 'select-image-item',
|
||||
image: 'select-image-image',
|
||||
element: 'select-image-element',
|
||||
active: 'select-image-selected',
|
||||
}
|
||||
}
|
||||
if ( 'string' === typeof so ) {
|
||||
action = so;
|
||||
} else {
|
||||
s = $.extend( true, { }, sd, so );
|
||||
}
|
||||
return $( this ).each( function ( ) {
|
||||
var $this = $( this ),
|
||||
$parent = $this.parent( );
|
||||
if ( !$this.is( 'select' ) && $this.children( ).length ) {
|
||||
return;
|
||||
}
|
||||
var $wraper = $parent.find( '.' + s.class.wraper ),
|
||||
generate_images = function ( $parentlist ) {
|
||||
$this.children( ).each( function ( ) {
|
||||
var $item = $( this );
|
||||
if ( $item.is( 'optgroup' ) ) {
|
||||
var item_value = $item.attr( 'label' ),
|
||||
$li = $parentlist.find( '.' + s.class.item + '.' + s.class.item + '-optgroup[data-value="' + item_value + '"]' ),
|
||||
$submenu;
|
||||
if ( !$li.length ) {
|
||||
$li = $( '<li>' ).addClass( s.class.item ).addClass( s.class.item + '-optgroup' ).attr( 'data-value', item_value ).html( $img );
|
||||
$parentlist.append( $li );
|
||||
}
|
||||
if ( !$li.children( 'span' ) ) {
|
||||
$li.prepend( $( '<span>' ).text( $item ) )
|
||||
}
|
||||
$submenu = $li.children( 'ul.' + s.class.list );
|
||||
if ( !$submenu.length ) {
|
||||
$submenu = $( '<ul>' ).addClass( s.class.list );
|
||||
$li.append( $submenu );
|
||||
}
|
||||
generate_images.call( $item, $submenu );
|
||||
} else if ( $item.is( 'option' ) ) {
|
||||
var item_value = $item.attr( 'value' );
|
||||
if ( !$parentlist.find( '.' + s.class.item + '.' + s.class.item + '-option[data-value="' + item_value + '"]' ).length ) {
|
||||
var item_url = $item.text(),
|
||||
$img = $( '<img>' ).attr( {
|
||||
src: item_url,
|
||||
alt: item_value,
|
||||
class: s.class.image,
|
||||
} );
|
||||
var $li = $( '<li>' ).addClass( s.class.item ).addClass( s.class.item + '-option' ).attr( 'data-value', item_value ).html( $img );
|
||||
$parentlist.append( $li );
|
||||
}
|
||||
}
|
||||
} );
|
||||
};
|
||||
if ( 'select' === action ) {
|
||||
|
||||
return;
|
||||
}
|
||||
if ( !$wraper.length ) {
|
||||
$wraper = $( '<ul>' ).addClass( s.class.wraper ).addClass( s.class.list );
|
||||
$parent.prepend( $wraper );
|
||||
}
|
||||
generate_images.call( $this, $wraper );
|
||||
$wraper.on( 'click', '.' + s.class.item + '-option', function ( e ) {
|
||||
e.preventDefault();
|
||||
var value = $( this ).data( 'value' );
|
||||
if ( $this.find( 'option[value="' + value + '"]' ).length ) {
|
||||
$this.val( value ).trigger( 'change' );
|
||||
}
|
||||
} );
|
||||
$this.on( 'change', function () {
|
||||
var value = $( this ).val(),
|
||||
$item_image = $wraper.find( '.' + s.class.item + '-option[data-value="' + value + '"]' ),
|
||||
$items_active = $wraper.find( '.' + s.class.item + '.' + s.class.active ).not( $item_image );
|
||||
$items_active.removeClass( s.class.active );
|
||||
$item_image.addClass( s.class.active );
|
||||
} );
|
||||
|
||||
$this.trigger( 'change' ).addClass( s.class.element ).hide( );
|
||||
} );
|
||||
};
|
||||
$(function(){
|
||||
$( '.select-image' ).selectimage();
|
||||
});
|
||||
} );
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block template="catalog/product/prev_next_link.phtml" class="Olegnax\Athlete2\Block\Html\PrevNextProduct" name="ox_prev_product" before="-">
|
||||
<arguments>
|
||||
<argument name="is_next" xsi:type="boolean">false</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block template="catalog/product/prev_next_link.phtml" class="Olegnax\Athlete2\Block\Html\PrevNextProduct" name="ox_next_product" before="-">
|
||||
<arguments>
|
||||
<argument name="is_next" xsi:type="boolean">true</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="head.additional">
|
||||
<block class="Magento\Framework\View\Element\Template" name="ox_athlete2_ajax_add_to_cart"
|
||||
template="Olegnax_Athlete2::ajax-add-to-cart.phtml"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -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">
|
||||
<body>
|
||||
<move element="product.info.main" destination="athlete2_product_info_wrapper"/>
|
||||
<move element="product.info.media" destination="athlete2_product_info_wrapper" before="product.info.main" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="catalog.product.related" destination="page.bottom.container"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="catalog.product.related" destination="athlete2_after_gallery"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="catalog.product.related" destination="athlete2_product_bottom"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.details" destination="page.bottom.container" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.details" destination="athlete2_after_gallery" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.details" destination="athlete2_product_bottom" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.details" destination="product.info.main" before="product_view_ox_block"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.upsell" destination="page.bottom.container"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.upsell" destination="athlete2_after_gallery"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="product.info.upsell" destination="athlete2_product_bottom"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="reviews.tab" destination="athlete-reviews-wrapper" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -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">
|
||||
<body>
|
||||
<move element="reviews.tab" destination="athlete-reviews-wrapper" />
|
||||
<move element="athlete-reviews-wrapper" destination="page.bottom.container" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -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">
|
||||
<body>
|
||||
<move element="reviews.tab" destination="athlete-reviews-wrapper" />
|
||||
<move element="athlete-reviews-wrapper" destination="athlete2_after_gallery" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -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">
|
||||
<body>
|
||||
<move element="reviews.tab" destination="athlete-reviews-wrapper" />
|
||||
<move element="athlete-reviews-wrapper" destination="athlete2_product_bottom" />
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="category.cms" destination="main"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="breadcrumbs" destination="main" before="-"/>
|
||||
<move element="page.main.title" destination="main" after="breadcrumbs"/>
|
||||
<move element="category.image" destination="main" after="page.main.title"/>
|
||||
<move element="category.description" destination="main" after="category.image"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="product.info.media.image">
|
||||
<action method="setTemplate">
|
||||
<argument name='template' xsi:type='string'>product/view/css_only_gallery.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<move element="minicart" destination="athlete2_topline"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="top.search">
|
||||
<arguments>
|
||||
<argument name="configProvider" xsi:type="object">Magento\Search\ViewModel\ConfigProvider</argument>
|
||||
</arguments>
|
||||
</referenceBlock>
|
||||
<referenceBlock name="top.search.panel">
|
||||
<arguments>
|
||||
<argument name="configProvider" xsi:type="object">Magento\Search\ViewModel\ConfigProvider</argument>
|
||||
</arguments>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="header_account_drop">
|
||||
<block class="Magento\Customer\Block\Form\Login" name="customer_form_login"
|
||||
template="Magento_Customer::form/login_drop.phtml">
|
||||
<container name="header_form.additional.info" as="form_additional_info_drop">
|
||||
<block class="Magento\ReCaptchaUi\Block\ReCaptcha" name="recaptcha-login-drop" after="-"
|
||||
template="Magento_ReCaptchaFrontendUi::recaptcha.phtml"
|
||||
ifconfig="recaptcha_frontend/type_for/customer_login">
|
||||
<arguments>
|
||||
<argument name="recaptcha_for" xsi:type="string">customer_login</argument>
|
||||
<argument name="jsLayout" xsi:type="array">
|
||||
<item name="components" xsi:type="array">
|
||||
<item name="recaptcha" xsi:type="array">
|
||||
<item name="component" xsi:type="string">
|
||||
Magento_ReCaptchaFrontendUi/js/reCaptcha
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
<arguments>
|
||||
<argument name="login_button_view_model" xsi:type="object">Magento\Customer\ViewModel\LoginButton</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Customer\Block\Form\Login\Info" name="customer.new" template="Magento_Customer::newcustomer.phtml"/>
|
||||
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
|
||||
<arguments>
|
||||
<argument name="triggers" xsi:type="array">
|
||||
<item name="loginButton" xsi:type="string">.action.login</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="header_account_drop">
|
||||
<block class="Magento\Customer\Block\Form\Login" name="customer_form_login"
|
||||
template="Magento_Customer::form/login_drop.phtml">
|
||||
<container name="header_form.additional.info" as="form_additional_info_drop">
|
||||
<block class="MSP\ReCaptcha\Block\Frontend\ReCaptcha" name="ox-recaptcha-login" after="-"
|
||||
template="MSP_ReCaptcha::msp_recaptcha.phtml"
|
||||
ifconfig="msp_securitysuite_recaptcha/frontend/enabled">
|
||||
|
||||
<arguments>
|
||||
<argument name="jsLayout" xsi:type="array">
|
||||
<item name="components" xsi:type="array">
|
||||
<item name="msp-recaptcha" xsi:type="array">
|
||||
<item name="component" xsi:type="string">MSP_ReCaptcha/js/reCaptcha</item>
|
||||
<item name="zone" xsi:type="string">login</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
<arguments>
|
||||
<argument name="login_button_view_model" xsi:type="object">Magento\Customer\ViewModel\LoginButton</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Customer\Block\Form\Login\Info" name="customer.new" template="Magento_Customer::newcustomer.phtml"/>
|
||||
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
|
||||
<arguments>
|
||||
<argument name="triggers" xsi:type="array">
|
||||
<item name="loginButton" xsi:type="string">.action.login</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="header_account_drop">
|
||||
<block class="Magento\Customer\Block\Form\Login" name="customer_form_login"
|
||||
template="Magento_Customer::form/login_drop.phtml">
|
||||
<container name="header_form.additional.info" as="form_additional_info_drop">
|
||||
<block class="Olegnax\Athlete2\Block\Frontend\ReCaptcha" name="ox-recaptcha-login" after="-"
|
||||
template="Olegnax_Athlete2::msp_recaptcha.phtml"
|
||||
ifconfig="msp_securitysuite_recaptcha/frontend/enabled">
|
||||
|
||||
<arguments>
|
||||
<argument name="jsLayout" xsi:type="array">
|
||||
<item name="components" xsi:type="array">
|
||||
<item name="msp-recaptcha" xsi:type="array">
|
||||
<item name="component" xsi:type="string">MSP_ReCaptcha/js/reCaptcha</item>
|
||||
<item name="zone" xsi:type="string">login</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
</block>
|
||||
<block class="Magento\Customer\Block\Form\Login\Info" name="customer.new" template="Magento_Customer::newcustomer.phtml"/>
|
||||
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
|
||||
<arguments>
|
||||
<argument name="triggers" xsi:type="array">
|
||||
<item name="loginButton" xsi:type="string">.action.login</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="product.info.media.image">
|
||||
<action method="setTemplate">
|
||||
<argument name='template' xsi:type='string'>Magento_Catalog::product/view/gallery-noslider.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="msp-recaptcha" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="product.info.media.video" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="ox_newsletter_popup" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,9 @@
|
||||
var config = {
|
||||
config: {
|
||||
mixins: {
|
||||
'Amasty_Conf/js/swatch-renderer': {
|
||||
'Olegnax_Athlete2/js/Amasty_Conf/swatch-renderer': true
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -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));
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>';
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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; ?>
|
||||
@@ -0,0 +1,57 @@
|
||||
& when (@media-common = true) {
|
||||
.product-item{
|
||||
.product-grid__image-wrapper {
|
||||
.ox-grid-gallery-video{
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
z-index: 2;
|
||||
}
|
||||
.ox-product-hover-image-container{
|
||||
.product-image-photo {
|
||||
.lib-css(transition, .3s, @_prefix: 1);
|
||||
.lib-css(transition-property, ~"opacity, visibility", @_prefix: 1);
|
||||
}
|
||||
.product-first-image-photo {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
z-index: 1;
|
||||
&.owl-lazy{
|
||||
opacity:0;
|
||||
}
|
||||
}
|
||||
.product-second-image-photo{
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:not(:hover){
|
||||
.product-grid__image-wrapper {
|
||||
.ox-product-hover-image-container{
|
||||
.product-second-image-photo{
|
||||
opacity: 0!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
.product-grid__image-wrapper {
|
||||
.ox-grid-gallery-video{
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
.ox-product-hover-image-container{
|
||||
.product-first-image-photo {
|
||||
opacity: 0!important;
|
||||
visibility: hidden;
|
||||
}
|
||||
.product-second-image-photo{
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return function (widget) {
|
||||
$.widget('amasty_conf.SwatchRenderer', widget, {
|
||||
_AmOnClick: function ($this, $widget) {
|
||||
$widget._OnClick($this, $widget);
|
||||
var slickSlide = $this,
|
||||
possibleSlide = $this.parent();
|
||||
// fix for when price in title enabled
|
||||
if (possibleSlide.hasClass('slick-slide')) {
|
||||
slickSlide = possibleSlide;
|
||||
}
|
||||
if (slickSlide.hasClass('slick-slide') && $this.hasClass('selected')) {
|
||||
slickSlide.parent()
|
||||
.find('[option-id="' + $this.attr('option-id') + '"]:not(.selected)')
|
||||
.addClass('selected');
|
||||
}
|
||||
|
||||
if (this.amasty_conf_config && this.amasty_conf_config.share.enable == '1') {
|
||||
$widget._addHashToUrl($this, $widget);
|
||||
}
|
||||
|
||||
$widget._reloadProductInformation($this, $widget);
|
||||
|
||||
var isProductViewExist = $('body.catalog-product-view').length > 0;
|
||||
|
||||
if (isProductViewExist) {
|
||||
$widget._RenderPricesForControls();
|
||||
}
|
||||
if (isProductViewExist || this.ajaxCart) {
|
||||
this._saveLastRowContent();
|
||||
$widget._RenderProductMatrix();
|
||||
if (this.options.jsonConfig.swatches_slider) {
|
||||
this._generateSliderSwatches();
|
||||
}
|
||||
}
|
||||
$widget._addOutOfStockLabels();
|
||||
},
|
||||
onMouseLeave: function($this, $widget) {
|
||||
var $parent = $this.parents('.' + $widget.options.classes.attributeClass),
|
||||
selectedOption = $parent.find('.' + $widget.options.classes.optionClass + '.selected'),
|
||||
$label = $parent.find('.' + $widget.options.classes.attributeSelectedOptionLabelClass),
|
||||
$input = $parent.find('.' + $widget.options.classes.attributeInput),
|
||||
attributeId = $this.attr('attribute-id')
|
||||
|| $this.attr('data-attribute-id')
|
||||
|| selectedOption.attr('attribute-id')
|
||||
|| selectedOption.attr('data-attribute-id'),
|
||||
selectedOptionAttributeClass = $widget.options.jsonConfig.selected_option_attribute_class || 'option-selected';
|
||||
if ($widget.inProductList) {
|
||||
$input = $widget.productForm.find(
|
||||
'.' + $widget.options.classes.attributeInput + '[name="super_attribute[' + attributeId + ']"]'
|
||||
);
|
||||
}
|
||||
if (selectedOption.length > 0) {
|
||||
$parent.attr(selectedOptionAttributeClass, selectedOption.attr('option-id'));
|
||||
} else {
|
||||
$parent.removeAttr(selectedOptionAttributeClass).find('.selected').removeClass('selected');
|
||||
$input.val('');
|
||||
$label.text('');
|
||||
$this.attr('aria-checked', false);
|
||||
}
|
||||
$widget._loadMedia();
|
||||
},
|
||||
});
|
||||
|
||||
return $.amasty_conf.SwatchRenderer;
|
||||
}
|
||||
});
|
||||