Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
login.php
Go to the documentation of this file.
1 <?php
7 $welcome = elgg_echo('walled_garden:welcome');
8 $welcome .= ': <br/>' . $title;
9 
10 $menu = elgg_view_menu('walled_garden', array(
11  'sort_by' => 'priority',
12  'class' => 'elgg-menu-general elgg-menu-hz',
13 ));
14 
15 $login_box = elgg_view('core/account/login_box', array('module' => 'walledgarden-login'));
16 
17 echo <<<HTML
18 <div class="elgg-col elgg-col-1of2">
19  <div class="elgg-inner">
20  <h1 class="elgg-heading-walledgarden">
21  $welcome
22  </h1>
23  $menu
24  </div>
25 </div>
26 <div class="elgg-col elgg-col-1of2">
27  <div class="elgg-inner">
29  </div>
30 </div>
31 HTML;
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition: sites.php:18
$menu
Definition: login.php:10
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$welcome
Definition: login.php:7
$title
Walled garden login.
Definition: login.php:6
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:745
$login_box
Definition: login.php:15