From 255f38710cc524e887e64ca649de8ace9a10e9e6 Mon Sep 17 00:00:00 2001 From: RJ Madsen Date: Thu, 6 Jul 2017 14:19:58 -0400 Subject: [PATCH] Added global directory link to the find people side panel --- .gitignore | 3 +++ include/contact_widgets.php | 3 ++- view/templates/peoplefind.tpl | 1 + view/theme/smoothly/style.css | 12 ++++++++---- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index cd299f2d85..374fbc532c 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ venv/ #ignore git projects in vendor vendor/**/.git + +#ignore config files from JetBrains +/.idea \ No newline at end of file diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 3cd18c7792..b40e5cc4ed 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -37,7 +37,8 @@ function findpeople_widget() { '$suggest' => t('Friend Suggestions'), '$similar' => t('Similar Interests'), '$random' => t('Random Profile'), - '$inv' => t('Invite Friends') + '$inv' => t('Invite Friends'), + 'directory' => t('View Global Directory') )); } diff --git a/view/templates/peoplefind.tpl b/view/templates/peoplefind.tpl index 45c4c0b622..0d1c6c79ba 100644 --- a/view/templates/peoplefind.tpl +++ b/view/templates/peoplefind.tpl @@ -7,6 +7,7 @@ + {{if $inv}} diff --git a/view/theme/smoothly/style.css b/view/theme/smoothly/style.css index ec52277bdd..07fc3ed895 100644 --- a/view/theme/smoothly/style.css +++ b/view/theme/smoothly/style.css @@ -3057,7 +3057,8 @@ margin-left: 0px; #side-invite-link, #side-random-profile-link, #side-suggest-link, -#side-match-link { +#side-match-link, +#side-directory-link { width: 80%; padding: 10px; margin: auto; @@ -3079,7 +3080,8 @@ margin-left: 0px; #side-invite-link:hover, #side-random-profile-link:hover, #side-suggest-link:hover, -#side-match-link:hover { +#side-match-link:hover, +#side-directory-link:hover { color: #efefef; background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1873a2), color-stop(1, #6da6c4) ); background: -moz-linear-gradient( center top, #1873a2 5%, #6da6c4 100% ); @@ -3098,7 +3100,8 @@ margin-left: 0px; #side-invite-link:active, #side-random-profile-link:active, #side-suggest-link:active, -#side-match-link:active { +#side-match-link:active, +#side-directory-link:active { background-color: #1873a2; position: relative; top: 1px; @@ -3107,7 +3110,8 @@ margin-left: 0px; #side-invite-link a, #side-random-profile-link a, #side-suggest-link a, -#side-match-link a { +#side-match-link a, +#side-directory-link a { color: #efefef; }