コード例 #1
0
ファイル: test.php プロジェクト: Isigar/PHP-Gallery
<?php

include "./gallery.php";
$gallery = new gallery("./img/");
$gallery->addItem("test", "test.png", array("alt" => "ALT", "title" => "TITLE"));
$gallery->render();
/*Doplňující funkce*/
$gallery->addExtension("gif");
$gallery->removeExtension("png");
$gallery->automaticScan();
//NEBO
$gallery->automaticScan(array("alt" => "ALT", "title" => "TITLE"));
/*načtení všech obrázků v složce s jednotným parametrem ALT a TITLE*/