Provided functions for the display of widgets
This is the code documentation for the SproutCMS project
Search documentation |
class WidgetsProvided functions for the display of widgets
Variables
Functions
public addvoid Widgets::add ( int $area_id , string $name , array $settings [, string $heading [, string $template ]] ); Add a widget to the list of widgets for a specific area public areavoid Widgets::area ( mixed $area_name ); Render a widget area, and output directly public checkDisplayConditionsbool Widgets::checkDisplayConditions ( array $env , array $conditions ); Check whether the widget is allowed to be displayed public hasWidgetsunknown Widgets::hasWidgets ( string $area_name ); Does the specified widget area have widgets? private infoboxunknown Widgets::infobox ( mixed $inst ); Render extra widget info for admins public instantiateWidget Widgets::instantiate ( string $name ); Create an instance of a specific widget in memory public removevoid Widgets::remove ( int $area_id , string $name ); Remove a widget to the list of widgets for a specific area public renderstring Widgets::render ( int $orientation , string $name , array $settings [, string $pre_html [, string $post_html [, string $heading [, string $template ]]]] ); Instantiate, import settings, and render public renderAreastring Widgets::renderArea ( string $area_name ); Draw the widgets for a specific area The available widget areas are defined in the /config/sprout.php file. Typically there are two areas defined, 'sidebar' and 'embedded'. |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |