39 if (isset($config[
'deps']) || isset($config[
'exports'])) {
77 $view_name =
"{$view}.css";
111 $location = $type ===
'js' ?
'footer' :
'head';
153 return _elgg_services()->externalFiles->getLoadedResources($type, $location);
elgg_require_css(string $view)
Register a CSS view name to be included in the HTML head.
elgg_define_js(string $name, array $config)
Helper functions for external files like css/js.
if(!$user||!$user->canDelete()) $name
elgg_unregister_external_file(string $type, string $name)
Unregister an external file.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
$src
Display a page in an embedded window.
elgg_register_external_file(string $type, string $name, string $url, string $location= '')
Core registration function for external files.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
$config
Advanced site settings, debugging section.
elgg_unrequire_js(string $name)
Cancel a request to load an AMD module onto the page.
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
elgg_load_external_file(string $type, string $name)
Load an external resource for use on this page.
elgg_unrequire_css(string $view)
Unregister a CSS view name to be included in the HTML head.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
_elgg_services()
Get the global service provider.
elgg_get_loaded_external_resources(string $type, string $location)
Get external resource descriptors.
elgg_normalize_url(string $url)
elgg_require_js(string $name)
Request that Elgg load an AMD module onto the page.
elgg_get_simplecache_url(string $view, string $subview= '')
Get the URL for the cached view.
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.