26 echo '<div class="elgg-layout-widgets">';
41 if (isset(
$vars[
'content'])) {
46 for ($column_index = 1; $column_index <=
$num_columns; $column_index++) {
47 if (isset(
$widgets[$column_index])) {
48 $column_widgets =
$widgets[$column_index];
50 $column_widgets = array();
53 echo "<div class=\"$widget_class elgg-widgets\" id=\"elgg-widget-col-$column_index\">";
54 if (
sizeof($column_widgets) > 0) {
55 foreach ($column_widgets as
$widget) {
66 echo elgg_view(
'graphics/ajax_loader', array(
'id' =>
'elgg-widget-loader'));
$num_columns
Elgg widgets layout.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg echo
Translates a string.
elgg_get_context()
Get the current context.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
elgg_push_context($context)
Push a context onto the top of the stack.
elgg_view_entity(\ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) $widget_class
if(file_exists($welcome)) $vars