Elgg  Version 1.11
Variables
placeholder.php File Reference

Go to the source code of this file.

Variables

 $menus_present = (array) elgg_get_config("lazy_hover:menus")
 
 $user = elgg_extract("entity", $vars)
 
if(!elgg_instanceof($user, "user")) $guid = (int) $user->getGUID()
 
 $page_owner_guid = (int) elgg_get_page_owner_guid()
 
 $contexts = elgg_get_context_stack()
 
 $input = (array) elgg_get_config("input")
 
 $data = serialize([$guid, $page_owner_guid, $contexts, $input])
 
 $mac = elgg_build_hmac($data)->getToken()
 
 $attrs
 
 if (empty( $menus_present[ $mac]))
 

Variable Documentation

◆ $attrs

$attrs
Initial value:
= [
"rel" => $mac,
"class" => "elgg-menu elgg-menu-hover elgg-ajax-loader",
]
$mac
Definition: placeholder.php:17

Definition at line 19 of file placeholder.php.

◆ $contexts

$contexts = elgg_get_context_stack()

Definition at line 12 of file placeholder.php.

◆ $data

$data = serialize([$guid, $page_owner_guid, $contexts, $input])

Definition at line 16 of file placeholder.php.

◆ $guid

if (!elgg_instanceof( $user, "user")) $guid = (int) $user->getGUID()

Definition at line 10 of file placeholder.php.

◆ $input

$input = (array) elgg_get_config("input")

Definition at line 13 of file placeholder.php.

◆ $mac

$mac = elgg_build_hmac($data)->getToken()

Definition at line 17 of file placeholder.php.

◆ $menus_present

$menus_present = (array) elgg_get_config("lazy_hover:menus")

Definition at line 3 of file placeholder.php.

◆ $page_owner_guid

$page_owner_guid = (int) elgg_get_page_owner_guid()

Definition at line 11 of file placeholder.php.

◆ $user

$user = elgg_extract("entity", $vars)

Definition at line 5 of file placeholder.php.

◆ if

if(empty($menus_present[$mac])) ( empty( $menus_present[ $mac])  )

Definition at line 24 of file placeholder.php.