ltsecurityinc安防产品在线商城代码
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Olegnax
|
||||
* @package Olegnax_InfiniteScroll
|
||||
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
namespace Olegnax\InfiniteScroll\Helper;
|
||||
|
||||
use Olegnax\Core\Helper\Helper as CoreHelperHelper;
|
||||
use Olegnax\InfiniteScroll\Model\Config\Source\Type;
|
||||
|
||||
class Helper extends CoreHelperHelper
|
||||
{
|
||||
|
||||
const CONFIG_MODULE = 'olegnax_infinitescroll';
|
||||
|
||||
public function SelectRewardTemplate()
|
||||
{
|
||||
return $this->isEnabled() ? 'Olegnax_InfiniteScroll::rewards-highlight.phtml' : 'Amasty_Rewards::catalog/highlight-category.phtml';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEnabled()
|
||||
{
|
||||
return Type::TYPE_DISABLED != $this->getModuleConfig('general/type');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user