Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: skins/skin_skeleton.php

ContentClick to slide

Class Skin_Skeleton - Static functions used to produce HTML code.

Declare here all things used to build some HTML, but only HTML-related things.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Testeurs:

Reste à faire:

build_block() - Decorate some text

function &build_block($text, $variant='', $id='')

Useful for highlighting snippets of code or other types of text information

Accepted variants:

Example to build a title:
echo Skin::build_block($title'title');


Example to build a subtitle:
echo Skin::build_block($title', 'subtitle');


The access key 4 for the search box has been suggested by Mark Pilgrim.

Voir aussi:

build_block_quote() - Build some quote block

function &build_block_quote($text)

build_box() - Build a box

function &build_box($title, $content, $variant='', $id='', $url='', $popup='')

Accept following variants:

build_box_title() - Append a link to a title

function &build_box_title($title, $url, $popup='')



build_contextual_menu() - Build a contextual menu for this page

function &build_contextual_menu($anchors)

You can overload this function in your own skin to change this behaviour.

Voir aussi:

build_date() - Format a date

function &build_date($stamp, $variant='with_hour', $language=NULL, $gmt_offset=0)

Accept either a time stamp, or a formatted string as input parameter:

The date provided is considered to be GMT-based. It is adjusted to the time zone of the surfer, if applicable.

The variant is processed as follows:

Voir aussi:

build_default_box() - Build a default box

function &build_default_box($title, &$content, $id)

build_extra_box() - Build an extra box

function &build_extra_box($title, &$content, $id='')

build_folder_box() - Build a folder box

function &build_folder_box($title, &$content, $id='')

Based on DHTML and DOM. The Javascript toggle_folder() code is inserted at the bottom of the page in shared/global.php

Voir aussi:

build_flag() - Build a flag

function &build_flag($variant)



Voir aussi:

build_form() - Build a form

function &build_form(&$fields, $variant='2-columns')

Accepted variants:

Reste à faire:

build_gadget_box() - Build a gadget box

function &build_gadget_box($title, &$content, $id='')

build_image() - Build tags for an image

function &build_image($variant, $href, $title, $link='')



Accept following variants:

Any of previous variants can be prefixed with the keyword 'large', like in 'large inline'. This may be used by web designers to trigger specific features, such as frames around large images.

If a title has been given to the image, it is provided as a hovering label. It is also added as caption in following situations:

Voir aussi:

build_link() - Build a link

function &build_link($url, $label=NULL, $variant=NULL, $href_title=NULL)

Accept following variants:

Voir aussi:

build_list() - Build a list of links

function &build_list(&$items, $variant='unordered', $default_icon=NULL)

Calls Skin::build_link() to actually build links, depending on the variant provided.

Items provided should at list have links and labels. For advanced lists, each label is replaced by an array of strings.

Accept following variants:
Tools
Browse the source of this script
Server software