PHP / CSS gallery templates
Simple PHP gallery (without database) | Smart settings file
-
-
This is a smart gallery for your images. It's written in PHP / CSS with NO database required.
There are no limit how many images you can add to the gallery.
add-images.php Add images, thumbnails and alternative text.
settings.php Change the look of the gallery or leave it.
Instructions are in the php-files.
| add-images.php (default settings) | |||
|---|---|---|---|
| $gallerytext | = 'This is my gallery'; | ||
| $imagepath | = 'img-gallery/'; | ||
| $addimages = array( | Thumbnail image | Large image | Alternative text |
| array | ( 'image1_tn.jpg', | 'image1.jpg', | 'Old and new', ), |
| array | ( 'image2_tn.jpg', | 'image2.jpg', | 'A man and his boat', ), |
| array | ( 'image3_tn.jpg', | 'image3.jpg', | 'Metallic reflection', ), |
| array | ( 'image4_tn.jpg', | 'image4.jpg', ' | 'Gothic fly', ), |
| array | ( 'image5_tn.jpg', | 'image5.jpg', | 'Fallen', ), |
| array | ( 'image6_tn.jpg', | 'image6.jpg', | 'Reflection of life', ) ); |
| settings.php (default settings) | ||
|---|---|---|
| $bordercolor | = | '#4f8892'; |
| $bordercolor_active | = | '#000000'; |
| $borderspace | = | '2'; |
| $bordersize | = | '5'; |
| $imagespace | = | '5'; |
| $gallerywidth | = | '477'; |
| $galleryspace | = | '30'; |
| $gallerybordersize | = | '5'; |
| $gallerybackground | = | '#8abcc5'; |
| $gallerybordercolor | = | '#28adc5'; |
| $descriptionfont | = | '"Times new roman"'; |
| $descriptionsize | = | '1.2'; |
| $descriptioncolor | = | #13535f'; |




