PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Marcos Pont   SmartGallery   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: The example script
Class: SmartGallery
Simple template & mySQL based photo gallery
Author: By
Last change:
Date: 21 years ago
Size: 510 bytes
 

Contents

Class file image Download
<?
require_once("settings.inc");
require_once(
"SmartGallery.class");

error_reporting(E_ALL);

$GALERIA = new SmartGallery();
$GALERIA->setTemplateFile("example.tpl");
$GALERIA->setTextCss("destacado_azul");

// thumbs config
$GALERIA->setThumbHSize(50);
$GALERIA->setThumbVSize(50);

// central picture config
$GALERIA->setMaxWidth(400);
$GALERIA->setMaxHeight(400);

// thumbs selection config
$GALERIA->setThumbsPerPage(4);
$GALERIA->setThumbsPerLine(2);

$GALERIA->buildStructure();
$GALERIA->Stroke();
?>