init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
|
||||
namespace WeltPixel\LayeredNavigation\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
/**
|
||||
* Class FilterButton
|
||||
* @package WeltPixel\LayeredNavigation\Model\Config\Source
|
||||
*/
|
||||
class FilterButton implements ArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_styles = array(
|
||||
0 => 'Icon Only',
|
||||
1 => 'Icon + Label',
|
||||
2 => 'Label Only',
|
||||
);
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
$options = array();
|
||||
foreach ($this->_styles as $id => $style) :
|
||||
$options[] = array(
|
||||
'value' => $id,
|
||||
'label' => $style
|
||||
);
|
||||
endforeach;
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
|
||||
namespace WeltPixel\LayeredNavigation\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
/**
|
||||
* Class FilterDisplay
|
||||
* @package WeltPixel\LayeredNavigation\Model\Config\Source
|
||||
*/
|
||||
class FilterDisplay implements ArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_styles = array(
|
||||
0 => 'Close',
|
||||
1 => 'Open',
|
||||
2 => 'Expand',
|
||||
);
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
$options = array();
|
||||
foreach ($this->_styles as $id => $style) :
|
||||
$options[] = array(
|
||||
'value' => $id,
|
||||
'label' => $style
|
||||
);
|
||||
endforeach;
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
|
||||
namespace WeltPixel\LayeredNavigation\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
/**
|
||||
* Class SidebarStyle
|
||||
* @package WeltPixel\LayeredNavigation\Model\Config\Source
|
||||
*/
|
||||
class SidebarStyle implements ArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_styles = array(
|
||||
'0' => 'Default',
|
||||
'1' => 'Slide In',
|
||||
);
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
$options = array();
|
||||
foreach ($this->_styles as $id => $style) :
|
||||
$options[] = array(
|
||||
'value' => $id,
|
||||
'label' => $style
|
||||
);
|
||||
endforeach;
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
|
||||
namespace WeltPixel\LayeredNavigation\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
/**
|
||||
* Class SortBy
|
||||
* @package WeltPixel\LayeredNavigation\Model\Config\Source
|
||||
*/
|
||||
class SortBy implements ArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_styles = array(
|
||||
'position' => 'Position',
|
||||
'name' => 'Name'
|
||||
);
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
$options = array();
|
||||
foreach ($this->_styles as $id => $style) :
|
||||
$options[] = array(
|
||||
'value' => $id,
|
||||
'label' => $style
|
||||
);
|
||||
endforeach;
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user