From b36bf0e97e8dfbf2dcd07d4173392a3dcfbc2df0 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 22 Oct 2009 18:20:10 +0000 Subject: Pulling in MITRE's search core. Fo'rizzle this time. Yo. git-svn-id: http://code.elgg.org/elgg/trunk@3572 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css.php | 77 +++++++++-------------------- views/default/entities/entity_list.php | 62 +++++++++++++++++++++++ views/default/entities/entity_listing.php | 37 ++++++++++++++ views/default/entities/gallery.php | 44 +++++++++++++++++ views/default/entities/gallery_listing.php | 32 ++++++++++++ views/default/page_elements/elgg_topbar.php | 5 +- views/default/search/entity_list.php | 64 ------------------------ views/default/search/gallery.php | 44 ----------------- views/default/search/gallery_listing.php | 32 ------------ views/default/search/listing.php | 38 -------------- views/default/search/startblurb.php | 15 ------ 11 files changed, 199 insertions(+), 251 deletions(-) create mode 100644 views/default/entities/entity_list.php create mode 100644 views/default/entities/entity_listing.php create mode 100644 views/default/entities/gallery.php create mode 100644 views/default/entities/gallery_listing.php delete mode 100644 views/default/search/entity_list.php delete mode 100644 views/default/search/gallery.php delete mode 100644 views/default/search/gallery_listing.php delete mode 100644 views/default/search/listing.php delete mode 100644 views/default/search/startblurb.php (limited to 'views') diff --git a/views/default/css.php b/views/default/css.php index feca46216..da91e07a8 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -560,37 +560,6 @@ HORIZONTAL ELGG TOPBAR display:none; position:relative; } -#searchform input.search_input { - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - background-color:#FFFFFF; - border:1px solid #BBBBBB; - color:#999999; - font-size:12px; - font-weight:bold; - margin:0pt; - padding:2px; - width:180px; - height:12px; -} -#searchform input.search_submit_button { - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - color:#333333; - background: #cccccc; - border:none; - font-size:12px; - font-weight:bold; - margin:0px; - padding:2px; - width:auto; - height:18px; - cursor:pointer; -} -#searchform input.search_submit_button:hover { - color:#ffffff; - background: #4690d6; -} /* *************************************** @@ -1274,9 +1243,9 @@ p.user_menu_friends_of { } /* *************************************** - SEARCH LISTINGS + ENTITY LISTINGS *************************************** */ -.search_listing { +.entity_listing { display: block; -webkit-border-radius: 8px; -moz-border-radius: 8px; @@ -1284,80 +1253,80 @@ p.user_menu_friends_of { margin:0 10px 5px 10px; padding:5px; } -.search_listing_icon { +.entity_listing_icon { float:left; } -.search_listing_icon img { +.entity_listing_icon img { width: 40px; } -.search_listing_icon .avatar_menu_button img { +.entity_listing_icon .avatar_menu_button img { width: 15px; } -.search_listing_info { +.entity_listing_info { margin-left: 50px; min-height: 40px; } /* IE 6 fix */ -* html .search_listing_info { +* html .entity_listing_info { height:40px; } -.search_listing_info p { +.entity_listing_info p { margin:0 0 3px 0; line-height:1.2em; } -.search_listing_info p.owner_timestamp { +.entity_listing_info p.owner_timestamp { margin:0; padding:0; color:#666666; font-size: 90%; } -table.search_gallery { +table.entity_gallery { border-spacing: 10px; margin:0 0 0 0; } -.search_gallery td { +.entity_gallery td { padding: 5px; } -.search_gallery_item { +.entity_gallery_item { background: white; -webkit-border-radius: 8px; -moz-border-radius: 8px; width:170px; } -.search_gallery_item:hover { +.entity_gallery_item:hover { background: black; color:white; } -.search_gallery_item .search_listing { +.entity_gallery_item .entity_listing { background: none; text-align: center; } -.search_gallery_item .search_listing_header { +.entity_gallery_item .entity_listing_header { text-align: center; } -.search_gallery_item .search_listing_icon { +.entity_gallery_item .entity_listing_icon { position: relative; text-align: center; } -.search_gallery_item .search_listing_info { +.entity_gallery_item .entity_listing_info { margin: 5px; } -.search_gallery_item .search_listing_info p { +.entity_gallery_item .entity_listing_info p { margin: 5px; margin-bottom: 10px; } -.search_gallery_item .search_listing { +.entity_gallery_item .entity_listing { background: none; text-align: center; } -.search_gallery_item .search_listing_icon { +.entity_gallery_item .entity_listing_icon { position: absolute; margin-bottom: 20px; } -.search_gallery_item .search_listing_info { +.entity_gallery_item .entity_listing_info { margin: 5px; } -.search_gallery_item .search_listing_info p { +.entity_gallery_item .entity_listing_info p { margin: 5px; margin-bottom: 10px; } @@ -2376,7 +2345,7 @@ h3.settings { .admin_statistics table tr:hover { background: #E4E4E4; } -.admin_users_online .search_listing { +.admin_users_online .entity_listing { margin:0 0 5px 0; padding:5px; border:2px solid #cccccc; diff --git a/views/default/entities/entity_list.php b/views/default/entities/entity_list.php new file mode 100644 index 000000000..81fd102e3 --- /dev/null +++ b/views/default/entities/entity_list.php @@ -0,0 +1,62 @@ + 0 && $viewtypetoggle) { + $nav .= elgg_view("navigation/viewtype",array( + + 'baseurl' => $baseurl, + 'offset' => $offset, + 'count' => $count, + 'viewtype' => $viewtype, + + )); + } + + if ($pagination) + $nav .= elgg_view('navigation/pagination',array( + + 'baseurl' => $baseurl, + 'offset' => $offset, + 'count' => $count, + 'limit' => $limit, + + )); + + $html .= $nav; + + if ($viewtype == "list") { + if (is_array($entities) && sizeof($entities) > 0) { + foreach($entities as $entity) { + $html .= elgg_view_entity($entity, $fullview); + } + } + } else { + if (is_array($entities) && sizeof($entities) > 0) + $html .= elgg_view("entities/gallery",array('entities' => $entities)); + } + + if ($count) + $html .= $nav; + + echo $html; + +?> diff --git a/views/default/entities/entity_listing.php b/views/default/entities/entity_listing.php new file mode 100644 index 000000000..dd07e7d01 --- /dev/null +++ b/views/default/entities/entity_listing.php @@ -0,0 +1,37 @@ + + +
+ +
+ +
+
+ +
+ +
+ + \ No newline at end of file diff --git a/views/default/entities/gallery.php b/views/default/entities/gallery.php new file mode 100644 index 000000000..a2701ed0c --- /dev/null +++ b/views/default/entities/gallery.php @@ -0,0 +1,44 @@ + 0) { + +?> + + + +"; + + } + echo ""; + $col++; + if ($col > 3) { + echo ""; + $col = 0; + } + } + if ($col > 0) echo ""; + +?> + + + + + +
+ +
+ + + +
+
+ +
+ +
\ No newline at end of file diff --git a/views/default/page_elements/elgg_topbar.php b/views/default/page_elements/elgg_topbar.php index b9609910c..00240f35e 100644 --- a/views/default/page_elements/elgg_topbar.php +++ b/views/default/page_elements/elgg_topbar.php @@ -66,10 +66,7 @@ diff --git a/views/default/search/entity_list.php b/views/default/search/entity_list.php deleted file mode 100644 index 07e76e955..000000000 --- a/views/default/search/entity_list.php +++ /dev/null @@ -1,64 +0,0 @@ - 0 && $viewtypetoggle) { - $nav .= elgg_view("navigation/viewtype",array( - 'baseurl' => $baseurl, - 'offset' => $offset, - 'count' => $count, - 'viewtype' => $viewtype, - )); -} - -if ($pagination) { - $nav .= elgg_view('navigation/pagination',array( - 'baseurl' => $baseurl, - 'offset' => $offset, - 'count' => $count, - 'limit' => $limit, - )); -} - -$html .= $nav; - -if ($viewtype == "list") { - if (is_array($entities) && sizeof($entities) > 0) { - foreach($entities as $entity) { - $html .= elgg_view_entity($entity, $fullview); - } - } -} else { - if (is_array($entities) && sizeof($entities) > 0) { - $html .= elgg_view("search/gallery",array('entities' => $entities)); - } -} - -if ($count) { - $html .= $nav; -} - -echo $html; \ No newline at end of file diff --git a/views/default/search/gallery.php b/views/default/search/gallery.php deleted file mode 100644 index 52c4d0b92..000000000 --- a/views/default/search/gallery.php +++ /dev/null @@ -1,44 +0,0 @@ - 0) { - -?> - - - -"; - - } - echo ""; - $col++; - if ($col > 3) { - echo ""; - $col = 0; - } - } - if ($col > 0) echo ""; - -?> - - - - - -
- -
- - - -
-
- -
- -
\ No newline at end of file diff --git a/views/default/search/listing.php b/views/default/search/listing.php deleted file mode 100644 index fa1719069..000000000 --- a/views/default/search/listing.php +++ /dev/null @@ -1,38 +0,0 @@ - - -
- -
- -
-
- -
- -
- - -
- -
\ No newline at end of file -- cgit v1.2.3