예제 #1
0
 /**
  * Convert uri to protocol independent uri
  * E.g. http://example.com -> //example.com
  *
  * @param string $uri
  * @return string
  */
 protected function _prepareUrl($uri)
 {
     $uri = parent::_prepareUrl($uri);
     if ($this->cssProtocolRelativeUris) {
         $uri = $this->convertToProtocolRelativeUri($uri);
     }
     if ($this->addTstampToAssets) {
         if (Mage::getStoreConfigFlag('dev/log/aoeJsCssTstampActive')) {
             Mage::log('Aoe_JsCssTstamp: ' . $uri);
         }
         $matches = array();
         if (preg_match('/(.*)\\.(gif|png|jpg)$/i', $uri, $matches)) {
             $uri = $matches[1] . '.' . $this->getVersionKey() . '.' . $matches[2];
         }
     }
     return $uri;
 }