View Single Post
  #1098  
Old 12-02-2015, 12:52 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Is there an easy way to make this happen. Either create the background to always be full size and have the logo separate or edit the template so it resizes the header bar to match the screen
In skin/reboot/css/reboot.css replace...
Code:
.header-logo { max-width: 100%; height: auto; }
with...
Code:
.header-logo { max-width: 100%; width: 100%; height: auto; }
Quote:
I was wondering if there is an easy way to create a slider, or similar form of Gallery, of random images that are already uploaded in the Image Gallery
Assuming your page is a static page, in pages.php add this code before ?> ...
Code:
# Get Random Gallery Images from a Specific Folder $rgidir = "uploads/Gallery/Vehicle Paint Protection/"; $rgi = glob($rgidir . "*.jpg"); shuffle($rgi); $smarty->assign(rgimages, $rgi);
Then use this code in your static page...
Code:
<div class="carousel-images"> {foreach from=$rgimages item=image name=image} {if $smarty.foreach.image.iteration lt 4} <div><p><a class="lbox" href="{$image}"><img class="img-responsive" src="{$image}" alt="{$image}"></a></p></div> {/if} {/foreach} </div>
The above will display 3 random images. May need tweaking depending on the size of your images.

If you want a different style carousel, replace...
Code:
<div class="carousel-images">
with...
Code:
<div class="carousel-main">
__________________
xcartmods.co.uk
Reply With Quote