27 elgg_log(
'Can not resolve owner entity for widget layout',
'ERROR');
49 'class' =>
'elgg-layout-widgets',
50 'data-page-owner-guid' =>
$owner->guid,
53 echo "<div $layout_attrs>";
68 if (isset(
$vars[
'content'])) {
73 for ($column_index = 1; $column_index <=
$num_columns; $column_index++) {
74 if (isset(
$widgets[$column_index])) {
75 $column_widgets =
$widgets[$column_index];
77 $column_widgets = array();
80 echo "<div class=\"$widget_class elgg-widgets\" id=\"elgg-widget-col-$column_index\">";
81 if (
sizeof($column_widgets) > 0) {
82 foreach ($column_widgets as
$widget) {
93 echo elgg_view(
'graphics/ajax_loader', array(
'id' =>
'elgg-widget-loader'));
$num_columns
Elgg widgets layout.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
elgg_view_entity(\ElggEntity $entity, array $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
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_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
if(!$owner) if($owner->guid!=$page_owner->guid) $context
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_log($message, $level= 'NOTICE')
Display or log a message.
elgg_push_context($context)
Push a context onto the top of the stack.
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) $widget_class
get_entity($guid)
Loads and returns an entity object from a guid.