From 0b17969bf1eecf5698a6cd5a4e17b763d198771d Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Feb 2011 01:30:12 +0000 Subject: updated custom index for 1.8 git-svn-id: http://code.elgg.org/elgg/trunk@8193 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/canvas/layouts/new_index.php | 131 --------------------- .../views/default/custom_index/css.php | 100 +++------------- .../views/default/layout/shells/custom_index.php | 65 ++++++++++ 3 files changed, 82 insertions(+), 214 deletions(-) delete mode 100644 mod/custom_index/views/default/canvas/layouts/new_index.php create mode 100644 mod/custom_index/views/default/layout/shells/custom_index.php (limited to 'mod/custom_index/views/default') diff --git a/mod/custom_index/views/default/canvas/layouts/new_index.php b/mod/custom_index/views/default/canvas/layouts/new_index.php deleted file mode 100644 index e1b48ec0c..000000000 --- a/mod/custom_index/views/default/canvas/layouts/new_index.php +++ /dev/null @@ -1,131 +0,0 @@ - - -
- - -
- -
- " . elgg_echo("welcome") . " "; - echo $vars['user']->name; - echo ""; - } - ?> - -
"; - } - ?> -
- - -
-

-

"; - } - ?> -
- - -
-

- .

"; - } - ?> -
- -
- - -
- - - -
-

-
- "; - echo elgg_view("profile/icon",array('entity' => $members, 'size' => 'small')); - echo "
"; - } - } - ?> -
-
-
- - -
-

- -
- - -
-

- -
- - -
- \ No newline at end of file diff --git a/mod/custom_index/views/default/custom_index/css.php b/mod/custom_index/views/default/custom_index/css.php index 9c35aaa27..f21ea72b2 100644 --- a/mod/custom_index/views/default/custom_index/css.php +++ b/mod/custom_index/views/default/custom_index/css.php @@ -1,86 +1,20 @@ - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.org/ - */ +/** + * Custom Index CSS + * + */ ?> -#custom_index { - margin:10px; -} -#index_left { - width:442px; - float:left; - margin:0 0 30px 0; - padding:0 0 20px 0px; -} -#index_right { - width:442px; - float:right; - margin:0 0 30px 0; - padding:0 0px 20px 0; -} -#index_welcome { - padding:5px 10px 5px 10px; - margin:0 0 20px 0; - border:1px solid silver; - background: white; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; -} -#index_welcome #login-box { - margin:5px 0 10px 0; - padding:0 0 10px 0; - background: #dedede; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - width:240px; -} -#index_welcome #login-box form { - margin:0 10px 0 10px; - padding:0 10px 4px 10px; - background: white; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - width:200px; -} -#index_welcome #login-box h2, -.index_box h2 { - color:#0054A7; - font-size:1.35em; - line-height:1.2em; - margin:0 0 0 8px; - padding:5px; -} -#index_welcome #login-box h2 { - padding-bottom:5px; -} - -.index_box { - margin:0 0 20px 0; - background: #dedede; - padding:0 0 5px 0; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; -} - -.index_box .search_listing { - -} -.index_box .index_members { - float:left; - margin:2pt 5px 3px 0pt; -} -#persistent_login { - float:right; - display:block; - margin-top:-34px; -} - - - +/******************************* + Custom Index +********************************/ +.custom-index .elgg-module-featured { + box-shadow: 1px 1px 5px #CCC; + -moz-box-shadow: 1px 1px 5px #CCC; + -webkit-box-shadow: 1px 1px 5px #CCC; +} +.custom-index .elgg-module-featured:hover { + box-shadow: 1px 1px 6px #AAA; + -moz-box-shadow: 1px 1px 6px #AAA; + -webkit-box-shadow: 1px 1px 6px #AAA; +} \ No newline at end of file diff --git a/mod/custom_index/views/default/layout/shells/custom_index.php b/mod/custom_index/views/default/layout/shells/custom_index.php new file mode 100644 index 000000000..48039dbd9 --- /dev/null +++ b/mod/custom_index/views/default/layout/shells/custom_index.php @@ -0,0 +1,65 @@ + + +
+
+
+" . elgg_echo("welcome") . " "; + $top_box .= get_loggedin_user()->name; + $top_box .= ""; +} else { + $top_box = $vars['login']; +} +echo elgg_view_module('featured', '', $top_box, array('header' => false)); + +// a view for plugins to extend +echo elgg_view("index/lefthandside"); + +// files +if (elgg_is_active_plugin('file')) { + echo elgg_view_module('featured', elgg_echo("custom:files"), $vars['files']); +} + +// groups +if (elgg_is_active_plugin('groups')) { + echo elgg_view_module('featured', elgg_echo("custom:groups"), $vars['groups']); +} +?> +
+
+
+
+ +
+
+
-- cgit v1.2.3