Commit a274d35d by lmf

增加主题joshine

修改公共底部
parent d3b54ba9
......@@ -11,3 +11,4 @@ media
opt
code
/app/etc/env.php
generated
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 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="page.top">
<container name="content.top.home" label="content top home" htmlTag="div" htmlClass="content_top_home">
<block class="Magento\Framework\View\Element\Template" name="top_home" template="Magento_Cms::top-home.phtml"/>
<referenceContainer name="section_top_banner" remove="true" />
</container>
</referenceContainer>
<move element="content.top.home" destination="page.top" after="-"/>
</body>
</page>
<?php
if(! $id = $block->getProductIds()){
return ;
}
$templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
$ids = explode(',',$id);
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$pr = $objectManager->create('Magento\Catalog\Model\ProductRepository');
$blocklist = $objectManager->get('\Magento\Catalog\Block\Product\ListProduct');
$imageHelper = $objectManager->get( 'Magento\Catalog\Helper\Image' );
foreach($ids as $pid):
$product = $pr->getById($pid);
if(!$product) continue;
$productImage = $imageHelper->init( $product, 'category_page_list' ) ->getUrl();
?>
<div class="flash-sale-item col-md-2 col-xs-6">
<a href="<?php echo $product->getProductUrl()?>" >
<img src="<?php echo $productImage;?>" /></a>
<div class="flash-sale-info">
<a class="product-name" href="<?php echo $product->getProductUrl()?>"><?php echo $product->getName();?></a>
<?= $blocklist->getReviewsSummaryHtml($product, $templateType) ?>
<?= /* @noEscape */ $blocklist->getProductPrice($product) ?>
</div>
</div>
<?php
endforeach;
?>
<?php
$layout = $block->getLayout();
?><div class="actions-header-pc hidden-xs">
<?php //echo $layout->getBlock('minicart')?>
</div>
\ No newline at end of file
<div class="top-content-home">
<div class="container-custom clearfix">
<?php //echo $this->getLayout()->createBlock('Rokanthemes\SlideBanner\Block\Slider')->setSliderId('homepageslider2')->toHtml(); ?>
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('homepageslider')->toHtml();?>
<?php /*echo $block->getLayout()->createBlock('Rokanthemes\PriceCountdown\Block\Pricecountdown')->setTemplate('Rokanthemes_PriceCountdown::pricecountdown.phtml')->toHtml(); */?>
<div class="section-element shop_by_categories">
<div class="container">
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('shop_by_categories')->toHtml();?>
</div>
</div>
<div class="select-element new_product">
<div class="container">
<?php //echo $block->getLayout()->createBlock('Rokanthemes\Newproduct\Block\Newproduct')->setTemplate('Rokanthemes_Newproduct::newproduct2.phtml')->toHtml();?>
</div>
</div>
<div class="section-element flash_sale">
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('flash_sale')->toHtml();?>
</div>
<div class="section-element banner-top-home">
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_category_thumnail')->toHtml();?>
</div>
<!--
<div class="section-element categories_tab">
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('categories_tab')->toHtml();?>
</div>
-->
<div class="select-element box-blog">
<?php //echo $block->getLayout()->createBlock('Rokanthemes\Blog\Block\Sidebar\Recent')->setTemplate('Rokanthemes_Blog::sidebar/slider.phtml')->toHtml();?>
</div>
<div class="select-element testimonial_instagram">
<div class="row">
<div class="col-md-6">
<div class="section_testimonial">
<?php //echo $block->getLayout()->createBlock('Rokanthemes\Testimonial\Block\Testimonial')->setTemplate('Rokanthemes_Testimonial::testimonial.phtml')->toHtml();?>
</div>
</div>
<div class="col-md-6">
<div class="select-element Instagram_static">
<?php //echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('Instagram_static')->toHtml();?>
</div>
</div>
</div>
</div>
</div>
<div class="select-element section-before-footer clearfix">
<div class="container-before-footer clearfix">
<?php //echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('before-footer')->toHtml(); ?>
</div>
</div>
<div class="select-element section-brands clearfix">
<div class="container-custom clearfix">
<?php //echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('brand-logo-2')->toHtml(); ?>
</div>
</div>
</div>
<?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="footer-container">
<block class="Magento\Theme\Block\Html\Footer" name="footer" template="html/footer.phtml"/>
</referenceContainer>
</body>
</page>
\ No newline at end of file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<meta name="format-detection" content="telephone=no"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
</head>
<body>
<referenceBlock name="breeze.css">
<arguments>
<argument name="bundles" xsi:type="array">
<item name="default" xsi:type="array">
<item name="deferred" xsi:type="boolean">true</item>
</item>
</argument>
</arguments>
</referenceBlock>
<referenceBlock name="breeze.js">
<arguments>
<argument name="bundles" xsi:type="array">
<item name="default" xsi:type="array">
<item name="items" xsi:type="array">
<item name="theme-breeze-blank" xsi:type="string">js/breeze/theme-blank</item>
<item name="theme-breeze-extend" xsi:type="string">js/breeze/extend</item>
<item name="theme-breeze-custom" xsi:type="string">js/breeze/custom</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>
</body>
</page>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Html\Calendar" name="html_calendar" as="html_calendar" template="Magento_Theme::js/calendar.phtml"/>
</referenceContainer>
</body>
</page>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<attribute name="class" value="page-print"/>
<referenceContainer name="header.container" remove="true"/>
<referenceBlock name="catalog.topnav" remove="true"/>
<referenceContainer name="footer-container" remove="true"/>
<move element="logo" destination="main.content" before="-" />
<move element="copyright" destination="main.content" after="-" />
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template" name="sales.order.print.js" template="Magento_Theme::html/print.phtml" />
</referenceContainer>
</body>
</page>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="empty"/>
<referenceContainer name="page.wrapper">
<container name="header.container" as="header_container" label="Page Header Container" htmlTag="header" htmlClass="page-header" before="main.content"/>
<container name="page.top" as="page_top" label="After Page Header" after="header.container"/>
<container name="footer-container" as="footer" before="before.body.end" label="Page Footer Container" htmlTag="footer" htmlClass="page-footer"/>
</referenceContainer>
</layout>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="1column"/>
<referenceContainer name="columns">
<container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" after="main">
<container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
</container>
<container name="div.sidebar.additional" htmlTag="div" htmlClass="sidebar sidebar-additional" after="div.sidebar.main">
<container name="sidebar.additional" as="sidebar_additional" label="Sidebar Additional"/>
</container>
</referenceContainer>
</layout>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="2columns-left"/>
</layout>
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="2columns-left"/>
</layout>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?= /* @noEscape */ $block->getMiscellaneousHtml();
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<div class="block <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>">
<div class="block-title <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-title">
<strong><?= $block->escapeHtml($block->getBlockTitle()) ?></strong>
</div>
<div class="block-content <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-content">
<?= $block->getChildHtml() ?>
</div>
</div>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?php if ($crumbs && is_array($crumbs)) : ?>
<div class="breadcrumbs">
<ul class="items">
<?php foreach ($crumbs as $crumbName => $crumbInfo) : ?>
<li class="item <?= $block->escapeHtmlAttr($crumbName) ?>">
<?php if ($crumbInfo['link']) : ?>
<a href="<?= $block->escapeUrl($crumbInfo['link']) ?>"
title="<?= $block->escapeHtml($crumbInfo['title']) ?>">
<?= $block->escapeHtml($crumbInfo['label']) ?>
</a>
<?php elseif ($crumbInfo['last']) : ?>
<strong><?= $block->escapeHtml($crumbInfo['label']) ?></strong>
<?php else : ?>
<?= $block->escapeHtml($crumbInfo['label']) ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<small class="bugs">
<span><?= $block->escapeHtml(__('Help Us Keep Magento Healthy')) ?></span>
<a href="http://www.magentocommerce.com/bug-tracking"
target="_blank" title="<?= $block->escapeHtmlAttr(__('Report All Bugs')) ?>">
<?= $block->escapeHtml(__('Report All Bugs')) ?>
</a>
</small>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<div class="block <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>">
<div class="title <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-title"
data-mage-init='{"toggleAdvanced": {"toggleContainers": "#<?= $block->escapeHtmlAttr($block->getBlockCss()) ?>", "selectorsToggleClass": "active"}}'>
<strong>
<?= $block->escapeHtml(__($block->getBlockTitle())) ?>
</strong>
</div>
<div class="content <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-content"
id="<?= $block->escapeHtmlAttr($block->getBlockCss()) ?>">
<?= $block->getChildHtml() ?>
</div>
</div>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?= $block->getChildHtml();
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<small class="copyright">
<span><?= $block->escapeHtml($block->getCopyright()) ?>111111111</span>
</small>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<div class="footer-container">
<div class="footer">
<?= $block->getChildHtml() ?>
<link rel="stylesheet" type="text/css" media="all" href="https://cdn.joshine.com/frontend/bs_eren/bs_eren2/en_US/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" media="all" href="https://cdn.joshine.com/frontend/bs_eren/bs_eren2/en_US/css/themes.css" />
<footer class="page-footer"><div class="footer-container">
<div class="footer-static-container">
<div class="container-custom">
<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true"><div class="footer-static" >
<div class="col-left-ft2 row">
<div class="footer-links contacts col-md-12">
<p class="col-md-4 col-xs-12">SIGN UP FOR JOSHINE NEWS & Deals</p>
<div class="col-md-5 col-xs-12"><div class="block newsletter">
<div class="content">
<form class="form subscribe" novalidate action="/newsletter/subscriber/new/" method="post" data-mage-init='{"validation": {"errorClass": "mage-error"}}' id="newsletter-validate-detail">
<div class="field newsletter">
<div class="control">
<input name="email" type="email" id="newsletter" placeholder="email..." data-validate="{required:true, 'validate-email':true}">
<div class="actions">
<button class="action subscribe primary" title="Subscribe" type="submit">
<span>Subscribe</span>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-3 col-xs-12 social_block"><div class="widget block block-static-block">
<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true"><ul>
<li><a title="Tiktok" href="https://www.tiktok.com/@joshineofficial"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/1-tiktok.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/1-tiktok.png">
<img src="https://media.joshine.com/wysiwyg/1-tiktok.png" alt=""> </picture>
</a></li>
<li><a title="Instagram" href="https://www.instagram.com/JoshineOfficial/"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/2-instagram.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/2-instagram.png">
<img src="https://media.joshine.com/wysiwyg/2-instagram.png" alt=""> </picture>
</a></li>
<li><a title="Facebook" href="https://www.facebook.com/JoshineOfficial/"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/3-facebook.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/3-facebook.png">
<img src="https://media.joshine.com/wysiwyg/3-facebook.png" alt=""> </picture>
</a></li>
<li><a title="Pinterest" href="https://www.pinterest.com/Joshinesupport/"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/4-pinterest.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/4-pinterest.png">
<img src="https://media.joshine.com/wysiwyg/4-pinterest.png" alt=""> </picture>
</a></li>
<li><a title="Twitter" href="https://twitter.com/JoshineSupport"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/5-twitter.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/5-twitter.png">
<img src="https://media.joshine.com/wysiwyg/5-twitter.png" alt=""> </picture>
</a></li>
</ul></div></div>
</div>
</div>
</div>
<div class="col-right-ft2">
<div class="row">
<div class=" col-md-1 col-xs-12"></div>
<div class="col-sm-3 col-md-2 col-xs-12">
<div class="footer-links footer-logo">
<picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/joshine_logo_1.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/joshine_logo_1.png">
<img src="https://media.joshine.com/wysiwyg/joshine_logo_1.png" alt="" /> </picture>
</div>
</div>
<div class=" col-md-1 col-xs-12"></div>
<div class="col-sm-3 col-md-3 col-xs-12">
<div class="footer-links">
<h2 class="title">ABOUT JOSHINE</h2>
<ul>
<li><a href="/about-us">About Us</a></li>
<li><a href="/about-our-products">About Our Products</a></li>
<li><a href="/contact-us">Contact Us</a></li>
<li><a href="/blog">Our Blog</a></li>
</ul>
</div>
</div>
<div class="col-sm-3 col-md-3 col-xs-12">
<div class="footer-links">
<h2 class="title">HELP & SUPPORT</h2>
<ul>
<li><a href="/size-guide">Size Guide</a></li>
<li><a href="/payment-methods">Payment Methods</a></li>
<li><a href="/faqs">FAQs</a></li>
<li><a href="/how-to-order">How to Order</a></li>
<li><a href="/trackorder/index">Track My Order</a></li>
</ul>
</div>
</div>
<div class="col-sm-2 col-md-2 col-xs-12">
<div class="footer-links">
<h2 class="title">OUR POLICY</h2>
<ul>
<li><a href="/shipping-policy">Shipping Policy</a></li>
<li><a href="/return-exchange-policy">Return & Exchange</a></li>
<li><a href="/365-days-warranty">365-Days Warranty</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<style>
.social_block ul {
display: flex;
}li.footer-pay img {
max-height: 35px;
width: auto;
}
.social_block ul li {
display: flex;
padding: 5px;
width: 40px;
height: 40px;
border-radius: 50%;
color: #000;
line-height: 40px;
margin: 0 auto;
float: none;
text-align: center;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.footer-links.contacts > p{
color: #fff;
text-transform: uppercase;
}
.social_block ul li .fa {
color: #000;
text-align: center;
margin: 0 auto;
display: block;
line-height: 30px;
}
.social_block {
text-align: center;
}
.page-footer .footer-static-container .footer-static {
display: block;
}
.col-left-ft2 {
background: #a46659;
max-width: 80%;
margin: 0 auto;
position: relative;
z-index: 1;
}
.footer-links.footer-logo img {
width: 100%;
margin-top: 30%;
}
.page-footer .footer-static-container .footer-static .footer-links .block.newsletter .field.newsletter .control input {
border: none;
padding-left: 0;
border-bottom: 1px solid #fff;
}.page-footer .footer-static-container .footer-static .footer-links .block.newsletter .actions .subscribe {
background: none;
padding-right: 0;
}
.page-footer .footer-static-container .footer-static {
display: block;
padding-bottom: 0;
}
.page-footer .container-custom {
padding: 0;
}
.col-right-ft2 {
background: #000;
position: relative;
margin-top: -30px;
padding-top: 30px;
}
.col-right-ft2 .row {
width: 100%;
max-width: 90%;
margin: 0 auto;
padding: 50px;
}
.page-footer .footer-static-container .footer-static .footer-links h2 {
color: #fff;
}
.page-footer .footer-static-container .footer-static .footer-links ul li a {
color: #fff;
}
.page-footer .footer-static-container .footer-static .footer-links .block.newsletter {
margin: 0;
}
.social_block .block-static-block {
margin: 10px 0;
padding: 0;
vertical-align: middle;
}
.footer-links.contacts {
padding: 20px 50px;
}
.page-footer .footer-bottom .border-top {
padding: 0;
background: #000;
border-top: 1px solid #423f3f;
text-align: center;
}
.border-top .col-sm-8.col-xs-12 {
margin: 0 auto;
float: none;
text-align: center;
}
@media(max-width:789px){
.col-right-ft2 {
margin-top: -90px;
padding-top: 90px;
}
.footer-links.footer-logo img {
width: 100%;
}
.col-right-ft2 .row {
padding: 0;
max-width: 100%;
}
.footer-links.footer-logo img {
width: 50%;
text-align: center;
margin: 0 auto;
float: none;
}
.footer-links.footer-logo {
text-align: center;
padding: 50px;
}
}
</style></div>
</div>
</div>
<div class="footer-bottom">
<div class="container-custom">
<div class="border-top">
<div class="row">
<div class="col-sm-8 col-xs-12">
<div class="footer_menu">
<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true"><ul>
<li class="footer-pay"> <picture>
<source type="image/webp" srcset="https://media.joshine.com/wysiwyg/footerpay.webp">
<source type="image/png"
srcset="https://media.joshine.com/wysiwyg/footerpay.png">
<img src="https://media.joshine.com/wysiwyg/footerpay.png" alt="" /> </picture>
</li>
<li><a title="Copy Right" href="/copy-right"/" >Copy Right</a></li>
<li><a title="Terms of Use" href="/terms-of-use"/" >Terms of Use</a></li>
<li><a title="Security & Privacy Policy" href="/security-privacy-policy"/" >Security & Privacy Policy</a></li>
</ul>
<style>
@media(min-width:768px){
.page-footer .footer_menu {
float: right;
color: #fff;
}
.page-footer .footer_menu ul li a,
.page-footer .footer_menu ul li a:hover
.page-footer .footer-bottom div.copyrightv2 a, .page-footer .footer-bottom div.copyrightv2 span span,
.page-footer .footer-bottom div.copyrightv2,
.page-footer .footer-bottom .border-top a {
color: #fff !important;
color: #fff;
}
.copyrightv2{
color: #fff;
display: inline-block;
text-transform: uppercase;
padding-right: 15px;
float: left;
margin-top: 8px;
font-size: inherit;
}
.page-footer .footer_menu ul li a,.page-footer .footer_menu ul li a:hover {
color: #fff;
}
.page-footer .footer-static-container .footer-static .footer-links ul li a:hover {
color: #fff;
}
}
</style></div> </div>
<div class="copyrightv2">
<small class="copyrightv2">
<span>Copyright © <span>JOSHINE</span> all rights reserved. </span>
</small>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.onload = function () {
document.body.className += " preloaded";
}
</script></footer>
</div>
</div>
<style>
</style>
\ No newline at end of file
<script>
require(['jquery', 'jason'], function($) {
});
</script>
<div class="header-container cusheader">
<div class="header-text text-center">
<div class="container">
<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true"><div class="header_bar">
</div>
<style>
.header_bar {
width: 100%;
height: 60px;
background: url(https://media.joshine.com/wysiwyg/tonglan_2_.jpg) no-repeat center;
background-size: 100%;
}
@media(max-width:789px){
.header_bar {
width: 100%;
height: 40px;
background: url(https://media.joshine.com/wysiwyg/tongtiao_M.jpg) no-repeat center;
background-size: 100%;
}
}
</style>
</div>
</div>
</div>
<div class="header">
<div class="container-custom clearfix">
<div class="for-full-withmenu">
<div class="col-logo"><?php echo $this->getChildHtml("logo"); ?></div>
<div class="actions-header">
<div class="hidden-xs">
<?php echo $this->getChildHtml("language2"); ?>
<?php echo $this->getChildHtml("currency2"); ?>
</div>
<div class="register-login hidden-xs">
<?php if(!$this->helper('Rokanthemes\Themeoption\Helper\Data')->isLoggedIn()){?>
<a href="<?php echo $this->getUrl('customer/account/login');?>"><i class="icon-users"></i><?php echo __('Login');?></a>
<a href="<?php echo $this->getUrl('customer/account/create');?>"> / <?php echo __('Sign up');?></a>
<?php
}
else{
?>
<a href="<?php echo $this->getUrl('customer/account/index');?>"><i class="icon-users"></i><?php echo __('My account');?></a>
<a href="<?php echo $this->getUrl('customer/account/logout');?>"> / <?php echo __('Logout');?></a>
<?php } ?>
</div>
<div class="wishlist">
<a href="<?php echo $this->getUrl('wishlist');?>"><i class="icon-heart"></i></a>
</div>
<?php echo $this->getChildHtml("minicart");?>
<div class="header-top-setting visible-xs">
<a href="#" class="actions-top"><i class="icon-align-right"> </i></a>
<div class="setting-container">
<div class="container-setting-language-currency">
<button type="button" id="btn-h-t-s-close" title="<?php echo __('Close') ?>">
<span><?php echo __('Close') ?></span>
</button>
<!-- <h3><?php echo __('Language') ?></h3>
<?php echo $this->getChildHtml("store_language"); ?> -->
<h3><?php echo __('Currency') ?></h3>
<?php echo $this->getChildHtml("currency"); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="header-menu">
<div class="container-custom clearfix">
<div class="for-full-withmenu wrapper-navigation">
<?php echo $this->getChildHtml("top.navigation.sections"); ?>
</div>
</div>
</div>
</div>
<?php if($this->helper('Rokanthemes\Themeoption\Helper\Themeconfig')->isEnableStickyHeader()){ ?>
<script type="text/javascript">
require(['jquery'],function($){
$(document).ready(function($){
var lastScrollTop = 0, delta = 20;
$(window).scroll(function(){
var num = $('.header-container').outerHeight();
var screenWidth = $(window).width();
var nowScrollTop = $(this).scrollTop();
if(Math.abs(lastScrollTop - nowScrollTop) >= delta){
if (nowScrollTop > lastScrollTop){
// ACTION ON
// SCROLLING DOWN
$(".header").removeClass("sticky");
$(".header-menu").removeClass("sticky");
} else {
if ($(this).scrollTop() > num && screenWidth >= 768 ){
$(".header").addClass("sticky");
$(".header-menu").addClass("sticky");
}else{
$(".header").removeClass("sticky");
$(".header-menu").removeClass("sticky");
}
}
lastScrollTop = nowScrollTop;
}
});
});
});
</script>
<?php } ?>
\ No newline at end of file
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var \Magento\Theme\Block\Html\Header\CriticalCss $criticalCssViewModel
*/
?>
<?php $criticalCssViewModel = $block->getData('criticalCssViewModel'); ?>
<style type="text/css" data-type="criticalCss">
<?= /* @noEscape */ $criticalCssViewModel->getCriticalCssData() ?>
</style>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var \Magento\Theme\Block\Html\Header\Logo $block
*/
$storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();
/**
* @var \Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolverInterface|null $logoSizeResolver
*/
$logoSizeResolver = $block->getLogoSizeResolver();
$logoWidth = $logoSizeResolver !== null && $logoSizeResolver->getWidth()
? $logoSizeResolver->getWidth()
: $block->getLogoWidth();
$logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
? $logoSizeResolver->getHeight()
: $block->getLogoHeight();
?>
<span data-action="toggle-nav" class="action nav-toggle"><span><?= $block->escapeHtml(__('Toggle Nav')) ?></span></span>
<a
class="logo"
href="<?= $block->escapeUrl($block->getUrl('')) ?>"
title="<?= $block->escapeHtmlAttr($storeName) ?>"
aria-label="store logo">
<img src="<?= $block->escapeUrl($block->getLogoSrc()) ?>"
title="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
alt="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
<?= $logoWidth ? 'width="' . $block->escapeHtmlAttr($logoWidth) . '"' : '' ?>
<?= $logoHeight ? 'height="' . $block->escapeHtmlAttr($logoHeight) . '"' : '' ?>
/>
</a>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var \Magento\Framework\View\Element\Template $block
* @var \Magento\Framework\Escaper $escaper
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
*/
?>
<div data-role="main-css-loader" class="loading-mask">
<div class="loader">
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('images/loader-1.gif')); ?>"
alt="<?= $escaper->escapeHtml(__('Loading...')); ?>">
</div>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
"position: absolute;",
"div.loader img"
) ?>
</div>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<div data-placeholder="messages"></div>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var $block \Magento\Theme\Block\Html\Notices
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
*/
?>
<?php if ($block->displayNoscriptNotice()): ?>
<noscript>
<div class="message global noscript">
<div class="content">
<p>
<strong><?= $block->escapeHtml(__('JavaScript seems to be disabled in your browser.')) ?></strong>
<span>
<?= $block->escapeHtml(
__('For the best experience on our site, be sure to turn on Javascript in your browser.')
) ?>
</span>
</p>
</div>
</div>
</noscript>
<?php endif; ?>
<?php if ($block->displayNoLocalStorageNotice()): ?>
<div class="notice global site local_storage">
<div class="content">
<p>
<strong><?= $block->escapeHtml(__('Local Storage seems to be disabled in your browser.')) ?></strong>
<br />
<?= $block->escapeHtml(
__('For the best experience on our site, be sure to turn on Local Storage in your browser.')
) ?>
</p>
</div>
</div>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag('display: none;', 'div.notice.global.site.local_storage') ?>
<?php $scriptString = <<<script
require(['jquery'], function(jQuery){
// <![CDATA[
(function($) {
var test = 'test';
try {
localStorage.setItem(test, test);
localStorage.removeItem(test);
} catch(e) {
$(".notice.global.site.local_storage").show();
}
})(jQuery);
// ]]>
});
script;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
<?php endif; ?>
<?php if ($block->displayDemoNotice()): ?>
<div class="message global demo">
<div class="content">
<p><?= $block->escapeHtml(__('This is a demo store. No orders will be fulfilled.')) ?></p>
</div>
</div>
<?php endif; ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Pager template
*
* @see \Magento\Theme\Block\Html\Pager
*/
?>
<?php if ($block->getCollection()->getSize()): ?>
<?php if ($block->getUseContainer()): ?>
<div class="pager">
<?php endif ?>
<?php if ($block->getShowAmounts()): ?>
<p class="toolbar-amount">
<span class="toolbar-number">
<?php if ($block->getLastPageNum()>1): ?>
<?= $block->escapeHtml(
__('Items %1 to %2 of %3 total', $block->getFirstNum(), $block->getLastNum(), $block->getTotalNum())
) ?>
<?php elseif ($block->getTotalNum() == 1): ?>
<?= $block->escapeHtml(__('%1 Item', $block->getTotalNum())) ?>
<?php else: ?>
<?= $block->escapeHtml(__('%1 Item(s)', $block->getTotalNum())) ?>
<?php endif; ?>
</span>
</p>
<?php endif ?>
<?php if ($block->getLastPageNum()>1): ?>
<div class="pages">
<strong class="label pages-label" id="paging-label"><?= $block->escapeHtml(__('Page')) ?></strong>
<ul class="items pages-items" aria-labelledby="paging-label">
<?php if (!$block->isFirstPage()): ?>
<li class="item pages-item-previous">
<?php $text = $block->getAnchorTextForPrevious() ? $block->getAnchorTextForPrevious() : '';?>
<a class="<?= $block->escapeHtmlAttr($text ? 'link ' : 'action ') ?> previous"
href="<?= $block->escapeUrl($block->getPreviousPageUrl()) ?>"
title="<?= $block->escapeHtmlAttr($text ? $text : __('Previous')) ?>">
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
<span><?= $block->escapeHtml($text ? $text : __('Previous')) ?></span>
</a>
</li>
<?php endif;?>
<?php if ($block->canShowFirst()): ?>
<li class="item">
<a class="page first" href="<?= $block->escapeUrl($block->getFirstPageUrl()) ?>">
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
<span>1</span>
</a>
</li>
<?php endif;?>
<?php if ($block->canShowPreviousJump()): ?>
<li class="item">
<a class="page previous jump"
title=""
href="<?= $block->escapeUrl($block->getPreviousJumpUrl()) ?>">
<span>...</span>
</a>
</li>
<?php endif;?>
<?php foreach ($block->getFramePages() as $_page): ?>
<?php if ($block->isPageCurrent($_page)): ?>
<li class="item current">
<strong class="page">
<span class="label"><?= $block->escapeHtml(__('You\'re currently reading page')) ?></span>
<span><?= $block->escapeHtml($_page) ?></span>
</strong>
</li>
<?php else: ?>
<li class="item">
<a href="<?= $block->escapeUrl($block->getPageUrl($_page)) ?>" class="page">
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
<span><?= $block->escapeHtml($_page) ?></span>
</a>
</li>
<?php endif;?>
<?php endforeach;?>
<?php if ($block->canShowNextJump()): ?>
<li class="item">
<a class="page next jump" title="" href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
<span>...</span>
</a>
</li>
<?php endif;?>
<?php if ($block->canShowLast()): ?>
<li class="item">
<a class="page last" href="<?= $block->escapeUrl($block->getLastPageUrl()) ?>">
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
<span><?= $block->escapeHtml($block->getLastPageNum()) ?></span>
</a>
</li>
<?php endif;?>
<?php if (!$block->isLastPage()): ?>
<li class="item pages-item-next">
<?php $text = $block->getAnchorTextForNext() ? $block->getAnchorTextForNext() : '';?>
<a class="<?= /* @noEscape */ $text ? 'link ' : 'action ' ?> next"
href="<?= $block->escapeUrl($block->getNextPageUrl()) ?>"
title="<?= $block->escapeHtmlAttr($text ? $text : __('Next')) ?>">
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
<span><?= $block->escapeHtml($text ? $text : __('Next')) ?></span>
</a>
</li>
<?php endif;?>
</ul>
</div>
<?php endif; ?>
<?php if ($block->isShowPerPage()): ?>
<div class="limiter">
<strong class="limiter-label"><?= $block->escapeHtml(__('Show')) ?></strong>
<select id="limiter" data-mage-init='{"redirectUrl": {"event":"change"}}' class="limiter-options">
<?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
<option value="<?= $block->escapeUrl($block->getLimitUrl($_key)) ?>"
<?php if ($block->isLimitCurrent($_key)): ?>
selected="selected"<?php endif ?>>
<?= $block->escapeHtml($_limit) ?>
</option>
<?php endforeach; ?>
</select>
<span class="limiter-text"><?= $block->escapeHtml(__('per page')) ?></span>
</div>
<?php endif ?>
<?php if ($block->getUseContainer()): ?>
</div>
<?php endif ?>
<?php endif ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
<?php $scriptString = <<<script
require(
[
'jquery'
],
function($) {
$(function() {
window.print();
});
}
);
script;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* General template for displaying group of blocks divided into sections
*/
$group = $block->getGroupName();
$groupCss = $block->getGroupCss();
?>
<?php if ($detailedInfoGroup = $block->getGroupChildNames($group)):?>
<div class="sections <?= $block->escapeHtmlAttr($groupCss) ?>">
<?php $layout = $block->getLayout(); ?>
<div class="section-items <?= $block->escapeHtmlAttr($groupCss) ?>-items"
data-mage-init='{"tabs":{"openedState":"active"}}'>
<?php foreach ($detailedInfoGroup as $name):?>
<?php
$html = $layout->renderElement($name);
if (!trim($html) && ($block->getUseForce() != true)) {
continue;
}
$alias = $layout->getElementAlias($name);
$label = $block->getChildData($alias, 'title');
?>
<div class="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="section-item-content <?= $block->escapeHtmlAttr($groupCss) ?>-item-content"
id="<?= $block->escapeHtmlAttr($alias) ?>"
data-role="content">
<?= /* @noEscape */ $html ?>
</div>
<?php endforeach;?>
</div>
</div>
<?php endif; ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
$target = $block->getTarget();
$label = $block->getLabel();
?>
<a class="action skip <?= $block->escapeHtmlAttr($target) ?>"
href="#<?= $block->escapeHtmlAttr($target) ?>">
<span>
<?= $block->escapeHtml($label) ?>
</span>
</a>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
$target_id = $block->getTargetId();
?>
<a id="<?= $block->escapeHtmlAttr($target_id) ?>" tabindex="-1"></a>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var $block \Magento\Theme\Block\Html\Title
*/
$cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
$titleHtml = '';
if (trim($block->getPageHeading())) {
$titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
. $block->getAddBaseAttribute()
. '>'
. $block->escapeHtml($block->getPageHeading())
. '</span>';
}
?>
<?php if ($titleHtml) : ?>
<div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
<h1 class="page-title"
<?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
<?php if ($block->getAddBaseAttributeAria()) : ?>
aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
<?php endif; ?>>
<?= /* @noEscape */ $titleHtml ?>
</h1>
<?= $block->getChildHtml() ?>
</div>
<?php endif; ?>
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
?>
<?php
/**
* Top menu for store
*
* @see \Magento\Theme\Block\Html\Topmenu
*/
?>
<?php $columnsLimit = $block->getColumnsLimit() ?: 0; ?>
<?php $_menu = $block->getHtml('level-top', 'submenu', $columnsLimit) ?>
<nav class="navigation container" role="navigation">
<ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'>
<li class="menu-home level0 nav-0 first level-top ui-menu-item"><a class="level-top ui-corner-all" href="<?php echo $block->getBaseUrl(); ?>"><?php echo __('Home')?></a></li>
<?php /* @escapeNotVerified */ echo $_menu; ?>
</ul>
</nav>
\ No newline at end of file
<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
<media>
<images module="Magento_Catalog">
<!-- Image demensions and srcsets -->
<image id="category_page_grid" type="small_image">
<width>300</width>
<height>375</height>
</image>
<image id="category_page_grid-srcset-1" type="small_image">
<width>600</width>
<height>750</height>
</image>
</images>
</media>
<vars module="Magento_Catalog">
<var name="gallery">
<!-- Gallery settings -->
<var name="allowfullscreen">true</var>
<var name="keyboard">true</var>
<var name="loop">true</var>
<var name="nav">true</var>
<var name="navdir">horizontal</var>
</var>
</vars>
<vars module="Swissup_Breeze">
<!-- Breeze module settings -->
<var name="enabled">1</var>
<var name="turbo">1</var>
<var name="responsive_images">1</var>
<!-- Image sizes to use per screen size -->
<var name="sizes">
<var name="category_page_grid">...</var>
<var name="category_page_grid-1column">...</var>
</var>
</vars>
</view>
\ No newline at end of file
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Magento/joshine', __DIR__);
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Joshine Theme</title>
<parent>Swissup/breeze-blank</parent>
<media>
<preview_image>media/preview.jpg</preview_image>
</media>
</theme>
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -390,5 +390,9 @@
},
"prefer-stable": true,
"repositories": {
"packagist": {
"type": "composer",
"url": "https://repo.magento.com/"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment