Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. class ProductController extends ProductControllerCore
  4. {
  5. public function setMedia()
  6. {
  7.  
  8. parent::setMedia();
  9.  
  10. if (count($this->errors)) {
  11. return;
  12. }
  13.  
  14. $this->addCSS(_THEME_CSS_DIR_.'product.css');
  15. $this->addJqueryPlugin(array('fancybox', 'idTabs'));
  16. $this->addJS(array(
  17. _THEME_JS_DIR_.'product.js'
  18. ));
  19.  
  20.  
  21. if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) {
  22. $this->addJqueryPlugin('jqzoom');
  23. }
  24.  
  25.  
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement