aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-11 15:13:18 -0800
committerfriendica <info@friendica.com>2014-11-11 15:13:18 -0800
commit3fa003b5a889e2565eb64a950afabf5f6e4b3fe8 (patch)
tree70bff15b4b14aa6397939451a54b5dd2e9e8ecb8
parentd145ef2021da845e257681f1dc93d274d814e90f (diff)
downloadvolse-hubzilla-3fa003b5a889e2565eb64a950afabf5f6e4b3fe8.tar.gz
volse-hubzilla-3fa003b5a889e2565eb64a950afabf5f6e4b3fe8.tar.bz2
volse-hubzilla-3fa003b5a889e2565eb64a950afabf5f6e4b3fe8.zip
add some subtle delineation to directory entries, remove forced link on homepage element (SECURITY)
-rw-r--r--mod/directory.php2
-rw-r--r--view/css/mod_directory.css3
-rwxr-xr-xview/tpl/direntry.tpl2
3 files changed, 5 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 10e90b145..b7c965289 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -217,7 +217,7 @@ function directory_content(&$a) {
'pdesc' => $pdesc,
'marital' => $marital,
'homepage' => $homepage,
- 'homepageurl' => $homepageurl,
+ 'homepageurl' => linkify($homepageurl),
'hometown' => $hometown,
'about' => $about,
'conn_label' => t('Connect'),
diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css
index 98b99ef50..849e8e485 100644
--- a/view/css/mod_directory.css
+++ b/view/css/mod_directory.css
@@ -21,6 +21,8 @@
.directory-item {
overflow: hidden;
margin: 2px;
+ border-bottom: 2px solid #f1f1f1;
+ padding-bottom: 3px;
}
#directory-search-wrapper {
@@ -63,6 +65,7 @@ div.dirtagblock.widget {
margin: 16px;
}
.directory-connect {
+ margin-top: 3px;
display:block;
margin-left:auto;
margin-right: auto;
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl
index 879a168c9..2da920ab1 100755
--- a/view/tpl/direntry.tpl
+++ b/view/tpl/direntry.tpl
@@ -26,7 +26,7 @@
<div class="directory-about">{{$entry.about}} </div>
{{/if}}
{{if $entry.homepage}}
-<div class="directory-homepage">{{$entry.homepage}}<a href='{{$entry.homepageurl}}'>{{$entry.homepageurl}}</a> </div>
+<div class="directory-homepage">{{$entry.homepage}}{{$entry.homepageurl}} </div>
{{/if}}
{{if $entry.kw}}
<div class="directory-keywords">{{$entry.kw}} {{$entry.keywords}}</div>