aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 13:42:39 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 13:42:39 +0000
commit0ab20c0f0d7e59ddeaac47f6db6e8d510eff666f (patch)
treee5ce60bd646127a0015377ce4c67330fe0db358b /mod
parent22df83a71e97f752eeab510222009cb77df6bda8 (diff)
downloadelgg-0ab20c0f0d7e59ddeaac47f6db6e8d510eff666f.tar.gz
elgg-0ab20c0f0d7e59ddeaac47f6db6e8d510eff666f.tar.bz2
Updated SitePages with example homepage markup/ECML.
git-svn-id: http://code.elgg.org/elgg/trunk@5875 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/sitepages/views/default/sitepages/forms/editfront.php32
1 files changed, 29 insertions, 3 deletions
diff --git a/mod/sitepages/views/default/sitepages/forms/editfront.php b/mod/sitepages/views/default/sitepages/forms/editfront.php
index b6c0f741c..24384dfb2 100644
--- a/mod/sitepages/views/default/sitepages/forms/editfront.php
+++ b/mod/sitepages/views/default/sitepages/forms/editfront.php
@@ -16,9 +16,35 @@ if ($sitepages_object = sitepages_get_sitepage_object('front')) {
$logged_in_content = $sitepages_object->logged_in_content;
$logged_out_content = $sitepages_object->logged_out_content;
} else {
- $css = '';
- $logged_in_content = '';
- $logged_out_content = '';
+ $css = <<<___EOT
+#elgg_sidebar .entity_listing_info {width:173px;}
+___EOT;
+ $logged_in_content = <<<___EOT
+<div id="elgg_content" class="clearfloat sidebar">
+<div id="elgg_sidebar">
+ <h3>Newest members:</h3>[userlist: list_type=new, only_with_avatars=TRUE, limit=5]
+</div>
+
+<div id="elgg_page_contents" class="clearfloat">
+ <h2>All site activity</h2>
+ [activity]
+</div>
+</div>
+___EOT;
+ $logged_out_content = <<<___EOT
+<div id="elgg_content" class="clearfloat sidebar">
+<div id="elgg_sidebar">
+ [loginbox]
+ <h3>Newest members:</h3>[userlist: list_type=new, only_with_avatars=TRUE, limit=5]
+</div>
+
+<div id="elgg_page_contents" class="clearfloat">
+ <h2>Welcome to [networkname]</h2><p class="margin_top">Introduction and instructions might go here. Learn about this network, and how to get registered and start adding content.</p>
+ <h2>All site activity</h2>
+ [activity]
+</div>
+</div>
+___EOT;
}
// set the required form variables