aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-21 21:43:22 -0700
committerFriendika <info@friendika.com>2011-03-21 21:43:22 -0700
commitee11a74d0b7cff5061a4d498f8ecd15e55b91b07 (patch)
treef27719e0f09ca48f98156dd3af38761d36668e23
parentc74367e4c2dbcb9ef20bc07a3ea815902c61600a (diff)
downloadvolse-hubzilla-ee11a74d0b7cff5061a4d498f8ecd15e55b91b07.tar.gz
volse-hubzilla-ee11a74d0b7cff5061a4d498f8ecd15e55b91b07.tar.bz2
volse-hubzilla-ee11a74d0b7cff5061a4d498f8ecd15e55b91b07.zip
profile match
-rw-r--r--mod/contacts.php7
-rw-r--r--mod/match.php2
-rw-r--r--view/theme/duepuntozero/style.css5
-rw-r--r--view/theme/loozah/style.css5
4 files changed, 15 insertions, 4 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index c1455ec54..aee6548fe 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -9,7 +9,10 @@ function contacts_init(&$a) {
$a->page['aside'] .= group_side();
if($a->config['register_policy'] != REGISTER_CLOSED)
- $a->page['aside'] .= '<div class="side-invite-link-wrapper" id="side-invite-link-wrapper" ><a href="invite" class="side-invite-link" id="side-invite-link">' . t("Invite Friends") . '</a></div>';
+ $a->page['aside'] .= '<div class="side-link" id="side-invite-link" ><a href="invite" >' . t("Invite Friends") . '</a></div>';
+
+ if(strlen(get_config('system','directory_submit_url')))
+ $a->page['aside'] .= '<div class="side-link" id="side-match-link"><a href="match" >' . t('Find People With Shared Interests') . '</a></div>';
$tpl = load_view_file('view/follow.tpl');
$a->page['aside'] .= replace_macros($tpl,array(
@@ -18,6 +21,8 @@ function contacts_init(&$a) {
'$follow' => t('Follow')
));
+
+
}
function contacts_post(&$a) {
diff --git a/mod/match.php b/mod/match.php
index f3c78bc7d..7228529d7 100644
--- a/mod/match.php
+++ b/mod/match.php
@@ -7,7 +7,7 @@ function match_content(&$a) {
if(! local_user())
return;
- $o .= '<h2>' . t('Profile Keyword Match') . '</h2>';
+ $o .= '<h2>' . t('Profile Match') . '</h2>';
$r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
intval(local_user())
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index db73886e2..4f6d6c196 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -2154,7 +2154,7 @@ a.mail-list-link {
float: left;
text-align: center;
width: 120px;
- overflow: clip;
+ overflow: hidden;
}
.profile-match-break,
@@ -2162,3 +2162,6 @@ a.mail-list-link {
clear: both;
}
+.side-link {
+ margin-bottom: 15px;
+}
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index 69dee0dc9..49c83c83c 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -2180,7 +2180,7 @@ a.mail-list-link {
float: left;
text-align: center;
width: 120px;
- overflow: clip;
+ overflow: hidden;
}
.profile-match-break,
@@ -2188,3 +2188,6 @@ a.mail-list-link {
clear: both;
}
+.side-link {
+ margin-bottom: 15px;
+}