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,36 @@
<?php /** @noinspection PhpDeprecationInspection */
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class BgPositionX implements ArrayInterface
{
/**
* @return array
*/
public function toOptionArray()
{
$optionArray = [];
$array = $this->toArray();
foreach ($array as $key => $value) {
$optionArray[] = ['value' => $key, 'label' => $value];
}
return $optionArray;
}
/**
* @return array
*/
public function toArray()
{
return [
'center' => __('Center'),
'left' => __('Left'),
'right' => __('Right'),
];
}
}
@@ -0,0 +1,36 @@
<?php /** @noinspection PhpDeprecationInspection */
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class BgPositionY implements ArrayInterface
{
/**
* @return array
*/
public function toOptionArray()
{
$optionArray = [];
$array = $this->toArray();
foreach ($array as $key => $value) {
$optionArray[] = ['value' => $key, 'label' => $value];
}
return $optionArray;
}
/**
* @return array
*/
public function toArray()
{
return [
'center' => __('Center'),
'top' => __('Top'),
'bottom' => __('Bottom'),
];
}
}
@@ -0,0 +1,35 @@
<?php /** @noinspection PhpDeprecationInspection */
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class BgRepeat implements ArrayInterface
{
/**
* @return array
*/
public function toOptionArray()
{
$optionArray = [];
$array = $this->toArray();
foreach ($array as $key => $value) {
$optionArray[] = ['value' => $key, 'label' => $value];
}
return $optionArray;
}
/**
* @return array
*/
public function toArray()
{
return [
'repeat' => __('Repeat'),
'no-repeat' => __('No Repeat'),
];
}
}
@@ -0,0 +1,36 @@
<?php /** @noinspection PhpDeprecationInspection */
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class BgSize implements ArrayInterface
{
/**
* @return array
*/
public function toOptionArray()
{
$optionArray = [];
$array = $this->toArray();
foreach ($array as $key => $value) {
$optionArray[] = ['value' => $key, 'label' => $value];
}
return $optionArray;
}
/**
* @return array
*/
public function toArray()
{
return [
'auto' => __('Auto'),
'cover' => __('Cover'),
'contain' => __('Contain'),
];
}
}
@@ -0,0 +1,47 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class FormLayout implements ArrayInterface
{
const LAYOUT1 = 'one-line';
const LAYOUT2 = 'button-below';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::LAYOUT1,
'label' => __('In one Line'),
],
[
'value' => static::LAYOUT2,
'label' => __('Button Below Input'),
],
];
}
}
@@ -0,0 +1,47 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class InputStyle implements ArrayInterface
{
const INHERIT = 'inherit';
const NORMAL = 'normal';
const UNDERLINED = 'underlined';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::NORMAL,
'label' => __('Normal, with bg'),
],
[
'value' => static::UNDERLINED,
'label' => __('Underlined'),
],
];
}
}
@@ -0,0 +1,51 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class Layout implements ArrayInterface
{
const FULLWIDTH = '-fullwidth';
const COLUMNS_LEFT = '-columns-left';
const COLUMNS_RIGHT = '-columns-right';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::FULLWIDTH,
'label' => __('One Column'),
],
[
'value' => static::COLUMNS_LEFT,
'label' => __('2 Columns, Image Left'),
],
[
'value' => static::COLUMNS_RIGHT,
'label' => __('2 Columns, Image Right'),
],
];
}
}
@@ -0,0 +1,51 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class ManyTimes implements ArrayInterface
{
const ONCE = 'once';
const EVERYTIME = 'everytime';
const RANDOM = 'random';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::ONCE,
'label' => __('Once'),
],
[
'value' => static::EVERYTIME,
'label' => __('Everytime'),
],
[
'value' => static::RANDOM,
'label' => __('Random'),
],
];
}
}
@@ -0,0 +1,51 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class PositionH implements ArrayInterface
{
const LEFT = 'h-left';
const RIGHT = 'h-right';
const CENTER = 'h-center';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::LEFT,
'label' => __('Left'),
],
[
'value' => static::RIGHT,
'label' => __('Right'),
],
[
'value' => static::CENTER,
'label' => __('Center'),
],
];
}
}
@@ -0,0 +1,51 @@
<?php /** @noinspection PhpDeprecationInspection */
/**
* Copyright © Olegnax All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Olegnax\NewsletterPopupBasic\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class PositionV implements ArrayInterface
{
const TOP = 'v-top';
const BOTTOM = 'v-bottom';
const CENTER = 'v-center';
/**
* @return array
*/
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => static::TOP,
'label' => __('Top'),
],
[
'value' => static::BOTTOM,
'label' => __('Bottom'),
],
[
'value' => static::CENTER,
'label' => __('Center'),
],
];
}
}