]> git.mxchange.org Git - friendica.git/commitdiff
profile visibility editor
authorFriendika <info@friendika.com>
Wed, 13 Apr 2011 04:21:33 +0000 (21:21 -0700)
committerFriendika <info@friendika.com>
Wed, 13 Apr 2011 04:21:33 +0000 (21:21 -0700)
include/main.js
mod/profiles.php
view/profile_entry.tpl
view/profile_entry_default.tpl [deleted file]
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

index 65bd95c72a6bdae9d92cbe6334250e1b1aee741d..1c695265d14a81e25c78364f40c9a20592093462 100644 (file)
                $('body .fakelink').css('cursor', 'wait');
                $.get('group/' + gid + '/' + cid, function(data) {
                                $('#group-update-wrapper').html(data);
-                               $('#group-update2-wrapper').html(data);
                                $('body .fakelink').css('cursor', 'auto');                              
                });
        }
+
+       function profChangeMember(gid,cid) {
+               $('body .fakelink').css('cursor', 'wait');
+               $.get('profperm/' + gid + '/' + cid, function(data) {
+                               $('#prof-update-wrapper').html(data);
+                               $('body .fakelink').css('cursor', 'auto');                              
+               });
+       }
+
index 4802f21aae51e5cbed60fc793b1892be22ab759b..5ab104aa9d3cda93a58ba62df40a16434e9d94cf 100644 (file)
@@ -459,16 +459,16 @@ function profiles_content(&$a) {
                        ));
 
 
-                       $tpl_default = load_view_file('view/profile_entry_default.tpl');
                        $tpl = load_view_file('view/profile_entry.tpl');
 
                        foreach($r as $rr) {
-                               $template = (($rr['is-default']) ? $tpl_default : $tpl);
-                               $o .= replace_macros($template, array(
+                               $o .= replace_macros($tpl, array(
                                        '$photo' => $rr['thumb'],
                                        '$id' => $rr['id'],
                                        '$alt' => t('Profile Image'),
-                                       '$profile_name' => $rr['profile-name']
+                                       '$profile_name' => $rr['profile-name'],
+                                       '$visible' => (($rr['is-default']) ? t('Visible to everybody') 
+                                               : '<a href="' . $a->get_baseurl() . '/profperm/' . $rr['id'] . '" />' . t('Edit visibility') . '</a>')
                                ));
                        }
                }
index c5b782660a92dd320e4de971510c6ab6060dfe6a..7ff6d685b8b53af6872887aab38e29d05477331d 100644 (file)
@@ -5,6 +5,7 @@
 </div>
 <div class="profile-listing-photo-end"></div>
 <div class="profile-listing-name" id="profile-listing-name-$id"><a href="profiles/$id" class="profile-listing-edit-link" >$profile_name</a></div>
+<div class="profile-listing-visible">$visible</div>
 </div>
 <div class="profile-listing-end"></div>
 
diff --git a/view/profile_entry_default.tpl b/view/profile_entry_default.tpl
deleted file mode 100644 (file)
index 98f20db..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-
-<div class="profile-listing" >
-<div class="profile-listing-photo-wrapper" >
-<a href="profiles/$id" class="profile-listing-edit-link" ><img class="profile-listing-photo" id="profile-listing-photo-$id" src="$photo" alt="$alt" /></a>
-</div>
-<div class="profile-listing-photo-end" ></div>
-<div class="profile-listing-name" id="profile-listing-name-$id"><a href="profiles/$id" class="profile-listing-edit-link" >$profile_name</a></div>
-</div>
-<div class="profile-listing-end"></div>
index 4ef0a05e1b7c5428641bdb9772cf178008735493..5af6385fdf27d34047ea062c0f7e360821dab32f 100644 (file)
@@ -2258,3 +2258,36 @@ a.mail-list-link {
 #group-edit-desc {
        margin-top: 15px;
 }
+
+
+#prof-members {
+       margin-top: 20px;
+       padding: 10px;
+       height: 250px;
+       overflow: auto;
+       border: 1px solid #ddd;
+}
+
+#prof-members-end {
+       clear: both;
+}
+
+#prof-separator {
+       margin-top: 10px;
+       margin-bottom: 10px;
+}
+
+#prof-all-contacts {
+       padding: 10px;
+       height: 450px;
+       overflow: auto;
+       border: 1px solid #ddd;
+}
+
+#prof-all-contacts-end {
+       clear: both;
+}
+
+#prof-edit-desc {
+       margin-top: 15px;
+}
index 8c1a79ec2cf05ab8e50ebe2ac012b4d8ed488d3f..a4c504d23d84b7e349da0655bac2e6573b28eab6 100644 (file)
@@ -2282,3 +2282,37 @@ a.mail-list-link {
 #group-edit-desc {
     margin-top: 15px;
 }
+
+
+#prof-members {
+       margin-top: 20px;
+       padding: 10px;
+       height: 250px;
+       overflow: auto;
+       border: 1px solid #ddd;
+}
+
+#prof-members-end {
+       clear: both;
+}
+
+#prof-separator {
+       margin-top: 10px;
+       margin-bottom: 10px;
+}
+
+#prof-all-contacts {
+       padding: 10px;
+       height: 450px;
+       overflow: auto;
+       border: 1px solid #ddd;
+}
+
+#prof-all-contacts-end {
+       clear: both;
+}
+
+#prof-edit-desc {
+       margin-top: 15px;
+}
+