ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class AutoHeight implements ArrayInterface
|
||||
{
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return [['value' => 'container', 'label' => __('adjust height per slide')],['value' => 'calc', 'label' => __('calculate the tallest slide and use it')]];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return ['container' => __('adjust height per slide'),'calc' => __('calculate the tallest slide and use it')];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Easing implements ArrayInterface
|
||||
{
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return [['value' => 'easeOutQuad', 'label' => __('easeOutQuad')],['value' => 'easeInQuad', 'label' => __('easeInQuad')],['value' => 'easeInOutQuad', 'label' => __('easeInOutQuad')],['value' => 'easeInCubic', 'label' => __('easeInCubic')],['value' => 'easeOutCubic', 'label' => __('easeOutCubic')],['value' => 'easeInOutCubic', 'label' => __('easeInOutCubic')],['value' => 'easeInQuart', 'label' => __('easeInQuart')],['value' => 'easeOutQuart', 'label' => __('easeOutQuart')],['value' => 'easeInOutQuart', 'label' => __('easeInOutQuart')],['value' => 'easeInQuint', 'label' => __('easeInQuint')],['value' => 'easeOutQuint', 'label' => __('easeOutQuint')],['value' => 'easeInOutQuint', 'label' => __('easeInOutQuint')],['value' => 'easeInSine', 'label' => __('easeInSine')],['value' => 'easeOutSine', 'label' => __('easeOutSine')],['value' => 'easeInOutSine', 'label' => __('easeInOutSine')],['value' => 'easeInExpo', 'label' => __('easeInExpo')],['value' => 'easeOutExpo', 'label' => __('easeOutExpo')],['value' => 'easeInOutExpo', 'label' => __('easeInOutExpo')],['value' => 'easeInCirc', 'label' => __('easeInCirc')],['value' => 'easeOutCirc', 'label' => __('easeOutCirc')],['value' => 'easeInOutCirc', 'label' => __('easeInOutCirc')],['value' => 'easeInElastic', 'label' => __('easeInElastic')],['value' => 'easeOutElastic', 'label' => __('easeOutElastic')],['value' => 'easeInOutElastic', 'label' => __('easeInOutElastic')],['value' => 'easeInBack', 'label' => __('easeInBack')],['value' => 'easeOutBack', 'label' => __('easeOutBack')],['value' => 'easeInOutBack', 'label' => __('easeInOutBack')],['value' => 'easeInBounce', 'label' => __('easeInBounce')],['value' => 'easeOutBounce', 'label' => __('easeOutBounce')],['value' => 'easeInOutBounce', 'label' => __('easeInOutBounce')]];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return ['easeOutQuad' => __('easeOutQuad'),'easeInQuad' => __('easeInQuad'),'easeInOutQuad' => __('easeInOutQuad'),'easeInCubic' => __('easeInCubic'),'easeOutCubic' => __('easeOutCubic'),'easeInOutCubic' => __('easeInOutCubic'),'easeInQuart' => __('easeInQuart'),'easeOutQuart' => __('easeOutQuart'),'easeInOutQuart' => __('easeInOutQuart'),'easeInQuint' => __('easeInQuint'),'easeOutQuint' => __('easeOutQuint'),'easeInOutQuint' => __('easeInOutQuint'),'easeInSine' => __('easeInSine'),'easeOutSine' => __('easeOutSine'),'easeInOutSine' => __('easeInOutSine'),'easeInExpo' => __('easeInExpo'),'easeOutExpo' => __('easeOutExpo'),'easeInOutExpo' => __('easeInOutExpo'),'easeInCirc' => __('easeInCirc'),'easeOutCirc' => __('easeOutCirc'),'easeInOutCirc' => __('easeInOutCirc'),'easeInElastic' => __('easeInElastic'),'easeOutElastic' => __('easeOutElastic'),'easeInOutElastic' => __('easeInOutElastic'),'easeInBack' => __('easeInBack'),'easeOutBack' => __('easeOutBack'),'easeInOutBack' => __('easeInOutBack'),'easeInBounce' => __('easeInBounce'),'easeOutBounce' => __('easeOutBounce'),'easeInOutBounce' => __('easeInOutBounce')];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Fx implements ArrayInterface
|
||||
{
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return [['value' => 'scrollHorz', 'label' => __('scrollHorz')],['value' => 'scrollVert', 'label' => __('scrollVert')],['value' => 'fade', 'label' => __('fade')]];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return ['scrollHorz' => __('scrollHorz'),'scrollVert' => __('scrollVert'),'fade' => __('fade')];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Show implements ArrayInterface
|
||||
{
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return [['value' => 'home', 'label' => __('HomePage Only')],['value' => 'all', 'label' => __('All Pages')]];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return ['home' => __('HomePage Only'),'all' => __('All Pages')];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Slider implements ArrayInterface
|
||||
{
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return [['value' => 'athlete', 'label' => __('Athlete slider')],['value' => 'revolution', 'label' => __('Revolution Slides')]];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return ['athlete' => __('Athlete slider'),'revolution' => __('Revolution Slides')];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Olegnax Athlete Slideshow
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Olegnax.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.olegnax.com/license
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Olegnax
|
||||
* @package Olegnax_AthleteSlideshow
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://www.olegnax.com/)
|
||||
* @license https://www.olegnax.com/license
|
||||
*/
|
||||
|
||||
|
||||
namespace Olegnax\Athlete2Slideshow\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\App\ObjectManager;
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
use Nwdthemes\Revslider\Model\ResourceModel\Slider\CollectionFactory;
|
||||
use Olegnax\Athlete2Slideshow\Helper\Helper;
|
||||
|
||||
class SliderId implements ArrayInterface {
|
||||
|
||||
/**
|
||||
*
|
||||
* @var CollectionFactory
|
||||
*/
|
||||
protected $revslider;
|
||||
/**
|
||||
*
|
||||
* @var ObjectManager
|
||||
*/
|
||||
public $_objectManager;
|
||||
|
||||
/**
|
||||
*
|
||||
* @var Helper
|
||||
*/
|
||||
public $_helper;
|
||||
|
||||
public function __construct( Helper $helper) {
|
||||
$this->_objectManager = ObjectManager::getInstance();
|
||||
$this->_helper = $helper;
|
||||
}
|
||||
|
||||
public function toOptionArray() {
|
||||
$options = [];
|
||||
if ($this->_helper->isRevoulutionModuleActive()) {
|
||||
if (!$this->revslider) {
|
||||
$this->revslider = $this->_objectManager->get('\Nwdthemes\Revslider\Model\ResourceModel\Slider\CollectionFactory')->create();
|
||||
}
|
||||
|
||||
if ($this->revslider && $this->revslider->getSize()) {
|
||||
$sliders = $this->revslider->addFieldToSelect('*')->setOrder('title', 'asc');
|
||||
foreach ($sliders as $slider) {
|
||||
$options[] = [
|
||||
'value' => $slider->getAlias(),
|
||||
'label' => $slider->getTitle()
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user