<?php
$form_body = "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label>";
$form_body .= "<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'))) . "</p>";
$form_body .= "<p>";
$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}account/register.php\">" . elgg_echo('register') . "</a> | " : "";
$form_body .= "<a href=\"{$vars['url']}account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>"; ?>
<?php
if (!isloggedin()) {
?>
<table width="915" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="215">
<div id="login-box">
<h2><?php echo elgg_echo('login'); ?></h2>
<?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/login")); ?>
</div>
<?php
} if (isloggedin()) {
?>
<table width="915" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="215">
<?php
}
?>
<div id="newest-members">
<h3><?php echo elgg_echo('user:latest'); ?></h3>
<?php $users = get_entities('user', '', 0, '', 25, 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>";
}
}
?>
<br>
<br>
<br>
<div id="latest-groups">
<h3><?php echo elgg_echo('groups:latest'); ?></h3>
<?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>";
}
}
?>
</td>
<td width="800">
<div id="message">
<div id="nupelogo"><img src="THIS IS WHERE YOU PLACE YOUR LINK TO IMAGE FILE"/></div>
<p align="justify">
<br>
Es ist Sommer, die Temperaturen sind erträglich und in Meißendorf, der Dropzone des
Fallschirmsportvereins Hannover wird ein Wasserlandungsseminar angeboten. Flugs
angemeldet und schon stehe ich Samstag um 9 Uhr in Meido. Kalte 12 Grad, wie sollte
es auch anders sein wenn ein Warmduscher wie ich im Wasser landen will.
Theorieunterricht mit den Besonderheiten einer Wasserlandung, Einweisung in die
gestellten Systeme , kein Cypres und kein Höhenmesser.
</div>
<div id="latest-activity">
<h3><?php echo elgg_echo('elgg:latest'); ?></h3>
<?php set_context('search');
$content = list_registered_entities(0,8,true,false,array('object','group'));
$content = elgg_view_layout('', '', $title . $content);
echo $content;?>
</div>
<p>
<div id="latest_discussion_widget">
<h3><?php echo elgg_echo('groups:latestdiscussion'); ?></h3>
<?php
$forum = get_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 0, $vars['entity']->guid, 8, 0, 0, false);
if($forum){
foreach($forum as $f){
$count_annotations = $f->countAnnotations("group_topic_post");
echo "<div class=\"forum_latest\">";
echo "<div class=\"group_icon\">" . elgg_view('groups/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'small')) . "</div>";
echo "<div class=\"topic_title\"><p><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a></p> <p class=\"topic_replies\"><small>".elgg_echo('group:replies').": " . $count_annotations . "</small></p></div>";
echo "</div>";
}
}else{
echo elgg_echo("grouptopic:notcreated");
}
?>
<br class="clearfloat" />
</div>
</div>
</td>
</tr>
</table>
</body>
</html>
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.