Web Speedy API




Insertable slots (Master)

Slot_PreHeaderTemplate()

Insert the pre-header in the maaster template


Example:
<?@Slot_PreHeaderTemplate()@?>


Slot_BodyTempale()

Insert the body in the maaster template

Example:
<?@Slot_BodyTempale()@?>

Slot_FooterTemplate()

Insert the footer in the master template

$SlotID=Unique identifier of the slot in a page

Example:
<?@Slot_FooterTemplate()@?>


Slot_MenuBar($SlotID,$Vertical=false)

Insert a menu-bar in the master template

$SlotID=Unique identifier of the slot in a page
$Vertical=Draw the a vertical menĂ¹ if true

Example:
<?@Slot_MenuBar("my_menu")@?>


Slot_ImageTitle($SlotID,$Width="30px",$Height="30px")

Insert an image slot in the templates
This slot is equal for all the pages

$SlotID=Unique identifier of the slot in a page
$Width=Image width
$Height=Image height

Example:
<?@Slot_ImageTitle("TitleImgRight","","55px")@?>


Slot_TextTitle($SlotID)

Insert a text slot in the templates
This slot is equal for all the pages

$SlotID=Unique identifier of the slot in a page

Example:
<?@Slot_TextTitle("Title")@?>



Insertable slots (Body)


Slot_SubTemplate($SlotID,$Width="",$Height="",$Template="")

Allow you to insert in a template(Master/Detail) one slot that can contali an other template
Now you can create a cascade tempate, fixed or configurable
Example:
<?@Slot_SubTemplate("My_ID")@?>


Slot_Image($SlotID,$Width="30px",$Height="30px",$RowOffset=0)

Insert an image slot in the templates
$SlotID=Unique identifier of the slot in a page

$Width=Image width
$Height=Image height
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@Slot_Image("Img_12","80px","80px",0)@?>


Slot_Text($SlotID,$RowOffset)

Insert a text slot in the templates

$SlotID=Unique identifier of the slot in a page
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@TextSlot("text_12",0)@?>


Slot_TextExpandible($SlotID,$Width,$Height,$RowOffset)

Insert a expandible text slot in the templates
This is a text box that can be expandet with a click
$SlotID=Unique identifier of the slot in a page
$Width=Block start width
$Height=Block start height
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@Slot_TextExpandible("My_ID","150px","100px")@?>


Slot_YouTube($SlotID,$Width,$Height,$RowOffset)

Insert a YouTobe linked box in the templates

$SlotID=Unique identifier of the slot in a page
$Width=Block start width
$Height=Block start height
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@Slot_YouTube("My_ID","150px","100px")@?>


Slot_PayPal($SlotID,$RowOffset=0,$ItemNum=0,$ItemName="",$Currency="EUR",$Import="0.00", $Shipping="0.00",$Testing="0",$PayPalAccount="")

Insert a PayPal payament object in the templates

$SlotID=Unique identifier of the slot in a page
$RowOffset=Pager multi-row offset of more information see the Pager object
$ItemNum=Number of the article (configurable at run time)
$ItemName=Name of the article (configurable at run time)
$Currency=Currency of price (configurable at run time)
$Import=Import to pay (configurable at run time)
$Shipping=Is the shipping / discount (configurable at run time)
$Testing=if equal to 1 call the pay pal testing page (configurable at run time)
$PayPalAccount=PayPal email account of receiver (configurable at run time)

Example:
<?@Slot_PayPal("pay_32")@?>


Slot_ImageSlider($SlotID,$Width="100px",$Height="100px",$Mode,$RowOffset=0)

Insert an image slider object in the templates
You can select from 2 to 5 images to repeat in the slot

$SlotID=Unique identifier of the slot in a page
$Width=Image width
$Height=Image height
$Shade=(bool) Enable/disble image shadein / shadeout
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<@Slot_ImageSlider("ImageSlider_4","80px","80px",0)@?>


Slot_TextSlider($SlotID,$Width="100px",$Height="100px",$Mode,$RowOffset=0)

Insert an text slider object in the templates
You can select from 2 to 5 texts to repeat in the slot

$SlotID=Unique identifier of the slot in a page
$Width=Image width
$Height=Image height
$Shade=(bool) Enable/disble image shadein / shadeout
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@Slot_TextSlider("ImageSlider_4","80px","80px",0)@?>


public function Slot_Plugin($SlotID,$Width="800px",$Height="")

Allow to select a PHP plugin
See the plugin session for more information

$SlotID=Unique identifier of the slot in a page
$Width=Image width
$Height=Image height

Example:
<?@Slot_Plugin("Plug_4","80px","80px")@?>


Slot_IsSet($SlotID,$Html,$ShowInEditMode=true)

Print the $Html content only if the $SlotID is set
You can specify many SlotID (Use coma as separator)


$SlotID=Unique identifier of the slot in a page
$RowOffset=Pager multi-row offset of more information see the Pager object
$Html=Html text to print out
ShowInEditMode=if true show also in edit mode

Example:
<?@Slot_IsSet("text_12",0,"
My Html
");@?>


Slot_IsEditMode($Html)

Print the $Html content only if the web site is in edit mode
You can specify many SlotID (Use coma as separator)

$Html=Html text to print out


Example:
<?@Slot_IsEditMode("
My Html
");@?>
Slot_IsViewMode($Html)

Print the $Html content only if the web site is in visualization mode
You can specify many SlotID (Use coma as separator)

$Html=Html text to print out


Example:
<?@Slot_IsViewMode("
My Html
");@?>




Slot_Pager($RowStep)

Is the pager
If you insert this object in a page, automatically, the page run in 'multi page mode'
You can insert infinity pages and switch trow then with the cursor
With this component you can easy trasform your page in a small book or in a shop.

$RowStep=The number of page to switch

Example:
<?@Slot_Pager(5)@?>


Slot_PagerSearch($Width)

Is the pager search bar
In multi page mode this bar allow you the search trow the pages

$Width=Bar width

Example:
<?@Slot_PagerSearch("150px")@?>


Slot_Input($SlotID,$InputGroup,$Width)

Insert an input slot in the templates

$SlotID=Unique identifier of the slot in a page
$InputGroup=Is a string that identify the group of input to send with the button
$Width=the width of field in pixel

Example:
<?@Slot_Input("InputTest","PageGroup","80px")@?>


Slot_InputArea($SlotID,$InputGroup,$Width,$Height)

Insert a input area (multi-line) slot in the templates

$SlotID=Unique identifier of the slot in a page
$InputGroup=Is a string that identify the group of input to send with the button
$Width=the width of field in pixel
$Height=the height of field in pixel

Example:
<?@Slot_InputArea("InputTestArea","PageGroup","180px","180px")@?>


Slot_SaverEmail($SlotID,$InputGroup)

Insert a button in the templates
When you press the button, the content of all the input slots
is sent to the configured email address

$SlotID=Unique identifier of the slot in a page
$InputGroup=Is a string that identify the group of input to send with the button

Example:
<?@Slot_SaverEmail("SaverTest","Page","","")@?>


Slot_Map($SlotID,$Width="100px",$Height="100px",$Latitude="",$Longitude="",$RowOffset=0)

Insert a Google map object in the templates

$SlotID=Unique identifier of the slot in a page
$Width=the width of field in pixel
$Height=the height of field in pixel
$Latitude=Preset latitude
$Latitude=Preset logitude
$RowOffset=Pager multi-row offset of more information see the Pager object

Example:
<?@Slot_Map("Map","180px","180px")@?>


Slot_BackgroundSetButton($SlotID)

Background configuration activation button

$SlotID=Unique identifier of the slot in a page

Example:
<?@Slot_BackgroundSetButton("bg_top")@?>


Slot_Background($SlotID)

Background application object

$SlotID=Unique identifier of the slot in a page

Example:
hello!



Special variables

WS::$WSBase

Basic Web Speedy pre-instantiated object
You can use this tu access to all the funtions
See the template for more informations


$WS

Basic Web Speedy pre-instantiated object
$WS = WS::$WSBase

$WS->HomeSite (Home web site name)
$WS->Host (The host name)
$WS->Root (The web physical root)
$WS->WS_Page (The WS_Page object with the current page data)
$WS->WSDB (The DB Connection)
$WS->Lang (Current language)
$WS->Langs (The all supported languages)
$WS->ActLangs (The active languages)
$WS->IsMobile (True if the page is on a mobile device)