aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-25 22:05:21 +0200
committerSem <sembrestels@riseup.net>2012-05-25 22:05:21 +0200
commit8ca38a323ad022f06a91d14d8fdc183e50392414 (patch)
tree05d185050dc41f2241b6e1c4e28c7926b87c62c2 /views/default/page/layouts
parent08f0e922a806a27ef4e3ca96b59ef4bbfb08fde5 (diff)
parent60df8b304bd70b5ddc79927abec1b1dc2eb706ee (diff)
downloadelgg-8ca38a323ad022f06a91d14d8fdc183e50392414.tar.gz
elgg-8ca38a323ad022f06a91d14d8fdc183e50392414.tar.bz2
Forking Lorea/purity_theme
Conflicts: graphics/elgg_sprites.png manifest.xml start.php views/default/css/elements/buttons.php views/default/css/elements/forms.php views/default/css/elements/helpers.php views/default/css/elements/layout.php views/default/css/elements/typography.php
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