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,8 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject {{trans "Footer"}} @-->
Footer from module directory
@@ -0,0 +1,8 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject {{trans "Header"}} @-->
<!--@styles p { color: #111; } @--> {{var template_styles}}
@@ -0,0 +1,10 @@
<?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" >
<block class="Magento\Backend\Block\Template" name="sample_email_content" template="Magento_Email::sample_email_content.phtml"/>
</layout>
@@ -0,0 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<strong>Email content for adminhtml/Magento/default theme</strong>
@@ -0,0 +1,7 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<strong>catalog_productalert_cron_error_email_template template from Magento/default</strong>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'adminhtml/Magento_EmailTest/default', __DIR__);
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* 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>Adminhtml - Magento_EmailTest/default</title>
</theme>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'adminhtml/Vendor_EmailTest/custom_theme', __DIR__);
@@ -0,0 +1,10 @@
<!--
/**
* 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>Adminhtml - Vendor_EmailTest/custom_theme</title>
<parent>Vendor_EmailTest/default</parent>
</theme>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'adminhtml/Vendor_EmailTest/default', __DIR__);
@@ -0,0 +1,10 @@
<!--
/**
* 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>Adminhtml - Vendor_EmailTest/default</title>
<parent>Magento_EmailTest/default</parent>
</theme>
@@ -0,0 +1,7 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<strong>customer_create_account_email_confirmed_template template from Magento/default</strong>
@@ -0,0 +1,15 @@
<?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" >
<block class="Magento\Framework\View\Element\Template" name="sample_email_content" template="Magento_Email::sample_email_content.phtml"/>
<block class="Magento\Framework\View\Element\Text" name="ignored_email_content">
<action method="setText">
<argument name="text" xsi:type="string">Ignored email content, only the first block is used</argument>
</action>
</block>
</layout>
@@ -0,0 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<strong>Email content for frontend/Magento/default theme</strong>
@@ -0,0 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<strong>Custom Email content for frontend/Magento/default theme</strong>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Magento_EmailTest/default', __DIR__);
@@ -0,0 +1,9 @@
<!--
/**
* 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>Frontend - Magento_EmailTest/default</title>
</theme>
@@ -0,0 +1,7 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #333;
}
@@ -0,0 +1,8 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #333;
text-align: left;
}
@@ -0,0 +1,7 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: @non-existent-variable;
}
@@ -0,0 +1,7 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<strong>customer_create_account_email_template template from Vendor/custom_theme</strong>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Vendor_EmailTest/custom_theme', __DIR__);
@@ -0,0 +1,10 @@
<!--
/**
* 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>Frontend - Vendor_EmailTest/custom_theme</title>
<parent>Vendor_EmailTest/default</parent>
</theme>
@@ -0,0 +1,7 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #111;
}
@@ -0,0 +1,8 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #111;
text-align: left;
}
@@ -0,0 +1,7 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<strong>customer_create_account_email_confirmation_template template from Vendor/default</strong>
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Vendor_EmailTest/default', __DIR__);
@@ -0,0 +1,10 @@
<!--
/**
* 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>Frontend - Vendor_EmailTest/default</title>
<parent>Magento_EmailTest/default</parent>
</theme>
@@ -0,0 +1,7 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #222;
}
@@ -0,0 +1,8 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
p {
color: #222;
text-align: left;
}
@@ -0,0 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var \Magento\Email\Model\Template $template */
$template = $objectManager->create(\Magento\Email\Model\Template::class);
$template->setOptions(['area' => 'test area', 'store' => 1]);
$template->setData(
[
'template_text' => file_get_contents(__DIR__ . '/template_fixture.html'),
'template_code' => \Magento\Theme\Model\Config\ValidatorTest::TEMPLATE_CODE,
'template_type' => \Magento\Email\Model\Template::TYPE_TEXT
]
);
$template->save();
@@ -0,0 +1,21 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var \Magento\Email\Model\Template $template */
$template = $objectManager->create(\Magento\Email\Model\Template::class);
$template->setOptions(['area' => 'test area', 'store' => 1]);
$templateText = '{{trans "New User Notification Custom Text %first_name, ' .
'%last_name" first_name=$user.firstname last_name=$user.lastname}}';
$template->setData(
[
'template_text' => $templateText,
'template_code' => 'New User Notification Custom Code',
'template_type' => \Magento\Email\Model\Template::TYPE_TEXT,
'orig_template_code' => 'admin_emails_new_user_notification_template'
]
);
$template->save();
@@ -0,0 +1,15 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$origTemplateCode = 'admin_emails_forgot_email_template';
/** @var \Magento\Email\Model\Template $template */
$template = $objectManager->create(\Magento\Email\Model\Template::class);
$template->loadDefault($origTemplateCode);
$template->setTemplateCode('Reset Password User Notification Custom Code');
$template->setOrigTemplateCode('admin_emails_forgot_email_template');
$template->setId(null);
$template->save();
@@ -0,0 +1,29 @@
{{template config_path="design/email/header_template"}}
<p class="greeting">{{trans "%name," name=$customer.name}}</p>
<p>{{trans "Welcome to %store_name." store_name=$store.getFrontendName()}}</p>
<p>
{{trans
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
|raw}}
</p>
<ul>
<li><strong>{{trans "Email:"}}</strong> {{var customer.email}}</li>
<li><strong>{{trans "Password:"}}</strong> <em>{{trans "Password you set when creating account"}}</em></li>
</ul>
<p>
{{trans
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
|raw}}
</p>
<p>{{trans "When you sign in to your account, you will be able to:"}}</p>
<ul>
<li>{{trans "Proceed through checkout faster"}}</li>
<li>{{trans "Check the status of orders"}}</li>
<li>{{trans "View past orders"}}</li>
<li>{{trans "Store alternative addresses (for shipping to multiple family members and friends)"}}</li>
</ul>
@@ -0,0 +1,76 @@
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div>{{var foo.good}}</div>
<div>{{var foo.good|stillfine}}</div>
<div>{{var foo.bad()}}</div>
<div>{{var foo.bad()|alsobad}}</div>
<div>{{var foo.getGood()}}</div>
<div>{{var foo.foo.getGood()}}</div>
<div>{{var foo.getGood().fine}}</div>
<div>{{var foo.getGood().fine|alsofine}}</div>
<div>{{var foo.bad($bad.param())}}</div>
<div>{{var foo.bad.baz()}}</div>
<div>{{var foo.undeclared.baz}}</div>
<div>{{trans "foo %bar" bar=$foo.good.trans}}</div>
<div>{{trans "foo %bar" bar=$foo.bad.trans()}}</div>
<div>{{trans "foo %bar" bar="something"}}</div>
<div>{{trans "foo %bar" bar="something" bad="$bad.bad()" something=$undeclared.var.error}}</div>
<div>{{something "
<blah>foo %bar</blah>blah
" bar="something"
}}</div>
<div>{{something "
<blah>foo %bar</blah>blah
" bar="something" bad=$bad.multiline()
}}</div>
{{if foo.goodif}}
<div>{{var foo.goodif2}}</div>
{{/if}}
{{if foo.goodif}}
<div>{{var foo.goodif2}}</div>
{{else}}
<div>{{var foo.goodif3}}</div>
{{/if}}
{{if foo.badif().bad}}
<div>{{var foo.badif2()}}</div>
{{/if}}
{{if foo.badif3()}}
<div>{{var foo.badif4()}}</div>
{{else}}
<div>{{var foo.badif5()}}</div>
{{/if}}
{{depend foo.gooddepend}}
<div>{{var foo.gooddepend2}}</div>
{{/depend}}
{{depend foo.badDepend().bad}}
<div>{{var foo.baddepend2()}}</div>
{{/depend}}
{{for item in foo.goodFor}}
<div>{{var foo.goodFor}}</div>
<div>{{var foo.goodFor|stillfine}}</div>
<div>{{var foo.badFor()}}</div>
<div>{{var foo.badFor()|alsobad}}</div>
{{/for}}
{{for item in foo.getGoodFor()}}
<div>loopy</div>
{{/for}}
{{for item in foo.badForLoop()}}
<div>this loop has a bad variable</div>
{{/for}}
{{depend iusefilterslater}}
{{var iusefilterslater|raw}}
{{/depend}}