Elgg  Version 2.3
walled_garden.php
Go to the documentation of this file.
1 <?php
2 elgg_load_css('elgg.walled_garden');
3 
4 if (_elgg_view_may_be_altered('walled_garden.js', 'walled_garden.js.php')) {
5  elgg_deprecated_notice('elgg.walled_garden JS library is deprecated. Use elgg/walled_garden AMD module instead', '2.3');
6  elgg_load_js('elgg.walled_garden');
7 } else {
8  elgg_require_js('elgg/walled_garden');
9 }
10 
11 $content = elgg_view('core/walled_garden/login');
12 
13 $params = array(
14  'content' => $content,
15  'class' => 'elgg-walledgarden-double',
16  'id' => 'elgg-walledgarden-login',
17 );
18 $body = elgg_view_layout('walled_garden', $params);
19 echo elgg_view_page('', $body, 'walled_garden');
$content
_elgg_view_may_be_altered($view, $path)
Is there a chance a plugin is altering this view?
Definition: views.php:1800
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:689
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
Definition: elgglib.php:232
elgg_load_css($name)
Load a CSS file for this page.
Definition: elgglib.php:298
elgg echo
Translates a string.
Definition: languages.js:48
$body
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1098
elgg_load_js($name)
Load a JavaScript resource on this page.
Definition: elgglib.php:220
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:447
$params