WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Picture with Lightbox

Tutorials

>

Tutorial Picture

>

Picture with Lightbox


Picture-04: Tutorial der Komponente Picture vom PHP FrameWork WebSite-PHP.

Picture with Lightbox:

The Sacred Dog by cuellar Eilean Donan Castle by yashima In The Blue by sharkbait


Zurück zum Tutorial der Komponente Picture



Quelltext

Quelltext


Datei: /pages/tutorials/picture/picture-04.php

<?php
class Picture04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Picture with Lightbox";
        
        
$table = new Table();
        
        
$pic1 = new Picture("img/slider/1-small.jpg");
        
$pic1->setTitle("The Sacred Dog by cuellar");
        
$pic1->addLightbox("picref1"
                            
"img/slider/1.jpg");
        
        
$pic2 = new Picture("img/slider/2-small.jpg");
        
$pic2->setTitle("Eilean Donan Castle by yashima");
        
$pic2->addLightbox("picref1"
                            
"img/slider/2.jpg");
        
        
$pic3 = new Picture("img/slider/3-small.jpg");
        
$pic3->setTitle("In The Blue by sharkbait");
        
$pic3->addLightbox("picref1"
                            
"img/slider/3.jpg");
        
        
$table->addRowColumns($pic1$pic2$pic3);
        
        
$this->render $table;
    }
}
?>


Zurück zum Tutorial der Komponente Picture


Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker