Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2003-02-24 04:37
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();
?>