aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinclude/security.php7
-rwxr-xr-xview/theme/duepuntozero/style.css2
-rwxr-xr-xview/theme/testbubble/nav.tpl5
-rwxr-xr-xview/theme/testbubble/style.css61
4 files changed, 43 insertions, 32 deletions
diff --git a/include/security.php b/include/security.php
index bc2c9f0bf..6b8128bdd 100755
--- a/include/security.php
+++ b/include/security.php
@@ -108,14 +108,18 @@ function can_write_wall(&$a,$owner) {
if(remote_user()) {
- // user remembered decision and avoid a DB lookup for each and every display item
+ // use remembered decision and avoid a DB lookup for each and every display item
// DO NOT use this function if there are going to be multiple owners
+ // We have a contact-id for an authenticated remote user, this block determines if the contact
+ // belongs to this page owner, and has the necessary permissions to post content
+
if($verified === 2)
return true;
elseif($verified === 1)
return false;
else {
+
$r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
AND `user`.`blockwall` = 0 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
@@ -125,6 +129,7 @@ function can_write_wall(&$a,$owner) {
intval(CONTACT_IS_FRIEND),
intval(PAGE_COMMUNITY)
);
+
if(count($r)) {
$verified = 2;
return true;
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 938fbe471..acd97eb94 100755
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -3036,4 +3036,4 @@ ul.menu-popup {
.notify-seen {
background: #DDDDDD;
-} \ No newline at end of file
+}
diff --git a/view/theme/testbubble/nav.tpl b/view/theme/testbubble/nav.tpl
index e515b547c..43cc7bca0 100755
--- a/view/theme/testbubble/nav.tpl
+++ b/view/theme/testbubble/nav.tpl
@@ -58,6 +58,9 @@
</div>
</nav>
+
<ul id="nav-notifications-template" style="display:none;" rel="template">
- <li><a href="{0}">{2} <span class="notif-when">{3}</span></a></li>
+ <li class="{4}"><a href="{0}"><img src="{1}" height="24" width="24" alt="" />{2} <span class="notif-when">{3}</span></a></li>
</ul>
+
+
diff --git a/view/theme/testbubble/style.css b/view/theme/testbubble/style.css
index 11a639713..1e63c7ef6 100755
--- a/view/theme/testbubble/style.css
+++ b/view/theme/testbubble/style.css
@@ -55,7 +55,7 @@ p {
}
label {
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
li {
@@ -455,7 +455,7 @@ aside a{
.vcard {
font-size: 1em;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.vcard dd {
@@ -488,7 +488,7 @@ aside h4 { font-size: 1.3em; }
color: #626262;
text-align: center;
font-weight: bold;
- font-variant:small-caps;
+/* font-variant:small-caps; */
font-size: 1.1em;
}
.allcontact-link a {
@@ -1041,7 +1041,7 @@ profile-jot-banner-wrapper {
font-size: 0.9em;
margin: 4px 0px 0px 140px;
padding-left: 10px;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.wall-item-author a {
@@ -1063,7 +1063,7 @@ profile-jot-banner-wrapper {
margin-left: 25px;
font-size: 0.9em;
display: block;
- font-variant:small-caps;
+/* font-variant:small-caps; */
color: #898989;
}
@@ -1072,7 +1072,7 @@ profile-jot-banner-wrapper {
.wall-item-conv a{
font-size: 0.9em;
color: #898989;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.wallwall .wwto {
@@ -1157,7 +1157,7 @@ profile-jot-banner-wrapper {
font-size: 0.9em;
color: #898989;
margin-left: 60px;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.wall-item-outside-wrapper.comment { margin-left: 70px; }
@@ -1189,7 +1189,7 @@ profile-jot-banner-wrapper {
.icollapse-wrapper {
font-size: 0.9em;
color: #898989;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.comment-wwedit-wrapper,
@@ -1266,7 +1266,7 @@ profile-jot-banner-wrapper {
margin-bottom: 0px;
padding-bottom: 5px;
font-size: 18px;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
div[id$="wrapper"] { height: 100%;}
@@ -1298,7 +1298,7 @@ div[id$="wrapper"] br { clear: left; }
.profile-listing-name {
font-size: 1em;
- font-variant: small-caps;
+/* font-variant: small-caps;*/
}
.profile-listing-name a {
color: #898989;
@@ -1342,7 +1342,7 @@ div[id$="wrapper"] br { clear: left; }
.profile-match-name a{
color: #999;
- font-variant: small-caps;
+/* font-variant: small-caps; */
font-size: 1em;
}
@@ -1462,7 +1462,7 @@ div[id$="wrapper"] br { clear: left; }
padding: 0px 5px;
font-weight: bold;
font-stretch:semi-expanded;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.photo-top-album-name a{
@@ -1476,7 +1476,7 @@ div[id$="wrapper"] br { clear: left; }
text-align: center;
color: #6e6e6e;
font-size: 0.9em;
- font-variant: small-caps;
+/* font-variant: small-caps; */
}
#photo-photo{
@@ -1487,7 +1487,7 @@ div[id$="wrapper"] br { clear: left; }
#photo-caption {
margin-top: 10px;
color: #6E6E6E;
- font-variant:small-caps;
+/* font-variant:small-caps; */
font-size: 1.1em;
}
@@ -1712,18 +1712,18 @@ input#photo_edit_form {
}
#prvmail-subject-label {
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
#prvmail-to {
padding-left: 10px;
}
#prvmail-to-label {
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
#prvmail-message-label {
- font-variant:small-caps;
+/* font-variant:small-caps; */
font-size: 1em;
}
@@ -1769,7 +1769,7 @@ margin-left: 0px;
.mail-list-sender-name {
font-size: 1.1em;
display: inline;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.mail-list-date {
@@ -1779,7 +1779,7 @@ margin-left: 0px;
font-size: 0.9em;
padding-left: 10px;
font-stretch:ultra-condensed;
- font-variant:small-caps;
+/* font-variant:small-caps; */
}
.mail-list-subject {
@@ -1808,8 +1808,8 @@ margin-left: 0px;
height: 64px;
}
-.mail-conv-sender-name { float: left; font-variant:small-caps; font-style: bold; }
-.mail-conv-date { float: right; font-variant:small-caps; }
+.mail-conv-sender-name { float: left; font-style: bold; }
+.mail-conv-date { float: right; }
.mail-conv-subject { clear: right; font-weight: bold; font-size: 1.2em }
.mail-conv-body {
clear: both;
@@ -1903,7 +1903,7 @@ margin-left: 0px;
font: #999;
font-size: 12px;
text-align:center;
- font-variant:small-caps;
+/* font-variant:small-caps; */
font-weight: bold;
margin-top:5px;
}
@@ -1920,7 +1920,7 @@ margin-left: 0px;
background-color: #ffffff;
}
-#contact-edit-banner-name { font-size: 1.5em; margin-left: 30px; font-variant: small-caps; }
+#contact-edit-banner-name { font-size: 1.5em; margin-left: 30px; }
#contact-edit-update-now {
@@ -2003,7 +2003,7 @@ margin-left: 0px;
}
.view-contact-name {
- font-variant: small-caps;
+/* font-variant: small-caps; */
}
#div.side-link {
@@ -2540,7 +2540,7 @@ margin-left: 0px;
margin-bottom: 2px;
margin-top: 2px;
font-size: 0.9em;
- font-variant: small-caps;
+/* font-variant: small-caps; */
text-align: left;
}
@@ -2606,7 +2606,7 @@ margin-left: 0px;
.event-list-date {
color: #626262;
margin-bottom: 10px;
- font-variant:small-caps;
+/* font-variant:small-caps; */
font-stretch:condensed;
}
@@ -2642,7 +2642,7 @@ margin-left: 0px;
color: #ffffff;
font-weight: bold;
text-align:center;
- font-variant:small-caps;
+/* font-variant:small-caps; */
-moz-box-shadow: 5px 2px 8px #959494;
-webkit-box-shadow: 5px 2px 8px #959494;
box-shadow: 5px 2px 8px #959494;
@@ -2720,13 +2720,13 @@ tr {
.directory-details {
font-size: 0.9em;
- font-variant: small-caps;
+/* font-variant: small-caps; */
width: 160px;
}
.directory-name {
font-size: 1em;
- font-variant: small-caps;
+/* font-variant: small-caps; */
width: 150px;
}
@@ -3277,3 +3277,6 @@ ul.menu-popup {
opacity: 1.0;
filter:alpha(opacity=100);
}
+.notify-seen {
+ background: #000;
+}