ONO::Lib::UI::Box

Box elements

Functions

float();

Displays a floating box, consisting of 2 columns separated by a colon. Generates an infobox using data stored in a file stored inside cgi-bin/local/perl/$community/infoboxes/. $id is the ID of the file to load (${id}_$lang.txt).

In standard mode this function will render a single infobox.

Use "string:$id" to return a string that can be used by the 'infoboxes' function to render a series of boxes.

ONO::Lib::UI::Box->float( $LABEL, $CONTENT, $switches );
returns: $BOX

infobox();

Display multiple infoboxes.

Requires an array reference as input, containing the infobox data.

You may use "HTML:..." as string to inject pure HTML code.

ONO::Lib::UI::Box->infobox( $image, $title, $text1, $text2, $button, $link, $alt_button, $style );
returns: ONO::Render::Compress->compress($BOX)

infobox_file();

Display an infobox element.

$style allows to use custom CSS classes

default radius is "radius5", you may also specify "radius0" or "radius10"

"center" will center the entire content

"title_top" will display the title above the image

ONO::Lib::UI::Box->infobox_file( $community, $id, $lang, $default_lang, $link, $button, $site, $domain, $subdom );

infoboxes();

ONO::Lib::UI::Box->infoboxes( $boxes_ref, $cols );

Sub-Modules

none

Dependencies