aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-30 15:41:42 -0800
committerfriendica <info@friendica.com>2013-12-30 15:41:42 -0800
commit4c541bb680823b7488a2614b5ef0231ad38b42c8 (patch)
tree7a286e9451d58d299d9cee2183ff4ee2398fb371
parent0dd7d936744cccfac4228cabecddc59ce05eb26c (diff)
downloadvolse-hubzilla-4c541bb680823b7488a2614b5ef0231ad38b42c8.tar.gz
volse-hubzilla-4c541bb680823b7488a2614b5ef0231ad38b42c8.tar.bz2
volse-hubzilla-4c541bb680823b7488a2614b5ef0231ad38b42c8.zip
expose profile things in the UI
-rw-r--r--mod/profiles.php2
-rw-r--r--mod/thing.php4
-rw-r--r--view/css/mod_profiles.css10
-rw-r--r--view/theme/redbasic/css/style.css9
-rwxr-xr-xview/tpl/profile_listing_header.tpl5
5 files changed, 19 insertions, 11 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 4625a8805..b94e4bf03 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -610,6 +610,8 @@ function profiles_content(&$a) {
$tpl_header = get_markup_template('profile_listing_header.tpl');
$o .= replace_macros($tpl_header,array(
'$header' => t('Edit/Manage Profiles'),
+ '$addstuff' => t('Add profile things'),
+ '$stuff_desc' => t('Include desirable objects in your profile'),
'$chg_photo' => t('Change profile photo'),
'$cr_new' => t('Create New Profile'),
'$cr_new_link' => 'profiles/new?t=' . get_form_security_token("profile_new")
diff --git a/mod/thing.php b/mod/thing.php
index b4fdfa039..d3b47ebb9 100644
--- a/mod/thing.php
+++ b/mod/thing.php
@@ -237,8 +237,10 @@ function thing_content(&$a) {
}
}
- if(! local_user())
+ if(! local_user()) {
+ notice( t('Permission denied.') . EOL);
return;
+ }
$thing_hash = '';
diff --git a/view/css/mod_profiles.css b/view/css/mod_profiles.css
index 6d935ee4d..5f930248f 100644
--- a/view/css/mod_profiles.css
+++ b/view/css/mod_profiles.css
@@ -13,6 +13,16 @@
}
+#profile-listing-desc, #profile-stuff-link {
+ margin-left: 30px;
+}
+
+#profile-listing-new-link-wrapper {
+ margin-left: 30px;
+ margin-bottom: 30px;
+}
+
+
#profile-edit-links-end {
clear: both;
margin-bottom: 15px;
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 397148c05..325685607 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -582,15 +582,6 @@ footer {
.thread-end-wrapper {
margin-left: 50px;
}
-
-#profile-listing-desc {
- margin-left: 30px;
-}
-
-#profile-listing-new-link-wrapper {
- margin-left: 30px;
- margin-bottom: 30px;
-}
.profile-listing-photo-wrapper {
float: left;
}
diff --git a/view/tpl/profile_listing_header.tpl b/view/tpl/profile_listing_header.tpl
index b771a1ea2..856d689f1 100755
--- a/view/tpl/profile_listing_header.tpl
+++ b/view/tpl/profile_listing_header.tpl
@@ -2,7 +2,10 @@
<p id="profile-listing-desc" class="button" >
<a href="profile_photo" >{{$chg_photo}}</a>
</p>
-<div id="profile-listing-new-link-wrapper" class="button" >
+<p id="profile-stuff-link" class="button">
+<a href="thing" title="{{$stuff_desc}}">{{$addstuff}}</a>
+</p>
+<p id="profile-listing-new-link-wrapper" class="button" >
<a href="{{$cr_new_link}}" id="profile-listing-new-link" title="{{$cr_new}}" >{{$cr_new}}</a>
</div>