WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Slider with Picture object

Tutorials

>

Tutorial Slider

>

Slider with Picture object


Slider-01: Tutorial of the composant Slider of the PHP FrameWork WebSite-PHP.

Slider with Picture object:

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


Go back to tutorial of the componant Slider



Source code

Source code



To use Slider, you need to connect to the admin interface of the framework WebSite-PHP.

Once connected you will go to the menu Configuration -> Configure modules and enable the module Slider.



File: /pages/tutorials/slider/slider-01.php

<?php
class Slider01 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Slider with Picture object";
        
        
$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;
    }
}
?>


Go back to tutorial of the componant Slider


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker