aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-25 21:50:52 +0200
committerSem <sembrestels@riseup.net>2012-05-25 21:50:52 +0200
commit60df8b304bd70b5ddc79927abec1b1dc2eb706ee (patch)
tree36828d43b5f1b8cd21c8ad1ef3fdd19b8564de9a /views/default/page/layouts
downloadelgg-60df8b304bd70b5ddc79927abec1b1dc2eb706ee.tar.gz
elgg-60df8b304bd70b5ddc79927abec1b1dc2eb706ee.tar.bz2
Purity2 Theme by SocialApparatus.
http://community.elgg.org/pg/plugins/project/874669/developer/sbarron/purity2-theme-for-elgg-18
Diffstat (limited to 'views/default/page/layouts')
-rw-r--r--views/default/page/layouts/custom_index.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/views/default/page/layouts/custom_index.php b/views/default/page/layouts/custom_index.php
new file mode 100644
index 000000000..5aa9f9abc
--- /dev/null
+++ b/views/default/page/layouts/custom_index.php
@@ -0,0 +1,48 @@
+<?php
+if (elgg_get_config('allow_registration') != false) {
+ $friend_guid = (int) get_input('friend_guid', 0);
+ $invitecode = get_input('invitecode');
+ $register_url = elgg_get_site_url() . 'action/register';
+ if (elgg_get_config('https_login')) {
+ $register_url = str_replace("http:", "https:", $register_url);
+ }
+ $form_params = array(
+ 'action' => $register_url,
+ 'class' => 'elgg-form-account float',
+ );
+ $body_params = array(
+ 'friend_guid' => $friend_guid,
+ 'invitecode' => $invitecode
+ );
+ $content = elgg_view_form('register', $form_params, $body_params);
+ $content .= elgg_view('help/register');
+} else {
+ $content = '';
+}
+$showpeople = elgg_get_plugin_setting('showpeople','purity_theme');
+if (!$showpeople) $showpeople = 'right';
+?>
+
+<div class="custom-index elgg-main elgg-grid clearfix">
+ <div class="elgg-col elgg-col-1of2">
+ <div class="elgg-inner pvm phm prl">
+ <div class="front_left">
+ <?php if ($showpeople == 'Left') { ?>
+ <img src="<?php echo $vars['url']; ?>mod/purity_theme/graphics/people.png">
+ <?php } ?>
+ <?php echo elgg_view('purity_theme/leftside'); ?>
+ <?php if (!elgg_is_logged_in()) echo $content;?>
+ </div>
+ </div>
+ </div>
+ <div class="elgg-col elgg-col-1of2">
+ <div class="elgg-inner pvm">
+ <div class="front_right">
+ <?php if ($showpeople == 'Right') { ?>
+ <img src="<?php echo $vars['url']; ?>mod/purity_theme/graphics/people.png">
+ <?php } ?>
+ <?php echo elgg_view('purity_theme/rightside'); ?>
+ </div>
+ </div>
+ </div>
+</div> \ No newline at end of file