Skip to content

Instantly share code, notes, and snippets.

@jerrylopez
Created December 2, 2015 15:10
Show Gist options
  • Save jerrylopez/1c1cc053e441fd0bea6e to your computer and use it in GitHub Desktop.
Save jerrylopez/1c1cc053e441fd0bea6e to your computer and use it in GitHub Desktop.
Magento image URL secure or non-secure based on page being secure or not.
<?php echo $this->getSkinUrl(‘images/ sampleimage.gif’,array(‘_secure’=> Mage::app()->getStore()->isCurrentlySecure())) ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment