LoginBox
<div id="login">
<h2>Log in</h2>
<?php
$form_body = "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label><br />";
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . " <div id=\"persistent_login\"><label><input type=\"checkbox\" name=\"persistent\" value=\"true\" />".elgg_echo('user:persistent')."</label></div></p>";
//$form_body .= "<br />";
$form_body .= "<p><a href=\"". $vars['url'] ."account/register.php\">" . elgg_echo('register') . "</a> | <a href=\"". $vars['url'] ."account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";
?>
<?php
echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login"));
?>
</div><!-- end of login-->
Tags
<div id="tags">
<h2>Tags</h2>
<p>
<?php
$notags = 100;
if ( $vars['entity']->notags ) {
$notags = $vars['entity']->notags;
}
echo display_tagcloud( 1, $notags, "tags" );
?>
</p>
<div class="clearfloat"/></div>
</div> <!-- end of tagcloud_widget_container -->
NewMember
<div id="members">
<h2>Neuste Mitglieder</h2>
<?php
$users = get_entities('user', '', 0, '', 20, 0, false, 0, null);
if($users){
foreach($users as $user){
echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')) . "</div>";
}
}
?>
<a href="search/users.php"><span>more members</span></a>
<div class="clearfloat"/></div>
</div><!-- end of neuste mitglieder -->
NewGroups
<div id="newgroups">
<h2>Neuste Gruppen</h2>
<?php
$groups = get_entities('group', '', 0, '', 10, 0, false, 0, null);
if($groups){
foreach($groups as $group){
echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>";
}
}
?>
<a href="pg/groups/world/"><span>more groups</span></a>
<div class="clearfloat"/></div>
</div><!-- end of neuste gruppen -->
LatestActivity
<div id="lactivity">
<h2>Latest activity</h2>
<?php set_context('search');
$content = list_registered_entities(0,8,true,false,array('object','group'));
$content = elgg_view_layout('', '', $title . $content);
echo $content;?>
<a href="dashboard/latest.php"><span>more ...</span></a>
<div class="clearfloat"/></div>
</div><!-- end of latest activity -->
LatestDiscussion
<div id="ldiscuss">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
set_context('search');
$content = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 40, 0, 0, false, true);
echo $title . $content;
?>
<a href="mod/groups/discussions.php"><span>more ...</span></a>
<div class="clearfloat"/></div>
</div><!-- end of latest giscussion -->
Calendar Box
<div id="calendar">
<?php
/* Upcoming Events*/
$num = 5;
// Get the upcoming events
$start_date = time(); // now
$end_date = $start_date + 60*60*24*365*2; // maximum is two years from now
$events = event_calendar_get_events_between($start_date,$end_date,false,$num,0,page_owner());
// If there are any events to view, view them
if (is_array($events) && sizeof($events) > 0) {
echo '<div id="group_pages_widget">';
echo '<h2>'.elgg_echo("event_calendar:groupprofile").'</h2>';
echo '<p><a href="'.$vars['url'].'pg/event_calendar/group/'.page_owner().'">'.elgg_echo('event_calendar:view_calendar').'</a></p>';
foreach($events as $event) {
echo elgg_view("object/event_calendar",array('entity' => $event));
}
echo "</div>";
}
?>
<div class="clearfloat"/></div>
</div> <!-- end of upcoming events-->
Thats it so far i think
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.