<?php
/*
* customindex mod, modded content.php
*
*
*made by divexit.de
*
*/
?>
<?php
// Code der Login Fenster erstellt
$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
// Code um Login bzw. Alternative auszugeben
// Default Breite im CSS 998 px
//Inhalt Linkes Fenster
//Zeile 1 Beginn
// wenn nicht eingeloggt zeige login fenster
if (!isloggedin()) {
?>
<table width="980" height="330" border="0" cellspacing="10" cellpadding="10">
<tr>
<td width="460">
<div align="left">
<br>
<h1>Welcome to diveXit</h1>
This community is for those who do or are interested in
Skydiving. If this is you, please feel free to join.
<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>
</div>
<?php
// wenn eingeloggt zeige .........
} if (isloggedin()) {
?>
<table width="980" height="330" border="0" cellspacing="10" cellpadding="10">
<tr>
<td width="470">
<div align="left">
<br>
<h1></h1><br>
Herzlich Willkommen, Du bist jetzt eingeloggt! Dein Leben hat in naher Zukunft ein jähes Ende :-)
und falls du das glaubst bist a weng .......
</div>
</td>
<?php
}
//Spacer Zwischen links und rechts
?>
<td width="25" height="350">
</td>
<?php
//Inhalt rechtes fenster
?>
<td width="470" height="330">
<div align="left">
<div id="message">
<br>
<h1>Featured Groups:</h1>
<h3> <a href="http://www.divexit.de"> * Test Link 1 </a> </h3>
<h3> <a href="http://www.divexit.de"> * Test Link 2 </a> </h3>
<h3> <a href="http://www.divexit.de"> * Test Link 3 </a> </h3>
<h3> <a href="http://www.divexit.de"> * Test Link 4 </a> </h3>
<h3> <a href="http://www.divexit.de"> * Test Link 5 </a> </h3>
</div>
</div>
</td>
<?php
// Ende Zeile 1
//Inhalt linkes fenster
//Beginn Zeile 2
?>
<table width="980" border="0" cellspacing="10" cellpadding=10">
<tr>
<td width="470">
<div id="newest-members">
<div align="left">
<h3>Newest Members:</h3>
<?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>";
}
}
?>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<div id="latest-groups">
<div align="">
<h3>Latest Groups</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>";
}
}
?>
</div>
</td>
<?php
//Spacer Zwischen links und rechts
?>
<td width="25">
</td>
<?php
//Inhalt rechtes fenster
?>
<td width="470">
<div id="latest-activity">
<div align="left">
<h3>Latest Activity</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>
</div>
<p>
</td>
<?php
// Ende Zeile 2
//Inhalt linkes fenster
//Beginn Zeile 3
?>
<table width="980" border="0" cellspacing="10" cellpadding="10">
<tr>
<td width="470">
</td>
<?php
//Spacer Zwischen links und rechts
?>
<td width="25">
</td>
<?php
//Inhalt rechtes fenster
?>
<td width="470">
<div id="latest_discussion_widget">
<div align="left">
<h3><?php echo elgg_echo('groups:latestdiscussion'); ?></h3>
<?php set_context('search');
$content = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 6, 0, 0, false, true);
//$content = list_entities_from_annotations(0,8,true,false,array('object','groupforumtopic','group_topic_post'));
$content = elgg_view_layout('', '', $title . $content);
echo $content;?>
</div>
</div>
<p>
</td>
<br class="clearfloat" />
</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.