View Single Post
  #79  
Old 08-08-2013, 05:54 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: NEW xcart template - xtreme Gear

While I'm solving the CDN image calls in xMenus, may as well solve the remaining image in xTreme that is not served vy the cdn.

for xMenus, see:
http://forum.x-cart.com/showthread.php?p=362638#post362638

If anyone is going to use xtReme with a CDN AND you want the images served from your cdn, you need to edit file:
/skin/xtreme_gear/customer/footer.tpl
FIND:
Code:
{if $xg_config.footer_secured ne ''} <div class="footer-bottom-icons"> {$xg_config.footer_secured} </div> {/if}

REPLACE WITH:
Code:
{if $xg_config.footer_secured ne ''} <div class="footer-bottom-icons" >{if $smarty.server.HTTPS eq "on"}{$xg_config.footer_secured}{else} {$xg_config.footer_secured|replace:'img src="images':'img src="http://cdn.domain.com/images'}{/if} </div> {/if}

This traps for https.
Uses CDN if http. Else htps (not cdn)

Your paths may be different, but this is the general idea.

HTH

J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote