Guest User

Untitled

a guest
Dec 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. public function getLogoSrc()
  2. {
  3. if (empty($this->_data['logo_src'])) {
  4. $this->_data['logo_src'] = Mage::getStoreConfig('design/header/logo_src');
  5. $logo = $this->_data['logo_src'];
  6. $newLogo = $this->getSkinUrl($logo);
  7. }
  8. return $newLogo;
  9. }
  10.  
  11. public function getLogoSrcSmall()
  12. {
  13. if (empty($this->_data['logo_src_small'])) {
  14. $this->_data['logo_src_small'] = Mage::getStoreConfig('design/header/logo_src_small');
  15. $logo = $this->_data['logo_src_small'];
  16. $newLogosmall = $this->getSkinUrl($logo);
  17. }
  18. return $newLogosmallLogoSrc;
  19. }
  20.  
  21. public function getLogoSrc()
  22. {
  23. if (empty($this->_data['logo_src'])) {
  24. $this->_data['logo_src'] = Mage::getStoreConfig('design/header/logo_src');
  25. $logo = $this->_data['logo_src'];// file name
  26. $newLogo = $this->getSkinUrl().$logo; // skin url and file name - full path to the image
  27. // here a optimizing function
  28. $optimizedImage = Mage::helper('myImageoptimizer')->getOptimize($newLogo,$width, $height, $whatever);
  29. }
  30. return $optimizedImage;
  31. }
Add Comment
Please, Sign In to add comment