* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ if (!defined('_PS_VERSION_')) { exit; } require_once dirname(__FILE__) . '/AdminStEasyVideoMiniatureBaseController.php'; class AdminStEasyVideoMiniatureController extends AdminStEasyVideoMiniatureBaseController { protected $contr = 'DESKTOP'; public function __construct() { parent::__construct(); $this->fields_options['general']['fields'] = $this->fields_options['general']['fields'] + array( $this->module->_prefix_st.'MINIATURE_HOVER_ELEMENT' => array( 'type' => 'text', 'title' => $this->l('Play the video when this selector is on hover'), 'validation' => 'isAnything', ), ); } public function updateOptionStEasyVideoMiniatureVideoTemplateDesktop($val) { Configuration::updateValue($this->module->_prefix_st.'MINIATURE_VIDEO_TEMPLATE_DESKTOP', $val, true); } public function updateOptionStEasyVideoMiniatureButtonTemplateDesktop($val) { Configuration::updateValue($this->module->_prefix_st.'MINIATURE_BUTTON_TEMPLATE_DESKTOP', $val, true); } }