* @copyright 2007-2015 Leotheme * @license http://leotheme.com - prestashop template provider */ if (!defined('_PS_VERSION_')) { # module validation exit; } class LeoWidgetImageProduct extends LeoWidgetBase { public $name = 'imageproduct'; public $for_module = 'all'; public function getWidgetInfo() { return array('label' => $this->l('Images Gallery Product'), 'explain' => $this->l('Create Images Mini Generalallery From Product')); } public function renderForm($args, $data) { # validate module unset($args); //echo($this -> getImagesByCategory('4,8',(int) Context::getContext()->language->id));die; $helper = $this->getFormHelper(); // $soption = array( // array( // 'id' => 'active_on', // 'value' => 1, // 'label' => $this->l('Enabled') // ), // array( // 'id' => 'active_off', // 'value' => 0, // 'label' => $this->l('Disabled') // ) // ); $source = array( array( 'value' => 'ip_pcategories', // The value of the 'value' attribute of the