Example #1
0
 /**
  * Register files from common repository
  *
  * @return array
  */
 public function getCommonFiles()
 {
     $list = parent::getCommonFiles();
     $list['js'][] = 'js/jquery.blockUI.js';
     return $list;
 }
Example #2
0
 /**
  * Get a list of JavaScript files required to display the widget properly
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = self::getDir() . '/controller.js';
     return $list;
 }
Example #3
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_ZOOM_MAX_WIDTH => new \XLite\Model\WidgetParam\Int('Cloud zoom layer maximum width, px', 530), self::PARAM_K_ZOOM => new \XLite\Model\WidgetParam\Float('Minimal zoom coefficient', 1.3), self::PARAM_ZOOM_ADJUST_X_PD => new \XLite\Model\WidgetParam\Int('Relative horizontal position of the zoom box on the Product details page', 97), self::PARAM_ZOOM_ADJUST_X_QL => new \XLite\Model\WidgetParam\Int('Relative horizontal position of the zoom box in the Quick look box', 32));
 }
Example #4
0
 /**
  * Check visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct()->countImages() > 0;
 }
Example #5
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/ProductOptions/product_details.css';
     return $list;
 }
Example #6
0
 /**
  * Return a list of CSS files required to display the widget
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = $this->getDir() . '/parts/page.image.photo.css';
     return $list;
 }