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,117 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. 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">
<body>
<referenceContainer name="head.additional">
<block name="athlete2_inline_css" class="Olegnax\Athlete2\Block\Template" template="Olegnax_Athlete2::dynamic_css/inline-css.phtml">
<block name="athlete2_dynamic_css" class="Olegnax\Athlete2\Block\Template" template="Olegnax_Athlete2::dynamic_css/settings.phtml"/>
</block>
<block name="athlete2_head.additional" class="Olegnax\Athlete2\Block\Template" template="html/head.additional.phtml" before="-"/>
</referenceContainer>
<referenceContainer name="page.wrapper">
<block name="athlete2_header" class="Olegnax\Athlete2\Block\Template" template="html/header.phtml" before="main.content">
<arguments>
<argument name="sticky_allowed" xsi:type="string">yes</argument>
</arguments>
<action method="setTemplate">
<argument name="template" xsi:type="helper" helper="Olegnax\Athlete2\Helper\UpdaterTemplate::setHeaderLayout"/>
</action>
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="header_wishlist" template="Magento_Wishlist::header_wishlist.phtml"/>
<block name="top.menu" class="Magento\Theme\Block\Html\Topmenu" template="Magento_Theme::html/topmenu.phtml"/>
<block class="Olegnax\Athlete2\Block\TopLinks" name="athlete2_topline" template="html/topline.phtml">
<block class="Olegnax\Athlete2\Block\TopLinks" name="top_links" template="html/top_line/top_links.phtml"/>
</block>
<block class="Olegnax\Athlete2\Block\Template" name="header_account" template="html/header_account.phtml">
<block class="Olegnax\Athlete2\Block\Template" name="header_account_drop" template="html/header_account_drop.phtml">
<block class="Olegnax\Athlete2\Block\TopLinks" name="account-drop-links" template="html/header_account_links.phtml"/>
</block>
</block>
<block class="Magento\Framework\View\Element\Template" name="header_branch" template="Olegnax_Athlete2::html/header_branch.phtml"/>
<block class="Olegnax\Athlete2\Block\Template" name="header_compare" template="Magento_Catalog::product/compare/header_compare.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="compareProducts" xsi:type="array">
<item name="component" xsi:type="string">Magento_Catalog/js/view/compare-products
</item>
</item>
</item>
</argument>
</arguments>
</block>
</block>
<block name="athlete2_navigation" class="Olegnax\Athlete2\Block\Template" template="html/sections.phtml" after="athlete2_header">
<arguments>
<argument name="group_css" xsi:type="string">ox-nav-sections</argument>
</arguments>
<block name="store.menu" class="Magento\Framework\View\Element\Template" template="Olegnax_Athlete2::html/container.phtml">
<arguments>
<argument name="title" translate="true" xsi:type="string">Menu</argument>
</arguments>
</block>
<block name="store.links" class="Magento\Framework\View\Element\Template" template="Olegnax_Athlete2::html/container.phtml">
<arguments>
<argument name="title" translate="true" xsi:type="string">Account</argument>
</arguments>
</block>
<block name="store.settings" class="Magento\Framework\View\Element\Template" template="Olegnax_Athlete2::html/container.phtml">
<arguments>
<argument name="title" translate="true" xsi:type="string">Settings</argument>
</arguments>
</block>
</block>
<container name="athlete2_after_header" after="athlete2_header">
<block class="Olegnax\Athlete2\Block\Template" name="header_banner" template="html/header_banner.phtml" after="athlete2_header"/>
</container>
<container name="above_footer" htmlTag="div" htmlClass="above_footer_block" before="footer-container">
<block class="Olegnax\Athlete2\Block\Template" name="above_footer_block" template="html/above_footer_block.phtml" before="-"/>
<block class="Olegnax\Athlete2\Block\Template" name="above_footer_banner" template="html/above_footer_banner.phtml" after="-"/>
</container>
<block class="Olegnax\Athlete2\Block\SimpleTemplate" name="totop" template="html/totop.phtml"/>
</referenceContainer>
<referenceContainer name="footer">
<block name="athlete2_footer" class="Olegnax\Athlete2\Block\SimpleTemplate" template="html/footer.phtml" before="-">
</block>
</referenceContainer>
<referenceContainer name="before.body.end">
<block ifconfig="athlete2_settings/general/videojs" class="Olegnax\Athlete2\Block\SimpleTemplate" name="ox_videojs_init" template="Olegnax_Athlete2::html/videojs.phtml"/>
<block ifconfig="athlete2_settings/general/waypoints" class="Olegnax\Athlete2\Block\SimpleTemplate" name="ox_waypoints_init" template="Olegnax_Athlete2::html/waypoints.phtml"/>
<block class="Olegnax\Athlete2\Block\SimpleTemplate" name="ox_move_style" template="Olegnax_Athlete2::move_style.phtml"/>
<block class="Olegnax\Athlete2\Block\SimpleTemplate" name="ox_athlete2_expand" template="Olegnax_Athlete2::expand.phtml" />
</referenceContainer>
<container name="ox_before_body_end" after="-">
<block class="Olegnax\Athlete2\Block\Template" name="ox_modals_holder" template="html/modals_holder.phtml" />
</container>
<move element="breadcrumbs" destination="athlete2_after_header" after="-"/>
<move element="store.menu" destination="athlete2_navigation" before="-"/>
<move element="store.links" destination="athlete2_navigation" after="store.menu"/>
<move element="store.settings" destination="athlete2_navigation" after="store.links"/>
<move element="currency" destination="athlete2_topline"/>
<move element="store_language" destination="athlete2_topline"/>
<move element="logo" destination="athlete2_header"/>
<move element="minicart" destination="athlete2_header"/>
<move element="top.search" destination="athlete2_header"/>
<move element="top.search.panel" destination="athlete2_header"/>
<move element="top.search.panel.mobile" destination="athlete2_header"/>
<move element="form.subscribe" as="subscribe" destination="athlete2_footer" before="-"/>
<referenceBlock name="footer_links" remove="true"/>
<move element="store_switcher" destination="athlete2_footer"/>
<move element="copyright" destination="footer-container" after="-"/>
<referenceContainer name="header.container" remove="1"/>
<referenceBlock name="navigation.sections" remove="1"/>
<referenceBlock name="report.bugs" remove="1"/>
<referenceBlock name="store.settings.language" remove="1"/>
<referenceBlock name="store.settings.currency" remove="1"/>
<referenceBlock name="catalog.topnav" remove="1"/>
</body>
</page>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. 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>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<css src="css/styles-l.css" media="screen and (min-width: 1025px)"/>
<css src="bootstrap/bootstrap-grid.min.css" />
</head>
</page>
@@ -0,0 +1,27 @@
<?php
$helper = $this->helper('Olegnax\Athlete2\Helper\Helper')->getConfig('athlete2_settings/general');
$expand = $helper['expand'];
if ($expand) {
$selector = $helper['expand_selectors'] ?: '';
$height = abs((int)$helper['expand_height']);
$height = $block->escapeHtmlAttr($height ?: 90);
if ($selector) { ?>
<script type="text/javascript">
require(['jquery', 'OXExpand'], function ($) {
var load = function () {
$('<?= $block->escapeHtml($selector) ?>').OXExpand({
isMin: true,
maxHeight: <?= $height ?>,
more: '<?= __('Show more') ?>',
less: '<?= __('Show less') ?>',
checkCurrentSize: true
});
};
$(function () {
$('body').off('contentUpdated.oxexpand').on('contentUpdated.oxexpand', load);
load();
});
});
</script>
<?php }
}
@@ -0,0 +1,39 @@
<?php
$at_settings = $block->getConfig( 'athlete2_settings/footer_banner' );
if ( !isset( $at_settings[ 'footer_banner_columns' ] ) ) {
$at_settings[ 'footer_banner_columns' ] = '1';
}
$bannerClass = 'banner-columns-' . $at_settings[ 'footer_banner_columns' ];
if ( $at_settings[ 'show_banner' ] && $block->isCurrentPage( $at_settings[ 'footer_banner_location' ] ) ) {
?>
<div class="above-footer-banner <?= $block->escapeHtmlAttr($bannerClass) ?>">
<?php if ( $at_settings[ 'footer_banner_columns' ] == '2' ) { ?>
<div class="container">
<div class="row">
<div class="col-lg-6 banner-wrap first-banner">
<?php
if ( $at_settings[ 'footer_banner_type' ] == 'textfield' ) {
echo $block->getBlockTemplateProcessor( $at_settings[ 'footer_banner_custom' ] );
} else {
echo $this->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( $at_settings[ 'footer_banner_static' ] )->toHtml();
}
?>
</div>
<div class="col-lg-6 banner-wrap second-banner">
<?php echo $block->getBlockTemplateProcessor( $at_settings[ 'footer_banner_custom_2' ] ); ?>
</div>
</div>
</div>
<?php } else { ?>
<div class="container banner-wrap">
<?php
if ( $at_settings[ 'footer_banner_type' ] == 'textfield' ) {
echo $block->getBlockTemplateProcessor( $at_settings[ 'footer_banner_custom' ] );
} else {
echo $this->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( $at_settings[ 'footer_banner_static' ] )->toHtml();
}
?>
</div>
<?php } ?>
</div>
<?php } ?>
@@ -0,0 +1,14 @@
<?php
$at_settings = $block->getConfig( 'athlete2_settings/above_footer_block' );
if ( $at_settings[ 'show_block' ] ) {
?>
<div class="above-footer-content">
<?php
if ( $at_settings[ 'above_footer_block_type' ] == 'textfield' ) {
echo $block->getBlockTemplateProcessor( $at_settings[ 'above_footer_block_custom' ] );
} else {
echo $this->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( $at_settings[ 'above_footer_block_static' ] )->toHtml();
}
?>
</div>
<?php } ?>
@@ -0,0 +1,10 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
?>
<?= $block->getChildHtml() ?>
@@ -0,0 +1,33 @@
<?php
$atSettings = $block->getConfig('athlete2_settings/footer');
if ($atSettings['show_footer']) :
?>
<div class="lts-site-footer">
<div class="lts-site-footer__top">
<div class="lts-site-footer__container">
<?= /* @noEscape */ $block->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('lts-footer-link-columns')
->toHtml() ?>
</div>
</div>
<div class="lts-site-footer__bottom">
<div class="lts-site-footer__container lts-site-footer__bottom-inner">
<div class="lts-site-footer__brand">
<img src="<?= $block->escapeUrl($block->getViewFileUrl('Magento_Theme::images/lts-footer/lts-logo.png')) ?>"
width="154" height="78" alt="LTS">
<address>17333 Freedom Way,<br>City of Industry,<br>CA 91748</address>
</div>
<div class="lts-site-footer__subscribe">
<?= $block->getChildHtml('subscribe') ?>
</div>
<div class="lts-site-footer__app">
<?= /* @noEscape */ $block->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('lts-footer-social-app')
->toHtml() ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
@@ -0,0 +1,25 @@
<?php
use Olegnax\Athlete2\Helper\CssFiles;
$_helper = $this->helper( CssFiles::class);
$themeFont = $block->getViewFileUrl('fonts/athlete2/athlete2.woff');
if($themeFont){
?>
<link rel="preload" as="font" crossorigin="anonymous" href="<?= $themeFont ?>" />
<?php
}
if ($this->getConfig('athlete2_design/appearance_general/google_font_enable')) {
?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="<?= $_helper->getGoogleFontUrl(); ?>" rel="stylesheet">
<?php } ?>
<?php if (!$this->getConfig('athlete2_design/appearance_custom/inline_css')) { ?>
<link rel="stylesheet" media="all" type="text/css"
href="<?php echo $_helper->getDynamicCss('settings') . ($this->getConfig('athlete2_design/appearance_custom/dynamic_file_arg_enable') ? '?v=' . $this->getConfig('athlete2_design/appearance_custom/dynamic_file_arg').'.0' : '') ?>"/>
<?php } ?>
<?php if ($this->getConfig('athlete2_design/appearance_general/fontawesome_enabled')) { ?>
<link rel="preconnect" href="https://use.fontawesome.com">
<link rel="preload" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<?php } ?>
@@ -0,0 +1,74 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$header_classes = 'header--layout-1';
$menu_position = $at_settings['header']['menu_position'];
$sticky_header = $at_settings['header']['sticky_header'];
$header_classes .= ' header__menu--position-' . $menu_position;
$show_toplinks = $at_settings['header']['show_top_links'];
$disable_topline = $at_settings['header']['disable_topline'];
$topline_block_left = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_left_static'] );
$topline_block_right = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_right_static'] );
if( $at_settings['header']['header_fullwidth'] ) {
$header_classes .= ' header--full-width';
}
$toggleNavText = $at_settings['mobile_header']['mobile_header_menu_text'];
if( $toggleNavText ) {
$toggleNavText = '<span>' . $block->escapeHtml($toggleNavText) . '</span>';
}
$sticky_allowed = $block->getData("sticky_allowed");
$search_below_mobile = $at_settings['mobile_header']['search_mobile_below'];
if($search_below_mobile){
$header_classes .= ' mobile-search--below';
}
?>
<div class="page-header <?php echo $block->escapeHtmlAttr($header_classes) ?>"<?php if( $sticky_header && $sticky_allowed!= 'no') { echo ' data-role="OXsticky" data-mage-init=\'{"OXsticky":{}}\''; } ?>>
<div class="sticky-wrapper">
<div class="container">
<div class="row">
<div class="logo__container">
<?php echo $this->getChildHtml( "logo" ); ?>
</div>
<div class="col header__content-wrapper">
<?php if( ! $disable_topline ){ ?>
<?php echo $this->getChildHtml( 'athlete2_topline' ); ?>
<?php } ?>
<div class="header__content flex-row search-visible">
<div class="flex-left flex-row modal__left" data-move-mobile="header.main.left" data-move-sticky="header.main.left">
<div data-action="toggle-mobile-nav" class="action slide-out-menu--mobile"><div class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu')) ?>"><span></span><span></span><span></span></div><?= $toggleNavText ?></div>
<?php if ( $menu_position == 1 ) echo $this->getChildHtml( 'top.menu' ); ?>
<?php if ( $menu_position == 2 ) : ?>
<div class="header__additional-content">
<?php echo $block->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( 'athlete2-header-text' )->toHtml(); ?>
</div>
<?php endif ?>
</div>
<div class="flex-right flex-row modal__right" data-move-mobile="header.main.right" data-move-sticky="header.main.right">
<?php echo $this->getChildHtml( 'top.search' ) ?>
<?php
if($at_settings['header']['account_position'] == 'main') {
echo $this->getChildHtml("header_account");
}
if($at_settings['header']['compare_position'] == 'main') {
echo $this->getChildHtml("header_compare");
}
if($at_settings['header']['wishlist_position'] == 'main') {
echo $this->getChildHtml("header_wishlist");
}
if($theme_helper->isActivePlugin( 'Amasty_RequestQuote' )){
echo $this->getChildHtml( 'quotecart' );
}
?>
</div>
</div>
</div>
</div>
</div>
<?php if ( $menu_position == 2 ) : ?>
<div class="header-nav-wide"><?php echo $this->getChildHtml( 'top.menu' ); ?></div>
<?php endif ?>
<?php if ( $search_below_mobile ) : ?>
<div class="header__search-below block-search hide-on-desktop"><?php echo $this->getChildHtml( 'top.search.panel.mobile' ); ?></div>
<?php endif ?>
</div>
</div>
@@ -0,0 +1,75 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$header_classes = 'header--layout-2';
$menu_position = $at_settings['header']['menu_position'];
$sticky_header = $at_settings['header']['sticky_header'];
$header_classes .= ' header__menu--position-' . $menu_position;
$show_toplinks = $at_settings['header']['show_top_links'];
$disable_topline = $at_settings['header']['disable_topline'];
$topline_block_left = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_left_static'] );
$topline_block_right = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_right_static'] );
if( $at_settings['header']['header_fullwidth'] ) {
$header_classes .= ' header--full-width';
}
$toggleNavText = $at_settings['mobile_header']['mobile_header_menu_text'];
if( $toggleNavText ) {
$toggleNavText = '<span>' . $block->escapeHtml($toggleNavText) . '</span>';
}
$sticky_allowed = $block->getData("sticky_allowed");
$search_below_mobile = $at_settings['mobile_header']['search_mobile_below'];
if($search_below_mobile){
$header_classes .= ' mobile-search--below';
}
?>
<div class="page-header <?php echo $block->escapeHtmlAttr($header_classes) ?>"<?php if( $sticky_header && $sticky_allowed!= 'no' ) { echo ' data-role="OXsticky" data-mage-init=\'{"OXsticky":{}}\''; } ?>>
<div class="sticky-wrapper">
<div class="container">
<div class="row">
<div class="col header__content-wrapper">
<?php if( ! $disable_topline ){ ?>
<?php echo $this->getChildHtml( 'athlete2_topline' ); ?>
<?php } ?>
<div class="header__content">
<div class="logo__container">
<?php echo $this->getChildHtml( "logo" ); ?>
</div>
<div class="flex-left flex-row modal__left" data-move-mobile="header.main.left" data-move-sticky="header.main.left">
<div data-action="toggle-mobile-nav" class="action slide-out-menu--mobile"><div class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu')) ?>"><span></span><span></span><span></span></div><?= $toggleNavText ?></div>
<?php if ( $menu_position == 1 ) echo $this->getChildHtml( 'top.menu' ); ?>
<?php if ( $menu_position == 2 ) : ?>
<div class="header__additional-content">
<?php echo $block->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( 'athlete2-header-text' )->toHtml(); ?>
</div>
<?php endif ?>
</div>
<div class="flex-right flex-row modal__right" data-move-mobile="header.main.right">
<?php echo $this->getChildHtml( 'top.search' ) ?>
<?php
if($at_settings['header']['account_position'] == 'main') {
echo $this->getChildHtml("header_account");
}
if($at_settings['header']['compare_position'] == 'main') {
echo $this->getChildHtml("header_compare");
}
if($at_settings['header']['wishlist_position'] == 'main') {
echo $this->getChildHtml("header_wishlist");
}
if($theme_helper->isActivePlugin( 'Amasty_RequestQuote' )){
echo $this->getChildHtml( 'quotecart' );
}
echo $this->getChildHtml( 'minicart' );
?>
</div>
</div>
</div>
</div>
</div>
<?php if ( $menu_position == 2 ) : ?>
<div class="header-nav-wide"><?php echo $this->getChildHtml( 'top.menu' ); ?></div>
<?php endif ?>
<?php if ( $search_below_mobile ) : ?>
<div class="header__search-below block-search hide-on-desktop"><?php echo $this->getChildHtml( 'top.search.panel.mobile' ); ?></div>
<?php endif ?>
</div>
</div>
@@ -0,0 +1,76 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$header_classes = 'header--layout-4';
$menu_position = $at_settings['header']['menu_position'];
$sticky_header = $at_settings['header']['sticky_header'];
$header_classes .= ' header__menu--position-' . $menu_position;
$disable_topline = $at_settings['header']['disable_topline'];
$show_toplinks = $at_settings['header']['show_top_links'];
$topline_block_left = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_left_static'] );
$topline_block_right = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_right_static'] );
if( $at_settings['header']['header_fullwidth'] ) {
$header_classes .= ' header--full-width';
}
$toggleNavText = $at_settings['mobile_header']['mobile_header_menu_text'];
if( $toggleNavText ) {
$toggleNavText = '<span>' . $block->escapeHtml($toggleNavText) . '</span>';
}
$sticky_allowed = $block->getData("sticky_allowed");
$search_below_mobile = $at_settings['mobile_header']['search_mobile_below'];
if($search_below_mobile){
$header_classes .= ' mobile-search--below';
}
?>
<div class="page-header <?php echo $block->escapeHtmlAttr($header_classes) ?>"<?php if( $sticky_header && $sticky_allowed!= 'no' ) { echo ' data-role="OXsticky" data-mage-init=\'{"OXsticky":{}}\''; } ?>>
<div class="sticky-wrapper">
<div class="container">
<div class="row">
<div class="col header__content-wrapper">
<?php if( ! $disable_topline ){ ?>
<?php echo $this->getChildHtml( 'athlete2_topline' ); ?>
<?php } ?>
<div class="header__content">
<div class="logo__container">
<?php echo $this->getChildHtml( "logo" ); ?>
</div>
<div class="flex-left flex-row modal__left" data-move-mobile="header.main.left" data-move-sticky="header.main.left">
<div data-action="toggle-mobile-nav" class="action slide-out-menu--mobile"><div class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu')) ?>"><span></span><span></span><span></span></div><?= $toggleNavText ?></div>
<?php if ( $menu_position == 1 ) echo $this->getChildHtml( 'top.menu' ); ?>
<?php if ( $menu_position == 2 ) : ?>
<div class="header__additional-content">
<?php echo $block->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( 'athlete2-header-text' )->toHtml(); ?>
</div>
<?php endif ?>
</div>
<div class="flex-right flex-row modal__right" data-move-mobile="header.main.right">
<?php echo $this->getChildHtml( 'top.search' ) ?>
<?php
if($at_settings['header']['account_position'] == 'main') {
echo $this->getChildHtml("header_account");
}
if($at_settings['header']['compare_position'] == 'main') {
echo $this->getChildHtml("header_compare");
}
if($at_settings['header']['wishlist_position'] == 'main') {
echo $this->getChildHtml("header_wishlist");
}
if($theme_helper->isActivePlugin( 'Amasty_RequestQuote' )){
echo $this->getChildHtml( 'quotecart' );
}
echo $this->getChildHtml( 'minicart' );
echo $this->getChildHtml( 'header_branch' );
?>
</div>
</div>
</div>
</div>
</div>
<?php if ( $menu_position == 2 ) : ?>
<div class="header-nav-wide"><?php echo $this->getChildHtml( 'top.menu' ); ?></div>
<?php endif ?>
<?php if ( $search_below_mobile ) : ?>
<div class="header__search-below block-search hide-on-desktop"><?php echo $this->getChildHtml( 'top.search.panel.mobile' ); ?></div>
<?php endif ?>
</div>
</div>
@@ -0,0 +1,72 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$header_classes = 'header--layout-5';
$menu_position = $at_settings['header']['menu_position'];
$sticky_header = $at_settings['header']['sticky_header'];
$header_classes .= ' header__menu--position-' . $menu_position;
$disable_topline = $at_settings['header']['disable_topline'];
if( $at_settings['header']['header_fullwidth'] ) {
$header_classes .= ' header--full-width';
}
$toggleNavText = $at_settings['mobile_header']['mobile_header_menu_text'];
if( $toggleNavText ) {
$toggleNavText = '<span>' . $block->escapeHtml($toggleNavText) . '</span>';
}
$sticky_allowed = $block->getData("sticky_allowed");
$search_below_mobile = $at_settings['mobile_header']['search_mobile_below'];
if($search_below_mobile){
$header_classes .= ' mobile-search--below';
}
?>
<div class="page-header <?php echo $block->escapeHtmlAttr($header_classes) ?>"<?php if( $sticky_header && $sticky_allowed!= 'no' ) { echo ' data-role="OXsticky" data-mage-init=\'{"OXsticky":{}}\''; } ?>>
<div class="sticky-wrapper">
<div class="container">
<div class="row">
<div class="col header__content-wrapper">
<?php if( ! $disable_topline ){ ?>
<?php echo $this->getChildHtml( 'athlete2_topline' ); ?>
<?php } ?>
<div class="header__content">
<div class="flex-row header__left modal__left" data-move-mobile="header.main.left" data-move-sticky="header.main.left">
<div data-action="toggle-mobile-nav" class="action slide-out-menu--mobile"><div class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu')) ?>"><span></span><span></span><span></span></div><?= $toggleNavText ?></div>
<?php if ( $menu_position == 1 ) echo $this->getChildHtml( 'top.menu' ); ?>
<?php if ( $menu_position == 2 ) : ?>
<div class="header__additional-content">
<?php echo $block->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( 'athlete2-header-text' )->toHtml(); ?>
</div>
<?php endif ?>
</div>
<div class="logo__container">
<?php echo $this->getChildHtml( "logo" ); ?>
</div>
<div class="flex-row header__right modal__right" data-move-mobile="header.main.right">
<?php echo $this->getChildHtml( 'top.search' ) ?>
<?php
if($at_settings['header']['account_position'] == 'main') {
echo $this->getChildHtml("header_account");
}
if($at_settings['header']['compare_position'] == 'main') {
echo $this->getChildHtml("header_compare");
}
if($at_settings['header']['wishlist_position'] == 'main') {
echo $this->getChildHtml("header_wishlist");
}
if($theme_helper->isActivePlugin( 'Amasty_RequestQuote' )){
echo $this->getChildHtml( 'quotecart' );
}
echo $this->getChildHtml( 'minicart' );
?>
</div>
</div>
</div>
</div>
</div>
<?php if ( $menu_position == 2 ) : ?>
<div class="header-nav-wide"><?php echo $this->getChildHtml( 'top.menu' ); ?></div>
<?php endif ?>
<?php if ( $search_below_mobile ) : ?>
<div class="header__search-below block-search hide-on-desktop"><?php echo $this->getChildHtml( 'top.search.panel.mobile' ); ?></div>
<?php endif ?>
</div>
</div>
@@ -0,0 +1,67 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$header_classes = 'header--layout-6';
$menu_position = $at_settings['header']['menu_position'];
$sticky_header = $at_settings['header']['sticky_header'];
$header_classes .= ' header__menu--position-' . $menu_position;
$disable_topline = $at_settings['header']['disable_topline'];
if( $at_settings['header']['header_fullwidth'] ) {
$header_classes .= ' header--full-width';
}
$toggleNavText = $at_settings['mobile_header']['mobile_header_menu_text'];
if( $toggleNavText ) {
$toggleNavText = '<span>' . $block->escapeHtml($toggleNavText) . '</span>';
}
$sticky_allowed = $block->getData("sticky_allowed");
$search_below_mobile = $at_settings['mobile_header']['search_mobile_below'];
if($search_below_mobile){
$header_classes .= ' mobile-search--below';
}
?>
<div class="page-header <?php echo $block->escapeHtmlAttr($header_classes) ?>"<?php if( $sticky_header && $sticky_allowed!= 'no' ) { echo ' data-role="OXsticky" data-mage-init=\'{"OXsticky":{}}\''; } ?>>
<div class="sticky-wrapper">
<div class="container">
<div class="row">
<div class="col header__content-wrapper">
<?php if( ! $disable_topline ){ ?>
<?php echo $this->getChildHtml( 'athlete2_topline' ); ?>
<?php } ?>
<div class="header__content">
<div class="logo__container">
<?php echo $this->getChildHtml( "logo" ); ?>
</div>
<div class="header__left flex-row modal__left" data-move-mobile="header.main.left" data-move-sticky="header.main.left">
<div data-action="toggle-mobile-nav" class="action slide-out-menu--mobile"><div class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu')) ?>"><span></span><span></span><span></span></div><?= $toggleNavText ?></div>
</div>
<div class="header__center header__item-search block-search">
<?php echo $this->getChildHtml( 'top.search.panel' ) ?>
</div>
<div class="header__right flex-row modal__right" data-move-mobile="header.main.right" data-move-sticky="header.main.right">
<?php echo $this->getChildHtml( 'top.search' ) ?>
<?php
if($at_settings['header']['account_position'] == 'main') {
echo $this->getChildHtml("header_account");
}
if($at_settings['header']['compare_position'] == 'main') {
echo $this->getChildHtml("header_compare");
}
if($at_settings['header']['wishlist_position'] == 'main') {
echo $this->getChildHtml("header_wishlist");
}
if($theme_helper->isActivePlugin( 'Amasty_RequestQuote' )){
echo $this->getChildHtml( 'quotecart' );
}
echo $this->getChildHtml( 'minicart' );
?>
</div>
</div>
</div>
</div>
</div>
<div class="header-nav-wide"><?php echo $this->getChildHtml( 'top.menu' ); ?></div>
<?php if ( $search_below_mobile ) : ?>
<div class="header__search-below block-search hide-on-desktop"><?php echo $this->getChildHtml( 'top.search.panel.mobile' ); ?></div>
<?php endif ?>
</div>
</div>
@@ -0,0 +1,13 @@
<div class="header__item header__item-account" data-move-desktop="header.myaccount">
<a class="button js-item-myaccount-action" href="<?= $block->escapeUrl($block->getUrl('customer/account')); ?>" data-bind="scope: 'customer'">
<img class="lts-header-icon lts-header-icon--account"
src="<?= $block->escapeUrl($block->getViewFileUrl('Magento_Theme::images/lts-header/header_sign_in_icon.png')) ?>"
width="20" height="20" alt="" aria-hidden="true"/>
<span class="label">
<span data-bind="visible: !customer().fullname"><?= $block->escapeHtml(__('Sign In')) ?></span>
<span class="lts-account-name" data-bind="visible: customer().fullname, text: customer().fullname"></span>
</span>
</a>
<?php echo $this->getChildHtml("header_account_drop"); ?>
</div>
<script type="text/x-magento-init">{"*":{"Magento_Ui/js/core/app":{"components":{"customer":{"component":"Magento_Customer/js/view/customer"}}}}}</script>
@@ -0,0 +1,50 @@
<?php
$at_settings = $block->getConfig('athlete2_settings');
$account_action_drop = $at_settings['header']['account_action'];
$at_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
if($account_action_drop == 'login' || $account_action_drop == 'simple'){
$isLoggedIn = $block->isLoggedIn();
$account_type = $at_settings['header']['account_type'];
if(!$isLoggedIn && $account_action_drop == 'login') {
$dropClass='ox-login-drop lts-account-drawer';
} else {
$dropClass='ox-links-drop';
}
?>
<?php if(!(($at_helper->isAccountPage() || $at_helper->isMulticheckout()) && !$isLoggedIn)){ ?>
<div class="header__item-dropdown-content block-account"
data-role="OXmodal"
data-mage-init='{"OXmodal":{
"triggerTarget":".js-item-myaccount-action",
"overlayClass":"ox-slideout-shadow",
"timeout": "200",
"defaultModalClass":"ox-dialog <?= $block->escapeHtml($dropClass) ?>",
"closeOnEscape": true,
"closeButtonTrigger": "#btn-myaccount-close",
"closeOnMouseLeave": <?php echo 'dropdown-hover' == $block->escapeHtml($account_type) ? 'true' : 'false'; ?>,
"hoverOpen": <?php echo 'dropdown-hover' == $block->escapeHtml($account_type) ? 'true' : 'false'; ?>,
"type": "<?php echo (!$isLoggedIn || 'slideout' == $block->escapeHtml($account_type)) ? 'slideout' : ''; ?>",
"htmlClass":"ox-fixed"
}}'>
<button type="button" id="btn-myaccount-close" class="ox-overlay-close-btn" aria-label="Close Modal" data-action="close"><span></span></button>
<div class="block-content ox-move-item ox-move-item-store.links">
<?php
if ($account_action_drop == 'login' && !$isLoggedIn) {
echo $this->getChildHtml("customer_form_login");
?>
<div class="lts-account-drawer__new">
<h3><?= $block->escapeHtml(__('New To LTS?')) ?></h3>
<p><?= $block->escapeHtml(__('Sign Up Today To Check Out Faster, Keep More Than One Address, Track Orders And More.')) ?></p>
<a href="<?= $block->escapeUrl($block->getUrl('customer/account/create')) ?>"><?= $block->escapeHtml(__('Create An Account')) ?></a>
</div>
<?php
echo $this->getChildHtml("require-cookie");
} else {
echo $this->getChildHtml("account-drop-links");
}
?>
</div>
</div>
<?php } ?>
<?php } ?>
@@ -0,0 +1,95 @@
<?php
/** @var \Olegnax\Athlete2\Block\TopLinks $block */
$isLoggedIn = $block->isLoggedIn();
$at_settings = $block->getConfig('athlete2_settings');
$wishlist_position = $at_settings['header']['wishlist_position'];
$compare_position = $at_settings['header']['compare_position'];
$wishlist_mobile_position = $at_settings['mobile_header']['wishlist_mobile_position'];
$compare_mobile_position = $at_settings['mobile_header']['compare_mobile_position'];
unset($at_settings);
$compare_classes='';
if($compare_mobile_position){
if('none' == $compare_mobile_position || 'main' == $compare_mobile_position){
$compare_classes.=' hide-on-tablet hide-on-mobile';
}
} else {
if('topline' != $compare_position){
$compare_classes.=' hide-on-tablet hide-on-mobile';
}
}
if('main' == $compare_position){
$compare_classes.=' hide-on-desktop';
}
if($compare_classes){
$compare_classes = 'class="' . $compare_classes . '"';
}
$wishlist_classes='';
if($wishlist_mobile_position){
if('none' == $wishlist_mobile_position || 'main' == $wishlist_mobile_position){
$wishlist_classes.=' hide-on-tablet hide-on-mobile';
}
} else{
if('topline' != $wishlist_position){
$wishlist_classes.=' hide-on-tablet hide-on-mobile';
}
}
if('main' == $wishlist_position){
$wishlist_classes.=' hide-on-desktop';
}
if($wishlist_classes){
$wishlist_classes = 'class="' . $wishlist_classes . '"';
}
?>
<ul class="header__toplinks header links ox-move-item ox-move-item-store.links" data-bind="scope: 'customer'">
<li class="greet welcome">
<!-- ko if: customer().fullname -->
<span class="logged-in"
data-bind="text: new String('<?= $block->escapeHtml(__('Welcome, %1!', '%1')) ?>').replace('%1', customer().fullname)">
</span>
<!-- /ko -->
</li>
<li><a href="<?php echo $block->escapeUrl($block->getUrl('customer/account')); ?>"><?php echo $block->escapeHtml(__('My Account')) ?></a></li>
<li class="orders-link"><a href="<?php echo $block->escapeUrl($block->getUrl('sales/order/history')); ?>"><?php echo $block->escapeHtml(__('My Orders')) ?></a></li>
<?php if ($wishlist_position): ?>
<li <?= $block->escapeHtml($wishlist_classes) ?>><a href="<?php echo $block->escapeUrl($block->getUrl('wishlist')); ?>"
data-bind="scope: 'wishlist'"><?php echo $block->escapeHtml(__('My Wishlist')) ?> <!-- ko if: wishlist().counter --><span
data-bind="text: wishlist().counter.replace(/[^0-9]*/igm, '')"></span><!-- /ko --></a></li>
<?php endif; ?>
<?php if ($compare_position): ?>
<li <?= $block->escapeHtml($compare_classes) ?>><a href="<?php echo $block->escapeUrl($this->getCompareListUrl()); ?>"
data-bind="scope: 'compareProducts'"><?php echo $block->escapeHtml(__('Compare')) ?>
<!-- ko if: compareProducts().count --><span
data-bind="text: compareProducts().countCaption.replace(/[^0-9]*/igm, '')"></span><!-- /ko -->
</a></li>
<?php endif; ?>
<li class="checkout-link"><a href="<?php echo $block->escapeUrl($block->getUrl('checkout')); ?>"><?php echo $block->escapeHtml(__('Checkout')) ?></a></li>
<li><span class="delimiter"></span></li>
<!-- ko if: customer().fullname -->
<li><a href="<?php echo $block->escapeUrl($block->getLogoutUrl()); ?>"><?php echo $block->escapeHtml(__('Log Out'))
?></a></li>
<!-- /ko -->
<!-- ko ifnot: customer().fullname -->
<li><a href="<?php echo $block->escapeUrl($block->getUrl('customer/account/create')); ?>"
style="display:<?= !$isLoggedIn ? 'inline-block' : 'none' ?>"><?php echo $block->escapeHtml(__('Create an account')) ?></a></li>
<li><a href="<?php echo $block->escapeUrl($block->getLoginUrl()); ?>" class="button primary"
style="display:<?= !$isLoggedIn ? 'inline-block' : 'none' ?>"><?php echo $block->escapeHtml(__('Log In'))
?></a></li>
<!-- /ko -->
</ul>
<?php
$jslib = [
'customer' => [
'component' => 'Magento_Customer/js/view/customer',
],
];
if ($wishlist_position) {
$jslib['wishlist']['component'] = 'Magento_Wishlist/js/view/wishlist';
}
if ($compare_position) {
$jslib['compareProducts']['component'] = 'Magento_Catalog/js/view/compare-products';
}
?>
<script type="text/x-magento-init">
{ "*": { "Magento_Ui/js/core/app": { "components": <?php echo json_encode($jslib); ?> } } }
</script>
@@ -0,0 +1,36 @@
<?php
$at_settings = $block->getConfig( 'athlete2_settings/header_banner_below' );
$bannerClass = 'banner-columns-' . $at_settings[ 'header_banner_columns' ];
if ( $at_settings[ 'show_banner' ] && $block->isCurrentPage( $at_settings[ 'header_banner_location' ] ) ) {
?>
<div class="header-banner-below <?= $block->escapeHtmlAttr($bannerClass) ?>">
<?php if($at_settings[ 'header_banner_columns' ] == '2' ) { ?>
<div class="container">
<div class="row">
<div class="col-lg-6 banner-wrap first-banner">
<?php
if ( $at_settings[ 'header_banner_type' ] == 'textfield' ) {
echo $block->getBlockTemplateProcessor( $at_settings[ 'header_banner_custom' ] );
} else {
echo $this->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( $at_settings[ 'header_banner_static' ] )->toHtml();
}
?>
</div>
<div class="col-lg-6 banner-wrap second-banner">
<?php echo $block->getBlockTemplateProcessor( $at_settings[ 'header_banner_custom_2' ] ); ?>
</div>
</div>
</div>
<?php } else { ?>
<div class="container banner-wrap">
<?php if ( $at_settings[ 'header_banner_type' ] == 'textfield' ) {
echo $block->getBlockTemplateProcessor( $at_settings[ 'header_banner_custom' ] );
} else {
echo $this->getLayout()->createBlock( 'Magento\Cms\Block\Block' )->setBlockId( $at_settings[ 'header_banner_static' ] )->toHtml();
}
?>
</div>
<?php } ?>
</div>
<?php } ?>
@@ -0,0 +1,8 @@
<div class="header__item header__item-branch">
<a class="button" href="<?= $block->escapeUrl($block->getUrl('contacts')) ?>">
<img class="lts-header-icon lts-header-icon--branch"
src="<?= $block->escapeUrl($block->getViewFileUrl('Magento_Theme::images/lts-header/header_my_branch_icon.png')) ?>"
width="20" height="20" alt="" aria-hidden="true"/>
<span class="label"><?= $block->escapeHtml(__('My Branch')) ?></span>
</a>
</div>
@@ -0,0 +1,2 @@
<div class="ox-modals__holder"></div>
@@ -0,0 +1,46 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* General template for displaying group of blocks devided into sections
*/
$groupCss = $block->getGroupCss();
$groupBehavior = $block->getGroupBehaviour() ? $block->getGroupBehaviour() : '{"tabs":{"openedState":"active"}}';
?>
<?php if ( $childBlocks = $block->getChildNames()):?>
<div class="ox-sections no-display <?= $block->escapeHtmlAttr($groupCss) ?>" data-mage-init='{"mobileMenu":{}}'>
<?php $layout = $block->getLayout(); ?>
<div class="ox-section-items <?= $block->escapeHtmlAttr($groupCss) ?>-items" data-mage-init='<?= $block->escapeHtml($groupBehavior) ?>'>
<?php foreach ($childBlocks as $name):?>
<?php
$html = (string)$layout->renderElement($name);
/*if (!trim($html) && ($block->getUseForce() != true)) {
continue;
}*/
$alias = $layout->getElementAlias($name);
$label = $block->getChildData($alias, 'title');
if($alias =='store.menu'){
$theme_helper = $this->helper( 'Olegnax\Athlete2\Helper\Helper' );
$blockBefore = $theme_helper->getBlockTemplateProcessor( $theme_helper->getConfig('athlete2_settings/mobile_header/mobile_menu_content_before') );
$blockAfter = $theme_helper->getBlockTemplateProcessor( $theme_helper->getConfig('athlete2_settings/mobile_header/mobile_menu_content_after') );
if(!empty($blockBefore)){
$html .= '<div class="ox-menu__block-before">'. $blockBefore .'</div>';
}
if(!empty($blockAfter)){
$html .= '<div class="ox-menu__block-after">'. $blockAfter .'</div>';
}
}
?>
<div class="ox-section-item-title <?= $block->escapeHtmlAttr($groupCss) ?>-item-title" data-role="collapsible">
<a class="<?= $block->escapeHtmlAttr($groupCss) ?>-item-switch" data-toggle="switch" href="#<?= $block->escapeHtmlAttr($alias) ?>"><?= /* noEscape */ $label ?></a>
</div>
<div class="ox-section-item-content <?= $block->escapeHtmlAttr($groupCss) ?>-item-content" id="<?= $block->escapeHtmlAttr($alias) ?>" data-role="content" data-move-mobile="<?= $block->escapeHtmlAttr($alias) ?>"><?= /* noEscape */ $html ?></div>
<?php endforeach;?>
</div>
</div>
<?php endif; ?>
@@ -0,0 +1,111 @@
<?php
/** @var TopLinks $block */
use Olegnax\Athlete2\Block\TopLinks;
$at_settings = $block->getConfig('athlete2_settings');
$show_greetings = $at_settings['header']['show_account_greet'];
$account_position = $at_settings['header']['account_position'];
$wishlist_position = $at_settings['header']['wishlist_position'];
$compare_position = $at_settings['header']['compare_position'];
$wishlist_mobile_position = $at_settings['mobile_header']['wishlist_mobile_position'];
$compare_mobile_position = $at_settings['mobile_header']['compare_mobile_position'];
$account_action_drop = $at_settings['header']['account_action'];
unset($at_settings);
if( 'main' != $account_position || ( '' == $account_action_drop && 'main' == $account_position )) :
$isLoggedIn = $block->isLoggedIn();
$compare_classes='';
if($compare_mobile_position){
if('none' == $compare_mobile_position || 'main' == $compare_mobile_position){
$compare_classes.=' hide-on-tablet hide-on-mobile';
}
} else {
if('topline' != $compare_position){
$compare_classes.=' hide-on-tablet hide-on-mobile';
}
}
if('main' == $compare_position){
$compare_classes.=' hide-on-desktop';
}
if($compare_classes){
$compare_classes = 'class="' . $compare_classes . '"';
}
$wishlist_classes='';
if($wishlist_mobile_position){
if('none' == $wishlist_mobile_position || 'main' == $wishlist_mobile_position){
$wishlist_classes.=' hide-on-tablet hide-on-mobile';
}
} else{
if('topline' != $wishlist_position){
$wishlist_classes.=' hide-on-tablet hide-on-mobile';
}
}
if('main' == $wishlist_position){
$wishlist_classes.=' hide-on-desktop';
}
if($wishlist_classes){
$wishlist_classes = 'class="' . $wishlist_classes . '"';
}
?>
<ul class="header__toplinks header links ox-move-item ox-move-item-store.links" data-bind="scope: 'customer'">
<?php if ( $show_greetings ): ?>
<li class="greet welcome">
<!-- ko if: customer().fullname -->
<span class="logged-in"
data-bind="text: new String('<?= $block->escapeHtml(__('Welcome, %1!', '%1')) ?>').replace('%1', customer().fullname)">
</span>
<!-- /ko -->
</li>
<?php endif; ?>
<?php if ( 'topline' == $account_position ): ?>
<li><a href="<?php echo $block->escapeUrl($block->getUrl('customer/account')); ?>"><?php echo $block->escapeHtml(__('My Account')) ?></a></li>
<?php endif; ?>
<?php if ('topline' == $wishlist_position): ?>
<li <?= $block->escapeHtmlAttr($wishlist_classes) ?>><a href="<?php echo $block->escapeUrl($block->getUrl('wishlist')); ?>"
data-bind="scope: 'wishlist'"><?php echo $block->escapeHtml(__('My Wishlist')) ?> <!-- ko if: wishlist().counter --><span
data-bind="text: wishlist().counter.replace(/[^0-9]*/igm, '')"></span><!-- /ko --></a></li>
<?php endif; ?>
<?php if ('topline' == $compare_position): ?>
<li <?= $block->escapeHtmlAttr($compare_classes) ?>><a href="<?php echo $block->escapeUrl($this->getCompareListUrl()); ?>"
data-bind="scope: 'compareProducts'"><?php echo $block->escapeHtml(__('Compare')) ?>
<!-- ko if: compareProducts().count --><span
data-bind="text: compareProducts().countCaption.replace(/[^0-9]*/igm, '')"></span><!-- /ko -->
</a></li>
<?php endif; ?>
<?php if ('topline' == $account_position): ?>
<li class="checkout-link"><a href="<?php echo $block->escapeUrl($block->getUrl('checkout')); ?>"><?php echo $block->escapeHtml(__('Checkout')) ?></a></li>
<!-- ko if: customer().fullname -->
<li data-bind="style: {'display': customer().fullname ? 'block' : 'none' }"
style="display:<?= $isLoggedIn ? 'block' : 'none' ?>"><a
href="<?php echo $block->escapeUrl($block->getLogoutUrl()); ?>"><?php echo $block->escapeHtml(__('Log Out')
) ?></a></li>
<!-- /ko -->
<!-- ko ifnot: customer().fullname -->
<li><a href="<?php echo $block->escapeUrl($block->getLoginUrl()); ?>"
style="display:<?= !$isLoggedIn ? 'block' : 'none' ?>"><?php echo $block->escapeHtml(__('Log In')
) ?></a></li>
<li><a href="<?php echo $block->escapeUrl($block->getUrl('customer/account/create')); ?>"
style="display:<?= !$isLoggedIn ? 'block' : 'none' ?>"><?php echo $block->escapeHtml(__('Create an account')) ?></a></li>
<!-- /ko -->
<?php endif; ?>
</ul>
<?php if ('topline' == $wishlist_position || 'topline' == $compare_position || 'topline' == $account_position): ?>
<?php
$jslib = [
'customer' => [
'component' => 'Magento_Customer/js/view/customer',
],
];
if ($wishlist_position) {
$jslib['wishlist']['component'] = 'Magento_Wishlist/js/view/wishlist';
}
if ($compare_position) {
$jslib['compareProducts']['component'] = 'Magento_Catalog/js/view/compare-products';
}
?>
<script type="text/x-magento-init">
{ "*": { "Magento_Ui/js/core/app": { "components": <?php echo json_encode($jslib); ?> } } }
</script>
<?php endif; ?>
<?php endif; ?>
@@ -0,0 +1,29 @@
<?php
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
$at_settings = $block->getConfig('athlete2_settings');
$headerLayout = $at_settings['header']['header_layout'];
$show_toplinks = $at_settings['header']['show_top_links'];
$topline_block_left = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_left_static'] );
$topline_block_right = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_right_static'] );
$topline_block_middle = $theme_helper->getBlockTemplateProcessor( $at_settings['header']['top_middle_static'] );
?>
<div class="top-bar flex-row<?php if ( ! empty( $topline_block_middle ) ) { echo ' topline-3col'; } ?>">
<div class="flex-left modal__left">
<?php
$language = $this->getChildHtml( 'store_language' );
$currency = $this->getChildHtml( 'currency' );
echo $language . $currency;
?>
<?php if ( ! empty( $topline_block_left ) ) { echo '<div class="topline-block">' . $topline_block_left . '</div>'; } ?>
</div>
<?php if ( ! empty( $topline_block_middle ) ) { ?>
<div class="flex-center flex-row">
<div class="topline-block"><?= $topline_block_middle; ?></div>
</div>
<?php } ?>
<div class="flex-right flex-row modal__right" data-move-desktop="header.main.right" data-move-back="header.main.right">
<?php if ( ! empty( $topline_block_right ) ) { echo '<div class="topline-block">' . $topline_block_right . '</div>'; } ?>
<?php if ( $show_toplinks ) { echo $this->getChildHtml( 'top_links' ); } ?>
<?php echo $this->getChildHtml( 'minicart' ); ?>
</div>
</div>
@@ -0,0 +1,6 @@
<?php
$to_top = $block->getConfig( 'athlete2_settings/general/to_top' );
if ( $to_top ) { ?>
<a href="#" id="toTop"><span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 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 "></polygon></svg></span><small><?= $block->escapeHtml(__('To Top')) ?></small></a>
<?php } ?>
@@ -0,0 +1 @@
<script type="text/javascript" async>require(["jquery"],function($){"use strict";$(function(){let ns=".OXA2Video",s_hover=".product-item";$("body").on("mouseenter"+ns,s_hover,async function(){let $wrapper=$(this).find(".ox-product-hover-image-container");let video=$wrapper.find("video").get(0);if(video){try{await video.play();}catch(err){console.error(err);}}}).on("mouseleave"+ns,s_hover,function(){let $wrapper=$(this).find(".ox-product-hover-image-container");let video=$wrapper.find("video").get(0);if(video&&video.currentTime>0&&!video.paused&&!video.ended&&video.readyState>2){video.pause();}});});});</script>
@@ -0,0 +1 @@
<script type="text/x-magento-init">{"*":{"ox-waypoints-init":{}}}</script>
@@ -0,0 +1,15 @@
<script>
requirejs( [ 'jquery' ],
function ( $ ) {
"use strict";
var substyle = $( 'body' ).find( 'style' );
if ( substyle.length ) {
var newheadstyle = $( '<style>' ).appendTo( 'head' );
substyle.each( function () {
var $this = $( this );
newheadstyle.html( newheadstyle.html() + $this.html() );
$this.remove();
} );
}
} );
</script>