69 if (
$index <= $num_columns) {
74 foreach ($column_widgets as $column_widget) {
81 for ($column_index = 1; $column_index <=
$num_columns; $column_index++) {
84 $widgets_content =
'';
85 foreach ($column_widgets as
$widget) {
92 'register_rss_link' =>
false,
97 'id' =>
"elgg-widget-col-{$column_index}",
102 ], $widgets_content);
106 'class' =>
'elgg-widgets-grid',
113 'elgg-layout-widgets',
114 "elgg-layout-widgets-{$context}",
116 'data-page-owner-guid' =>
$owner->guid,
elgg_push_context($context)
Push a context onto the top of the stack.
$num_columns
Elgg widgets layout.
elgg_get_context()
Get the current context.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_view_entity(\ElggEntity $entity, array $vars=[])
Returns a string of a rendered entity.
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
if($owner->guid!=$page_owner->guid) $context
if($widgets) if(!isset($widgets[$num_columns])) foreach($widgets as $index=> $column_widgets) $grid
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg echo
Translates a string.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
get_entity($guid)
Loads and returns an entity object from a guid.