ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Columns implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'1' => __('1'),
|
||||
'2' => __('2'),
|
||||
'3' => __('3'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class ListStyle implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'image-top' => __('Image Top'),
|
||||
'image-left' => __('Image Left'),
|
||||
'above-image' => __('Content Above Image, Fullwidth'),
|
||||
'overlay' => __('Content Above Image, Normal'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class PageLayout implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'' => __('Use Default'),
|
||||
'1column' => __('1 Column'),
|
||||
'2columns-left' => __('2 Columns with Left bar'),
|
||||
'2columns-right' => __('2 Columns with Right bar'),
|
||||
'1column-fullwidth' => __('1 Column, Full Width '),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class PostListStyle implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'' => __('Use Global'),
|
||||
'image-top' => __('Image Top'),
|
||||
'image-left' => __('Image Left'),
|
||||
'above-image' => __('Content Above Image, Fullwidth'),
|
||||
'overlay' => __('Content Above Image, Normal'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class RelatedColumns implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'2' => __('2'),
|
||||
'3' => __('3'),
|
||||
'4' => __('4'),
|
||||
];
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class RelatedColumnsProductPage implements ArrayInterface
|
||||
{
|
||||
public function toOptionArray() {
|
||||
$optionArray = [ ];
|
||||
$array = $this->toArray();
|
||||
foreach ( $array as $key => $value ) {
|
||||
$optionArray[] = [ 'value' => $key, 'label' => $value ];
|
||||
}
|
||||
|
||||
return $optionArray;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'1' => __('1'),
|
||||
'2' => __('2'),
|
||||
'3' => __('3'),
|
||||
'4' => __('4'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user